2 # From configure.ac Revision: 33953 .
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
797 ac_precious_vars
='build_alias
811 # Initialize some variables set by options.
813 ac_init_version
=false
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name
=s
,x
,x
,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir
='${exec_prefix}/bin'
838 sbindir
='${exec_prefix}/sbin'
839 libexecdir
='${exec_prefix}/libexec'
840 datarootdir
='${prefix}/share'
841 datadir
='${datarootdir}'
842 sysconfdir
='${prefix}/etc'
843 sharedstatedir
='${prefix}/com'
844 localstatedir
='${prefix}/var'
845 includedir
='${prefix}/include'
846 oldincludedir
='/usr/include'
847 docdir
='${datarootdir}/doc/${PACKAGE}'
848 infodir
='${datarootdir}/info'
853 libdir
='${exec_prefix}/lib'
854 localedir
='${datarootdir}/locale'
855 mandir
='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\
$ac_option
869 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
881 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
884 -build |
--build |
--buil |
--bui |
--bu)
885 ac_prev
=build_alias
;;
886 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
887 build_alias
=$ac_optarg ;;
889 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
890 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
891 ac_prev
=cache_file
;;
892 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
893 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
894 cache_file
=$ac_optarg ;;
897 cache_file
=config.cache
;;
899 -datadir |
--datadir |
--datadi |
--datad)
901 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
902 datadir
=$ac_optarg ;;
904 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
905 |
--dataroo |
--dataro |
--datar)
906 ac_prev
=datarootdir
;;
907 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
908 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
909 datarootdir
=$ac_optarg ;;
911 -disable-* |
--disable-*)
912 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
918 eval enable_
$ac_feature=no
;;
920 -docdir |
--docdir |
--docdi |
--doc |
--do)
922 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
925 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
927 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
930 -enable-* |
--enable-*)
931 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_
$ac_feature=\
$ac_optarg ;;
939 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
940 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
941 |
--exec |
--exe |
--ex)
942 ac_prev
=exec_prefix
;;
943 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
944 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
945 |
--exec=* |
--exe=* |
--ex=*)
946 exec_prefix
=$ac_optarg ;;
948 -gas |
--gas |
--ga |
--g)
949 # Obsolete; use --with-gas.
952 -help |
--help |
--hel |
--he |
-h)
954 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
955 ac_init_help
=recursive
;;
956 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
957 ac_init_help
=short
;;
959 -host |
--host |
--hos |
--ho)
960 ac_prev
=host_alias
;;
961 -host=* |
--host=* |
--hos=* |
--ho=*)
962 host_alias
=$ac_optarg ;;
964 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
966 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
968 htmldir
=$ac_optarg ;;
970 -includedir |
--includedir |
--includedi |
--included |
--include \
971 |
--includ |
--inclu |
--incl |
--inc)
972 ac_prev
=includedir
;;
973 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
974 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
975 includedir
=$ac_optarg ;;
977 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
979 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
980 infodir
=$ac_optarg ;;
982 -libdir |
--libdir |
--libdi |
--libd)
984 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
987 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
988 |
--libexe |
--libex |
--libe)
989 ac_prev
=libexecdir
;;
990 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
991 |
--libexe=* |
--libex=* |
--libe=*)
992 libexecdir
=$ac_optarg ;;
994 -localedir |
--localedir |
--localedi |
--localed |
--locale)
996 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
997 localedir
=$ac_optarg ;;
999 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1000 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1001 ac_prev
=localstatedir
;;
1002 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1003 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1004 localstatedir
=$ac_optarg ;;
1006 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1008 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1009 mandir
=$ac_optarg ;;
1011 -nfp |
--nfp |
--nf)
1012 # Obsolete; use --without-fp.
1015 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1016 |
--no-cr |
--no-c |
-n)
1019 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1020 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1023 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1024 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1025 |
--oldin |
--oldi |
--old |
--ol |
--o)
1026 ac_prev
=oldincludedir
;;
1027 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1028 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1029 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1030 oldincludedir
=$ac_optarg ;;
1032 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1034 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1035 prefix
=$ac_optarg ;;
1037 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1038 |
--program-pre |
--program-pr |
--program-p)
1039 ac_prev
=program_prefix
;;
1040 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1041 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1042 program_prefix
=$ac_optarg ;;
1044 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1045 |
--program-suf |
--program-su |
--program-s)
1046 ac_prev
=program_suffix
;;
1047 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1048 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1049 program_suffix
=$ac_optarg ;;
1051 -program-transform-name |
--program-transform-name \
1052 |
--program-transform-nam |
--program-transform-na \
1053 |
--program-transform-n |
--program-transform- \
1054 |
--program-transform |
--program-transfor \
1055 |
--program-transfo |
--program-transf \
1056 |
--program-trans |
--program-tran \
1057 |
--progr-tra |
--program-tr |
--program-t)
1058 ac_prev
=program_transform_name
;;
1059 -program-transform-name=* |
--program-transform-name=* \
1060 |
--program-transform-nam=* |
--program-transform-na=* \
1061 |
--program-transform-n=* |
--program-transform-=* \
1062 |
--program-transform=* |
--program-transfor=* \
1063 |
--program-transfo=* |
--program-transf=* \
1064 |
--program-trans=* |
--program-tran=* \
1065 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1066 program_transform_name
=$ac_optarg ;;
1068 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1070 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1071 pdfdir
=$ac_optarg ;;
1073 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1075 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1078 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1079 |
-silent |
--silent |
--silen |
--sile |
--sil)
1082 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1084 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1086 sbindir
=$ac_optarg ;;
1088 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1089 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1090 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1092 ac_prev
=sharedstatedir
;;
1093 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1094 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1095 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1097 sharedstatedir
=$ac_optarg ;;
1099 -site |
--site |
--sit)
1101 -site=* |
--site=* |
--sit=*)
1104 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1106 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1107 srcdir
=$ac_optarg ;;
1109 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1110 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1111 ac_prev
=sysconfdir
;;
1112 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1113 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1114 sysconfdir
=$ac_optarg ;;
1116 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1117 ac_prev
=target_alias
;;
1118 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1119 target_alias
=$ac_optarg ;;
1121 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1124 -version |
--version |
--versio |
--versi |
--vers |
-V)
1125 ac_init_version
=: ;;
1128 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1131 { echo "$as_me: error: invalid package name: $ac_package" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1134 eval with_
$ac_package=\
$ac_optarg ;;
1136 -without-* |
--without-*)
1137 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1143 eval with_
$ac_package=no
;;
1146 # Obsolete; use --with-x.
1149 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1150 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1151 ac_prev
=x_includes
;;
1152 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1153 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1154 x_includes
=$ac_optarg ;;
1156 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1157 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1158 ac_prev
=x_libraries
;;
1159 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1160 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1161 x_libraries
=$ac_optarg ;;
1163 -*) { echo "$as_me: error: unrecognized option: $ac_option
1164 Try \`$0 --help' for more information." >&2
1165 { (exit 1); exit 1; }; }
1169 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1172 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1173 { (exit 1); exit 1; }; }
1174 eval $ac_envvar=\
$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1181 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 if test -n "$ac_prev"; then
1189 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1190 { echo "$as_me: error: missing argument to $ac_option" >&2
1191 { (exit 1); exit 1; }; }
1194 # Be sure to have absolute directory names.
1195 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val
=\$
$ac_var
1202 [\\/$
]* | ?
:[\\/]* ) continue;;
1203 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1205 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206 { (exit 1); exit 1; }; }
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target
=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x
; then
1218 if test "x$build_alias" = x
; then
1219 cross_compiling
=maybe
1220 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1230 test "$silent" = yes && exec 6>/dev
/null
1233 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di
=`ls -di .` &&
1235 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1236 { echo "$as_me: error: Working directory cannot be determined" >&2
1237 { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 { echo "$as_me: error: pwd does not report name of working directory" >&2
1240 { (exit 1); exit 1; }; }
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted
=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir
=`$as_dirname -- "$0" ||
1248 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$0" : 'X\(//\)[^/]' \| \
1250 X"$0" : 'X\(//\)$' \| \
1251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted
=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1279 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280 { (exit 1); exit 1; }; }
1282 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1285 { (exit 1); exit 1; }; }
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var
in $ac_precious_vars; do
1298 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1300 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures this package to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --build=BUILD configure
for building on BUILD
[guessed
]
1370 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1371 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1375 if test -n "$ac_init_help"; then
1380 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1381 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1382 --enable-dev-mode Turn on developer mode
1383 --disable-largefile omit support
for large files
1386 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1387 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1388 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1389 --with-curses=PATH use curses files
in PATH
1390 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1391 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1392 --with-ncurses=PATH use ncurses files
in PATH
1393 --with-newt=PATH use newt files
in PATH
1394 --with-odbc=PATH use unixODBC files
in PATH
1395 --with-ogg=PATH use OGG files
in PATH
1396 --with-osptk=PATH use OSP Toolkit files
in PATH
1397 --with-popt=PATH use popt files
in PATH
1398 --with-pri=PATH use ISDN PRI files
in PATH
1399 --with-radiusclient-ng=PATH
1400 use Radius Client files
in PATH
1401 --with-speex=PATH use Speex files
in PATH
1402 --with-sqlite=PATH use SQLite files
in PATH
1403 --with-ssl=PATH use OpenSSL files
in PATH
1404 --with-tds=PATH use FreeTDS files
in PATH
1405 --with-termcap=PATH use Termcap files
in PATH
1406 --with-tinfo=PATH use Term Info files
in PATH
1407 --with-vorbis=PATH use Vorbis files
in PATH
1408 --with-z=PATH use zlib files
in PATH
1409 --with-ossaudio=PATH use Open Sound System files
in PATH
1410 --with-tonezone=PATH use Zaptel files
in PATH
1411 --with-gsm=PATH use libgsm files
in PATH
, or
'internal'
1412 --with-pq=PATH use PostgreSQL files
in PATH
1413 --with-vpb=PATH use vpb files
in PATH
1414 --with-qt=PATH use Qt files
in PATH
1415 --with-kde=PATH use KDE files
in PATH
1416 --with-pwlib=PATH use PWLib files
in PATH
1418 Some influential environment variables
:
1419 CC C compiler
command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1422 nonstandard directory
<lib dir
>
1423 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1424 you have headers
in a nonstandard directory
<include dir
>
1425 CXX C
++ compiler
command
1426 CXXFLAGS C
++ compiler flags
1428 CXXCPP C
++ preprocessor
1430 Use these variables to override the choices made by
`configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" || continue
1444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 ac_abs_top_builddir=$ac_pwd
1455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir=$ac_top_build_prefix
1460 .) # We are building in place.
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
1465 ac_srcdir=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1484 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 cd "$ac_pwd" || { ac_status=$?; break; }
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1494 generated by GNU Autoconf 2.59e
1496 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1497 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1505 cat >config.log <<_ACEOF
1506 This file contains any messages produced by compilers while
1507 running configure, to aid debugging if configure makes a mistake.
1509 It was created by $as_me, which was
1510 generated by GNU Autoconf 2.59e. Invocation command line was
1522 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1523 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1524 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1525 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1526 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1528 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1529 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1531 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1532 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1533 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1534 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1535 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1536 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1537 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 test -z "$as_dir" && as_dir=.
1546 echo "PATH: $as_dir"
1562 # Keep a trace of the command line.
1563 # Strip out --no-create and --no-recursion so they do not pile up.
1564 # Strip out --silent because we don't want to record it for future runs.
1565 # Also quote any args containing shell meta-characters.
1566 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_must_keep_next=false
1576 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1578 | -silent | --silent | --silen | --sile | --sil)
1581 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1584 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1586 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1587 if test $ac_must_keep_next = true; then
1588 ac_must_keep_next=false # Got value, back to normal.
1591 *=* | --config-cache | -C | -disable-* | --disable-* \
1592 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1593 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1594 | -with-* | --with-* | -without-* | --without-* | --x)
1595 case "$ac_configure_args0 " in
1596 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599 -* ) ac_must_keep_next=true ;;
1602 ac_configure_args="$ac_configure_args '$ac_arg'"
1607 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1608 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1610 # When interrupted or exit'd, cleanup temporary files, and complete
1611 # config.log. We remove comments because anyway the quotes in there
1612 # would cause problems or look ugly.
1613 # WARNING: Use '\'' to represent an apostrophe within the trap.
1614 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1615 trap 'exit_status=$?
1616 # Save into config.log some information that might help in debugging.
1621 ## ---------------- ##
1622 ## Cache variables. ##
1623 ## ---------------- ##
1626 # The following way of writing the cache mishandles newlines in values,
1628 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1629 eval ac_val=\$$ac_var
1633 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1634 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1637 _ | IFS | as_nl) ;; #(
1638 *) $as_unset $ac_var ;;
1643 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1644 *${as_nl}ac_space=\ *)
1646 "s/'\''/'\''\\\\'\'''\''/g;
1647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1658 ## ----------------- ##
1659 ## Output variables. ##
1660 ## ----------------- ##
1663 for ac_var in $ac_subst_vars
1665 eval ac_val=\$$ac_var
1667 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 echo "$ac_var='\''$ac_val'\''"
1673 if test -n "$ac_subst_files"; then
1675 ## ------------------- ##
1676 ## File substitutions. ##
1677 ## ------------------- ##
1680 for ac_var in $ac_subst_files
1682 eval ac_val=\$$ac_var
1684 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 echo "$ac_var='\''$ac_val'\''"
1691 if test -s confdefs.h; then
1701 test "$ac_signal" != 0 &&
1702 echo "$as_me: caught signal $ac_signal"
1703 echo "$as_me: exit $exit_status"
1705 rm -f core *.core core.conftest.* &&
1706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709 for ac_signal in 1 2 13 15; do
1710 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1715 rm -f -r conftest* confdefs.h
1717 # Predefined preprocessor variables.
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 # Let the site file select an alternate cache file if it wants to.
1745 # Prefer explicitly selected file to automatically selected ones.
1746 if test -n "$CONFIG_SITE"; then
1747 set x "$CONFIG_SITE"
1748 elif test "x$prefix" != xNONE; then
1749 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1751 set x "$ac_default_prefix/share/config.site" \
1752 "$ac_default_prefix/etc/config.site"
1757 if test -r "$ac_site_file"; then
1758 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1759 echo "$as_me: loading site script $ac_site_file" >&6;}
1760 sed 's/^/| /' "$ac_site_file" >&5
1765 if test -r "$cache_file"; then
1766 # Some versions of bash will fail to source /dev/null (special
1767 # files actually), so we avoid doing that.
1768 if test -f "$cache_file"; then
1769 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1770 echo "$as_me: loading cache $cache_file" >&6;}
1772 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1773 *) . "./$cache_file";;
1777 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1778 echo "$as_me: creating cache $cache_file" >&6;}
1782 # Check that the precious variables saved in the cache have kept the same
1784 ac_cache_corrupted=false
1785 for ac_var in $ac_precious_vars; do
1786 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1787 eval ac_new_set=\$ac_env_${ac_var}_set
1788 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1789 eval ac_new_val=\$ac_env_${ac_var}_value
1790 case $ac_old_set,$ac_new_set in
1792 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1793 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1794 ac_cache_corrupted=: ;;
1796 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1797 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1798 ac_cache_corrupted=: ;;
1801 if test "x$ac_old_val" != "x$ac_new_val"; then
1802 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1803 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1804 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1805 echo "$as_me: former value
: $ac_old_val" >&2;}
1806 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1807 echo "$as_me: current value
: $ac_new_val" >&2;}
1808 ac_cache_corrupted=:
1811 # Pass precious variables to config.status.
1812 if test "$ac_new_set" = set; then
1814 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1815 *) ac_arg=$ac_var=$ac_new_val ;;
1817 case " $ac_configure_args " in
1818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1819 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 if $ac_cache_corrupted; then
1824 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1825 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1826 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1828 { (exit 1); exit 1; }; }
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 # cross-compile macros
1857 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1858 if test -f "$ac_dir/install-sh"; then
1860 ac_install_sh="$ac_aux_dir/install-sh -c"
1862 elif test -f "$ac_dir/install.sh"; then
1864 ac_install_sh="$ac_aux_dir/install.sh -c"
1866 elif test -f "$ac_dir/shtool"; then
1868 ac_install_sh="$ac_aux_dir/shtool install -c"
1872 if test -z "$ac_aux_dir"; then
1873 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1874 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1875 { (exit 1); exit 1; }; }
1878 # These three variables are undocumented and unsupported,
1879 # and are intended to be withdrawn in a future Autoconf release.
1880 # They can cause serious problems if a builder's source tree is in a directory
1881 # whose full name contains unusual characters.
1882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1887 # Make sure we can run config.sub.
1888 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1889 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1890 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1891 { (exit 1); exit 1; }; }
1893 { echo "$as_me:$LINENO: checking build system type" >&5
1894 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1895 if test "${ac_cv_build+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 ac_build_alias=$build_alias
1899 test "x$ac_build_alias" = x &&
1900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1901 test "x$ac_build_alias" = x &&
1902 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1903 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1904 { (exit 1); exit 1; }; }
1905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1906 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1907 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1908 { (exit 1); exit 1; }; }
1911 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1912 echo "${ECHO_T}$ac_cv_build" >&6; }
1913 case $ac_cv_build in
1915 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1916 echo "$as_me: error: invalid value of canonical build" >&2;}
1917 { (exit 1); exit 1; }; };;
1920 ac_save_IFS=$IFS; IFS='-'
1926 # Remember, the first character of IFS is used to create $*,
1927 # except with old shells:
1930 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1933 { echo "$as_me:$LINENO: checking host system type" >&5
1934 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_host+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 if test "x$host_alias" = x; then
1939 ac_cv_host=$ac_cv_build
1941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1949 echo "${ECHO_T}$ac_cv_host" >&6; }
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1953 echo "$as_me: error: invalid value of canonical host" >&2;}
1954 { (exit 1); exit 1; }; };;
1957 ac_save_IFS=$IFS; IFS='-'
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1967 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking target system type" >&5
1971 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_target+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test "x$target_alias" = x; then
1976 ac_cv_target=$ac_cv_host
1978 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1986 echo "${ECHO_T}$ac_cv_target" >&6; }
1987 case $ac_cv_target in
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1990 echo "$as_me: error: invalid value of canonical target" >&2;}
1991 { (exit 1); exit 1; }; };;
1993 target=$ac_cv_target
1994 ac_save_IFS=$IFS; IFS='-'
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2004 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2007 # The aliases save the names the user supplied, while $host etc.
2008 # will get canonicalized.
2009 test -n "$target_alias" &&
2010 test "$program_prefix$program_suffix$program_transform_name" = \
2012 program_prefix=${target_alias}-
2014 # check existence of the package
2017 # specify output header file
2018 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2026 ac_default_prefix=/usr/local
2029 ac_default_prefix=/usr
2030 if test ${sysconfdir} = '${prefix}/etc'; then
2033 if test ${mandir} = '${prefix}/man'; then
2034 mandir=/usr/share/man
2039 if test ${localstatedir} = '${prefix}/var'; then
2045 cat >>confdefs.h <<_ACEOF
2046 #define PBX_PLATFORM "${host}"
2050 cat >>confdefs.h <<_ACEOF
2051 #define PBX_CPU "${host_cpu}"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PBX_VENDOR "${host_vendor}"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PBX_OS "${host_os}"
2065 # export some useful defines
2066 PBX_PLATFORM=${host}
2068 PBX_VENDOR=${host_vendor}
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}uname; ac_word=$2
2079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2081 if test "${ac_cv_path_UNAME+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2096 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 UNAME=$ac_cv_path_UNAME
2108 if test -n "$UNAME"; then
2109 { echo "$as_me:$LINENO: result: $UNAME" >&5
2110 echo "${ECHO_T}$UNAME" >&6; }
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2118 if test -z "$ac_cv_path_UNAME"; then
2120 # Extract the first word of "uname", so it can be a program name with args.
2121 set dummy uname; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 case $ac_pt_UNAME in
2129 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2139 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2151 if test -n "$ac_pt_UNAME"; then
2152 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2153 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2155 { echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6; }
2159 if test "x$ac_pt_UNAME" = x; then
2162 case $cross_compiling:$ac_tool_warned in
2164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&5
2167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2168 whose name does not start with the host triplet. If you think this
2169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2170 ac_tool_warned=yes ;;
2175 UNAME="$ac_cv_path_UNAME"
2178 if test ! x"${UNAME}" = xNo; then
2179 PBX_OSREV=$(${UNAME} -r)
2185 cygwin*|mingw*|windows*|winnt)
2187 cat >>confdefs.h <<\_ACEOF
2192 # this is ugly - KPF
2198 cat >>confdefs.h <<\_ACEOF
2206 cat >>confdefs.h <<\_ACEOF
2214 cat >>confdefs.h <<\_ACEOF
2218 PBX_OSTYPE="FreeBSD"
2219 # XXX temporary hack to let FreeBSD use the default paths
2220 # for local stuff. We need a better solution.
2221 if test x"${CPPFLAGS}" = x; then
2222 CPPFLAGS="-I /usr/local/include"
2224 if test x"${LDFLAGS}" = x; then
2225 LDFLAGS="-L /usr/local/lib"
2230 cat >>confdefs.h <<\_ACEOF
2234 PBX_OSTYPE="OpenBSD"
2238 cat >>confdefs.h <<\_ACEOF
2246 cat >>confdefs.h <<\_ACEOF
2254 cat >>confdefs.h <<\_ACEOF
2263 # This needs to be before any macros that use the C compiler
2265 cat >>confdefs.h <<\_ACEOF
2266 #define _GNU_SOURCE 1
2277 # cross-compile checks
2278 if test x"${build}" != x"${host}";
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 if test -n "$CC"; then
2310 { echo "$as_me:$LINENO: result: $CC" >&5
2311 echo "${ECHO_T}$CC" >&6; }
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2319 if test -z "$ac_cv_prog_CC"; then
2321 # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_ac_ct_CC="gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349 if test -n "$ac_ct_CC"; then
2350 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351 echo "${ECHO_T}$ac_ct_CC" >&6; }
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2357 if test "x$ac_ct_CC" = x; then
2360 case $cross_compiling:$ac_tool_warned in
2362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&5
2365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2366 whose name does not start with the host triplet. If you think this
2367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2368 ac_tool_warned=yes ;;
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}g++; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_CXX+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$CXX"; then
2385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 if test -n "$CXX"; then
2406 { echo "$as_me:$LINENO: result: $CXX" >&5
2407 echo "${ECHO_T}$CXX" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2415 if test -z "$ac_cv_prog_CXX"; then
2417 # Extract the first word of "g++", so it can be a program name with args.
2418 set dummy g++; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$ac_ct_CXX"; then
2425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_ac_ct_CXX="g++"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2445 if test -n "$ac_ct_CXX"; then
2446 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2447 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2453 if test "x$ac_ct_CXX" = x; then
2456 case $cross_compiling:$ac_tool_warned in
2458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2459 whose name does not start with the host triplet. If you think this
2460 configuration is useful to you, please write to autoconf@gnu.org." >&5
2461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2464 ac_tool_warned=yes ;;
2469 CXX="$ac_cv_prog_CXX"
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_RANLIB+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$RANLIB"; then
2481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 RANLIB=$ac_cv_prog_RANLIB
2501 if test -n "$RANLIB"; then
2502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2503 echo "${ECHO_T}$RANLIB" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2511 if test -z "$ac_cv_prog_RANLIB"; then
2512 ac_ct_RANLIB=$RANLIB
2513 # Extract the first word of "ranlib", so it can be a program name with args.
2514 set dummy ranlib; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_RANLIB"; then
2521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_ac_ct_RANLIB="ranlib"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2541 if test -n "$ac_ct_RANLIB"; then
2542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2549 if test "x$ac_ct_RANLIB" = x; then
2552 case $cross_compiling:$ac_tool_warned in
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet. If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560 ac_tool_warned=yes ;;
2562 RANLIB=$ac_ct_RANLIB
2565 RANLIB="$ac_cv_prog_RANLIB"
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}ar; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_AR+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$AR"; then
2577 ac_cv_prog_AR="$AR" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AR="${ac_tool_prefix}ar"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test -n "$AR"; then
2598 { echo "$as_me:$LINENO: result: $AR" >&5
2599 echo "${ECHO_T}$AR" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2607 if test -z "$ac_cv_prog_AR"; then
2609 # Extract the first word of "ar", so it can be a program name with args.
2610 set dummy ar; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_AR"; then
2617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_AR="ar"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2637 if test -n "$ac_ct_AR"; then
2638 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2639 echo "${ECHO_T}$ac_ct_AR" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2645 if test "x$ac_ct_AR" = x; then
2648 case $cross_compiling:$ac_tool_warned in
2650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&5
2653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2656 ac_tool_warned=yes ;;
2665 if test x"${PBX_OSTYPE}" = xWin32;
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}nm; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_NM+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$NM"; then
2676 ac_cv_prog_NM="$NM" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_NM="${ac_tool_prefix}nm"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$NM"; then
2697 { echo "$as_me:$LINENO: result: $NM" >&5
2698 echo "${ECHO_T}$NM" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2706 if test -z "$ac_cv_prog_NM"; then
2708 # Extract the first word of "nm", so it can be a program name with args.
2709 set dummy nm; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$ac_ct_NM"; then
2716 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_ac_ct_NM="nm"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2736 if test -n "$ac_ct_NM"; then
2737 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2738 echo "${ECHO_T}$ac_ct_NM" >&6; }
2740 { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2744 if test "x$ac_ct_NM" = x; then
2747 case $cross_compiling:$ac_tool_warned in
2749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet. If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&5
2752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2755 ac_tool_warned=yes ;;
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}windres; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_WINDRES+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 if test -n "$WINDRES"; then
2772 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 WINDRES=$ac_cv_prog_WINDRES
2792 if test -n "$WINDRES"; then
2793 { echo "$as_me:$LINENO: result: $WINDRES" >&5
2794 echo "${ECHO_T}$WINDRES" >&6; }
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2802 if test -z "$ac_cv_prog_WINDRES"; then
2803 ac_ct_WINDRES=$WINDRES
2804 # Extract the first word of "windres", so it can be a program name with args.
2805 set dummy windres; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_WINDRES"; then
2812 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_WINDRES="windres"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2832 if test -n "$ac_ct_WINDRES"; then
2833 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2834 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2840 if test "x$ac_ct_WINDRES" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2846 whose name does not start with the host triplet. If you think this
2847 configuration is useful to you, please write to autoconf@gnu.org." >&5
2848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2849 whose name does not start with the host triplet. If you think this
2850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2851 ac_tool_warned=yes ;;
2853 WINDRES=$ac_ct_WINDRES
2856 WINDRES="$ac_cv_prog_WINDRES"
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$DLLWRAP"; then
2868 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 DLLWRAP=$ac_cv_prog_DLLWRAP
2888 if test -n "$DLLWRAP"; then
2889 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2890 echo "${ECHO_T}$DLLWRAP" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2898 if test -z "$ac_cv_prog_DLLWRAP"; then
2899 ac_ct_DLLWRAP=$DLLWRAP
2900 # Extract the first word of "dllwrap", so it can be a program name with args.
2901 set dummy dllwrap; ac_word=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$ac_ct_DLLWRAP"; then
2908 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2928 if test -n "$ac_ct_DLLWRAP"; then
2929 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2930 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2936 if test "x$ac_ct_DLLWRAP" = x; then
2939 case $cross_compiling:$ac_tool_warned in
2941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942 whose name does not start with the host triplet. If you think this
2943 configuration is useful to you, please write to autoconf@gnu.org." >&5
2944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet. If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2947 ac_tool_warned=yes ;;
2949 DLLWRAP=$ac_ct_DLLWRAP
2952 DLLWRAP="$ac_cv_prog_DLLWRAP"
2959 # Checks for programs.
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 echo "${ECHO_T}$ac_ct_CC" >&6; }
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3042 if test "x$ac_ct_CC" = x; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned=yes ;;
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; ac_word=$2
3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="${ac_tool_prefix}cc"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6; }
3095 { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy $ac_cv_prog_CC
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3148 if test -n "$CC"; then
3149 { echo "$as_me:$LINENO: result: $CC" >&5
3150 echo "${ECHO_T}$CC" >&6; }
3152 { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$CC"; then
3191 { echo "$as_me:$LINENO: result: $CC" >&5
3192 echo "${ECHO_T}$CC" >&6; }
3194 { echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6; }
3199 test -n "$CC" && break
3202 if test -z "$CC"; then
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="$ac_prog"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 echo "${ECHO_T}$ac_ct_CC" >&6; }
3238 { echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6; }
3243 test -n "$ac_ct_CC" && break
3246 if test "x$ac_ct_CC" = x; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned=yes ;;
3266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log
' for more details." >&5
3268 echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details.
" >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3274 ac_compiler=`set X $ac_compile; echo $2`
3275 { (ac_try="$ac_compiler --version >&5"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compiler --version >&5") 2>&5
3283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3284 (exit $ac_status); }
3285 { (ac_try="$ac_compiler -v >&5"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compiler -v >&5") 2>&5
3293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3294 (exit $ac_status); }
3295 { (ac_try="$ac_compiler -V >&5"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compiler -V >&5") 2>&5
3303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3304 (exit $ac_status); }
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3321 ac_clean_files_save=$ac_clean_files
3322 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3323 # Try to create an executable without -o first, disregard a.out.
3324 # It will help us diagnose broken compilers, and finding out an intuition
3326 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3327 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3330 # List of possible output files, starting from the most likely.
3331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3332 # only as a last resort. b.out is created by i960 compilers.
3333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3335 # The IRIX 6 linker writes into existing files which may not be
3336 # executable, retaining their permissions. Remove them first so a
3337 # subsequent execution test works.
3339 for ac_file in $ac_files
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3348 if { (ac_try="$ac_link_default"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_link_default") 2>&5
3356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3363 for ac_file in $ac_files
3365 test -f "$ac_file" || continue
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3370 # We found the default executable, but exeext='' is most
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3391 echo "$as_me: failed program was
:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3395 See \
`config.log' for more details." >&5
3396 echo "$as_me: error: C compiler cannot create executables
3397 See \`config.log
' for more details." >&2;}
3398 { (exit 77); exit 77; }; }
3401 ac_exeext=$ac_cv_exeext
3402 { echo "$as_me:$LINENO: result: $ac_file" >&5
3403 echo "${ECHO_T}$ac_file" >&6; }
3405 # Check that the compiler produces executables we can run. If not, either
3406 # the compiler is broken, or we cross compile.
3407 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3408 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3409 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3410 # If not cross compiling, check that we can run a simple program.
3411 if test "$cross_compiling" != yes; then
3412 if { ac_try='.
/$ac_file'
3413 { (case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_try") 2>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3424 if test "$cross_compiling" = maybe; then
3427 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3428 If you meant to cross compile, use \`--host'.
3429 See \
`config.log' for more details." >&5
3430 echo "$as_me: error: cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details.
" >&2;}
3433 { (exit 1); exit 1; }; }
3437 { echo "$as_me:$LINENO: result
: yes" >&5
3438 echo "${ECHO_T}yes" >&6; }
3440 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3441 ac_clean_files=$ac_clean_files_save
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3445 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3446 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3447 echo "${ECHO_T}$cross_compiling" >&6; }
3449 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3450 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3451 if { (ac_try="$ac_link"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_link") 2>&5
3459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3460 (exit $ac_status); }; then
3461 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3462 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3463 # work properly (i.e., refer to `conftest.exe'), while it won't with
3465 for ac_file in conftest.exe conftest conftest.*; do
3466 test -f "$ac_file" || continue
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3476 See \
`config.log' for more details." >&5
3477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3478 See \`config.log
' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
3482 rm -f conftest$ac_cv_exeext
3483 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3484 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3486 rm -f conftest.$ac_ext
3487 EXEEXT=$ac_cv_exeext
3489 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3491 if test "${ac_cv_objext+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3509 rm -f conftest.o conftest.obj
3510 if { (ac_try="$ac_compile"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_compile") 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; then
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3529 echo "$as_me: failed program was:" >&5
3530 sed 's
/^
/|
/' conftest.$ac_ext >&5
3532 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3533 See \`config.log' for more details.
" >&5
3534 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3535 See \
`config.log' for more details." >&2;}
3536 { (exit 1); exit 1; }; }
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3542 echo "${ECHO_T}$ac_cv_objext" >&6; }
3543 OBJEXT=$ac_cv_objext
3545 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3546 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3572 *) ac_try_echo
=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1
>conftest.err
3579 cat conftest.err
>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3583 { (case "(($ac_try" in
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_try") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (case "(($ac_try" in
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_try") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3614 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3615 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3616 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3617 ac_test_CFLAGS
=${CFLAGS+set}
3618 ac_save_CFLAGS
=$CFLAGS
3619 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3620 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3621 if test "${ac_cv_prog_cc_g+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_save_c_werror_flag
=$ac_c_werror_flag
3625 ac_c_werror_flag
=yes
3628 cat >conftest.
$ac_ext <<_ACEOF
3631 cat confdefs.h
>>conftest.
$ac_ext
3632 cat >>conftest.
$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3643 rm -f conftest.
$ac_objext
3644 if { (ac_try
="$ac_compile"
3646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3652 grep -v '^ *+' conftest.er1 >conftest.err
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3660 *) ac_try_echo
=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try
='test -s conftest.$ac_objext'
3668 { (case "(($ac_try" in
3669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3698 rm -f conftest.$ac_objext
3699 if { (ac_try="$ac_compile"
3701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3702 *) ac_try_echo
=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (case "(($ac_try" in
3714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_try") 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3725 *) ac_try_echo
=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3737 ac_c_werror_flag
=$ac_save_c_werror_flag
3739 cat >conftest.
$ac_ext <<_ACEOF
3742 cat confdefs.h
>>conftest.
$ac_ext
3743 cat >>conftest.
$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3754 rm -f conftest.
$ac_objext
3755 if { (ac_try
="$ac_compile"
3757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3769 { (case "(($ac_try" in
3770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3771 *) ac_try_echo
=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_try") 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try
='test -s conftest.$ac_objext'
3779 { (case "(($ac_try" in
3780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_try") 2>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3805 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3807 if test "$ac_test_CFLAGS" = set; then
3808 CFLAGS=$ac_save_CFLAGS
3809 elif test $ac_cv_prog_cc_g = yes; then
3810 if test "$GCC" = yes; then
3816 if test "$GCC" = yes; then
3822 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3823 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3824 if test "${ac_cv_prog_cc_c89+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cv_prog_cc_c89=no
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 #include <sys/types.h>
3838 #include <sys/stat.h>
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3853 s = g (p, va_arg (v,int));
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867 int test (int i, double x);
3868 struct s1 {int (*f) (int a);};
3869 struct s2 {int (*f) (double a);};
3870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884 CC="$ac_save_CC $ac_arg"
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3889 *) ac_try_echo
=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1
>conftest.err
3896 cat conftest.err
>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3900 { (case "(($ac_try" in
3901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest.$ac_objext'
3910 { (case "(($ac_try" in
3911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3912 *) ac_try_echo
=$ac_try;;
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_try") 2>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_prog_cc_c89
=$ac_arg
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.
$ac_ext >&5
3927 rm -f conftest.err conftest.
$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3930 rm -f conftest.
$ac_ext
3935 case "x$ac_cv_prog_cc_c89" in
3937 { echo "$as_me:$LINENO: result: none needed" >&5
3938 echo "${ECHO_T}none needed" >&6; } ;;
3940 { echo "$as_me:$LINENO: result: unsupported" >&5
3941 echo "${ECHO_T}unsupported" >&6; } ;;
3943 CC
="$CC $ac_cv_prog_cc_c89"
3944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3950 ac_cpp
='$CPP $CPPFLAGS'
3951 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3956 ac_cpp
='$CXXCPP $CPPFLAGS'
3957 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3960 if test -z "$CXX"; then
3961 if test -n "$CCC"; then
3964 if test -n "$ac_tool_prefix"; then
3965 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3968 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_CXX+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if test -n "$CXX"; then
3975 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir
=.
3982 for ac_exec_ext
in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3984 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CXX"; then
3996 { echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6; }
3999 { echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6; }
4004 test -n "$CXX" && break
4007 if test -z "$CXX"; then
4009 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4011 # Extract the first word of "$ac_prog", so it can be a program name with args.
4012 set dummy
$ac_prog; ac_word
=$2
4013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4015 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if test -n "$ac_ct_CXX"; then
4019 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir
=.
4026 for ac_exec_ext
in '' $ac_executable_extensions; do
4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4028 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4039 if test -n "$ac_ct_CXX"; then
4040 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4041 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4043 { echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6; }
4048 test -n "$ac_ct_CXX" && break
4051 if test "x$ac_ct_CXX" = x
; then
4054 case $cross_compiling:$ac_tool_warned in
4056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4057 whose name does not start with the host triplet. If you think this
4058 configuration is useful to you, please write to autoconf@gnu.org." >&5
4059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4060 whose name does not start with the host triplet. If you think this
4061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4062 ac_tool_warned
=yes ;;
4070 # Provide some information about the compiler.
4071 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4072 ac_compiler
=`set X $ac_compile; echo $2`
4073 { (ac_try
="$ac_compiler --version >&5"
4075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compiler --version >&5") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }
4083 { (ac_try="$ac_compiler -v >&5"
4085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4086 *) ac_try_echo
=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compiler -v >&5") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }
4093 { (ac_try
="$ac_compiler -V >&5"
4095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compiler -V >&5") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }
4104 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4105 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4106 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4131 *) ac_try_echo
=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1
>conftest.err
4138 cat conftest.err
>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4142 { (case "(($ac_try" in
4143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4154 *) ac_try_echo
=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.
$ac_ext >&5
4169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4170 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4173 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4174 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4175 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4176 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4177 ac_save_CXXFLAGS
=$CXXFLAGS
4178 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4179 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4180 if test "${ac_cv_prog_cxx_g+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4184 ac_cxx_werror_flag
=yes
4187 cat >conftest.
$ac_ext <<_ACEOF
4190 cat confdefs.h
>>conftest.
$ac_ext
4191 cat >>conftest.
$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4202 rm -f conftest.
$ac_objext
4203 if { (ac_try
="$ac_compile"
4205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4219 *) ac_try_echo
=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try
='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_cv_prog_cxx_g=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4261 *) ac_try_echo
=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1
>conftest.err
4268 cat conftest.err
>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4284 *) ac_try_echo
=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.
$ac_ext >&5
4296 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4298 cat >conftest.
$ac_ext <<_ACEOF
4301 cat confdefs.h
>>conftest.
$ac_ext
4302 cat >>conftest.
$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4313 rm -f conftest.
$ac_objext
4314 if { (ac_try
="$ac_compile"
4316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_compile") 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4330 *) ac_try_echo
=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try
='test -s conftest.$ac_objext'
4338 { (case "(($ac_try" in
4339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_prog_cxx_g=yes
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4365 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367 CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369 if test "$GXX" = yes; then
4375 if test "$GXX" = yes; then
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4394 # On Suns, sometimes $CPP names a directory.
4395 if test -n "$CPP" && test -d "$CPP"; then
4398 if test -z "$CPP"; then
4399 if test "${ac_cv_prog_CPP+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 # Double quotes because CPP needs to be expanded
4403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4421 # include <limits.h>
4423 # include <assert.h>
4427 if { (ac_try="$ac_cpp conftest.$ac_ext"
4429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4430 *) ac_try_echo
=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1
>conftest.err
4437 cat conftest.err
>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev
/null
; then
4440 if test -s conftest.err
; then
4441 ac_cpp_err
=$ac_c_preproc_warn_flag
4442 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4449 if test -z "$ac_cpp_err"; then
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.
$ac_ext >&5
4455 # Broken: fails on valid input.
4459 rm -f conftest.err conftest.
$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat >conftest.
$ac_ext <<_ACEOF
4466 cat confdefs.h
>>conftest.
$ac_ext
4467 cat >>conftest.
$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4471 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } >/dev/null; then
4484 if test -s conftest.err; then
4485 ac_cpp_err=$ac_c_preproc_warn_flag
4486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4493 if test -z "$ac_cpp_err"; then
4494 # Broken: success on invalid input.
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Passes both tests.
4505 rm -f conftest.err conftest.$ac_ext
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.err conftest.
$ac_ext
4510 if $ac_preproc_ok; then
4522 { echo "$as_me:$LINENO: result: $CPP" >&5
4523 echo "${ECHO_T}$CPP" >&6; }
4525 for ac_c_preproc_warn_flag
in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat >conftest.
$ac_ext <<_ACEOF
4536 cat confdefs.h
>>conftest.
$ac_ext
4537 cat >>conftest.
$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null; then
4559 if test -s conftest.err; then
4560 ac_cpp_err=$ac_c_preproc_warn_flag
4561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4568 if test -z "$ac_cpp_err"; then
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 # Broken: fails on valid input.
4578 rm -f conftest.err conftest.$ac_ext
4580 # OK, works on sane cases. Now check whether nonexistent headers
4581 # can be detected and how.
4582 cat >conftest.$ac_ext <<_ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4590 if { (ac_try="$ac_cpp conftest.$ac_ext"
4592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4593 *) ac_try_echo
=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1
>conftest.err
4600 cat conftest.err
>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } >/dev
/null
; then
4603 if test -s conftest.err
; then
4604 ac_cpp_err
=$ac_c_preproc_warn_flag
4605 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4612 if test -z "$ac_cpp_err"; then
4613 # Broken: success on invalid input.
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.
$ac_ext >&5
4619 # Passes both tests.
4624 rm -f conftest.err conftest.
$ac_ext
4627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628 rm -f conftest.err conftest.
$ac_ext
4629 if $ac_preproc_ok; then
4632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4633 See \`config.log' for more details." >&5
4634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4635 See \`config.log' for more details." >&2;}
4636 { (exit 1); exit 1; }; }
4640 ac_cpp
='$CPP $CPPFLAGS'
4641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4646 ac_cpp
='$CXXCPP $CPPFLAGS'
4647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4650 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4651 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4652 if test -z "$CXXCPP"; then
4653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 # Double quotes because CXXCPP needs to be expanded
4657 for CXXCPP
in "$CXX -E" "/lib/cpp"
4660 for ac_cxx_preproc_warn_flag
in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.
$ac_ext <<_ACEOF
4671 cat confdefs.h
>>conftest.
$ac_ext
4672 cat >>conftest.
$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 # include <limits.h>
4677 # include <assert.h>
4681 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null; then
4694 if test -s conftest.err; then
4695 ac_cpp_err=$ac_cxx_preproc_warn_flag
4696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4703 if test -z "$ac_cpp_err"; then
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 # Broken: fails on valid input.
4713 rm -f conftest.err conftest.$ac_ext
4715 # OK, works on sane cases. Now check whether nonexistent headers
4716 # can be detected and how.
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 #include <ac_nonexistent.h>
4725 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4728 *) ac_try_echo
=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1
>conftest.err
4735 cat conftest.err
>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } >/dev
/null
; then
4738 if test -s conftest.err
; then
4739 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4740 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4747 if test -z "$ac_cpp_err"; then
4748 # Broken: success on invalid input.
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.
$ac_ext >&5
4754 # Passes both tests.
4759 rm -f conftest.err conftest.
$ac_ext
4762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4763 rm -f conftest.err conftest.
$ac_ext
4764 if $ac_preproc_ok; then
4769 ac_cv_prog_CXXCPP
=$CXXCPP
4772 CXXCPP
=$ac_cv_prog_CXXCPP
4774 ac_cv_prog_CXXCPP
=$CXXCPP
4776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4777 echo "${ECHO_T}$CXXCPP" >&6; }
4779 for ac_cxx_preproc_warn_flag
in '' yes
4781 # Use a header file that comes with gcc, so configuring glibc
4782 # with a fresh cross-compiler works.
4783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4784 # <limits.h> exists even on freestanding compilers.
4785 # On the NeXT, cc -E runs the code through the compiler's parser,
4786 # not just through cpp. "Syntax error" is here to catch this case.
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4794 # include <limits.h>
4796 # include <assert.h>
4800 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null; then
4813 if test -s conftest.err; then
4814 ac_cpp_err=$ac_cxx_preproc_warn_flag
4815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4822 if test -z "$ac_cpp_err"; then
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 # Broken: fails on valid input.
4832 rm -f conftest.err conftest.$ac_ext
4834 # OK, works on sane cases. Now check whether nonexistent headers
4835 # can be detected and how.
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <ac_nonexistent.h>
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4847 *) ac_try_echo
=$ac_try;;
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1
>conftest.err
4854 cat conftest.err
>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev
/null
; then
4857 if test -s conftest.err
; then
4858 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4859 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4866 if test -z "$ac_cpp_err"; then
4867 # Broken: success on invalid input.
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.
$ac_ext >&5
4873 # Passes both tests.
4878 rm -f conftest.err conftest.
$ac_ext
4881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882 rm -f conftest.err conftest.
$ac_ext
4883 if $ac_preproc_ok; then
4886 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4887 See \`config.log' for more details." >&5
4888 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4889 See \`config.log' for more details." >&2;}
4890 { (exit 1); exit 1; }; }
4894 ac_cpp
='$CPP $CPPFLAGS'
4895 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4899 for ac_prog
in gawk mawk nawk
awk
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy
$ac_prog; ac_word
=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_AWK+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$AWK"; then
4909 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir
=.
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_AWK
="$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test -n "$AWK"; then
4930 { echo "$as_me:$LINENO: result: $AWK" >&5
4931 echo "${ECHO_T}$AWK" >&6; }
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 test -n "$AWK" && break
4941 # Find a good install program. We prefer a C program (faster),
4942 # so one script is as good as another. But avoid the broken or
4943 # incompatible versions:
4944 # SysV /etc/install, /usr/sbin/install
4945 # SunOS /usr/etc/install
4946 # IRIX /sbin/install
4948 # AmigaOS /C/install, which installs bootblocks on floppy discs
4949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4952 # OS/2's system install, which has a completely different semantic
4953 # ./install, which can be erroneously created by make from ./install.sh.
4954 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4956 if test -z "$INSTALL"; then
4957 if test "${ac_cv_path_install+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir
=.
4965 # Account for people who put trailing slashes in PATH elements.
4967 .
/ | .
// |
/cC
/* | \
4968 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4969 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4972 # OSF1 and SCO ODT 3.0 have their own names for install.
4973 # Don't use installbsd from OSF since it installs stuff as root
4975 for ac_prog
in ginstall scoinst
install; do
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4978 if test $ac_prog = install &&
4979 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4980 # AIX install. It has an incompatible calling convention.
4982 elif test $ac_prog = install &&
4983 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4984 # program-specific install script used by HP pwplus--don't use.
4987 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5000 if test "${ac_cv_path_install+set}" = set; then
5001 INSTALL
=$ac_cv_path_install
5003 # As a last resort, use the slow shell script. Don't cache a
5004 # value for INSTALL within a source directory, because that will
5005 # break other packages using the cache if that directory is
5006 # removed, or if the value is a relative name.
5007 INSTALL
=$ac_install_sh
5010 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5011 echo "${ECHO_T}$INSTALL" >&6; }
5013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5014 # It thinks the first close brace ends the variable substitution.
5015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5019 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5021 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5024 if test "$LN_S" = "ln -s"; then
5025 { echo "$as_me:$LINENO: result: yes" >&5
5026 echo "${ECHO_T}yes" >&6; }
5028 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 echo "${ECHO_T}no, using $LN_S" >&6; }
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5034 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037 if test "${ac_cv_prog_RANLIB+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 if test -n "$RANLIB"; then
5041 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir
=.
5048 for ac_exec_ext
in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 RANLIB
=$ac_cv_prog_RANLIB
5061 if test -n "$RANLIB"; then
5062 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5063 echo "${ECHO_T}$RANLIB" >&6; }
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5071 if test -z "$ac_cv_prog_RANLIB"; then
5072 ac_ct_RANLIB
=$RANLIB
5073 # Extract the first word of "ranlib", so it can be a program name with args.
5074 set dummy ranlib
; ac_word
=$2
5075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 if test -n "$ac_ct_RANLIB"; then
5081 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir
=.
5088 for ac_exec_ext
in '' $ac_executable_extensions; do
5089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5090 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5101 if test -n "$ac_ct_RANLIB"; then
5102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5105 { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5109 if test "x$ac_ct_RANLIB" = x
; then
5112 case $cross_compiling:$ac_tool_warned in
5114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5115 whose name does not start with the host triplet. If you think this
5116 configuration is useful to you, please write to autoconf@gnu.org." >&5
5117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5118 whose name does not start with the host triplet. If you think this
5119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5120 ac_tool_warned
=yes ;;
5122 RANLIB
=$ac_ct_RANLIB
5125 RANLIB
="$ac_cv_prog_RANLIB"
5128 { echo "$as_me:$LINENO: checking for GNU make" >&5
5129 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5130 if test "${GNU_MAKE+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 GNU_MAKE
='Not Found' ;
5134 for a
in make gmake gnumake
; do
5135 if test -z "$a" ; then continue ; fi ;
5136 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
5143 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
5144 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
5145 if test "x$GNU_MAKE" = "xNot Found" ; then
5146 echo " *** Please install GNU make. It is required to build Asterisk!"
5152 # Extract the first word of "grep", so it can be a program name with args.
5153 set dummy
grep; ac_word
=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_path_GREP+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
5164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir
=.
5169 for ac_exec_ext
in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
5183 GREP
=$ac_cv_path_GREP
5184 if test -n "$GREP"; then
5185 { echo "$as_me:$LINENO: result: $GREP" >&5
5186 echo "${ECHO_T}$GREP" >&6; }
5188 { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy
ar; ac_word
=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_AR+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir
=.
5210 for ac_exec_ext
in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
5225 if test -n "$AR"; then
5226 { echo "$as_me:$LINENO: result: $AR" >&5
5227 echo "${ECHO_T}$AR" >&6; }
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5234 # Extract the first word of "find", so it can be a program name with args.
5235 set dummy
find; ac_word
=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_FIND+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
5246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir
=.
5251 for ac_exec_ext
in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
5265 FIND
=$ac_cv_path_FIND
5266 if test -n "$FIND"; then
5267 { echo "$as_me:$LINENO: result: $FIND" >&5
5268 echo "${ECHO_T}$FIND" >&6; }
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 # Extract the first word of "compress", so it can be a program name with args.
5276 set dummy
compress; ac_word
=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_COMPRESS+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
5287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir
=.
5292 for ac_exec_ext
in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
5306 COMPRESS
=$ac_cv_path_COMPRESS
5307 if test -n "$COMPRESS"; then
5308 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5309 echo "${ECHO_T}$COMPRESS" >&6; }
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5316 # Extract the first word of "basename", so it can be a program name with args.
5317 set dummy
basename; ac_word
=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_path_BASENAME+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
5328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir
=.
5333 for ac_exec_ext
in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
5347 BASENAME
=$ac_cv_path_BASENAME
5348 if test -n "$BASENAME"; then
5349 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5350 echo "${ECHO_T}$BASENAME" >&6; }
5352 { echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6; }
5357 # Extract the first word of "dirname", so it can be a program name with args.
5358 set dummy
dirname; ac_word
=$2
5359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5361 if test "${ac_cv_path_DIRNAME+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
5369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir
=.
5374 for ac_exec_ext
in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
5388 DIRNAME
=$ac_cv_path_DIRNAME
5389 if test -n "$DIRNAME"; then
5390 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5391 echo "${ECHO_T}$DIRNAME" >&6; }
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5398 # Extract the first word of "sh", so it can be a program name with args.
5399 set dummy sh
; ac_word
=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_path_SHELL+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
5429 SHELL
=$ac_cv_path_SHELL
5430 if test -n "$SHELL"; then
5431 { echo "$as_me:$LINENO: result: $SHELL" >&5
5432 echo "${ECHO_T}$SHELL" >&6; }
5434 { echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6; }
5439 # Extract the first word of "ln", so it can be a program name with args.
5440 set dummy
ln; ac_word
=$2
5441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443 if test "${ac_cv_path_LN+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir
=.
5456 for ac_exec_ext
in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
5471 if test -n "$LN"; then
5472 { echo "$as_me:$LINENO: result: $LN" >&5
5473 echo "${ECHO_T}$LN" >&6; }
5475 { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5480 # Extract the first word of "dot", so it can be a program name with args.
5481 set dummy dot
; ac_word
=$2
5482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5484 if test "${ac_cv_path_DOT+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
5492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir
=.
5497 for ac_exec_ext
in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
5512 if test -n "$DOT"; then
5513 { echo "$as_me:$LINENO: result: $DOT" >&5
5514 echo "${ECHO_T}$DOT" >&6; }
5516 { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5523 ac_cpp
='$CPP $CPPFLAGS'
5524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5529 # Check whether --enable-dev-mode was given.
5530 if test "${enable_dev_mode+set}" = set; then
5531 enableval
=$enable_dev_mode; case "${enableval}" in
5532 y|ye|
yes) AST_DEVMODE
=yes ;;
5533 n|no
) AST_DEVMODE
=no
;;
5534 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5535 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_GREP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 # Extract the first word of "grep ggrep" to use in msg output
5550 if test -z "$GREP"; then
5551 set dummy
grep ggrep
; ac_prog_name
=$2
5552 if test "${ac_cv_path_GREP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_path_GREP_found
=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5561 test -z "$as_dir" && as_dir
=.
5562 for ac_prog
in grep ggrep
; do
5563 for ac_exec_ext
in '' $ac_executable_extensions; do
5564 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
5566 # Check for GNU ac_path_GREP and select it if it is found.
5567 # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in
5570 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 echo 'GREP' >> "conftest.nl"
5580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5582 ac_count
=`expr $ac_count + 1`
5583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_GREP
="$ac_path_GREP"
5586 ac_path_GREP_max
=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5595 $ac_path_GREP_found && break 3
5605 GREP
="$ac_cv_path_GREP"
5606 if test -z "$GREP"; then
5607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5609 { (exit 1); exit 1; }; }
5613 ac_cv_path_GREP
=$GREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5620 GREP
="$ac_cv_path_GREP"
5623 { echo "$as_me:$LINENO: checking for egrep" >&5
5624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5629 then ac_cv_path_EGREP
="$GREP -E"
5631 # Extract the first word of "egrep" to use in msg output
5632 if test -z "$EGREP"; then
5633 set dummy
egrep; ac_prog_name
=$2
5634 if test "${ac_cv_path_EGREP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_path_EGREP_found
=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5640 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5643 test -z "$as_dir" && as_dir
=.
5644 for ac_prog
in egrep; do
5645 for ac_exec_ext
in '' $ac_executable_extensions; do
5646 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5647 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
5648 # Check for GNU ac_path_EGREP and select it if it is found.
5649 # Check for GNU $ac_path_EGREP
5650 case `"$ac_path_EGREP" --version 2>&1` in
5652 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5655 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 echo 'EGREP' >> "conftest.nl"
5662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5663 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5664 ac_count
=`expr $ac_count + 1`
5665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_EGREP
="$ac_path_EGREP"
5668 ac_path_EGREP_max
=$ac_count
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5673 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5677 $ac_path_EGREP_found && break 3
5687 EGREP
="$ac_cv_path_EGREP"
5688 if test -z "$EGREP"; then
5689 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5691 { (exit 1); exit 1; }; }
5695 ac_cv_path_EGREP
=$EGREP
5701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5703 EGREP
="$ac_cv_path_EGREP"
5706 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5707 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5708 if test "${ac_cv_header_stdc+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.
$ac_ext <<_ACEOF
5714 cat confdefs.h
>>conftest.
$ac_ext
5715 cat >>conftest.
$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5730 rm -f conftest.
$ac_objext
5731 if { (ac_try
="$ac_compile"
5733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5747 *) ac_try_echo
=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try
='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_cv_header_stdc=yes
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_cv_header_stdc=no
5772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 if test $ac_cv_header_stdc = yes; then
5775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786 $EGREP "memchr" >/dev/null 2>&1; then
5789 ac_cv_header_stdc=no
5795 if test $ac_cv_header_stdc = yes; then
5796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5807 $EGREP "free" >/dev/null 2>&1; then
5810 ac_cv_header_stdc=no
5816 if test $ac_cv_header_stdc = yes; then
5817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5818 if test "$cross_compiling" = yes; then
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5829 #if ((' ' & 0x0FF) == 0x020)
5830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5833 # define ISLOWER(c) \
5834 (('a' <= (c) && (c) <= 'i') \
5835 || ('j' <= (c) && (c) <= 'r') \
5836 || ('s' <= (c) && (c) <= 'z'))
5837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5845 for (i = 0; i < 256; i++)
5846 if (XOR (islower (i), ISLOWER (i))
5847 || toupper (i) != TOUPPER (i))
5852 rm -f conftest$ac_exeext
5853 if { (ac_try="$ac_link"
5855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5856 *) ac_try_echo
=$ac_try;;
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_link") 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5863 { (case "(($ac_try" in
5864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5874 echo "$as_me: program exited with status $ac_status" >&5
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_header_stdc=no
5881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5888 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5889 if test $ac_cv_header_stdc = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define STDC_HEADERS 1
5897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5907 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5908 inttypes.h stdint.h unistd.h
5910 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5924 #include <$ac_header>
5926 rm -f conftest.$ac_objext
5927 if { (ac_try="$ac_compile"
5929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5930 *) ac_try_echo
=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1
>conftest.err
5937 cat conftest.err
>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941 { (case "(($ac_try" in
5942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5953 *) ac_try_echo
=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 eval "$as_ac_Header=yes"
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.
$ac_ext >&5
5965 eval "$as_ac_Header=no"
5968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5970 ac_res
=`eval echo '${'$as_ac_Header'}'`
5971 { echo "$as_me:$LINENO: result: $ac_res" >&5
5972 echo "${ECHO_T}$ac_res" >&6; }
5973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5974 cat >>confdefs.h
<<_ACEOF
5975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5985 # Check whether --with-asound was given.
5986 if test "${with_asound+set}" = set; then
5987 withval
=$with_asound;
5993 ALSA_MANDATORY
="yes"
5996 ALSA_DIR
="${withval}"
5997 ALSA_MANDATORY
="yes"
6006 if test "${USE_ALSA}" != "no"; then
6008 if test "x${ALSA_DIR}" != "x"; then
6009 pbxlibdir
="-L${asound_DIR}/lib"
6011 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
6012 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
6013 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_check_lib_save_LIBS
=$LIBS
6017 LIBS
="-lasound ${pbxlibdir} -lm -ldl $LIBS"
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 /* Override any GCC internal prototype to avoid an error.
6026 Use char because int might match the return type of a GCC
6027 builtin and then its argument prototype would still apply. */
6031 char snd_spcm_init ();
6035 return snd_spcm_init ();
6040 rm -f conftest.
$ac_objext conftest
$ac_exeext
6041 if { (ac_try
="$ac_link"
6043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_link") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6057 *) ac_try_echo
=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try
='test -s conftest$ac_exeext'
6065 { (case "(($ac_try" in
6066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 ac_cv_lib_asound_snd_spcm_init=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_cv_lib_asound_snd_spcm_init=no
6082 rm -f conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6086 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
6087 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
6088 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
6095 if test "${AST_ALSA_FOUND}" = "yes"; then
6096 ALSA_LIB="-lasound -lm -ldl"
6097 ALSA_HEADER_FOUND="1"
6098 if test "x${ALSA_DIR}" != "x"; then
6099 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
6100 ALSA_INCLUDE="-I${ALSA_DIR}/include"
6101 if test "xalsa/asoundlib.h" != "x" ; then
6102 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" |
$as_tr_sh`
6103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6104 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
6105 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
6106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 ac_res=`eval echo '${'$as_ac_Header'}'`
6110 { echo "$as_me:$LINENO: result: $ac_res" >&5
6111 echo "${ECHO_T}$ac_res" >&6; }
6113 # Is the header compilable?
6114 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
6115 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
6125 rm -f conftest.$ac_objext
6126 if { (ac_try="$ac_compile"
6128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6129 *) ac_try_echo
=$ac_try;;
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1
>conftest.err
6136 cat conftest.err
>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6140 { (case "(($ac_try" in
6141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; } &&
6149 { ac_try='test -s conftest.$ac_objext'
6150 { (case "(($ac_try" in
6151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6152 *) ac_try_echo
=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_try") 2>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_header_compiler
=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 ac_header_compiler
=no
6167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169 echo "${ECHO_T}$ac_header_compiler" >&6; }
6171 # Is the header present?
6172 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
6173 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
6182 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } >/dev/null; then
6195 if test -s conftest.err; then
6196 ac_cpp_err=$ac_c_preproc_warn_flag
6197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6204 if test -z "$ac_cpp_err"; then
6205 ac_header_preproc=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_header_preproc=no
6213 rm -f conftest.err conftest.$ac_ext
6214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6215 echo "${ECHO_T}$ac_header_preproc" >&6; }
6217 # So? What about this header?
6218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6220 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6221 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
6223 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
6224 ac_header_preproc=yes
6227 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
6228 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6230 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
6232 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
6234 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6236 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
6238 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
6242 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
6243 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
6244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 eval "$as_ac_Header=\$ac_header_preproc"
6249 ac_res=`eval echo '${'$as_ac_Header'}'`
6250 { echo "$as_me:$LINENO: result: $ac_res" >&5
6251 echo "${ECHO_T}$ac_res" >&6; }
6254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 if test "xalsa/asoundlib.h" != "x" ; then
6264 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6265 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6266 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
6267 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6271 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
6273 # Is the header compilable?
6274 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6275 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 #include <alsa/asoundlib.h>
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6289 *) ac_try_echo
=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6312 *) ac_try_echo
=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_header_compiler
=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.
$ac_ext >&5
6324 ac_header_compiler
=no
6327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6329 echo "${ECHO_T}$ac_header_compiler" >&6; }
6331 # Is the header present?
6332 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6333 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
6334 cat >conftest.
$ac_ext <<_ACEOF
6337 cat confdefs.h
>>conftest.
$ac_ext
6338 cat >>conftest.
$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <alsa/asoundlib.h>
6342 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null; then
6355 if test -s conftest.err; then
6356 ac_cpp_err=$ac_c_preproc_warn_flag
6357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6364 if test -z "$ac_cpp_err"; then
6365 ac_header_preproc=yes
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_header_preproc=no
6373 rm -f conftest.err conftest.$ac_ext
6374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6375 echo "${ECHO_T}$ac_header_preproc" >&6; }
6377 # So? What about this header?
6378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6381 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
6383 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
6384 ac_header_preproc=yes
6387 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6388 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6390 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
6392 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
6394 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6396 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
6398 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
6402 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6403 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
6404 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6409 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6410 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
6413 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6422 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
6423 if test ! -z "${ALSA_MANDATORY}" ;
6426 echo " *** It appears that you do not have the asound development package installed."
6427 echo " *** Please install it to include Advanced Linux Sound Architecture support, or re-run configure"
6428 echo " *** without explicitly specifying --with-asound"
6437 cat >>confdefs.h <<_ACEOF
6442 elif test ! -z "${ALSA_MANDATORY}";
6445 echo "*** The Advanced Linux Sound Architecture installation on this system appears to be broken."
6446 echo "*** Either correct the installation, or run configure"
6447 echo "*** without explicity specifying --with-asound"
6457 # Check whether --with-curses was given.
6458 if test "${with_curses+set}" = set; then
6459 withval=$with_curses;
6465 CURSES_MANDATORY="yes"
6468 CURSES_DIR="${withval}"
6469 CURSES_MANDATORY="yes"
6478 if test "${USE_CURSES}" != "no"; then
6480 if test "x${CURSES_DIR}" != "x"; then
6481 pbxlibdir="-L${curses_DIR}/lib"
6483 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
6484 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
6485 if test "${ac_cv_lib_curses_initscr+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_check_lib_save_LIBS=$LIBS
6489 LIBS="-lcurses ${pbxlibdir} $LIBS"
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6497 /* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (ac_try="$ac_link"
6515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6516 *) ac_try_echo
=$ac_try;;
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_link") 2>conftest.er1
6521 grep -v '^ *+' conftest.er1
>conftest.err
6523 cat conftest.err
>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6527 { (case "(($ac_try" in
6528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_try") 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (case "(($ac_try" in
6538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6539 *) ac_try_echo
=$ac_try;;
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_try") 2>&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_lib_curses_initscr
=yes
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.
$ac_ext >&5
6551 ac_cv_lib_curses_initscr
=no
6554 rm -f conftest.err conftest.
$ac_objext \
6555 conftest
$ac_exeext conftest.
$ac_ext
6556 LIBS
=$ac_check_lib_save_LIBS
6558 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
6559 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
6560 if test $ac_cv_lib_curses_initscr = yes; then
6561 AST_CURSES_FOUND
=yes
6567 if test "${AST_CURSES_FOUND}" = "yes"; then
6568 CURSES_LIB
="-lcurses "
6569 CURSES_HEADER_FOUND
="1"
6570 if test "x${CURSES_DIR}" != "x"; then
6571 CURSES_LIB
="${pbxlibdir} ${CURSES_LIB}"
6572 CURSES_INCLUDE
="-I${CURSES_DIR}/include"
6573 if test "xcurses.h" != "x" ; then
6574 as_ac_Header
=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
6575 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6576 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
6577 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
6578 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_res
=`eval echo '${'$as_ac_Header'}'`
6582 { echo "$as_me:$LINENO: result: $ac_res" >&5
6583 echo "${ECHO_T}$ac_res" >&6; }
6585 # Is the header compilable?
6586 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
6587 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
6588 cat >conftest.
$ac_ext <<_ACEOF
6591 cat confdefs.h
>>conftest.
$ac_ext
6592 cat >>conftest.
$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 $ac_includes_default
6595 #include <${CURSES_DIR}/include/curses.h>
6597 rm -f conftest.
$ac_objext
6598 if { (ac_try
="$ac_compile"
6600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_compile") 2>conftest.er1
6606 grep -v '^ *+' conftest.er1 >conftest.err
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6612 { (case "(($ac_try" in
6613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6614 *) ac_try_echo
=$ac_try;;
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_try") 2>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try
='test -s conftest.$ac_objext'
6622 { (case "(($ac_try" in
6623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_try") 2>&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_header_compiler=yes
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_header_compiler=no
6639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6641 echo "${ECHO_T}$ac_header_compiler" >&6; }
6643 # Is the header present?
6644 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
6645 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <${CURSES_DIR}/include/curses.h>
6654 if { (ac_try="$ac_cpp conftest.$ac_ext"
6656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6657 *) ac_try_echo
=$ac_try;;
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6662 grep -v '^ *+' conftest.er1
>conftest.err
6664 cat conftest.err
>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } >/dev
/null
; then
6667 if test -s conftest.err
; then
6668 ac_cpp_err
=$ac_c_preproc_warn_flag
6669 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6676 if test -z "$ac_cpp_err"; then
6677 ac_header_preproc
=yes
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.
$ac_ext >&5
6682 ac_header_preproc
=no
6685 rm -f conftest.err conftest.
$ac_ext
6686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6687 echo "${ECHO_T}$ac_header_preproc" >&6; }
6689 # So? What about this header?
6690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6692 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
6693 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
6695 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
6696 ac_header_preproc
=yes
6699 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
6700 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
6702 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
6704 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
6706 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
6708 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
6710 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
6714 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
6715 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
6716 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 eval "$as_ac_Header=\$ac_header_preproc"
6721 ac_res
=`eval echo '${'$as_ac_Header'}'`
6722 { echo "$as_me:$LINENO: result: $ac_res" >&5
6723 echo "${ECHO_T}$ac_res" >&6; }
6726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6727 CURSES_HEADER_FOUND
=1
6729 CURSES_HEADER_FOUND
=0
6735 if test "xcurses.h" != "x" ; then
6736 if test "${ac_cv_header_curses_h+set}" = set; then
6737 { echo "$as_me:$LINENO: checking for curses.h" >&5
6738 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
6739 if test "${ac_cv_header_curses_h+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
6743 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
6745 # Is the header compilable?
6746 { echo "$as_me:$LINENO: checking curses.h usability" >&5
6747 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
6748 cat >conftest.
$ac_ext <<_ACEOF
6751 cat confdefs.h
>>conftest.
$ac_ext
6752 cat >>conftest.
$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6757 rm -f conftest.
$ac_objext
6758 if { (ac_try
="$ac_compile"
6760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6766 grep -v '^ *+' conftest.er1 >conftest.err
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6772 { (case "(($ac_try" in
6773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6774 *) ac_try_echo
=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_try") 2>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try
='test -s conftest.$ac_objext'
6782 { (case "(($ac_try" in
6783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_try") 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_header_compiler=yes
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_header_compiler=no
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6801 echo "${ECHO_T}$ac_header_compiler" >&6; }
6803 # Is the header present?
6804 { echo "$as_me:$LINENO: checking curses.h presence" >&5
6805 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6814 if { (ac_try="$ac_cpp conftest.$ac_ext"
6816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6817 *) ac_try_echo
=$ac_try;;
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6822 grep -v '^ *+' conftest.er1
>conftest.err
6824 cat conftest.err
>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } >/dev
/null
; then
6827 if test -s conftest.err
; then
6828 ac_cpp_err
=$ac_c_preproc_warn_flag
6829 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6836 if test -z "$ac_cpp_err"; then
6837 ac_header_preproc
=yes
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.
$ac_ext >&5
6842 ac_header_preproc
=no
6845 rm -f conftest.err conftest.
$ac_ext
6846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6847 echo "${ECHO_T}$ac_header_preproc" >&6; }
6849 # So? What about this header?
6850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6852 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
6853 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
6855 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
6856 ac_header_preproc
=yes
6859 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
6860 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
6862 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
6863 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
6864 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
6865 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
6866 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
6867 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
6868 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
6869 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
6870 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
6874 { echo "$as_me:$LINENO: checking for curses.h" >&5
6875 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
6876 if test "${ac_cv_header_curses_h+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_header_curses_h
=$ac_header_preproc
6881 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
6882 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
6885 if test $ac_cv_header_curses_h = yes; then
6886 CURSES_HEADER_FOUND
=1
6888 CURSES_HEADER_FOUND
=0
6894 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
6895 if test ! -z "${CURSES_MANDATORY}" ;
6898 echo " *** It appears that you do not have the curses development package installed."
6899 echo " *** Please install it to include curses support, or re-run configure"
6900 echo " *** without explicitly specifying --with-curses"
6909 cat >>confdefs.h
<<_ACEOF
6910 #define HAVE_CURSES 1
6914 elif test ! -z "${CURSES_MANDATORY}";
6917 echo "*** The curses installation on this system appears to be broken."
6918 echo "*** Either correct the installation, or run configure"
6919 echo "*** without explicity specifying --with-curses"
6929 # Check whether --with-iksemel was given.
6930 if test "${with_iksemel+set}" = set; then
6931 withval
=$with_iksemel;
6937 IKSEMEL_MANDATORY
="yes"
6940 IKSEMEL_DIR
="${withval}"
6941 IKSEMEL_MANDATORY
="yes"
6950 if test "${USE_IKSEMEL}" != "no"; then
6952 if test "x${IKSEMEL_DIR}" != "x"; then
6953 pbxlibdir
="-L${iksemel_DIR}/lib"
6955 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
6956 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
6957 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 ac_check_lib_save_LIBS
=$LIBS
6961 LIBS
="-liksemel ${pbxlibdir} $LIBS"
6962 cat >conftest.
$ac_ext <<_ACEOF
6965 cat confdefs.h
>>conftest.
$ac_ext
6966 cat >>conftest.
$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6975 char iks_start_sasl ();
6979 return iks_start_sasl ();
6984 rm -f conftest.
$ac_objext conftest
$ac_exeext
6985 if { (ac_try
="$ac_link"
6987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_link") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (case "(($ac_try" in
7000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7001 *) ac_try_echo
=$ac_try;;
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_try") 2>&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try
='test -s conftest$ac_exeext'
7009 { (case "(($ac_try" in
7010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_try") 2>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 ac_cv_lib_iksemel_iks_start_sasl=yes
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_lib_iksemel_iks_start_sasl=no
7026 rm -f conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7030 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
7031 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
7032 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
7033 AST_IKSEMEL_FOUND=yes
7035 AST_IKSEMEL_FOUND=no
7039 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
7040 IKSEMEL_LIB="-liksemel "
7041 IKSEMEL_HEADER_FOUND="1"
7042 if test "x${IKSEMEL_DIR}" != "x"; then
7043 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
7044 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
7045 if test "xiksemel.h" != "x" ; then
7046 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
7047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7048 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
7049 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
7050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_res=`eval echo '${'$as_ac_Header'}'`
7054 { echo "$as_me:$LINENO: result: $ac_res" >&5
7055 echo "${ECHO_T}$ac_res" >&6; }
7057 # Is the header compilable?
7058 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
7059 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $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 $ac_includes_default
7067 #include <${IKSEMEL_DIR}/include/iksemel.h>
7069 rm -f conftest.$ac_objext
7070 if { (ac_try="$ac_compile"
7072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7073 *) ac_try_echo
=$ac_try;;
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_compile") 2>conftest.er1
7078 grep -v '^ *+' conftest.er1
>conftest.err
7080 cat conftest.err
>&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7084 { (case "(($ac_try" in
7085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_try") 2>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (case "(($ac_try" in
7095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7096 *) ac_try_echo
=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_try") 2>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_header_compiler
=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.
$ac_ext >&5
7108 ac_header_compiler
=no
7111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7113 echo "${ECHO_T}$ac_header_compiler" >&6; }
7115 # Is the header present?
7116 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
7117 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
7118 cat >conftest.
$ac_ext <<_ACEOF
7121 cat confdefs.h
>>conftest.
$ac_ext
7122 cat >>conftest.
$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <${IKSEMEL_DIR}/include/iksemel.h>
7126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } >/dev/null; then
7139 if test -s conftest.err; then
7140 ac_cpp_err=$ac_c_preproc_warn_flag
7141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7148 if test -z "$ac_cpp_err"; then
7149 ac_header_preproc=yes
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_header_preproc=no
7157 rm -f conftest.err conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7159 echo "${ECHO_T}$ac_header_preproc" >&6; }
7161 # So? What about this header?
7162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7164 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
7165 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7166 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
7167 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
7168 ac_header_preproc=yes
7171 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
7172 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
7173 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
7174 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
7176 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
7178 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
7180 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
7182 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
7186 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
7187 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 eval "$as_ac_Header=\$ac_header_preproc"
7193 ac_res=`eval echo '${'$as_ac_Header'}'`
7194 { echo "$as_me:$LINENO: result: $ac_res" >&5
7195 echo "${ECHO_T}$ac_res" >&6; }
7198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7199 IKSEMEL_HEADER_FOUND=1
7201 IKSEMEL_HEADER_FOUND=0
7207 if test "xiksemel.h" != "x" ; then
7208 if test "${ac_cv_header_iksemel_h+set}" = set; then
7209 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
7210 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
7211 if test "${ac_cv_header_iksemel_h+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
7215 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
7217 # Is the header compilable?
7218 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
7219 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7227 #include <iksemel.h>
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7233 *) ac_try_echo
=$ac_try;;
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7238 grep -v '^ *+' conftest.er1
>conftest.err
7240 cat conftest.err
>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7244 { (case "(($ac_try" in
7245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_try") 2>&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (case "(($ac_try" in
7255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7256 *) ac_try_echo
=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_try") 2>&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_header_compiler
=yes
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.
$ac_ext >&5
7268 ac_header_compiler
=no
7271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7273 echo "${ECHO_T}$ac_header_compiler" >&6; }
7275 # Is the header present?
7276 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
7277 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
7278 cat >conftest.
$ac_ext <<_ACEOF
7281 cat confdefs.h
>>conftest.
$ac_ext
7282 cat >>conftest.
$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <iksemel.h>
7286 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } >/dev/null; then
7299 if test -s conftest.err; then
7300 ac_cpp_err=$ac_c_preproc_warn_flag
7301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7308 if test -z "$ac_cpp_err"; then
7309 ac_header_preproc=yes
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 ac_header_preproc=no
7317 rm -f conftest.err conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319 echo "${ECHO_T}$ac_header_preproc" >&6; }
7321 # So? What about this header?
7322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7324 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
7325 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
7327 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
7328 ac_header_preproc=yes
7331 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
7332 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
7334 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
7336 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
7337 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
7338 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
7340 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
7342 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
7346 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
7347 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
7348 if test "${ac_cv_header_iksemel_h+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_header_iksemel_h=$ac_header_preproc
7353 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
7354 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
7357 if test $ac_cv_header_iksemel_h = yes; then
7358 IKSEMEL_HEADER_FOUND=1
7360 IKSEMEL_HEADER_FOUND=0
7366 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
7367 if test ! -z "${IKSEMEL_MANDATORY}" ;
7370 echo " *** It appears that you do not have the iksemel development package installed."
7371 echo " *** Please install it to include Iksemel Jabber Library support, or re-run configure"
7372 echo " *** without explicitly specifying --with-iksemel"
7381 cat >>confdefs.h <<_ACEOF
7382 #define HAVE_IKSEMEL 1
7386 elif test ! -z "${IKSEMEL_MANDATORY}";
7389 echo "*** The Iksemel Jabber Library installation on this system appears to be broken."
7390 echo "*** Either correct the installation, or run configure"
7391 echo "*** without explicity specifying --with-iksemel"
7401 # Check whether --with-nbs was given.
7402 if test "${with_nbs+set}" = set; then
7412 NBS_DIR="${withval}"
7422 if test "${USE_NBS}" != "no"; then
7424 if test "x${NBS_DIR}" != "x"; then
7425 pbxlibdir="-L${nbs_DIR}/lib"
7427 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
7428 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
7429 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_check_lib_save_LIBS=$LIBS
7433 LIBS="-lnbs ${pbxlibdir} $LIBS"
7434 cat >conftest.$ac_ext <<_ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7447 char nbs_connect ();
7451 return nbs_connect ();
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 if { (ac_try="$ac_link"
7459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7460 *) ac_try_echo
=$ac_try;;
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_link") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7471 { (case "(($ac_try" in
7472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_try") 2>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest$ac_exeext'
7481 { (case "(($ac_try" in
7482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7483 *) ac_try_echo
=$ac_try;;
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_try") 2>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_nbs_nbs_connect
=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7495 ac_cv_lib_nbs_nbs_connect
=no
7498 rm -f conftest.err conftest.
$ac_objext \
7499 conftest
$ac_exeext conftest.
$ac_ext
7500 LIBS
=$ac_check_lib_save_LIBS
7502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
7503 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
7504 if test $ac_cv_lib_nbs_nbs_connect = yes; then
7511 if test "${AST_NBS_FOUND}" = "yes"; then
7513 NBS_HEADER_FOUND
="1"
7514 if test "x${NBS_DIR}" != "x"; then
7515 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
7516 NBS_INCLUDE
="-I${NBS_DIR}/include"
7517 if test "xnbs.h" != "x" ; then
7518 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
7519 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7520 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
7521 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
7522 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_res
=`eval echo '${'$as_ac_Header'}'`
7526 { echo "$as_me:$LINENO: result: $ac_res" >&5
7527 echo "${ECHO_T}$ac_res" >&6; }
7529 # Is the header compilable?
7530 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
7531 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
7532 cat >conftest.
$ac_ext <<_ACEOF
7535 cat confdefs.h
>>conftest.
$ac_ext
7536 cat >>conftest.
$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 $ac_includes_default
7539 #include <${NBS_DIR}/include/nbs.h>
7541 rm -f conftest.
$ac_objext
7542 if { (ac_try
="$ac_compile"
7544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7550 grep -v '^ *+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7556 { (case "(($ac_try" in
7557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7558 *) ac_try_echo
=$ac_try;;
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_try") 2>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try
='test -s conftest.$ac_objext'
7566 { (case "(($ac_try" in
7567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_try") 2>&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_header_compiler=yes
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_header_compiler=no
7583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7585 echo "${ECHO_T}$ac_header_compiler" >&6; }
7587 # Is the header present?
7588 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
7589 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
7590 cat >conftest.$ac_ext <<_ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596 #include <${NBS_DIR}/include/nbs.h>
7598 if { (ac_try="$ac_cpp conftest.$ac_ext"
7600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7601 *) ac_try_echo
=$ac_try;;
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7606 grep -v '^ *+' conftest.er1
>conftest.err
7608 cat conftest.err
>&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } >/dev
/null
; then
7611 if test -s conftest.err
; then
7612 ac_cpp_err
=$ac_c_preproc_warn_flag
7613 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7620 if test -z "$ac_cpp_err"; then
7621 ac_header_preproc
=yes
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.
$ac_ext >&5
7626 ac_header_preproc
=no
7629 rm -f conftest.err conftest.
$ac_ext
7630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7631 echo "${ECHO_T}$ac_header_preproc" >&6; }
7633 # So? What about this header?
7634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7636 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7637 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
7639 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
7640 ac_header_preproc
=yes
7643 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
7644 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
7646 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
7648 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
7650 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
7652 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
7654 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
7658 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
7659 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
7660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 eval "$as_ac_Header=\$ac_header_preproc"
7665 ac_res
=`eval echo '${'$as_ac_Header'}'`
7666 { echo "$as_me:$LINENO: result: $ac_res" >&5
7667 echo "${ECHO_T}$ac_res" >&6; }
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 if test "xnbs.h" != "x" ; then
7680 if test "${ac_cv_header_nbs_h+set}" = set; then
7681 { echo "$as_me:$LINENO: checking for nbs.h" >&5
7682 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
7683 if test "${ac_cv_header_nbs_h+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
7687 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
7689 # Is the header compilable?
7690 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
7691 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
7692 cat >conftest.
$ac_ext <<_ACEOF
7695 cat confdefs.h
>>conftest.
$ac_ext
7696 cat >>conftest.
$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7701 rm -f conftest.
$ac_objext
7702 if { (ac_try
="$ac_compile"
7704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1 >conftest.err
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7716 { (case "(($ac_try" in
7717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7718 *) ac_try_echo
=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_try") 2>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try
='test -s conftest.$ac_objext'
7726 { (case "(($ac_try" in
7727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_try") 2>&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_header_compiler=yes
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_header_compiler=no
7743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7745 echo "${ECHO_T}$ac_header_compiler" >&6; }
7747 # Is the header present?
7748 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
7749 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7758 if { (ac_try="$ac_cpp conftest.$ac_ext"
7760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7761 *) ac_try_echo
=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1
>conftest.err
7768 cat conftest.err
>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev
/null
; then
7771 if test -s conftest.err
; then
7772 ac_cpp_err
=$ac_c_preproc_warn_flag
7773 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7780 if test -z "$ac_cpp_err"; then
7781 ac_header_preproc
=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.
$ac_ext >&5
7786 ac_header_preproc
=no
7789 rm -f conftest.err conftest.
$ac_ext
7790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7791 echo "${ECHO_T}$ac_header_preproc" >&6; }
7793 # So? What about this header?
7794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7796 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7797 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7798 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
7799 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
7800 ac_header_preproc
=yes
7803 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
7804 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
7806 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
7808 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
7810 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
7812 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
7814 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
7818 { echo "$as_me:$LINENO: checking for nbs.h" >&5
7819 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
7820 if test "${ac_cv_header_nbs_h+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 ac_cv_header_nbs_h
=$ac_header_preproc
7825 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
7826 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
7829 if test $ac_cv_header_nbs_h = yes; then
7838 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
7839 if test ! -z "${NBS_MANDATORY}" ;
7842 echo " *** It appears that you do not have the nbs development package installed."
7843 echo " *** Please install it to include Network Broadcast Sound support, or re-run configure"
7844 echo " *** without explicitly specifying --with-nbs"
7853 cat >>confdefs.h
<<_ACEOF
7858 elif test ! -z "${NBS_MANDATORY}";
7861 echo "*** The Network Broadcast Sound installation on this system appears to be broken."
7862 echo "*** Either correct the installation, or run configure"
7863 echo "*** without explicity specifying --with-nbs"
7873 # Check whether --with-ncurses was given.
7874 if test "${with_ncurses+set}" = set; then
7875 withval
=$with_ncurses;
7881 NCURSES_MANDATORY
="yes"
7884 NCURSES_DIR
="${withval}"
7885 NCURSES_MANDATORY
="yes"
7894 if test "${USE_NCURSES}" != "no"; then
7896 if test "x${NCURSES_DIR}" != "x"; then
7897 pbxlibdir
="-L${ncurses_DIR}/lib"
7899 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
7900 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
7901 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_check_lib_save_LIBS
=$LIBS
7905 LIBS
="-lncurses ${pbxlibdir} $LIBS"
7906 cat >conftest.
$ac_ext <<_ACEOF
7909 cat confdefs.h
>>conftest.
$ac_ext
7910 cat >>conftest.
$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7913 /* Override any GCC internal prototype to avoid an error.
7914 Use char because int might match the return type of a GCC
7915 builtin and then its argument prototype would still apply. */
7928 rm -f conftest.
$ac_objext conftest
$ac_exeext
7929 if { (ac_try
="$ac_link"
7931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7945 *) ac_try_echo
=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try
='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_lib_ncurses_initscr=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_lib_ncurses_initscr=no
7970 rm -f conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 LIBS=$ac_check_lib_save_LIBS
7974 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
7975 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
7976 if test $ac_cv_lib_ncurses_initscr = yes; then
7977 AST_NCURSES_FOUND=yes
7979 AST_NCURSES_FOUND=no
7983 if test "${AST_NCURSES_FOUND}" = "yes"; then
7984 NCURSES_LIB="-lncurses "
7985 NCURSES_HEADER_FOUND="1"
7986 if test "x${NCURSES_DIR}" != "x"; then
7987 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
7988 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
7989 if test "xcurses.h" != "x" ; then
7990 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
7993 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
7994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 ac_res=`eval echo '${'$as_ac_Header'}'`
7998 { echo "$as_me:$LINENO: result: $ac_res" >&5
7999 echo "${ECHO_T}$ac_res" >&6; }
8001 # Is the header compilable?
8002 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
8003 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 #include <${NCURSES_DIR}/include/curses.h>
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8017 *) ac_try_echo
=$ac_try;;
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
8022 grep -v '^ *+' conftest.er1
>conftest.err
8024 cat conftest.err
>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8028 { (case "(($ac_try" in
8029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest.$ac_objext'
8038 { (case "(($ac_try" in
8039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8040 *) ac_try_echo
=$ac_try;;
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_try") 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_header_compiler
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8052 ac_header_compiler
=no
8055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8057 echo "${ECHO_T}$ac_header_compiler" >&6; }
8059 # Is the header present?
8060 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
8061 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
8062 cat >conftest.
$ac_ext <<_ACEOF
8065 cat confdefs.h
>>conftest.
$ac_ext
8066 cat >>conftest.
$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <${NCURSES_DIR}/include/curses.h>
8070 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } >/dev/null; then
8083 if test -s conftest.err; then
8084 ac_cpp_err=$ac_c_preproc_warn_flag
8085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8092 if test -z "$ac_cpp_err"; then
8093 ac_header_preproc=yes
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_header_preproc=no
8101 rm -f conftest.err conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8103 echo "${ECHO_T}$ac_header_preproc" >&6; }
8105 # So? What about this header?
8106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8108 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
8109 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
8111 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
8112 ac_header_preproc=yes
8115 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
8120 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
8122 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
8124 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
8126 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
8130 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
8131 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
8132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 eval "$as_ac_Header=\$ac_header_preproc"
8137 ac_res=`eval echo '${'$as_ac_Header'}'`
8138 { echo "$as_me:$LINENO: result: $ac_res" >&5
8139 echo "${ECHO_T}$ac_res" >&6; }
8142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8143 NCURSES_HEADER_FOUND=1
8145 NCURSES_HEADER_FOUND=0
8151 if test "xcurses.h" != "x" ; then
8152 if test "${ac_cv_header_curses_h+set}" = set; then
8153 { echo "$as_me:$LINENO: checking for curses.h" >&5
8154 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
8155 if test "${ac_cv_header_curses_h+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
8159 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
8161 # Is the header compilable?
8162 { echo "$as_me:$LINENO: checking curses.h usability" >&5
8163 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 $ac_includes_default
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8177 *) ac_try_echo
=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8182 grep -v '^ *+' conftest.er1
>conftest.err
8184 cat conftest.err
>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8188 { (case "(($ac_try" in
8189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8200 *) ac_try_echo
=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_header_compiler
=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.
$ac_ext >&5
8212 ac_header_compiler
=no
8215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217 echo "${ECHO_T}$ac_header_compiler" >&6; }
8219 # Is the header present?
8220 { echo "$as_me:$LINENO: checking curses.h presence" >&5
8221 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
8222 cat >conftest.
$ac_ext <<_ACEOF
8225 cat confdefs.h
>>conftest.
$ac_ext
8226 cat >>conftest.
$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8230 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } >/dev/null; then
8243 if test -s conftest.err; then
8244 ac_cpp_err=$ac_c_preproc_warn_flag
8245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8252 if test -z "$ac_cpp_err"; then
8253 ac_header_preproc=yes
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_header_preproc=no
8261 rm -f conftest.err conftest.$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8263 echo "${ECHO_T}$ac_header_preproc" >&6; }
8265 # So? What about this header?
8266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8268 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
8269 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
8271 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
8272 ac_header_preproc=yes
8275 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
8276 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
8278 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
8280 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
8282 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
8284 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
8286 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
8290 { echo "$as_me:$LINENO: checking for curses.h" >&5
8291 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
8292 if test "${ac_cv_header_curses_h+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 ac_cv_header_curses_h=$ac_header_preproc
8297 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
8298 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
8301 if test $ac_cv_header_curses_h = yes; then
8302 NCURSES_HEADER_FOUND=1
8304 NCURSES_HEADER_FOUND=0
8310 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
8311 if test ! -z "${NCURSES_MANDATORY}" ;
8314 echo " *** It appears that you do not have the ncurses development package installed."
8315 echo " *** Please install it to include ncurses support, or re-run configure"
8316 echo " *** without explicitly specifying --with-ncurses"
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_NCURSES 1
8330 elif test ! -z "${NCURSES_MANDATORY}";
8333 echo "*** The ncurses installation on this system appears to be broken."
8334 echo "*** Either correct the installation, or run configure"
8335 echo "*** without explicity specifying --with-ncurses"
8345 # Check whether --with-newt was given.
8346 if test "${with_newt+set}" = set; then
8353 NEWT_MANDATORY="yes"
8356 NEWT_DIR="${withval}"
8357 NEWT_MANDATORY="yes"
8366 if test "${USE_NEWT}" != "no"; then
8368 if test "x${NEWT_DIR}" != "x"; then
8369 pbxlibdir="-L${newt_DIR}/lib"
8371 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
8372 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
8373 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 ac_check_lib_save_LIBS=$LIBS
8377 LIBS="-lnewt ${pbxlibdir} $LIBS"
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8385 /* Override any GCC internal prototype to avoid an error.
8386 Use char because int might match the return type of a GCC
8387 builtin and then its argument prototype would still apply. */
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (ac_try="$ac_link"
8403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8404 *) ac_try_echo
=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_link") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1
>conftest.err
8411 cat conftest.err
>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (case "(($ac_try" in
8416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8427 *) ac_try_echo
=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_lib_newt_newtBell
=yes
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.
$ac_ext >&5
8439 ac_cv_lib_newt_newtBell
=no
8442 rm -f conftest.err conftest.
$ac_objext \
8443 conftest
$ac_exeext conftest.
$ac_ext
8444 LIBS
=$ac_check_lib_save_LIBS
8446 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
8447 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
8448 if test $ac_cv_lib_newt_newtBell = yes; then
8455 if test "${AST_NEWT_FOUND}" = "yes"; then
8457 NEWT_HEADER_FOUND
="1"
8458 if test "x${NEWT_DIR}" != "x"; then
8459 NEWT_LIB
="${pbxlibdir} ${NEWT_LIB}"
8460 NEWT_INCLUDE
="-I${NEWT_DIR}/include"
8461 if test "xnewt.h" != "x" ; then
8462 as_ac_Header
=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
8463 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
8465 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
8466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 ac_res
=`eval echo '${'$as_ac_Header'}'`
8470 { echo "$as_me:$LINENO: result: $ac_res" >&5
8471 echo "${ECHO_T}$ac_res" >&6; }
8473 # Is the header compilable?
8474 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
8475 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
8476 cat >conftest.
$ac_ext <<_ACEOF
8479 cat confdefs.h
>>conftest.
$ac_ext
8480 cat >>conftest.
$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8483 #include <${NEWT_DIR}/include/newt.h>
8485 rm -f conftest.
$ac_objext
8486 if { (ac_try
="$ac_compile"
8488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1 >conftest.err
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8502 *) ac_try_echo
=$ac_try;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try
='test -s conftest.$ac_objext'
8510 { (case "(($ac_try" in
8511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_header_compiler=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_header_compiler=no
8527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8529 echo "${ECHO_T}$ac_header_compiler" >&6; }
8531 # Is the header present?
8532 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
8533 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <${NEWT_DIR}/include/newt.h>
8542 if { (ac_try="$ac_cpp conftest.$ac_ext"
8544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8545 *) ac_try_echo
=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1
>conftest.err
8552 cat conftest.err
>&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } >/dev
/null
; then
8555 if test -s conftest.err
; then
8556 ac_cpp_err
=$ac_c_preproc_warn_flag
8557 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8564 if test -z "$ac_cpp_err"; then
8565 ac_header_preproc
=yes
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.
$ac_ext >&5
8570 ac_header_preproc
=no
8573 rm -f conftest.err conftest.
$ac_ext
8574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6; }
8577 # So? What about this header?
8578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8580 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
8583 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
8584 ac_header_preproc
=yes
8587 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
8588 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
8590 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
8592 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
8594 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
8596 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
8598 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
8602 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
8603 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
8604 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 eval "$as_ac_Header=\$ac_header_preproc"
8609 ac_res
=`eval echo '${'$as_ac_Header'}'`
8610 { echo "$as_me:$LINENO: result: $ac_res" >&5
8611 echo "${ECHO_T}$ac_res" >&6; }
8614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623 if test "xnewt.h" != "x" ; then
8624 if test "${ac_cv_header_newt_h+set}" = set; then
8625 { echo "$as_me:$LINENO: checking for newt.h" >&5
8626 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
8627 if test "${ac_cv_header_newt_h+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
8631 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
8633 # Is the header compilable?
8634 { echo "$as_me:$LINENO: checking newt.h usability" >&5
8635 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8645 rm -f conftest.
$ac_objext
8646 if { (ac_try
="$ac_compile"
8648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8662 *) ac_try_echo
=$ac_try;;
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try
='test -s conftest.$ac_objext'
8670 { (case "(($ac_try" in
8671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_try") 2>&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 ac_header_compiler=yes
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 ac_header_compiler=no
8687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689 echo "${ECHO_T}$ac_header_compiler" >&6; }
8691 # Is the header present?
8692 { echo "$as_me:$LINENO: checking newt.h presence" >&5
8693 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8702 if { (ac_try="$ac_cpp conftest.$ac_ext"
8704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8705 *) ac_try_echo
=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8710 grep -v '^ *+' conftest.er1
>conftest.err
8712 cat conftest.err
>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } >/dev
/null
; then
8715 if test -s conftest.err
; then
8716 ac_cpp_err
=$ac_c_preproc_warn_flag
8717 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8724 if test -z "$ac_cpp_err"; then
8725 ac_header_preproc
=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.
$ac_ext >&5
8730 ac_header_preproc
=no
8733 rm -f conftest.err conftest.
$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6; }
8737 # So? What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8740 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc
=yes
8747 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
8762 { echo "$as_me:$LINENO: checking for newt.h" >&5
8763 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
8764 if test "${ac_cv_header_newt_h+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 ac_cv_header_newt_h
=$ac_header_preproc
8769 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
8770 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
8773 if test $ac_cv_header_newt_h = yes; then
8782 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
8783 if test ! -z "${NEWT_MANDATORY}" ;
8786 echo " *** It appears that you do not have the newt development package installed."
8787 echo " *** Please install it to include newt support, or re-run configure"
8788 echo " *** without explicitly specifying --with-newt"
8797 cat >>confdefs.h
<<_ACEOF
8802 elif test ! -z "${NEWT_MANDATORY}";
8805 echo "*** The newt installation on this system appears to be broken."
8806 echo "*** Either correct the installation, or run configure"
8807 echo "*** without explicity specifying --with-newt"
8817 # Check whether --with-odbc was given.
8818 if test "${with_odbc+set}" = set; then
8825 UNIXODBC_MANDATORY
="yes"
8828 UNIXODBC_DIR
="${withval}"
8829 UNIXODBC_MANDATORY
="yes"
8838 if test "${USE_UNIXODBC}" != "no"; then
8840 if test "x${UNIXODBC_DIR}" != "x"; then
8841 pbxlibdir
="-L${odbc_DIR}/lib"
8843 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
8844 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
8845 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 ac_check_lib_save_LIBS
=$LIBS
8849 LIBS
="-lodbc ${pbxlibdir} $LIBS"
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8867 return SQLConnect ();
8872 rm -f conftest.
$ac_objext conftest
$ac_exeext
8873 if { (ac_try
="$ac_link"
8875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_link") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8887 { (case "(($ac_try" in
8888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8889 *) ac_try_echo
=$ac_try;;
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_try") 2>&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try
='test -s conftest$ac_exeext'
8897 { (case "(($ac_try" in
8898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_try") 2>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_odbc_SQLConnect=yes
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_lib_odbc_SQLConnect=no
8914 rm -f conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS
8918 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
8919 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
8920 if test $ac_cv_lib_odbc_SQLConnect = yes; then
8921 AST_UNIXODBC_FOUND=yes
8923 AST_UNIXODBC_FOUND=no
8927 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
8928 UNIXODBC_LIB="-lodbc "
8929 UNIXODBC_HEADER_FOUND="1"
8930 if test "x${UNIXODBC_DIR}" != "x"; then
8931 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
8932 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
8933 if test "xsql.h" != "x" ; then
8934 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" |
$as_tr_sh`
8935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8936 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
8937 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
8938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_res=`eval echo '${'$as_ac_Header'}'`
8942 { echo "$as_me:$LINENO: result: $ac_res" >&5
8943 echo "${ECHO_T}$ac_res" >&6; }
8945 # Is the header compilable?
8946 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
8947 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8955 #include <${UNIXODBC_DIR}/include/sql.h>
8957 rm -f conftest.$ac_objext
8958 if { (ac_try="$ac_compile"
8960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8961 *) ac_try_echo
=$ac_try;;
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8966 grep -v '^ *+' conftest.er1
>conftest.err
8968 cat conftest.err
>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8972 { (case "(($ac_try" in
8973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_try") 2>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (case "(($ac_try" in
8983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8984 *) ac_try_echo
=$ac_try;;
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_try") 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_header_compiler
=yes
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.
$ac_ext >&5
8996 ac_header_compiler
=no
8999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9001 echo "${ECHO_T}$ac_header_compiler" >&6; }
9003 # Is the header present?
9004 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
9005 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
9006 cat >conftest.
$ac_ext <<_ACEOF
9009 cat confdefs.h
>>conftest.
$ac_ext
9010 cat >>conftest.
$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 #include <${UNIXODBC_DIR}/include/sql.h>
9014 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } >/dev/null; then
9027 if test -s conftest.err; then
9028 ac_cpp_err=$ac_c_preproc_warn_flag
9029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9036 if test -z "$ac_cpp_err"; then
9037 ac_header_preproc=yes
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_header_preproc=no
9045 rm -f conftest.err conftest.$ac_ext
9046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9047 echo "${ECHO_T}$ac_header_preproc" >&6; }
9049 # So? What about this header?
9050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9052 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
9053 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
9055 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
9056 ac_header_preproc=yes
9059 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
9060 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
9062 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
9064 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
9066 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
9068 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
9070 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
9074 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
9075 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
9076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 eval "$as_ac_Header=\$ac_header_preproc"
9081 ac_res=`eval echo '${'$as_ac_Header'}'`
9082 { echo "$as_me:$LINENO: result: $ac_res" >&5
9083 echo "${ECHO_T}$ac_res" >&6; }
9086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9087 UNIXODBC_HEADER_FOUND=1
9089 UNIXODBC_HEADER_FOUND=0
9095 if test "xsql.h" != "x" ; then
9096 if test "${ac_cv_header_sql_h+set}" = set; then
9097 { echo "$as_me:$LINENO: checking for sql.h" >&5
9098 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
9099 if test "${ac_cv_header_sql_h+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
9103 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
9105 # Is the header compilable?
9106 { echo "$as_me:$LINENO: checking sql.h usability" >&5
9107 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 $ac_includes_default
9117 rm -f conftest.$ac_objext
9118 if { (ac_try="$ac_compile"
9120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9121 *) ac_try_echo
=$ac_try;;
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_compile") 2>conftest.er1
9126 grep -v '^ *+' conftest.er1
>conftest.err
9128 cat conftest.err
>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132 { (case "(($ac_try" in
9133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest.$ac_objext'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9144 *) ac_try_echo
=$ac_try;;
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_header_compiler
=yes
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.
$ac_ext >&5
9156 ac_header_compiler
=no
9159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9161 echo "${ECHO_T}$ac_header_compiler" >&6; }
9163 # Is the header present?
9164 { echo "$as_me:$LINENO: checking sql.h presence" >&5
9165 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
9166 cat >conftest.
$ac_ext <<_ACEOF
9169 cat confdefs.h
>>conftest.
$ac_ext
9170 cat >>conftest.
$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9174 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } >/dev/null; then
9187 if test -s conftest.err; then
9188 ac_cpp_err=$ac_c_preproc_warn_flag
9189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9196 if test -z "$ac_cpp_err"; then
9197 ac_header_preproc=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_header_preproc=no
9205 rm -f conftest.err conftest.$ac_ext
9206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9207 echo "${ECHO_T}$ac_header_preproc" >&6; }
9209 # So? What about this header?
9210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9212 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
9213 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
9215 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
9216 ac_header_preproc=yes
9219 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
9220 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
9222 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
9224 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
9226 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
9228 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
9230 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
9234 { echo "$as_me:$LINENO: checking for sql.h" >&5
9235 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
9236 if test "${ac_cv_header_sql_h+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 ac_cv_header_sql_h=$ac_header_preproc
9241 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
9242 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
9245 if test $ac_cv_header_sql_h = yes; then
9246 UNIXODBC_HEADER_FOUND=1
9248 UNIXODBC_HEADER_FOUND=0
9254 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
9255 if test ! -z "${UNIXODBC_MANDATORY}" ;
9258 echo " *** It appears that you do not have the odbc development package installed."
9259 echo " *** Please install it to include unixODBC support, or re-run configure"
9260 echo " *** without explicitly specifying --with-odbc"
9269 cat >>confdefs.h <<_ACEOF
9270 #define HAVE_UNIXODBC 1
9274 elif test ! -z "${UNIXODBC_MANDATORY}";
9277 echo "*** The unixODBC installation on this system appears to be broken."
9278 echo "*** Either correct the installation, or run configure"
9279 echo "*** without explicity specifying --with-odbc"
9289 # Check whether --with-ogg was given.
9290 if test "${with_ogg+set}" = set; then
9300 OGG_DIR="${withval}"
9310 if test "${USE_OGG}" != "no"; then
9312 if test "x${OGG_DIR}" != "x"; then
9313 pbxlibdir="-L${ogg_DIR}/lib"
9315 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
9316 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
9317 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-logg ${pbxlibdir} $LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9335 char ogg_sync_init ();
9339 return ogg_sync_init ();
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9348 *) ac_try_echo
=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_link") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9359 { (case "(($ac_try" in
9360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (case "(($ac_try" in
9370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9371 *) ac_try_echo
=$ac_try;;
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_try") 2>&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_lib_ogg_ogg_sync_init
=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.
$ac_ext >&5
9383 ac_cv_lib_ogg_ogg_sync_init
=no
9386 rm -f conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9388 LIBS
=$ac_check_lib_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
9391 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
9392 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
9399 if test "${AST_OGG_FOUND}" = "yes"; then
9401 OGG_HEADER_FOUND
="1"
9402 if test "x${OGG_DIR}" != "x"; then
9403 OGG_LIB
="${pbxlibdir} ${OGG_LIB}"
9404 OGG_INCLUDE
="-I${OGG_DIR}/include"
9405 if test "x" != "x" ; then
9406 as_ac_Header
=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
9407 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9408 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
9409 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
9410 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 ac_res
=`eval echo '${'$as_ac_Header'}'`
9414 { echo "$as_me:$LINENO: result: $ac_res" >&5
9415 echo "${ECHO_T}$ac_res" >&6; }
9417 # Is the header compilable?
9418 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
9419 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
9420 cat >conftest.
$ac_ext <<_ACEOF
9423 cat confdefs.h
>>conftest.
$ac_ext
9424 cat >>conftest.
$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 $ac_includes_default
9427 #include <${OGG_DIR}/include/>
9429 rm -f conftest.
$ac_objext
9430 if { (ac_try
="$ac_compile"
9432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_compile") 2>conftest.er1
9438 grep -v '^ *+' conftest.er1 >conftest.err
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9444 { (case "(($ac_try" in
9445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9446 *) ac_try_echo
=$ac_try;;
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_try") 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try
='test -s conftest.$ac_objext'
9454 { (case "(($ac_try" in
9455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_header_compiler=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_header_compiler=no
9471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9473 echo "${ECHO_T}$ac_header_compiler" >&6; }
9475 # Is the header present?
9476 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
9477 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 #include <${OGG_DIR}/include/>
9486 if { (ac_try="$ac_cpp conftest.$ac_ext"
9488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9489 *) ac_try_echo
=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1
>conftest.err
9496 cat conftest.err
>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } >/dev
/null
; then
9499 if test -s conftest.err
; then
9500 ac_cpp_err
=$ac_c_preproc_warn_flag
9501 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9508 if test -z "$ac_cpp_err"; then
9509 ac_header_preproc
=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.
$ac_ext >&5
9514 ac_header_preproc
=no
9517 rm -f conftest.err conftest.
$ac_ext
9518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9519 echo "${ECHO_T}$ac_header_preproc" >&6; }
9521 # So? What about this header?
9522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
9525 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
9527 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
9528 ac_header_preproc
=yes
9531 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
9532 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
9534 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
9536 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
9538 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
9540 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
9542 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
9546 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
9547 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
9548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 eval "$as_ac_Header=\$ac_header_preproc"
9553 ac_res
=`eval echo '${'$as_ac_Header'}'`
9554 { echo "$as_me:$LINENO: result: $ac_res" >&5
9555 echo "${ECHO_T}$ac_res" >&6; }
9558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9567 if test "x" != "x" ; then
9568 if test "${ac_cv_header_+set}" = set; then
9569 { echo "$as_me:$LINENO: checking for " >&5
9570 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
9571 if test "${ac_cv_header_+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
9575 echo "${ECHO_T}$ac_cv_header_" >&6; }
9577 # Is the header compilable?
9578 { echo "$as_me:$LINENO: checking usability" >&5
9579 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
9580 cat >conftest.
$ac_ext <<_ACEOF
9583 cat confdefs.h
>>conftest.
$ac_ext
9584 cat >>conftest.
$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9589 rm -f conftest.
$ac_objext
9590 if { (ac_try
="$ac_compile"
9592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9598 grep -v '^ *+' conftest.er1 >conftest.err
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9604 { (case "(($ac_try" in
9605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9606 *) ac_try_echo
=$ac_try;;
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_try") 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try
='test -s conftest.$ac_objext'
9614 { (case "(($ac_try" in
9615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_try") 2>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_header_compiler=yes
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_header_compiler=no
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9633 echo "${ECHO_T}$ac_header_compiler" >&6; }
9635 # Is the header present?
9636 { echo "$as_me:$LINENO: checking presence" >&5
9637 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
9638 cat >conftest.$ac_ext <<_ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9646 if { (ac_try="$ac_cpp conftest.$ac_ext"
9648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9649 *) ac_try_echo
=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9654 grep -v '^ *+' conftest.er1
>conftest.err
9656 cat conftest.err
>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } >/dev
/null
; then
9659 if test -s conftest.err
; then
9660 ac_cpp_err
=$ac_c_preproc_warn_flag
9661 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9668 if test -z "$ac_cpp_err"; then
9669 ac_header_preproc
=yes
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.
$ac_ext >&5
9674 ac_header_preproc
=no
9677 rm -f conftest.err conftest.
$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9679 echo "${ECHO_T}$ac_header_preproc" >&6; }
9681 # So? What about this header?
9682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9684 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
9685 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
9687 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
9688 ac_header_preproc
=yes
9691 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
9692 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
9694 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
9696 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
9698 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
9700 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
9702 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
9706 { echo "$as_me:$LINENO: checking for " >&5
9707 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
9708 if test "${ac_cv_header_+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 ac_cv_header_
=$ac_header_preproc
9713 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
9714 echo "${ECHO_T}$ac_cv_header_" >&6; }
9717 if test $ac_cv_header_ = yes; then
9726 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
9727 if test ! -z "${OGG_MANDATORY}" ;
9730 echo " *** It appears that you do not have the ogg development package installed."
9731 echo " *** Please install it to include OGG support, or re-run configure"
9732 echo " *** without explicitly specifying --with-ogg"
9741 cat >>confdefs.h
<<_ACEOF
9746 elif test ! -z "${OGG_MANDATORY}";
9749 echo "*** The OGG installation on this system appears to be broken."
9750 echo "*** Either correct the installation, or run configure"
9751 echo "*** without explicity specifying --with-ogg"
9761 # Check whether --with-osptk was given.
9762 if test "${with_osptk+set}" = set; then
9763 withval
=$with_osptk;
9769 OSPTK_MANDATORY
="yes"
9772 OSPTK_DIR
="${withval}"
9773 OSPTK_MANDATORY
="yes"
9782 if test "${USE_OSPTK}" != "no"; then
9784 if test "x${OSPTK_DIR}" != "x"; then
9785 pbxlibdir
="-L${osptk_DIR}/lib"
9787 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
9788 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
9789 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 ac_check_lib_save_LIBS
=$LIBS
9793 LIBS
="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
9794 cat >conftest.
$ac_ext <<_ACEOF
9797 cat confdefs.h
>>conftest.
$ac_ext
9798 cat >>conftest.
$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9807 char OSPPCryptoDecrypt ();
9811 return OSPPCryptoDecrypt ();
9816 rm -f conftest.
$ac_objext conftest
$ac_exeext
9817 if { (ac_try
="$ac_link"
9819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9833 *) ac_try_echo
=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try
='test -s conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
9858 rm -f conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9862 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
9863 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
9864 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
9871 if test "${AST_OSPTK_FOUND}" = "yes"; then
9872 OSPTK_LIB="-losptk -lcrypto -lssl"
9873 OSPTK_HEADER_FOUND="1"
9874 if test "x${OSPTK_DIR}" != "x"; then
9875 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
9876 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
9877 if test "xosp/osp.h" != "x" ; then
9878 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" |
$as_tr_sh`
9879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9880 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
9881 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
9882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_res=`eval echo '${'$as_ac_Header'}'`
9886 { echo "$as_me:$LINENO: result: $ac_res" >&5
9887 echo "${ECHO_T}$ac_res" >&6; }
9889 # Is the header compilable?
9890 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
9891 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 #include <${OSPTK_DIR}/include/osp/osp.h>
9901 rm -f conftest.$ac_objext
9902 if { (ac_try="$ac_compile"
9904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9905 *) ac_try_echo
=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9910 grep -v '^ *+' conftest.er1
>conftest.err
9912 cat conftest.err
>&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9916 { (case "(($ac_try" in
9917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest.$ac_objext'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9928 *) ac_try_echo
=$ac_try;;
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_header_compiler
=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.
$ac_ext >&5
9940 ac_header_compiler
=no
9943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9945 echo "${ECHO_T}$ac_header_compiler" >&6; }
9947 # Is the header present?
9948 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
9949 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
9950 cat >conftest.
$ac_ext <<_ACEOF
9953 cat confdefs.h
>>conftest.
$ac_ext
9954 cat >>conftest.
$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 #include <${OSPTK_DIR}/include/osp/osp.h>
9958 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } >/dev/null; then
9971 if test -s conftest.err; then
9972 ac_cpp_err=$ac_c_preproc_warn_flag
9973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9980 if test -z "$ac_cpp_err"; then
9981 ac_header_preproc=yes
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_header_preproc=no
9989 rm -f conftest.err conftest.$ac_ext
9990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9991 echo "${ECHO_T}$ac_header_preproc" >&6; }
9993 # So? What about this header?
9994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9996 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9997 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
9999 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
10000 ac_header_preproc=yes
10003 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
10004 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
10006 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
10008 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
10010 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10011 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
10012 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
10013 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
10014 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
10018 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
10019 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
10020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 eval "$as_ac_Header=\$ac_header_preproc"
10025 ac_res=`eval echo '${'$as_ac_Header'}'`
10026 { echo "$as_me:$LINENO: result: $ac_res" >&5
10027 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10031 OSPTK_HEADER_FOUND=1
10033 OSPTK_HEADER_FOUND=0
10039 if test "xosp/osp.h" != "x" ; then
10040 if test "${ac_cv_header_osp_osp_h+set}" = set; then
10041 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
10042 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
10043 if test "${ac_cv_header_osp_osp_h+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
10047 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
10049 # Is the header compilable?
10050 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
10051 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 $ac_includes_default
10059 #include <osp/osp.h>
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10065 *) ac_try_echo
=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1
>conftest.err
10072 cat conftest.err
>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076 { (case "(($ac_try" in
10077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest.$ac_objext'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10088 *) ac_try_echo
=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_header_compiler
=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10100 ac_header_compiler
=no
10103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10105 echo "${ECHO_T}$ac_header_compiler" >&6; }
10107 # Is the header present?
10108 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
10109 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
10110 cat >conftest.
$ac_ext <<_ACEOF
10113 cat confdefs.h
>>conftest.
$ac_ext
10114 cat >>conftest.
$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <osp/osp.h>
10118 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10119 case "(($ac_try" in
10120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10126 grep -v '^ *+' conftest.er1 >conftest.err
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } >/dev/null; then
10131 if test -s conftest.err; then
10132 ac_cpp_err=$ac_c_preproc_warn_flag
10133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10140 if test -z "$ac_cpp_err"; then
10141 ac_header_preproc=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_header_preproc=no
10149 rm -f conftest.err conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6; }
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10156 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
10159 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
10160 ac_header_preproc=yes
10163 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
10168 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
10170 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
10174 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
10178 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
10179 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_osp_osp_h+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_cv_header_osp_osp_h=$ac_header_preproc
10185 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
10186 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
10189 if test $ac_cv_header_osp_osp_h = yes; then
10190 OSPTK_HEADER_FOUND=1
10192 OSPTK_HEADER_FOUND=0
10198 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
10199 if test ! -z "${OSPTK_MANDATORY}" ;
10202 echo " *** It appears that you do not have the osptk development package installed."
10203 echo " *** Please install it to include OSP Toolkit support, or re-run configure"
10204 echo " *** without explicitly specifying --with-osptk"
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_OSPTK 1
10218 elif test ! -z "${OSPTK_MANDATORY}";
10221 echo "*** The OSP Toolkit installation on this system appears to be broken."
10222 echo "*** Either correct the installation, or run configure"
10223 echo "*** without explicity specifying --with-osptk"
10233 # Check whether --with-popt was given.
10234 if test "${with_popt+set}" = set; then
10235 withval=$with_popt;
10241 POPT_MANDATORY="yes"
10244 POPT_DIR="${withval}"
10245 POPT_MANDATORY="yes"
10254 if test "${USE_POPT}" != "no"; then
10256 if test "x${POPT_DIR}" != "x"; then
10257 pbxlibdir="-L${popt_DIR}/lib"
10259 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
10260 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lpopt ${pbxlibdir} $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.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. */
10279 char poptStrerror ();
10283 return poptStrerror ();
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10292 *) ac_try_echo
=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1
>conftest.err
10299 cat conftest.err
>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10303 { (case "(($ac_try" in
10304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (case "(($ac_try" in
10314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10315 *) ac_try_echo
=$ac_try;;
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_try") 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_lib_popt_poptStrerror
=yes
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.
$ac_ext >&5
10327 ac_cv_lib_popt_poptStrerror
=no
10330 rm -f conftest.err conftest.
$ac_objext \
10331 conftest
$ac_exeext conftest.
$ac_ext
10332 LIBS
=$ac_check_lib_save_LIBS
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
10335 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
10336 if test $ac_cv_lib_popt_poptStrerror = yes; then
10343 if test "${AST_POPT_FOUND}" = "yes"; then
10345 POPT_HEADER_FOUND
="1"
10346 if test "x${POPT_DIR}" != "x"; then
10347 POPT_LIB
="${pbxlibdir} ${POPT_LIB}"
10348 POPT_INCLUDE
="-I${POPT_DIR}/include"
10349 if test "xpopt.h" != "x" ; then
10350 as_ac_Header
=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
10351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
10353 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
10354 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 ac_res
=`eval echo '${'$as_ac_Header'}'`
10358 { echo "$as_me:$LINENO: result: $ac_res" >&5
10359 echo "${ECHO_T}$ac_res" >&6; }
10361 # Is the header compilable?
10362 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
10363 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10371 #include <${POPT_DIR}/include/popt.h>
10373 rm -f conftest.
$ac_objext
10374 if { (ac_try
="$ac_compile"
10375 case "(($ac_try" in
10376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10390 *) ac_try_echo
=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try
='test -s conftest.$ac_objext'
10398 { (case "(($ac_try" in
10399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_header_compiler=yes
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_header_compiler=no
10415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10417 echo "${ECHO_T}$ac_header_compiler" >&6; }
10419 # Is the header present?
10420 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
10421 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
10422 cat >conftest.$ac_ext <<_ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 #include <${POPT_DIR}/include/popt.h>
10430 if { (ac_try="$ac_cpp conftest.$ac_ext"
10431 case "(($ac_try" in
10432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10433 *) ac_try_echo
=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1
>conftest.err
10440 cat conftest.err
>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } >/dev
/null
; then
10443 if test -s conftest.err
; then
10444 ac_cpp_err
=$ac_c_preproc_warn_flag
10445 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10452 if test -z "$ac_cpp_err"; then
10453 ac_header_preproc
=yes
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.
$ac_ext >&5
10458 ac_header_preproc
=no
10461 rm -f conftest.err conftest.
$ac_ext
10462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10463 echo "${ECHO_T}$ac_header_preproc" >&6; }
10465 # So? What about this header?
10466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10468 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10469 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
10471 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
10472 ac_header_preproc
=yes
10475 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
10476 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
10478 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
10480 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
10482 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
10484 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
10486 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
10490 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
10491 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
10492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 eval "$as_ac_Header=\$ac_header_preproc"
10497 ac_res
=`eval echo '${'$as_ac_Header'}'`
10498 { echo "$as_me:$LINENO: result: $ac_res" >&5
10499 echo "${ECHO_T}$ac_res" >&6; }
10502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10503 POPT_HEADER_FOUND
=1
10505 POPT_HEADER_FOUND
=0
10511 if test "xpopt.h" != "x" ; then
10512 if test "${ac_cv_header_popt_h+set}" = set; then
10513 { echo "$as_me:$LINENO: checking for popt.h" >&5
10514 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
10515 if test "${ac_cv_header_popt_h+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
10519 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
10521 # Is the header compilable?
10522 { echo "$as_me:$LINENO: checking popt.h usability" >&5
10523 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
10524 cat >conftest.
$ac_ext <<_ACEOF
10527 cat confdefs.h
>>conftest.
$ac_ext
10528 cat >>conftest.
$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 $ac_includes_default
10533 rm -f conftest.
$ac_objext
10534 if { (ac_try
="$ac_compile"
10535 case "(($ac_try" in
10536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10557 { ac_try
='test -s conftest.$ac_objext'
10558 { (case "(($ac_try" in
10559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_header_compiler=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_compiler=no
10575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577 echo "${ECHO_T}$ac_header_compiler" >&6; }
10579 # Is the header present?
10580 { echo "$as_me:$LINENO: checking popt.h presence" >&5
10581 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10590 if { (ac_try="$ac_cpp conftest.$ac_ext"
10591 case "(($ac_try" in
10592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10593 *) ac_try_echo
=$ac_try;;
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10598 grep -v '^ *+' conftest.er1
>conftest.err
10600 cat conftest.err
>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev
/null
; then
10603 if test -s conftest.err
; then
10604 ac_cpp_err
=$ac_c_preproc_warn_flag
10605 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10612 if test -z "$ac_cpp_err"; then
10613 ac_header_preproc
=yes
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.
$ac_ext >&5
10618 ac_header_preproc
=no
10621 rm -f conftest.err conftest.
$ac_ext
10622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 echo "${ECHO_T}$ac_header_preproc" >&6; }
10625 # So? What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10628 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10629 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
10631 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
10632 ac_header_preproc
=yes
10635 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
10636 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
10638 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
10640 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
10642 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
10644 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
10646 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
10650 { echo "$as_me:$LINENO: checking for popt.h" >&5
10651 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
10652 if test "${ac_cv_header_popt_h+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_cv_header_popt_h
=$ac_header_preproc
10657 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
10661 if test $ac_cv_header_popt_h = yes; then
10662 POPT_HEADER_FOUND
=1
10664 POPT_HEADER_FOUND
=0
10670 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
10671 if test ! -z "${POPT_MANDATORY}" ;
10674 echo " *** It appears that you do not have the popt development package installed."
10675 echo " *** Please install it to include popt support, or re-run configure"
10676 echo " *** without explicitly specifying --with-popt"
10685 cat >>confdefs.h
<<_ACEOF
10686 #define HAVE_POPT 1
10690 elif test ! -z "${POPT_MANDATORY}";
10693 echo "*** The popt installation on this system appears to be broken."
10694 echo "*** Either correct the installation, or run configure"
10695 echo "*** without explicity specifying --with-popt"
10705 # Check whether --with-pri was given.
10706 if test "${with_pri+set}" = set; then
10713 LIBPRI_MANDATORY
="yes"
10716 LIBPRI_DIR
="${withval}"
10717 LIBPRI_MANDATORY
="yes"
10726 if test "${USE_LIBPRI}" != "no"; then
10728 if test "x${LIBPRI_DIR}" != "x"; then
10729 pbxlibdir
="-L${pri_DIR}/lib"
10731 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
10732 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
10733 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 ac_check_lib_save_LIBS
=$LIBS
10737 LIBS
="-lpri ${pbxlibdir} $LIBS"
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10755 return pri_call ();
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (ac_try
="$ac_link"
10762 case "(($ac_try" in
10763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10777 *) ac_try_echo
=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try
='test -s conftest$ac_exeext'
10785 { (case "(($ac_try" in
10786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_lib_pri_pri_call=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_lib_pri_pri_call=no
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10806 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
10807 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
10808 if test $ac_cv_lib_pri_pri_call = yes; then
10809 AST_LIBPRI_FOUND=yes
10811 AST_LIBPRI_FOUND=no
10815 if test "${AST_LIBPRI_FOUND}" = "yes"; then
10816 LIBPRI_LIB="-lpri "
10817 LIBPRI_HEADER_FOUND="1"
10818 if test "x${LIBPRI_DIR}" != "x"; then
10819 LIBPRI_LIB="${pbxlibdir} ${LIBPRI_LIB}"
10820 LIBPRI_INCLUDE="-I${LIBPRI_DIR}/include"
10821 if test "xlibpri.h" != "x" ; then
10822 as_ac_Header=`echo "ac_cv_header_${LIBPRI_DIR}/include/libpri.h" |
$as_tr_sh`
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 { echo "$as_me:$LINENO: checking for ${LIBPRI_DIR}/include/libpri.h" >&5
10825 echo $ECHO_N "checking for ${LIBPRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
10826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 ac_res=`eval echo '${'$as_ac_Header'}'`
10830 { echo "$as_me:$LINENO: result: $ac_res" >&5
10831 echo "${ECHO_T}$ac_res" >&6; }
10833 # Is the header compilable?
10834 { echo "$as_me:$LINENO: checking ${LIBPRI_DIR}/include/libpri.h usability" >&5
10835 echo $ECHO_N "checking ${LIBPRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 $ac_includes_default
10843 #include <${LIBPRI_DIR}/include/libpri.h>
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10849 *) ac_try_echo
=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1
>conftest.err
10856 cat conftest.err
>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10872 *) ac_try_echo
=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_header_compiler
=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.
$ac_ext >&5
10884 ac_header_compiler
=no
10887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10889 echo "${ECHO_T}$ac_header_compiler" >&6; }
10891 # Is the header present?
10892 { echo "$as_me:$LINENO: checking ${LIBPRI_DIR}/include/libpri.h presence" >&5
10893 echo $ECHO_N "checking ${LIBPRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
10894 cat >conftest.
$ac_ext <<_ACEOF
10897 cat confdefs.h
>>conftest.
$ac_ext
10898 cat >>conftest.
$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #include <${LIBPRI_DIR}/include/libpri.h>
10902 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10903 case "(($ac_try" in
10904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10910 grep -v '^ *+' conftest.er1 >conftest.err
10912 cat conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } >/dev/null; then
10915 if test -s conftest.err; then
10916 ac_cpp_err=$ac_c_preproc_warn_flag
10917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10924 if test -z "$ac_cpp_err"; then
10925 ac_header_preproc=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_header_preproc=no
10933 rm -f conftest.err conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10935 echo "${ECHO_T}$ac_header_preproc" >&6; }
10937 # So? What about this header?
10938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10940 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
10941 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
10943 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
10944 ac_header_preproc=yes
10947 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
10948 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
10950 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
10952 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
10954 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
10956 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
10958 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
10962 { echo "$as_me:$LINENO: checking for ${LIBPRI_DIR}/include/libpri.h" >&5
10963 echo $ECHO_N "checking for ${LIBPRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
10964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 eval "$as_ac_Header=\$ac_header_preproc"
10969 ac_res=`eval echo '${'$as_ac_Header'}'`
10970 { echo "$as_me:$LINENO: result: $ac_res" >&5
10971 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10975 LIBPRI_HEADER_FOUND=1
10977 LIBPRI_HEADER_FOUND=0
10983 if test "xlibpri.h" != "x" ; then
10984 if test "${ac_cv_header_libpri_h+set}" = set; then
10985 { echo "$as_me:$LINENO: checking for libpri.h" >&5
10986 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
10987 if test "${ac_cv_header_libpri_h+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
10991 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
10993 # Is the header compilable?
10994 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
10995 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11003 #include <libpri.h>
11005 rm -f conftest.$ac_objext
11006 if { (ac_try="$ac_compile"
11007 case "(($ac_try" in
11008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11009 *) ac_try_echo
=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_compile") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1
>conftest.err
11016 cat conftest.err
>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11032 *) ac_try_echo
=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_header_compiler
=yes
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.
$ac_ext >&5
11044 ac_header_compiler
=no
11047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11049 echo "${ECHO_T}$ac_header_compiler" >&6; }
11051 # Is the header present?
11052 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
11053 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
11054 cat >conftest.
$ac_ext <<_ACEOF
11057 cat confdefs.h
>>conftest.
$ac_ext
11058 cat >>conftest.
$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 #include <libpri.h>
11062 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11063 case "(($ac_try" in
11064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } >/dev/null; then
11075 if test -s conftest.err; then
11076 ac_cpp_err=$ac_c_preproc_warn_flag
11077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11084 if test -z "$ac_cpp_err"; then
11085 ac_header_preproc=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_preproc=no
11093 rm -f conftest.err conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11107 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
11122 { echo "$as_me:$LINENO: checking for libpri.h" >&5
11123 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
11124 if test "${ac_cv_header_libpri_h+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 ac_cv_header_libpri_h=$ac_header_preproc
11129 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
11130 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
11133 if test $ac_cv_header_libpri_h = yes; then
11134 LIBPRI_HEADER_FOUND=1
11136 LIBPRI_HEADER_FOUND=0
11142 if test "x${LIBPRI_HEADER_FOUND}" = "x0" ; then
11143 if test ! -z "${LIBPRI_MANDATORY}" ;
11146 echo " *** It appears that you do not have the pri development package installed."
11147 echo " *** Please install it to include ISDN PRI support, or re-run configure"
11148 echo " *** without explicitly specifying --with-pri"
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_LIBPRI 1
11162 elif test ! -z "${LIBPRI_MANDATORY}";
11165 echo "*** The ISDN PRI installation on this system appears to be broken."
11166 echo "*** Either correct the installation, or run configure"
11167 echo "*** without explicity specifying --with-pri"
11177 # Check whether --with-radiusclient-ng was given.
11178 if test "${with_radiusclient_ng+set}" = set; then
11179 withval=$with_radiusclient_ng;
11182 USE_RADIUSCLIENT=no
11185 RADIUSCLIENT_MANDATORY="yes"
11188 RADIUSCLIENT_DIR="${withval}"
11189 RADIUSCLIENT_MANDATORY="yes"
11196 PBX_LIBRADIUSCLIENT=0
11198 if test "${USE_RADIUSCLIENT}" != "no"; then
11200 if test "x${RADIUSCLIENT_DIR}" != "x"; then
11201 pbxlibdir="-L${radiusclient-ng_DIR}/lib"
11203 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
11204 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
11205 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
11210 cat >conftest.$ac_ext <<_ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11223 char rc_read_config ();
11227 return rc_read_config ();
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (ac_try="$ac_link"
11234 case "(($ac_try" in
11235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11236 *) ac_try_echo
=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1
>conftest.err
11243 cat conftest.err
>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11247 { (case "(($ac_try" in
11248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11259 *) ac_try_echo
=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_lib_radiusclient_ng_rc_read_config
=yes
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 ac_cv_lib_radiusclient_ng_rc_read_config
=no
11274 rm -f conftest.err conftest.
$ac_objext \
11275 conftest
$ac_exeext conftest.
$ac_ext
11276 LIBS
=$ac_check_lib_save_LIBS
11278 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
11279 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
11280 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
11281 AST_RADIUSCLIENT_FOUND
=yes
11283 AST_RADIUSCLIENT_FOUND
=no
11287 if test "${AST_RADIUSCLIENT_FOUND}" = "yes"; then
11288 RADIUSCLIENT_LIB
="-lradiusclient-ng "
11289 RADIUSCLIENT_HEADER_FOUND
="1"
11290 if test "x${RADIUSCLIENT_DIR}" != "x"; then
11291 RADIUSCLIENT_LIB
="${pbxlibdir} ${RADIUSCLIENT_LIB}"
11292 RADIUSCLIENT_INCLUDE
="-I${RADIUSCLIENT_DIR}/include"
11293 if test "xradiusclient-ng.h" != "x" ; then
11294 as_ac_Header
=`echo "ac_cv_header_${RADIUSCLIENT_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
11295 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h" >&5
11297 echo $ECHO_N "checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
11298 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res
=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h usability" >&5
11307 echo $ECHO_N "checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
11308 cat >conftest.
$ac_ext <<_ACEOF
11311 cat confdefs.h
>>conftest.
$ac_ext
11312 cat >>conftest.
$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <${RADIUSCLIENT_DIR}/include/radiusclient-ng.h>
11317 rm -f conftest.
$ac_objext
11318 if { (ac_try
="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11334 *) ac_try_echo
=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try
='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_compiler=no
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h presence" >&5
11365 echo $ECHO_N "checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <${RADIUSCLIENT_DIR}/include/radiusclient-ng.h>
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11377 *) ac_try_echo
=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1
>conftest.err
11384 cat conftest.err
>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev
/null
; then
11387 if test -s conftest.err
; then
11388 ac_cpp_err
=$ac_c_preproc_warn_flag
11389 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11396 if test -z "$ac_cpp_err"; then
11397 ac_header_preproc
=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11402 ac_header_preproc
=no
11405 rm -f conftest.err conftest.
$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11409 # So? What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11412 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc
=yes
11419 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
11434 { echo "$as_me:$LINENO: checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h" >&5
11435 echo $ECHO_N "checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
11436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 eval "$as_ac_Header=\$ac_header_preproc"
11441 ac_res
=`eval echo '${'$as_ac_Header'}'`
11442 { echo "$as_me:$LINENO: result: $ac_res" >&5
11443 echo "${ECHO_T}$ac_res" >&6; }
11446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11447 RADIUSCLIENT_HEADER_FOUND
=1
11449 RADIUSCLIENT_HEADER_FOUND
=0
11455 if test "xradiusclient-ng.h" != "x" ; then
11456 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
11457 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
11458 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
11459 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
11463 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
11465 # Is the header compilable?
11466 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
11467 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <radiusclient-ng.h>
11477 rm -f conftest.
$ac_objext
11478 if { (ac_try
="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11494 *) ac_try_echo
=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try
='test -s conftest.$ac_objext'
11502 { (case "(($ac_try" in
11503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_header_compiler=yes
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_header_compiler=no
11519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521 echo "${ECHO_T}$ac_header_compiler" >&6; }
11523 # Is the header present?
11524 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
11525 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 #include <radiusclient-ng.h>
11534 if { (ac_try="$ac_cpp conftest.$ac_ext"
11535 case "(($ac_try" in
11536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11537 *) ac_try_echo
=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev
/null
; then
11547 if test -s conftest.err
; then
11548 ac_cpp_err
=$ac_c_preproc_warn_flag
11549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc
=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.
$ac_ext >&5
11562 ac_header_preproc
=no
11565 rm -f conftest.err conftest.
$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6; }
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11572 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc
=yes
11579 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
11594 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
11595 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
11596 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_cv_header_radiusclient_ng_h
=$ac_header_preproc
11601 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
11602 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
11605 if test $ac_cv_header_radiusclient_ng_h = yes; then
11606 RADIUSCLIENT_HEADER_FOUND
=1
11608 RADIUSCLIENT_HEADER_FOUND
=0
11614 if test "x${RADIUSCLIENT_HEADER_FOUND}" = "x0" ; then
11615 if test ! -z "${RADIUSCLIENT_MANDATORY}" ;
11618 echo " *** It appears that you do not have the radiusclient-ng development package installed."
11619 echo " *** Please install it to include Radius Client support, or re-run configure"
11620 echo " *** without explicitly specifying --with-radiusclient-ng"
11623 RADIUSCLIENT_LIB
=""
11624 RADIUSCLIENT_INCLUDE
=""
11625 PBX_LIBRADIUSCLIENT
=0
11627 PBX_LIBRADIUSCLIENT
=1
11629 cat >>confdefs.h
<<_ACEOF
11630 #define HAVE_RADIUSCLIENT 1
11634 elif test ! -z "${RADIUSCLIENT_MANDATORY}";
11637 echo "*** The Radius Client installation on this system appears to be broken."
11638 echo "*** Either correct the installation, or run configure"
11639 echo "*** without explicity specifying --with-radiusclient-ng"
11649 # Check whether --with-speex was given.
11650 if test "${with_speex+set}" = set; then
11651 withval
=$with_speex;
11657 SPEEX_MANDATORY
="yes"
11660 SPEEX_DIR
="${withval}"
11661 SPEEX_MANDATORY
="yes"
11670 if test "${USE_SPEEX}" != "no"; then
11672 if test "x${SPEEX_DIR}" != "x"; then
11673 pbxlibdir
="-L${speex_DIR}/lib"
11675 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
11676 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
11677 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 ac_check_lib_save_LIBS
=$LIBS
11681 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
11682 cat >conftest.
$ac_ext <<_ACEOF
11685 cat confdefs.h
>>conftest.
$ac_ext
11686 cat >>conftest.
$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11695 char speex_encode ();
11699 return speex_encode ();
11704 rm -f conftest.
$ac_objext conftest
$ac_exeext
11705 if { (ac_try
="$ac_link"
11706 case "(($ac_try" in
11707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11721 *) ac_try_echo
=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try
='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_lib_speex_speex_encode=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_cv_lib_speex_speex_encode=no
11746 rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 LIBS=$ac_check_lib_save_LIBS
11750 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
11751 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
11752 if test $ac_cv_lib_speex_speex_encode = yes; then
11753 AST_SPEEX_FOUND=yes
11759 if test "${AST_SPEEX_FOUND}" = "yes"; then
11760 SPEEX_LIB="-lspeex -lm"
11761 SPEEX_HEADER_FOUND="1"
11762 if test "x${SPEEX_DIR}" != "x"; then
11763 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
11764 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
11765 if test "xspeex/speex.h" != "x" ; then
11766 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" |
$as_tr_sh`
11767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
11769 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
11770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 ac_res=`eval echo '${'$as_ac_Header'}'`
11774 { echo "$as_me:$LINENO: result: $ac_res" >&5
11775 echo "${ECHO_T}$ac_res" >&6; }
11777 # Is the header compilable?
11778 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
11779 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
11780 cat >conftest.$ac_ext <<_ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11786 $ac_includes_default
11787 #include <${SPEEX_DIR}/include/speex/speex.h>
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11793 *) ac_try_echo
=$ac_try;;
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1
>conftest.err
11800 cat conftest.err
>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11804 { (case "(($ac_try" in
11805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11816 *) ac_try_echo
=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_header_compiler
=yes
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.
$ac_ext >&5
11828 ac_header_compiler
=no
11831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11833 echo "${ECHO_T}$ac_header_compiler" >&6; }
11835 # Is the header present?
11836 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
11837 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
11838 cat >conftest.
$ac_ext <<_ACEOF
11841 cat confdefs.h
>>conftest.
$ac_ext
11842 cat >>conftest.
$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 #include <${SPEEX_DIR}/include/speex/speex.h>
11846 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11847 case "(($ac_try" in
11848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } >/dev/null; then
11859 if test -s conftest.err; then
11860 ac_cpp_err=$ac_c_preproc_warn_flag
11861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11868 if test -z "$ac_cpp_err"; then
11869 ac_header_preproc=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_preproc=no
11877 rm -f conftest.err conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11879 echo "${ECHO_T}$ac_header_preproc" >&6; }
11881 # So? What about this header?
11882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
11885 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
11887 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
11888 ac_header_preproc=yes
11891 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
11892 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
11894 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
11896 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
11898 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
11900 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
11902 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
11906 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
11907 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 eval "$as_ac_Header=\$ac_header_preproc"
11913 ac_res=`eval echo '${'$as_ac_Header'}'`
11914 { echo "$as_me:$LINENO: result: $ac_res" >&5
11915 echo "${ECHO_T}$ac_res" >&6; }
11918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11919 SPEEX_HEADER_FOUND=1
11921 SPEEX_HEADER_FOUND=0
11927 if test "xspeex/speex.h" != "x" ; then
11928 if test "${ac_cv_header_speex_speex_h+set}" = set; then
11929 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
11930 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
11931 if test "${ac_cv_header_speex_speex_h+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
11935 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
11937 # Is the header compilable?
11938 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
11939 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 #include <speex/speex.h>
11949 rm -f conftest.$ac_objext
11950 if { (ac_try="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11953 *) ac_try_echo
=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1
>conftest.err
11960 cat conftest.err
>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11976 *) ac_try_echo
=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_header_compiler
=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.
$ac_ext >&5
11988 ac_header_compiler
=no
11991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6; }
11995 # Is the header present?
11996 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
11997 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
11998 cat >conftest.
$ac_ext <<_ACEOF
12001 cat confdefs.h
>>conftest.
$ac_ext
12002 cat >>conftest.
$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <speex/speex.h>
12006 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12007 case "(($ac_try" in
12008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null; then
12019 if test -s conftest.err; then
12020 ac_cpp_err=$ac_c_preproc_warn_flag
12021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 if test -z "$ac_cpp_err"; then
12029 ac_header_preproc=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_header_preproc=no
12037 rm -f conftest.err conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12039 echo "${ECHO_T}$ac_header_preproc" >&6; }
12041 # So? What about this header?
12042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12044 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
12045 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
12047 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
12048 ac_header_preproc=yes
12051 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
12052 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
12054 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
12056 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
12058 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
12060 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
12062 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
12066 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
12067 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
12068 if test "${ac_cv_header_speex_speex_h+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_cv_header_speex_speex_h=$ac_header_preproc
12073 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
12074 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
12077 if test $ac_cv_header_speex_speex_h = yes; then
12078 SPEEX_HEADER_FOUND=1
12080 SPEEX_HEADER_FOUND=0
12086 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
12087 if test ! -z "${SPEEX_MANDATORY}" ;
12090 echo " *** It appears that you do not have the speex development package installed."
12091 echo " *** Please install it to include Speex support, or re-run configure"
12092 echo " *** without explicitly specifying --with-speex"
12101 cat >>confdefs.h <<_ACEOF
12102 #define HAVE_SPEEX 1
12106 elif test ! -z "${SPEEX_MANDATORY}";
12109 echo "*** The Speex installation on this system appears to be broken."
12110 echo "*** Either correct the installation, or run configure"
12111 echo "*** without explicity specifying --with-speex"
12121 # Check whether --with-sqlite was given.
12122 if test "${with_sqlite+set}" = set; then
12123 withval=$with_sqlite;
12129 SQLITE_MANDATORY="yes"
12132 SQLITE_DIR="${withval}"
12133 SQLITE_MANDATORY="yes"
12142 if test "${USE_SQLITE}" != "no"; then
12144 if test "x${SQLITE_DIR}" != "x"; then
12145 pbxlibdir="-L${sqlite_DIR}/lib"
12147 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
12148 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lsqlite ${pbxlibdir} $LIBS"
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12167 char sqlite_exec ();
12171 return sqlite_exec ();
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12180 *) ac_try_echo
=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1
>conftest.err
12187 cat conftest.err
>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12191 { (case "(($ac_try" in
12192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_try") 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12203 *) ac_try_echo
=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_lib_sqlite_sqlite_exec
=yes
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.
$ac_ext >&5
12215 ac_cv_lib_sqlite_sqlite_exec
=no
12218 rm -f conftest.err conftest.
$ac_objext \
12219 conftest
$ac_exeext conftest.
$ac_ext
12220 LIBS
=$ac_check_lib_save_LIBS
12222 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
12223 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
12224 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
12225 AST_SQLITE_FOUND
=yes
12227 AST_SQLITE_FOUND
=no
12231 if test "${AST_SQLITE_FOUND}" = "yes"; then
12232 SQLITE_LIB
="-lsqlite "
12233 SQLITE_HEADER_FOUND
="1"
12234 if test "x${SQLITE_DIR}" != "x"; then
12235 SQLITE_LIB
="${pbxlibdir} ${SQLITE_LIB}"
12236 SQLITE_INCLUDE
="-I${SQLITE_DIR}/include"
12237 if test "xsqlite.h" != "x" ; then
12238 as_ac_Header
=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
12239 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
12241 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
12242 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 ac_res
=`eval echo '${'$as_ac_Header'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12249 # Is the header compilable?
12250 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
12251 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
12252 cat >conftest.
$ac_ext <<_ACEOF
12255 cat confdefs.h
>>conftest.
$ac_ext
12256 cat >>conftest.
$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 #include <${SQLITE_DIR}/include/sqlite.h>
12261 rm -f conftest.
$ac_objext
12262 if { (ac_try
="$ac_compile"
12263 case "(($ac_try" in
12264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_compile") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12278 *) ac_try_echo
=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try
='test -s conftest.$ac_objext'
12286 { (case "(($ac_try" in
12287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_try") 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_header_compiler=yes
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_header_compiler=no
12303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305 echo "${ECHO_T}$ac_header_compiler" >&6; }
12307 # Is the header present?
12308 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
12309 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <${SQLITE_DIR}/include/sqlite.h>
12318 if { (ac_try="$ac_cpp conftest.$ac_ext"
12319 case "(($ac_try" in
12320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12321 *) ac_try_echo
=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12326 grep -v '^ *+' conftest.er1
>conftest.err
12328 cat conftest.err
>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } >/dev
/null
; then
12331 if test -s conftest.err
; then
12332 ac_cpp_err
=$ac_c_preproc_warn_flag
12333 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12340 if test -z "$ac_cpp_err"; then
12341 ac_header_preproc
=yes
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.
$ac_ext >&5
12346 ac_header_preproc
=no
12349 rm -f conftest.err conftest.
$ac_ext
12350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12351 echo "${ECHO_T}$ac_header_preproc" >&6; }
12353 # So? What about this header?
12354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12356 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
12357 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
12359 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
12360 ac_header_preproc
=yes
12363 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
12364 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
12366 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
12368 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
12370 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
12372 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
12374 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
12378 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
12379 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
12380 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 eval "$as_ac_Header=\$ac_header_preproc"
12385 ac_res
=`eval echo '${'$as_ac_Header'}'`
12386 { echo "$as_me:$LINENO: result: $ac_res" >&5
12387 echo "${ECHO_T}$ac_res" >&6; }
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 SQLITE_HEADER_FOUND
=1
12393 SQLITE_HEADER_FOUND
=0
12399 if test "xsqlite.h" != "x" ; then
12400 if test "${ac_cv_header_sqlite_h+set}" = set; then
12401 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
12402 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
12403 if test "${ac_cv_header_sqlite_h+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
12407 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
12409 # Is the header compilable?
12410 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
12411 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
12412 cat >conftest.
$ac_ext <<_ACEOF
12415 cat confdefs.h
>>conftest.
$ac_ext
12416 cat >>conftest.
$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 $ac_includes_default
12419 #include <sqlite.h>
12421 rm -f conftest.
$ac_objext
12422 if { (ac_try
="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12438 *) ac_try_echo
=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try
='test -s conftest.$ac_objext'
12446 { (case "(($ac_try" in
12447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_try") 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_header_compiler=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_header_compiler=no
12463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12465 echo "${ECHO_T}$ac_header_compiler" >&6; }
12467 # Is the header present?
12468 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
12469 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 #include <sqlite.h>
12478 if { (ac_try="$ac_cpp conftest.$ac_ext"
12479 case "(($ac_try" in
12480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12481 *) ac_try_echo
=$ac_try;;
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12486 grep -v '^ *+' conftest.er1
>conftest.err
12488 cat conftest.err
>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } >/dev
/null
; then
12491 if test -s conftest.err
; then
12492 ac_cpp_err
=$ac_c_preproc_warn_flag
12493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12500 if test -z "$ac_cpp_err"; then
12501 ac_header_preproc
=yes
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.
$ac_ext >&5
12506 ac_header_preproc
=no
12509 rm -f conftest.err conftest.
$ac_ext
12510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12511 echo "${ECHO_T}$ac_header_preproc" >&6; }
12513 # So? What about this header?
12514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12516 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
12517 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
12519 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
12520 ac_header_preproc
=yes
12523 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
12524 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
12526 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
12528 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
12530 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
12532 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
12534 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
12538 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
12539 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
12540 if test "${ac_cv_header_sqlite_h+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 ac_cv_header_sqlite_h
=$ac_header_preproc
12545 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
12546 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
12549 if test $ac_cv_header_sqlite_h = yes; then
12550 SQLITE_HEADER_FOUND
=1
12552 SQLITE_HEADER_FOUND
=0
12558 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
12559 if test ! -z "${SQLITE_MANDATORY}" ;
12562 echo " *** It appears that you do not have the sqlite development package installed."
12563 echo " *** Please install it to include SQLite support, or re-run configure"
12564 echo " *** without explicitly specifying --with-sqlite"
12573 cat >>confdefs.h
<<_ACEOF
12574 #define HAVE_SQLITE 1
12578 elif test ! -z "${SQLITE_MANDATORY}";
12581 echo "*** The SQLite installation on this system appears to be broken."
12582 echo "*** Either correct the installation, or run configure"
12583 echo "*** without explicity specifying --with-sqlite"
12593 # Check whether --with-ssl was given.
12594 if test "${with_ssl+set}" = set; then
12601 OPENSSL_MANDATORY
="yes"
12604 OPENSSL_DIR
="${withval}"
12605 OPENSSL_MANDATORY
="yes"
12614 if test "${USE_OPENSSL}" != "no"; then
12616 if test "x${OPENSSL_DIR}" != "x"; then
12617 pbxlibdir
="-L${ssl_DIR}/lib"
12619 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
12620 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
12621 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 ac_check_lib_save_LIBS
=$LIBS
12625 LIBS
="-lssl ${pbxlibdir} -lcrypto $LIBS"
12626 cat >conftest.
$ac_ext <<_ACEOF
12629 cat confdefs.h
>>conftest.
$ac_ext
12630 cat >>conftest.
$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12639 char ssl2_connect ();
12643 return ssl2_connect ();
12648 rm -f conftest.
$ac_objext conftest
$ac_exeext
12649 if { (ac_try
="$ac_link"
12650 case "(($ac_try" in
12651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_link") 2>conftest.er1
12657 grep -v '^ *+' conftest.er1 >conftest.err
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12665 *) ac_try_echo
=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try
='test -s conftest$ac_exeext'
12673 { (case "(($ac_try" in
12674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_cv_lib_ssl_ssl2_connect=yes
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_lib_ssl_ssl2_connect=no
12690 rm -f conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12694 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
12695 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
12696 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
12697 AST_OPENSSL_FOUND=yes
12699 AST_OPENSSL_FOUND=no
12703 if test "${AST_OPENSSL_FOUND}" = "yes"; then
12704 OPENSSL_LIB="-lssl -lcrypto"
12705 OPENSSL_HEADER_FOUND="1"
12706 if test "x${OPENSSL_DIR}" != "x"; then
12707 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
12708 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
12709 if test "xopenssl/ssl.h" != "x" ; then
12710 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" |
$as_tr_sh`
12711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12712 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
12713 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
12714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 ac_res=`eval echo '${'$as_ac_Header'}'`
12718 { echo "$as_me:$LINENO: result: $ac_res" >&5
12719 echo "${ECHO_T}$ac_res" >&6; }
12721 # Is the header compilable?
12722 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
12723 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
12733 rm -f conftest.$ac_objext
12734 if { (ac_try="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12737 *) ac_try_echo
=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12742 grep -v '^ *+' conftest.er1
>conftest.err
12744 cat conftest.err
>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (case "(($ac_try" in
12749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12760 *) ac_try_echo
=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler
=yes
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.
$ac_ext >&5
12772 ac_header_compiler
=no
12775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12777 echo "${ECHO_T}$ac_header_compiler" >&6; }
12779 # Is the header present?
12780 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
12781 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
12782 cat >conftest.
$ac_ext <<_ACEOF
12785 cat confdefs.h
>>conftest.
$ac_ext
12786 cat >>conftest.
$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
12790 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12803 if test -s conftest.err; then
12804 ac_cpp_err=$ac_c_preproc_warn_flag
12805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12812 if test -z "$ac_cpp_err"; then
12813 ac_header_preproc=yes
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_header_preproc=no
12821 rm -f conftest.err conftest.$ac_ext
12822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12823 echo "${ECHO_T}$ac_header_preproc" >&6; }
12825 # So? What about this header?
12826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12828 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12829 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
12831 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
12832 ac_header_preproc=yes
12835 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
12836 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
12838 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
12840 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12842 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
12844 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
12846 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12850 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
12851 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
12852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 eval "$as_ac_Header=\$ac_header_preproc"
12857 ac_res=`eval echo '${'$as_ac_Header'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859 echo "${ECHO_T}$ac_res" >&6; }
12862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12863 OPENSSL_HEADER_FOUND=1
12865 OPENSSL_HEADER_FOUND=0
12871 if test "xopenssl/ssl.h" != "x" ; then
12872 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12873 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12874 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12875 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12879 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12881 # Is the header compilable?
12882 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12883 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 #include <openssl/ssl.h>
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12897 *) ac_try_echo
=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1
>conftest.err
12904 cat conftest.err
>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12908 { (case "(($ac_try" in
12909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (case "(($ac_try" in
12919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12920 *) ac_try_echo
=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_try") 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_header_compiler
=yes
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.
$ac_ext >&5
12932 ac_header_compiler
=no
12935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6; }
12939 # Is the header present?
12940 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12941 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12942 cat >conftest.
$ac_ext <<_ACEOF
12945 cat confdefs.h
>>conftest.
$ac_ext
12946 cat >>conftest.
$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 #include <openssl/ssl.h>
12950 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12951 case "(($ac_try" in
12952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } >/dev/null; then
12963 if test -s conftest.err; then
12964 ac_cpp_err=$ac_c_preproc_warn_flag
12965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12972 if test -z "$ac_cpp_err"; then
12973 ac_header_preproc=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_header_preproc=no
12981 rm -f conftest.err conftest.$ac_ext
12982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12983 echo "${ECHO_T}$ac_header_preproc" >&6; }
12985 # So? What about this header?
12986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12988 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12989 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12991 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12992 ac_header_preproc=yes
12995 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12996 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12998 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13000 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13002 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13004 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13005 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13006 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13010 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13011 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
13012 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13017 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13018 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
13021 if test $ac_cv_header_openssl_ssl_h = yes; then
13022 OPENSSL_HEADER_FOUND=1
13024 OPENSSL_HEADER_FOUND=0
13030 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
13031 if test ! -z "${OPENSSL_MANDATORY}" ;
13034 echo " *** It appears that you do not have the ssl development package installed."
13035 echo " *** Please install it to include OpenSSL support, or re-run configure"
13036 echo " *** without explicitly specifying --with-ssl"
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_OPENSSL 1
13050 elif test ! -z "${OPENSSL_MANDATORY}";
13053 echo "*** The OpenSSL installation on this system appears to be broken."
13054 echo "*** Either correct the installation, or run configure"
13055 echo "*** without explicity specifying --with-ssl"
13065 # Check whether --with-tds was given.
13066 if test "${with_tds+set}" = set; then
13073 FREETDS_MANDATORY="yes"
13076 FREETDS_DIR="${withval}"
13077 FREETDS_MANDATORY="yes"
13086 if test "${USE_FREETDS}" != "no"; then
13088 if test "x${FREETDS_DIR}" != "x"; then
13089 pbxlibdir="-L${tds_DIR}/lib"
13091 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
13092 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
13093 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-ltds ${pbxlibdir} $LIBS"
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13111 char tds_version ();
13115 return tds_version ();
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13124 *) ac_try_echo
=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
13129 grep -v '^ *+' conftest.er1
>conftest.err
13131 cat conftest.err
>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13147 *) ac_try_echo
=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_tds_tds_version
=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.
$ac_ext >&5
13159 ac_cv_lib_tds_tds_version
=no
13162 rm -f conftest.err conftest.
$ac_objext \
13163 conftest
$ac_exeext conftest.
$ac_ext
13164 LIBS
=$ac_check_lib_save_LIBS
13166 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
13167 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
13168 if test $ac_cv_lib_tds_tds_version = yes; then
13169 AST_FREETDS_FOUND
=yes
13171 AST_FREETDS_FOUND
=no
13175 if test "${AST_FREETDS_FOUND}" = "yes"; then
13176 FREETDS_LIB
="-ltds "
13177 FREETDS_HEADER_FOUND
="1"
13178 if test "x${FREETDS_DIR}" != "x"; then
13179 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
13180 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
13181 if test "xtds.h" != "x" ; then
13182 as_ac_Header
=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
13183 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13184 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
13185 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
13186 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_res
=`eval echo '${'$as_ac_Header'}'`
13190 { echo "$as_me:$LINENO: result: $ac_res" >&5
13191 echo "${ECHO_T}$ac_res" >&6; }
13193 # Is the header compilable?
13194 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
13195 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
13196 cat >conftest.
$ac_ext <<_ACEOF
13199 cat confdefs.h
>>conftest.
$ac_ext
13200 cat >>conftest.
$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 $ac_includes_default
13203 #include <${FREETDS_DIR}/include/tds.h>
13205 rm -f conftest.
$ac_objext
13206 if { (ac_try
="$ac_compile"
13207 case "(($ac_try" in
13208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_compile") 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13222 *) ac_try_echo
=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; } &&
13229 { ac_try
='test -s conftest.$ac_objext'
13230 { (case "(($ac_try" in
13231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_header_compiler=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_header_compiler=no
13247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13249 echo "${ECHO_T}$ac_header_compiler" >&6; }
13251 # Is the header present?
13252 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
13253 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <${FREETDS_DIR}/include/tds.h>
13262 if { (ac_try="$ac_cpp conftest.$ac_ext"
13263 case "(($ac_try" in
13264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13265 *) ac_try_echo
=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13270 grep -v '^ *+' conftest.er1
>conftest.err
13272 cat conftest.err
>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } >/dev
/null
; then
13275 if test -s conftest.err
; then
13276 ac_cpp_err
=$ac_c_preproc_warn_flag
13277 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13284 if test -z "$ac_cpp_err"; then
13285 ac_header_preproc
=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.
$ac_ext >&5
13290 ac_header_preproc
=no
13293 rm -f conftest.err conftest.
$ac_ext
13294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13295 echo "${ECHO_T}$ac_header_preproc" >&6; }
13297 # So? What about this header?
13298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13300 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
13301 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
13303 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
13304 ac_header_preproc
=yes
13307 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
13308 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
13309 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
13310 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
13311 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
13312 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
13313 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
13314 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
13315 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
13316 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
13318 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
13322 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
13323 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
13324 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 eval "$as_ac_Header=\$ac_header_preproc"
13329 ac_res
=`eval echo '${'$as_ac_Header'}'`
13330 { echo "$as_me:$LINENO: result: $ac_res" >&5
13331 echo "${ECHO_T}$ac_res" >&6; }
13334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13335 FREETDS_HEADER_FOUND
=1
13337 FREETDS_HEADER_FOUND
=0
13343 if test "xtds.h" != "x" ; then
13344 if test "${ac_cv_header_tds_h+set}" = set; then
13345 { echo "$as_me:$LINENO: checking for tds.h" >&5
13346 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
13347 if test "${ac_cv_header_tds_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
13351 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
13353 # Is the header compilable?
13354 { echo "$as_me:$LINENO: checking tds.h usability" >&5
13355 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
13356 cat >conftest.
$ac_ext <<_ACEOF
13359 cat confdefs.h
>>conftest.
$ac_ext
13360 cat >>conftest.
$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13365 rm -f conftest.
$ac_objext
13366 if { (ac_try
="$ac_compile"
13367 case "(($ac_try" in
13368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_compile") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1 >conftest.err
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13382 *) ac_try_echo
=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try
='test -s conftest.$ac_objext'
13390 { (case "(($ac_try" in
13391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_header_compiler=yes
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_header_compiler=no
13407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13409 echo "${ECHO_T}$ac_header_compiler" >&6; }
13411 # Is the header present?
13412 { echo "$as_me:$LINENO: checking tds.h presence" >&5
13413 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13422 if { (ac_try="$ac_cpp conftest.$ac_ext"
13423 case "(($ac_try" in
13424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13425 *) ac_try_echo
=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13430 grep -v '^ *+' conftest.er1
>conftest.err
13432 cat conftest.err
>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev
/null
; then
13435 if test -s conftest.err
; then
13436 ac_cpp_err
=$ac_c_preproc_warn_flag
13437 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13444 if test -z "$ac_cpp_err"; then
13445 ac_header_preproc
=yes
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.
$ac_ext >&5
13450 ac_header_preproc
=no
13453 rm -f conftest.err conftest.
$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6; }
13457 # So? What about this header?
13458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13460 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
13463 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
13464 ac_header_preproc
=yes
13467 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
13468 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
13470 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
13472 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
13474 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
13476 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
13478 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
13482 { echo "$as_me:$LINENO: checking for tds.h" >&5
13483 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_tds_h+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 ac_cv_header_tds_h
=$ac_header_preproc
13489 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
13490 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
13493 if test $ac_cv_header_tds_h = yes; then
13494 FREETDS_HEADER_FOUND
=1
13496 FREETDS_HEADER_FOUND
=0
13502 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
13503 if test ! -z "${FREETDS_MANDATORY}" ;
13506 echo " *** It appears that you do not have the tds development package installed."
13507 echo " *** Please install it to include FreeTDS support, or re-run configure"
13508 echo " *** without explicitly specifying --with-tds"
13517 cat >>confdefs.h
<<_ACEOF
13518 #define HAVE_FREETDS 1
13522 elif test ! -z "${FREETDS_MANDATORY}";
13525 echo "*** The FreeTDS installation on this system appears to be broken."
13526 echo "*** Either correct the installation, or run configure"
13527 echo "*** without explicity specifying --with-tds"
13537 # Check whether --with-termcap was given.
13538 if test "${with_termcap+set}" = set; then
13539 withval
=$with_termcap;
13545 TERMCAP_MANDATORY
="yes"
13548 TERMCAP_DIR
="${withval}"
13549 TERMCAP_MANDATORY
="yes"
13558 if test "${USE_TERMCAP}" != "no"; then
13560 if test "x${TERMCAP_DIR}" != "x"; then
13561 pbxlibdir
="-L${termcap_DIR}/lib"
13563 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13564 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
13565 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 ac_check_lib_save_LIBS
=$LIBS
13569 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
13570 cat >conftest.
$ac_ext <<_ACEOF
13573 cat confdefs.h
>>conftest.
$ac_ext
13574 cat >>conftest.
$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13592 rm -f conftest.
$ac_objext conftest
$ac_exeext
13593 if { (ac_try
="$ac_link"
13594 case "(($ac_try" in
13595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13609 *) ac_try_echo
=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try
='test -s conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_lib_termcap_tgetent=yes
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_cv_lib_termcap_tgetent=no
13634 rm -f conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS=$ac_check_lib_save_LIBS
13638 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13639 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
13640 if test $ac_cv_lib_termcap_tgetent = yes; then
13641 AST_TERMCAP_FOUND=yes
13643 AST_TERMCAP_FOUND=no
13647 if test "${AST_TERMCAP_FOUND}" = "yes"; then
13648 TERMCAP_LIB="-ltermcap "
13649 TERMCAP_HEADER_FOUND="1"
13650 if test "x${TERMCAP_DIR}" != "x"; then
13651 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
13652 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
13653 if test "x" != "x" ; then
13654 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" |
$as_tr_sh`
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
13657 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
13658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_res=`eval echo '${'$as_ac_Header'}'`
13662 { echo "$as_me:$LINENO: result: $ac_res" >&5
13663 echo "${ECHO_T}$ac_res" >&6; }
13665 # Is the header compilable?
13666 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
13667 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
13668 cat >conftest.$ac_ext <<_ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 $ac_includes_default
13675 #include <${TERMCAP_DIR}/include/>
13677 rm -f conftest.$ac_objext
13678 if { (ac_try="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13681 *) ac_try_echo
=$ac_try;;
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_compile") 2>conftest.er1
13686 grep -v '^ *+' conftest.er1
>conftest.err
13688 cat conftest.err
>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13692 { (case "(($ac_try" in
13693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13704 *) ac_try_echo
=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_header_compiler
=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.
$ac_ext >&5
13716 ac_header_compiler
=no
13719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13721 echo "${ECHO_T}$ac_header_compiler" >&6; }
13723 # Is the header present?
13724 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
13725 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
13726 cat >conftest.
$ac_ext <<_ACEOF
13729 cat confdefs.h
>>conftest.
$ac_ext
13730 cat >>conftest.
$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <${TERMCAP_DIR}/include/>
13734 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13735 case "(($ac_try" in
13736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } >/dev/null; then
13747 if test -s conftest.err; then
13748 ac_cpp_err=$ac_c_preproc_warn_flag
13749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13756 if test -z "$ac_cpp_err"; then
13757 ac_header_preproc=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_preproc=no
13765 rm -f conftest.err conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13767 echo "${ECHO_T}$ac_header_preproc" >&6; }
13769 # So? What about this header?
13770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13772 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
13773 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
13775 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
13776 ac_header_preproc=yes
13779 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
13780 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
13782 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
13784 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
13786 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
13788 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
13790 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
13794 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
13795 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
13796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 eval "$as_ac_Header=\$ac_header_preproc"
13801 ac_res=`eval echo '${'$as_ac_Header'}'`
13802 { echo "$as_me:$LINENO: result: $ac_res" >&5
13803 echo "${ECHO_T}$ac_res" >&6; }
13806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13807 TERMCAP_HEADER_FOUND=1
13809 TERMCAP_HEADER_FOUND=0
13815 if test "x" != "x" ; then
13816 if test "${ac_cv_header_+set}" = set; then
13817 { echo "$as_me:$LINENO: checking for " >&5
13818 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
13819 if test "${ac_cv_header_+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
13823 echo "${ECHO_T}$ac_cv_header_" >&6; }
13825 # Is the header compilable?
13826 { echo "$as_me:$LINENO: checking usability" >&5
13827 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13837 rm -f conftest.$ac_objext
13838 if { (ac_try="$ac_compile"
13839 case "(($ac_try" in
13840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13841 *) ac_try_echo
=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_compile") 2>conftest.er1
13846 grep -v '^ *+' conftest.er1
>conftest.err
13848 cat conftest.err
>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13864 *) ac_try_echo
=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_header_compiler
=yes
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.
$ac_ext >&5
13876 ac_header_compiler
=no
13879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13881 echo "${ECHO_T}$ac_header_compiler" >&6; }
13883 # Is the header present?
13884 { echo "$as_me:$LINENO: checking presence" >&5
13885 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
13886 cat >conftest.
$ac_ext <<_ACEOF
13889 cat confdefs.h
>>conftest.
$ac_ext
13890 cat >>conftest.
$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13894 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13895 case "(($ac_try" in
13896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13902 grep -v '^ *+' conftest.er1 >conftest.err
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } >/dev/null; then
13907 if test -s conftest.err; then
13908 ac_cpp_err=$ac_c_preproc_warn_flag
13909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13916 if test -z "$ac_cpp_err"; then
13917 ac_header_preproc=yes
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 ac_header_preproc=no
13925 rm -f conftest.err conftest.$ac_ext
13926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13927 echo "${ECHO_T}$ac_header_preproc" >&6; }
13929 # So? What about this header?
13930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13932 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
13933 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
13935 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
13936 ac_header_preproc=yes
13939 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
13940 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
13942 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
13944 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
13946 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
13948 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
13950 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
13954 { echo "$as_me:$LINENO: checking for " >&5
13955 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
13956 if test "${ac_cv_header_+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 ac_cv_header_=$ac_header_preproc
13961 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
13962 echo "${ECHO_T}$ac_cv_header_" >&6; }
13965 if test $ac_cv_header_ = yes; then
13966 TERMCAP_HEADER_FOUND=1
13968 TERMCAP_HEADER_FOUND=0
13974 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
13975 if test ! -z "${TERMCAP_MANDATORY}" ;
13978 echo " *** It appears that you do not have the termcap development package installed."
13979 echo " *** Please install it to include Termcap support, or re-run configure"
13980 echo " *** without explicitly specifying --with-termcap"
13989 cat >>confdefs.h <<_ACEOF
13990 #define HAVE_TERMCAP 1
13994 elif test ! -z "${TERMCAP_MANDATORY}";
13997 echo "*** The Termcap installation on this system appears to be broken."
13998 echo "*** Either correct the installation, or run configure"
13999 echo "*** without explicity specifying --with-termcap"
14009 # Check whether --with-tinfo was given.
14010 if test "${with_tinfo+set}" = set; then
14011 withval=$with_tinfo;
14017 TINFO_MANDATORY="yes"
14020 TINFO_DIR="${withval}"
14021 TINFO_MANDATORY="yes"
14030 if test "${USE_TINFO}" != "no"; then
14032 if test "x${TINFO_DIR}" != "x"; then
14033 pbxlibdir="-L${tinfo_DIR}/lib"
14035 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
14036 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
14037 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 ac_check_lib_save_LIBS=$LIBS
14041 LIBS="-ltinfo ${pbxlibdir} $LIBS"
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14064 rm -f conftest.$ac_objext conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14068 *) ac_try_echo
=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>conftest.er1
14073 grep -v '^ *+' conftest.er1
>conftest.err
14075 cat conftest.err
>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14079 { (case "(($ac_try" in
14080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14091 *) ac_try_echo
=$ac_try;;
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_lib_tinfo_tgetent
=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.
$ac_ext >&5
14103 ac_cv_lib_tinfo_tgetent
=no
14106 rm -f conftest.err conftest.
$ac_objext \
14107 conftest
$ac_exeext conftest.
$ac_ext
14108 LIBS
=$ac_check_lib_save_LIBS
14110 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
14111 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
14112 if test $ac_cv_lib_tinfo_tgetent = yes; then
14113 AST_TINFO_FOUND
=yes
14119 if test "${AST_TINFO_FOUND}" = "yes"; then
14120 TINFO_LIB
="-ltinfo "
14121 TINFO_HEADER_FOUND
="1"
14122 if test "x${TINFO_DIR}" != "x"; then
14123 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
14124 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
14125 if test "x" != "x" ; then
14126 as_ac_Header
=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
14127 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14128 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
14129 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
14130 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_res
=`eval echo '${'$as_ac_Header'}'`
14134 { echo "$as_me:$LINENO: result: $ac_res" >&5
14135 echo "${ECHO_T}$ac_res" >&6; }
14137 # Is the header compilable?
14138 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
14139 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
14140 cat >conftest.
$ac_ext <<_ACEOF
14143 cat confdefs.h
>>conftest.
$ac_ext
14144 cat >>conftest.
$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #include <${TINFO_DIR}/include/>
14149 rm -f conftest.
$ac_objext
14150 if { (ac_try
="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14158 grep -v '^ *+' conftest.er1 >conftest.err
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try
='test -s conftest.$ac_objext'
14174 { (case "(($ac_try" in
14175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_header_compiler=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_header_compiler=no
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14193 echo "${ECHO_T}$ac_header_compiler" >&6; }
14195 # Is the header present?
14196 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
14197 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 #include <${TINFO_DIR}/include/>
14206 if { (ac_try="$ac_cpp conftest.$ac_ext"
14207 case "(($ac_try" in
14208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14209 *) ac_try_echo
=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1
>conftest.err
14216 cat conftest.err
>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } >/dev
/null
; then
14219 if test -s conftest.err
; then
14220 ac_cpp_err
=$ac_c_preproc_warn_flag
14221 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14228 if test -z "$ac_cpp_err"; then
14229 ac_header_preproc
=yes
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.
$ac_ext >&5
14234 ac_header_preproc
=no
14237 rm -f conftest.err conftest.
$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14239 echo "${ECHO_T}$ac_header_preproc" >&6; }
14241 # So? What about this header?
14242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
14245 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
14247 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
14248 ac_header_preproc
=yes
14251 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
14252 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
14254 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
14256 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
14258 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
14260 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
14262 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
14266 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
14267 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
14268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 eval "$as_ac_Header=\$ac_header_preproc"
14273 ac_res
=`eval echo '${'$as_ac_Header'}'`
14274 { echo "$as_me:$LINENO: result: $ac_res" >&5
14275 echo "${ECHO_T}$ac_res" >&6; }
14278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14279 TINFO_HEADER_FOUND
=1
14281 TINFO_HEADER_FOUND
=0
14287 if test "x" != "x" ; then
14288 if test "${ac_cv_header_+set}" = set; then
14289 { echo "$as_me:$LINENO: checking for " >&5
14290 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
14291 if test "${ac_cv_header_+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
14295 echo "${ECHO_T}$ac_cv_header_" >&6; }
14297 # Is the header compilable?
14298 { echo "$as_me:$LINENO: checking usability" >&5
14299 echo $ECHO_N "checking 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
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 presence" >&5
14357 echo $ECHO_N "checking 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. */
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: : accepted by the compiler, rejected by the preprocessor!" >&5
14405 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
14407 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
14408 ac_header_preproc
=yes
14411 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
14412 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
14414 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
14416 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
14418 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
14420 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
14422 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
14426 { echo "$as_me:$LINENO: checking for " >&5
14427 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
14428 if test "${ac_cv_header_+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ac_cv_header_
=$ac_header_preproc
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
14434 echo "${ECHO_T}$ac_cv_header_" >&6; }
14437 if test $ac_cv_header_ = yes; then
14438 TINFO_HEADER_FOUND
=1
14440 TINFO_HEADER_FOUND
=0
14446 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
14447 if test ! -z "${TINFO_MANDATORY}" ;
14450 echo " *** It appears that you do not have the tinfo development package installed."
14451 echo " *** Please install it to include Term Info support, or re-run configure"
14452 echo " *** without explicitly specifying --with-tinfo"
14461 cat >>confdefs.h
<<_ACEOF
14462 #define HAVE_TINFO 1
14466 elif test ! -z "${TINFO_MANDATORY}";
14469 echo "*** The Term Info installation on this system appears to be broken."
14470 echo "*** Either correct the installation, or run configure"
14471 echo "*** without explicity specifying --with-tinfo"
14481 # Check whether --with-vorbis was given.
14482 if test "${with_vorbis+set}" = set; then
14483 withval
=$with_vorbis;
14489 VORBIS_MANDATORY
="yes"
14492 VORBIS_DIR
="${withval}"
14493 VORBIS_MANDATORY
="yes"
14502 if test "${USE_VORBIS}" != "no"; then
14504 if test "x${VORBIS_DIR}" != "x"; then
14505 pbxlibdir
="-L${vorbis_DIR}/lib"
14507 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
14508 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
14509 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 ac_check_lib_save_LIBS
=$LIBS
14513 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
14514 cat >conftest.
$ac_ext <<_ACEOF
14517 cat confdefs.h
>>conftest.
$ac_ext
14518 cat >>conftest.
$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14527 char vorbis_info_init ();
14531 return vorbis_info_init ();
14536 rm -f conftest.
$ac_objext conftest
$ac_exeext
14537 if { (ac_try
="$ac_link"
14538 case "(($ac_try" in
14539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14553 *) ac_try_echo
=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try
='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_cv_lib_vorbis_vorbis_info_init=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_cv_lib_vorbis_vorbis_info_init=no
14578 rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14582 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
14583 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
14584 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
14585 AST_VORBIS_FOUND=yes
14587 AST_VORBIS_FOUND=no
14591 if test "${AST_VORBIS_FOUND}" = "yes"; then
14592 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
14593 VORBIS_HEADER_FOUND="1"
14594 if test "x${VORBIS_DIR}" != "x"; then
14595 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
14596 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
14597 if test "xvorbis/codec.h" != "x" ; then
14598 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
14599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14600 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
14601 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 ac_res=`eval echo '${'$as_ac_Header'}'`
14606 { echo "$as_me:$LINENO: result: $ac_res" >&5
14607 echo "${ECHO_T}$ac_res" >&6; }
14609 # Is the header compilable?
14610 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
14611 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <${VORBIS_DIR}/include/vorbis/codec.h>
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14625 *) ac_try_echo
=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1
>conftest.err
14632 cat conftest.err
>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14648 *) ac_try_echo
=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_header_compiler
=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.
$ac_ext >&5
14660 ac_header_compiler
=no
14663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14665 echo "${ECHO_T}$ac_header_compiler" >&6; }
14667 # Is the header present?
14668 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
14669 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
14670 cat >conftest.
$ac_ext <<_ACEOF
14673 cat confdefs.h
>>conftest.
$ac_ext
14674 cat >>conftest.
$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <${VORBIS_DIR}/include/vorbis/codec.h>
14678 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14679 case "(($ac_try" in
14680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } >/dev/null; then
14691 if test -s conftest.err; then
14692 ac_cpp_err=$ac_c_preproc_warn_flag
14693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14700 if test -z "$ac_cpp_err"; then
14701 ac_header_preproc=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_preproc=no
14709 rm -f conftest.err conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711 echo "${ECHO_T}$ac_header_preproc" >&6; }
14713 # So? What about this header?
14714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14716 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
14719 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14723 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
14724 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
14726 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
14728 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
14730 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
14732 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
14734 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
14738 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
14739 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 eval "$as_ac_Header=\$ac_header_preproc"
14745 ac_res=`eval echo '${'$as_ac_Header'}'`
14746 { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14751 VORBIS_HEADER_FOUND=1
14753 VORBIS_HEADER_FOUND=0
14759 if test "xvorbis/codec.h" != "x" ; then
14760 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
14761 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
14762 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
14769 # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
14771 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14779 #include <vorbis/codec.h>
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14785 *) ac_try_echo
=$ac_try;;
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14790 grep -v '^ *+' conftest.er1
>conftest.err
14792 cat conftest.err
>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (case "(($ac_try" in
14797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (case "(($ac_try" in
14807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14808 *) ac_try_echo
=$ac_try;;
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_try") 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_header_compiler
=yes
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.
$ac_ext >&5
14820 ac_header_compiler
=no
14823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825 echo "${ECHO_T}$ac_header_compiler" >&6; }
14827 # Is the header present?
14828 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
14829 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
14830 cat >conftest.
$ac_ext <<_ACEOF
14833 cat confdefs.h
>>conftest.
$ac_ext
14834 cat >>conftest.
$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 #include <vorbis/codec.h>
14838 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14839 case "(($ac_try" in
14840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14846 grep -v '^ *+' conftest.er1 >conftest.err
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } >/dev/null; then
14851 if test -s conftest.err; then
14852 ac_cpp_err=$ac_c_preproc_warn_flag
14853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14860 if test -z "$ac_cpp_err"; then
14861 ac_header_preproc=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_header_preproc=no
14869 rm -f conftest.err conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 echo "${ECHO_T}$ac_header_preproc" >&6; }
14873 # So? What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14876 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
14877 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
14879 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14883 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
14884 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
14886 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
14888 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
14890 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
14892 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
14894 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
14898 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
14899 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
14900 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 ac_cv_header_vorbis_codec_h=$ac_header_preproc
14905 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
14906 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
14909 if test $ac_cv_header_vorbis_codec_h = yes; then
14910 VORBIS_HEADER_FOUND=1
14912 VORBIS_HEADER_FOUND=0
14918 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
14919 if test ! -z "${VORBIS_MANDATORY}" ;
14922 echo " *** It appears that you do not have the vorbis development package installed."
14923 echo " *** Please install it to include Vorbis support, or re-run configure"
14924 echo " *** without explicitly specifying --with-vorbis"
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_VORBIS 1
14938 elif test ! -z "${VORBIS_MANDATORY}";
14941 echo "*** The Vorbis installation on this system appears to be broken."
14942 echo "*** Either correct the installation, or run configure"
14943 echo "*** without explicity specifying --with-vorbis"
14953 # Check whether --with-z was given.
14954 if test "${with_z+set}" = set; then
14961 ZLIB_MANDATORY="yes"
14964 ZLIB_DIR="${withval}"
14965 ZLIB_MANDATORY="yes"
14974 if test "${USE_ZLIB}" != "no"; then
14976 if test "x${ZLIB_DIR}" != "x"; then
14977 pbxlibdir="-L${z_DIR}/lib"
14979 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
14980 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
14981 if test "${ac_cv_lib_z_compress+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lz ${pbxlibdir} $LIBS"
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 /* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
15003 return compress ();
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15012 *) ac_try_echo
=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1
>conftest.err
15019 cat conftest.err
>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15023 { (case "(($ac_try" in
15024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15028 (eval "$ac_try") 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15035 *) ac_try_echo
=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_lib_z_compress
=yes
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.
$ac_ext >&5
15047 ac_cv_lib_z_compress
=no
15050 rm -f conftest.err conftest.
$ac_objext \
15051 conftest
$ac_exeext conftest.
$ac_ext
15052 LIBS
=$ac_check_lib_save_LIBS
15054 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
15055 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
15056 if test $ac_cv_lib_z_compress = yes; then
15063 if test "${AST_ZLIB_FOUND}" = "yes"; then
15065 ZLIB_HEADER_FOUND
="1"
15066 if test "x${ZLIB_DIR}" != "x"; then
15067 ZLIB_LIB
="${pbxlibdir} ${ZLIB_LIB}"
15068 ZLIB_INCLUDE
="-I${ZLIB_DIR}/include"
15069 if test "xzlib.h" != "x" ; then
15070 as_ac_Header
=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
15071 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
15073 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
15074 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 ac_res
=`eval echo '${'$as_ac_Header'}'`
15078 { echo "$as_me:$LINENO: result: $ac_res" >&5
15079 echo "${ECHO_T}$ac_res" >&6; }
15081 # Is the header compilable?
15082 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
15083 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
15084 cat >conftest.
$ac_ext <<_ACEOF
15087 cat confdefs.h
>>conftest.
$ac_ext
15088 cat >>conftest.
$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 $ac_includes_default
15091 #include <${ZLIB_DIR}/include/zlib.h>
15093 rm -f conftest.
$ac_objext
15094 if { (ac_try
="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (case "(($ac_try" in
15109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15110 *) ac_try_echo
=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_try") 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } &&
15117 { ac_try
='test -s conftest.$ac_objext'
15118 { (case "(($ac_try" in
15119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_header_compiler=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_header_compiler=no
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15137 echo "${ECHO_T}$ac_header_compiler" >&6; }
15139 # Is the header present?
15140 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
15141 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <${ZLIB_DIR}/include/zlib.h>
15150 if { (ac_try="$ac_cpp conftest.$ac_ext"
15151 case "(($ac_try" in
15152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15153 *) ac_try_echo
=$ac_try;;
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15158 grep -v '^ *+' conftest.er1
>conftest.err
15160 cat conftest.err
>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } >/dev
/null
; then
15163 if test -s conftest.err
; then
15164 ac_cpp_err
=$ac_c_preproc_warn_flag
15165 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15172 if test -z "$ac_cpp_err"; then
15173 ac_header_preproc
=yes
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.
$ac_ext >&5
15178 ac_header_preproc
=no
15181 rm -f conftest.err conftest.
$ac_ext
15182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15183 echo "${ECHO_T}$ac_header_preproc" >&6; }
15185 # So? What about this header?
15186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15188 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15189 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
15191 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
15192 ac_header_preproc
=yes
15195 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
15196 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
15198 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
15200 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15202 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
15204 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
15206 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
15210 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
15211 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
15212 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 eval "$as_ac_Header=\$ac_header_preproc"
15217 ac_res
=`eval echo '${'$as_ac_Header'}'`
15218 { echo "$as_me:$LINENO: result: $ac_res" >&5
15219 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15223 ZLIB_HEADER_FOUND
=1
15225 ZLIB_HEADER_FOUND
=0
15231 if test "xzlib.h" != "x" ; then
15232 if test "${ac_cv_header_zlib_h+set}" = set; then
15233 { echo "$as_me:$LINENO: checking for zlib.h" >&5
15234 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
15235 if test "${ac_cv_header_zlib_h+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15239 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
15241 # Is the header compilable?
15242 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
15243 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
15244 cat >conftest.
$ac_ext <<_ACEOF
15247 cat confdefs.h
>>conftest.
$ac_ext
15248 cat >>conftest.
$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15253 rm -f conftest.
$ac_objext
15254 if { (ac_try
="$ac_compile"
15255 case "(($ac_try" in
15256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15270 *) ac_try_echo
=$ac_try;;
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; } &&
15277 { ac_try
='test -s conftest.$ac_objext'
15278 { (case "(($ac_try" in
15279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_try") 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_header_compiler=yes
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_header_compiler=no
15295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15297 echo "${ECHO_T}$ac_header_compiler" >&6; }
15299 # Is the header present?
15300 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
15301 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15310 if { (ac_try="$ac_cpp conftest.$ac_ext"
15311 case "(($ac_try" in
15312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15313 *) ac_try_echo
=$ac_try;;
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1
>conftest.err
15320 cat conftest.err
>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } >/dev
/null
; then
15323 if test -s conftest.err
; then
15324 ac_cpp_err
=$ac_c_preproc_warn_flag
15325 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15332 if test -z "$ac_cpp_err"; then
15333 ac_header_preproc
=yes
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.
$ac_ext >&5
15338 ac_header_preproc
=no
15341 rm -f conftest.err conftest.
$ac_ext
15342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15343 echo "${ECHO_T}$ac_header_preproc" >&6; }
15345 # So? What about this header?
15346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15348 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15349 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15351 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15352 ac_header_preproc
=yes
15355 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15356 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
15358 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
15359 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15360 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15362 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15364 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15366 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15370 { echo "$as_me:$LINENO: checking for zlib.h" >&5
15371 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
15372 if test "${ac_cv_header_zlib_h+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 ac_cv_header_zlib_h
=$ac_header_preproc
15377 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15378 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
15381 if test $ac_cv_header_zlib_h = yes; then
15382 ZLIB_HEADER_FOUND
=1
15384 ZLIB_HEADER_FOUND
=0
15390 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
15391 if test ! -z "${ZLIB_MANDATORY}" ;
15394 echo " *** It appears that you do not have the z development package installed."
15395 echo " *** Please install it to include zlib support, or re-run configure"
15396 echo " *** without explicitly specifying --with-z"
15405 cat >>confdefs.h
<<_ACEOF
15406 #define HAVE_ZLIB 1
15410 elif test ! -z "${ZLIB_MANDATORY}";
15413 echo "*** The zlib installation on this system appears to be broken."
15414 echo "*** Either correct the installation, or run configure"
15415 echo "*** without explicity specifying --with-z"
15425 if test "x$TERMCAP_LIB" != "x" ; then
15426 EDITLINE_LIBS
="$TERMCAP_LIB"
15427 elif test "x$TINFO_LIB" != "x" ; then
15428 EDITLINE_LIBS
="$TINFO_LIB"
15429 elif test "x$CURSES_LIB" != "x" ; then
15430 EDITLINE_LIBS
="$CURSES_LIB"
15431 elif test "x$NCURSES_LIB" != "x" ; then
15432 EDITLINE_LIBS
="$NCURSES_LIB"
15434 echo "*** termcap support not found"
15440 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
15441 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
15442 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
15443 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
15447 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
15449 # Is the header compilable?
15450 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
15451 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
15452 cat >conftest.
$ac_ext <<_ACEOF
15455 cat confdefs.h
>>conftest.
$ac_ext
15456 cat >>conftest.
$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 $ac_includes_default
15459 #include <linux/soundcard.h>
15461 rm -f conftest.
$ac_objext
15462 if { (ac_try
="$ac_compile"
15463 case "(($ac_try" in
15464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_compile") 2>conftest.er1
15470 grep -v '^ *+' conftest.er1 >conftest.err
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15476 { (case "(($ac_try" in
15477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15478 *) ac_try_echo
=$ac_try;;
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_try") 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try
='test -s conftest.$ac_objext'
15486 { (case "(($ac_try" in
15487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_header_compiler=yes
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 ac_header_compiler=no
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15505 echo "${ECHO_T}$ac_header_compiler" >&6; }
15507 # Is the header present?
15508 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
15509 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <linux/soundcard.h>
15518 if { (ac_try="$ac_cpp conftest.$ac_ext"
15519 case "(($ac_try" in
15520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15521 *) ac_try_echo
=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15526 grep -v '^ *+' conftest.er1
>conftest.err
15528 cat conftest.err
>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } >/dev
/null
; then
15531 if test -s conftest.err
; then
15532 ac_cpp_err
=$ac_c_preproc_warn_flag
15533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15540 if test -z "$ac_cpp_err"; then
15541 ac_header_preproc
=yes
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.
$ac_ext >&5
15546 ac_header_preproc
=no
15549 rm -f conftest.err conftest.
$ac_ext
15550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15551 echo "${ECHO_T}$ac_header_preproc" >&6; }
15553 # So? What about this header?
15554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15556 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
15557 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
15559 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
15560 ac_header_preproc
=yes
15563 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
15564 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
15566 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
15568 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
15570 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
15572 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
15574 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
15578 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
15579 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
15580 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
15585 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
15586 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
15589 if test $ac_cv_header_linux_soundcard_h = yes; then
15593 cat >>confdefs.h
<<_ACEOF
15601 if test "$PBX_LIBOSS" = "0"; then
15602 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15603 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
15604 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
15605 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
15609 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
15611 # Is the header compilable?
15612 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
15613 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
15614 cat >conftest.
$ac_ext <<_ACEOF
15617 cat confdefs.h
>>conftest.
$ac_ext
15618 cat >>conftest.
$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 $ac_includes_default
15621 #include <sys/soundcard.h>
15623 rm -f conftest.
$ac_objext
15624 if { (ac_try
="$ac_compile"
15625 case "(($ac_try" in
15626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_compile") 2>conftest.er1
15632 grep -v '^ *+' conftest.er1 >conftest.err
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15640 *) ac_try_echo
=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try
='test -s conftest.$ac_objext'
15648 { (case "(($ac_try" in
15649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_compiler=no
15665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669 # Is the header present?
15670 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
15671 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <sys/soundcard.h>
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15683 *) ac_try_echo
=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1
>conftest.err
15690 cat conftest.err
>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev
/null
; then
15693 if test -s conftest.err
; then
15694 ac_cpp_err
=$ac_c_preproc_warn_flag
15695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15702 if test -z "$ac_cpp_err"; then
15703 ac_header_preproc
=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.
$ac_ext >&5
15708 ac_header_preproc
=no
15711 rm -f conftest.err conftest.
$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 echo "${ECHO_T}$ac_header_preproc" >&6; }
15715 # So? What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
15719 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
15721 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
15722 ac_header_preproc
=yes
15725 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
15726 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
15728 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
15730 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
15732 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
15734 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
15736 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
15740 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
15741 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
15742 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
15747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
15748 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
15751 if test $ac_cv_header_sys_soundcard_h = yes; then
15755 cat >>confdefs.h
<<_ACEOF
15764 if test "$PBX_LIBOSS" = "0"; then
15767 # Check whether --with-ossaudio was given.
15768 if test "${with_ossaudio+set}" = set; then
15769 withval
=$with_ossaudio;
15775 OSS_MANDATORY
="yes"
15778 OSS_DIR
="${withval}"
15779 OSS_MANDATORY
="yes"
15788 if test "${USE_OSS}" != "no"; then
15790 if test "x${OSS_DIR}" != "x"; then
15791 pbxlibdir
="-L${ossaudio_DIR}/lib"
15793 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
15794 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
15795 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 ac_check_lib_save_LIBS
=$LIBS
15799 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
15800 cat >conftest.
$ac_ext <<_ACEOF
15803 cat confdefs.h
>>conftest.
$ac_ext
15804 cat >>conftest.
$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15807 /* Override any GCC internal prototype to avoid an error.
15808 Use char because int might match the return type of a GCC
15809 builtin and then its argument prototype would still apply. */
15813 char oss_ioctl_mixer ();
15817 return oss_ioctl_mixer ();
15822 rm -f conftest.
$ac_objext conftest
$ac_exeext
15823 if { (ac_try
="$ac_link"
15824 case "(($ac_try" in
15825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_link") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15837 { (case "(($ac_try" in
15838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15839 *) ac_try_echo
=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_try") 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try
='test -s conftest$ac_exeext'
15847 { (case "(($ac_try" in
15848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
15864 rm -f conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
15866 LIBS=$ac_check_lib_save_LIBS
15868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
15869 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
15870 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
15877 if test "${AST_OSS_FOUND}" = "yes"; then
15878 OSS_LIB="-lossaudio "
15879 OSS_HEADER_FOUND="1"
15880 if test "x${OSS_DIR}" != "x"; then
15881 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
15882 OSS_INCLUDE="-I${OSS_DIR}/include"
15883 if test "xsoundcard.h" != "x" ; then
15884 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" |
$as_tr_sh`
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
15887 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 ac_res=`eval echo '${'$as_ac_Header'}'`
15892 { echo "$as_me:$LINENO: result: $ac_res" >&5
15893 echo "${ECHO_T}$ac_res" >&6; }
15895 # Is the header compilable?
15896 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
15897 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 $ac_includes_default
15905 #include <${OSS_DIR}/include/soundcard.h>
15907 rm -f conftest.$ac_objext
15908 if { (ac_try="$ac_compile"
15909 case "(($ac_try" in
15910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15911 *) ac_try_echo
=$ac_try;;
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_compile") 2>conftest.er1
15916 grep -v '^ *+' conftest.er1
>conftest.err
15918 cat conftest.err
>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15922 { (case "(($ac_try" in
15923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_try") 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } &&
15931 { ac_try='test -s conftest.$ac_objext'
15932 { (case "(($ac_try" in
15933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15934 *) ac_try_echo
=$ac_try;;
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_try") 2>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_header_compiler
=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.
$ac_ext >&5
15946 ac_header_compiler
=no
15949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15951 echo "${ECHO_T}$ac_header_compiler" >&6; }
15953 # Is the header present?
15954 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
15955 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
15956 cat >conftest.
$ac_ext <<_ACEOF
15959 cat confdefs.h
>>conftest.
$ac_ext
15960 cat >>conftest.
$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15962 #include <${OSS_DIR}/include/soundcard.h>
15964 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15965 case "(($ac_try" in
15966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15972 grep -v '^ *+' conftest.er1 >conftest.err
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } >/dev/null; then
15977 if test -s conftest.err; then
15978 ac_cpp_err=$ac_c_preproc_warn_flag
15979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15986 if test -z "$ac_cpp_err"; then
15987 ac_header_preproc=yes
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_header_preproc=no
15995 rm -f conftest.err conftest.$ac_ext
15996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 echo "${ECHO_T}$ac_header_preproc" >&6; }
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16002 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
16005 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16009 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
16010 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
16012 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
16014 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
16016 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
16018 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
16020 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
16024 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
16025 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 eval "$as_ac_Header=\$ac_header_preproc"
16031 ac_res=`eval echo '${'$as_ac_Header'}'`
16032 { echo "$as_me:$LINENO: result: $ac_res" >&5
16033 echo "${ECHO_T}$ac_res" >&6; }
16036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16045 if test "xsoundcard.h" != "x" ; then
16046 if test "${ac_cv_header_soundcard_h+set}" = set; then
16047 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
16048 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
16049 if test "${ac_cv_header_soundcard_h+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
16053 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
16055 # Is the header compilable?
16056 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
16057 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
16058 cat >conftest.$ac_ext <<_ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 $ac_includes_default
16065 #include <soundcard.h>
16067 rm -f conftest.$ac_objext
16068 if { (ac_try="$ac_compile"
16069 case "(($ac_try" in
16070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16071 *) ac_try_echo
=$ac_try;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_compile") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1
>conftest.err
16078 cat conftest.err
>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16082 { (case "(($ac_try" in
16083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16094 *) ac_try_echo
=$ac_try;;
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_header_compiler
=yes
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.
$ac_ext >&5
16106 ac_header_compiler
=no
16109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16111 echo "${ECHO_T}$ac_header_compiler" >&6; }
16113 # Is the header present?
16114 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
16115 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
16116 cat >conftest.
$ac_ext <<_ACEOF
16119 cat confdefs.h
>>conftest.
$ac_ext
16120 cat >>conftest.
$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 #include <soundcard.h>
16124 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16125 case "(($ac_try" in
16126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } >/dev/null; then
16137 if test -s conftest.err; then
16138 ac_cpp_err=$ac_c_preproc_warn_flag
16139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16146 if test -z "$ac_cpp_err"; then
16147 ac_header_preproc=yes
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_header_preproc=no
16155 rm -f conftest.err conftest.$ac_ext
16156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16157 echo "${ECHO_T}$ac_header_preproc" >&6; }
16159 # So? What about this header?
16160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16162 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
16163 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
16165 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
16166 ac_header_preproc=yes
16169 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
16170 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
16172 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
16174 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
16175 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
16176 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
16178 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
16180 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
16184 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
16185 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
16186 if test "${ac_cv_header_soundcard_h+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 ac_cv_header_soundcard_h=$ac_header_preproc
16191 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
16192 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
16195 if test $ac_cv_header_soundcard_h = yes; then
16204 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
16205 if test ! -z "${OSS_MANDATORY}" ;
16208 echo " *** It appears that you do not have the ossaudio development package installed."
16209 echo " *** Please install it to include Open Sound System support, or re-run configure"
16210 echo " *** without explicitly specifying --with-ossaudio"
16219 cat >>confdefs.h <<_ACEOF
16224 elif test ! -z "${OSS_MANDATORY}";
16227 echo "*** The Open Sound System installation on this system appears to be broken."
16228 echo "*** Either correct the installation, or run configure"
16229 echo "*** without explicity specifying --with-ossaudio"
16241 if test "${PBX_OSTYPE}" = "Linux" ; then
16244 # Check whether --with-tonezone was given.
16245 if test "${with_tonezone+set}" = set; then
16246 withval=$with_tonezone;
16252 ZAPTEL_MANDATORY="yes"
16255 ZAPTEL_DIR="${withval}"
16256 ZAPTEL_MANDATORY="yes"
16265 if test "${USE_ZAPTEL}" != "no"; then
16267 if test "x${ZAPTEL_DIR}" != "x"; then
16268 pbxlibdir="-L${tonezone_DIR}/lib"
16270 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
16271 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
16272 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 ac_check_lib_save_LIBS=$LIBS
16276 LIBS="-ltonezone ${pbxlibdir} $LIBS"
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16284 /* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16290 char tone_zone_find ();
16294 return tone_zone_find ();
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16303 *) ac_try_echo
=$ac_try;;
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_link") 2>conftest.er1
16308 grep -v '^ *+' conftest.er1
>conftest.err
16310 cat conftest.err
>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try='test -s conftest$ac_exeext'
16324 { (case "(($ac_try" in
16325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16326 *) ac_try_echo
=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_try") 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_lib_tonezone_tone_zone_find
=yes
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.
$ac_ext >&5
16338 ac_cv_lib_tonezone_tone_zone_find
=no
16341 rm -f conftest.err conftest.
$ac_objext \
16342 conftest
$ac_exeext conftest.
$ac_ext
16343 LIBS
=$ac_check_lib_save_LIBS
16345 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
16346 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
16347 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
16348 AST_ZAPTEL_FOUND
=yes
16350 AST_ZAPTEL_FOUND
=no
16354 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
16355 ZAPTEL_LIB
="-ltonezone "
16356 ZAPTEL_HEADER_FOUND
="1"
16357 if test "x${ZAPTEL_DIR}" != "x"; then
16358 ZAPTEL_LIB
="${pbxlibdir} ${ZAPTEL_LIB}"
16359 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
16360 if test "xlinux/zaptel.h" != "x" ; then
16361 as_ac_Header
=`echo "ac_cv_header_${ZAPTEL_DIR}/include/linux/zaptel.h" | $as_tr_sh`
16362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16363 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/linux/zaptel.h" >&5
16364 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/linux/zaptel.h... $ECHO_C" >&6; }
16365 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 ac_res
=`eval echo '${'$as_ac_Header'}'`
16369 { echo "$as_me:$LINENO: result: $ac_res" >&5
16370 echo "${ECHO_T}$ac_res" >&6; }
16372 # Is the header compilable?
16373 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/linux/zaptel.h usability" >&5
16374 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/linux/zaptel.h usability... $ECHO_C" >&6; }
16375 cat >conftest.
$ac_ext <<_ACEOF
16378 cat confdefs.h
>>conftest.
$ac_ext
16379 cat >>conftest.
$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 $ac_includes_default
16382 #include <${ZAPTEL_DIR}/include/linux/zaptel.h>
16384 rm -f conftest.
$ac_objext
16385 if { (ac_try
="$ac_compile"
16386 case "(($ac_try" in
16387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399 { (case "(($ac_try" in
16400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16401 *) ac_try_echo
=$ac_try;;
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_try") 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try
='test -s conftest.$ac_objext'
16409 { (case "(($ac_try" in
16410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_try") 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_header_compiler=yes
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_header_compiler=no
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428 echo "${ECHO_T}$ac_header_compiler" >&6; }
16430 # Is the header present?
16431 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/linux/zaptel.h presence" >&5
16432 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/linux/zaptel.h presence... $ECHO_C" >&6; }
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <${ZAPTEL_DIR}/include/linux/zaptel.h>
16441 if { (ac_try="$ac_cpp conftest.$ac_ext"
16442 case "(($ac_try" in
16443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16444 *) ac_try_echo
=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1
>conftest.err
16451 cat conftest.err
>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } >/dev
/null
; then
16454 if test -s conftest.err
; then
16455 ac_cpp_err
=$ac_c_preproc_warn_flag
16456 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16463 if test -z "$ac_cpp_err"; then
16464 ac_header_preproc
=yes
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.
$ac_ext >&5
16469 ac_header_preproc
=no
16472 rm -f conftest.err conftest.
$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6; }
16476 # So? What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16479 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc
=yes
16486 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: in the future, the compiler will take precedence" >&2;}
16501 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/linux/zaptel.h" >&5
16502 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/linux/zaptel.h... $ECHO_C" >&6; }
16503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 eval "$as_ac_Header=\$ac_header_preproc"
16508 ac_res
=`eval echo '${'$as_ac_Header'}'`
16509 { echo "$as_me:$LINENO: result: $ac_res" >&5
16510 echo "${ECHO_T}$ac_res" >&6; }
16513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16514 ZAPTEL_HEADER_FOUND
=1
16516 ZAPTEL_HEADER_FOUND
=0
16522 if test "xlinux/zaptel.h" != "x" ; then
16523 if test "${ac_cv_header_linux_zaptel_h+set}" = set; then
16524 { echo "$as_me:$LINENO: checking for linux/zaptel.h" >&5
16525 echo $ECHO_N "checking for linux/zaptel.h... $ECHO_C" >&6; }
16526 if test "${ac_cv_header_linux_zaptel_h+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_zaptel_h" >&5
16530 echo "${ECHO_T}$ac_cv_header_linux_zaptel_h" >&6; }
16532 # Is the header compilable?
16533 { echo "$as_me:$LINENO: checking linux/zaptel.h usability" >&5
16534 echo $ECHO_N "checking linux/zaptel.h usability... $ECHO_C" >&6; }
16535 cat >conftest.
$ac_ext <<_ACEOF
16538 cat confdefs.h
>>conftest.
$ac_ext
16539 cat >>conftest.
$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <linux/zaptel.h>
16544 rm -f conftest.
$ac_objext
16545 if { (ac_try
="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_compile") 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16561 *) ac_try_echo
=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try
='test -s conftest.$ac_objext'
16569 { (case "(($ac_try" in
16570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_header_compiler=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_header_compiler=no
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16588 echo "${ECHO_T}$ac_header_compiler" >&6; }
16590 # Is the header present?
16591 { echo "$as_me:$LINENO: checking linux/zaptel.h presence" >&5
16592 echo $ECHO_N "checking linux/zaptel.h presence... $ECHO_C" >&6; }
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <linux/zaptel.h>
16601 if { (ac_try="$ac_cpp conftest.$ac_ext"
16602 case "(($ac_try" in
16603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16604 *) ac_try_echo
=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16609 grep -v '^ *+' conftest.er1
>conftest.err
16611 cat conftest.err
>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } >/dev
/null
; then
16614 if test -s conftest.err
; then
16615 ac_cpp_err
=$ac_c_preproc_warn_flag
16616 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16623 if test -z "$ac_cpp_err"; then
16624 ac_header_preproc
=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.
$ac_ext >&5
16629 ac_header_preproc
=no
16632 rm -f conftest.err conftest.
$ac_ext
16633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: linux/zaptel.h: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc
=yes
16646 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: linux/zaptel.h: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: linux/zaptel.h: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: linux/zaptel.h: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: linux/zaptel.h: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: linux/zaptel.h: in the future, the compiler will take precedence" >&2;}
16661 { echo "$as_me:$LINENO: checking for linux/zaptel.h" >&5
16662 echo $ECHO_N "checking for linux/zaptel.h... $ECHO_C" >&6; }
16663 if test "${ac_cv_header_linux_zaptel_h+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 ac_cv_header_linux_zaptel_h
=$ac_header_preproc
16668 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_zaptel_h" >&5
16669 echo "${ECHO_T}$ac_cv_header_linux_zaptel_h" >&6; }
16672 if test $ac_cv_header_linux_zaptel_h = yes; then
16673 ZAPTEL_HEADER_FOUND
=1
16675 ZAPTEL_HEADER_FOUND
=0
16681 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
16682 if test ! -z "${ZAPTEL_MANDATORY}" ;
16685 echo " *** It appears that you do not have the tonezone development package installed."
16686 echo " *** Please install it to include Zaptel support, or re-run configure"
16687 echo " *** without explicitly specifying --with-tonezone"
16696 cat >>confdefs.h
<<_ACEOF
16697 #define HAVE_ZAPTEL 1
16701 elif test ! -z "${ZAPTEL_MANDATORY}";
16704 echo "*** The Zaptel installation on this system appears to be broken."
16705 echo "*** Either correct the installation, or run configure"
16706 echo "*** without explicity specifying --with-tonezone"
16717 # Check whether --with-tonezone was given.
16718 if test "${with_tonezone+set}" = set; then
16719 withval
=$with_tonezone;
16725 ZAPTEL_MANDATORY
="yes"
16728 ZAPTEL_DIR
="${withval}"
16729 ZAPTEL_MANDATORY
="yes"
16738 if test "${USE_ZAPTEL}" != "no"; then
16740 if test "x${ZAPTEL_DIR}" != "x"; then
16741 pbxlibdir
="-L${tonezone_DIR}/lib"
16743 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
16744 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
16745 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 ac_check_lib_save_LIBS
=$LIBS
16749 LIBS
="-ltonezone ${pbxlibdir} -lm $LIBS"
16750 cat >conftest.
$ac_ext <<_ACEOF
16753 cat confdefs.h
>>conftest.
$ac_ext
16754 cat >>conftest.
$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16763 char tone_zone_find ();
16767 return tone_zone_find ();
16772 rm -f conftest.
$ac_objext conftest
$ac_exeext
16773 if { (ac_try
="$ac_link"
16774 case "(($ac_try" in
16775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787 { (case "(($ac_try" in
16788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16789 *) ac_try_echo
=$ac_try;;
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_try") 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try
='test -s conftest$ac_exeext'
16797 { (case "(($ac_try" in
16798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_try") 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 ac_cv_lib_tonezone_tone_zone_find=yes
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 ac_cv_lib_tonezone_tone_zone_find=no
16814 rm -f conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 LIBS=$ac_check_lib_save_LIBS
16818 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
16819 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
16820 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
16821 AST_ZAPTEL_FOUND=yes
16823 AST_ZAPTEL_FOUND=no
16827 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
16828 ZAPTEL_LIB="-ltonezone -lm"
16829 ZAPTEL_HEADER_FOUND="1"
16830 if test "x${ZAPTEL_DIR}" != "x"; then
16831 ZAPTEL_LIB="${pbxlibdir} ${ZAPTEL_LIB}"
16832 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
16833 if test "xzaptel.h" != "x" ; then
16834 as_ac_Header=`echo "ac_cv_header_${ZAPTEL_DIR}/include/zaptel.h" |
$as_tr_sh`
16835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/zaptel.h" >&5
16837 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/zaptel.h... $ECHO_C" >&6; }
16838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 ac_res=`eval echo '${'$as_ac_Header'}'`
16842 { echo "$as_me:$LINENO: result: $ac_res" >&5
16843 echo "${ECHO_T}$ac_res" >&6; }
16845 # Is the header compilable?
16846 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/zaptel.h usability" >&5
16847 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/zaptel.h usability... $ECHO_C" >&6; }
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 $ac_includes_default
16855 #include <${ZAPTEL_DIR}/include/zaptel.h>
16857 rm -f conftest.$ac_objext
16858 if { (ac_try="$ac_compile"
16859 case "(($ac_try" in
16860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16861 *) ac_try_echo
=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_compile") 2>conftest.er1
16866 grep -v '^ *+' conftest.er1
>conftest.err
16868 cat conftest.err
>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16872 { (case "(($ac_try" in
16873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_try") 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest.$ac_objext'
16882 { (case "(($ac_try" in
16883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16884 *) ac_try_echo
=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_try") 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_header_compiler
=yes
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.
$ac_ext >&5
16896 ac_header_compiler
=no
16899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16901 echo "${ECHO_T}$ac_header_compiler" >&6; }
16903 # Is the header present?
16904 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/zaptel.h presence" >&5
16905 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/zaptel.h presence... $ECHO_C" >&6; }
16906 cat >conftest.
$ac_ext <<_ACEOF
16909 cat confdefs.h
>>conftest.
$ac_ext
16910 cat >>conftest.
$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 #include <${ZAPTEL_DIR}/include/zaptel.h>
16914 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16915 case "(($ac_try" in
16916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } >/dev/null; then
16927 if test -s conftest.err; then
16928 ac_cpp_err=$ac_c_preproc_warn_flag
16929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16936 if test -z "$ac_cpp_err"; then
16937 ac_header_preproc=yes
16939 echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16942 ac_header_preproc=no
16945 rm -f conftest.err conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16947 echo "${ECHO_T}$ac_header_preproc" >&6; }
16949 # So? What about this header?
16950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16952 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16953 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the compiler's result" >&5
16955 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the compiler's result" >&2;}
16956 ac_header_preproc=yes
16959 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: present but cannot be compiled" >&5
16960 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: present but cannot be compiled" >&2;}
16961 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: check for missing prerequisite headers?" >&5
16962 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: check for missing prerequisite headers?" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: see the Autoconf documentation" >&5
16964 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: see the Autoconf documentation" >&2;}
16965 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
16966 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16967 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the preprocessor's result" >&5
16968 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the preprocessor's result" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: in the future, the compiler will take precedence" >&5
16970 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: in the future, the compiler will take precedence" >&2;}
16974 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/zaptel.h" >&5
16975 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/zaptel.h... $ECHO_C" >&6; }
16976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 eval "$as_ac_Header=\$ac_header_preproc"
16981 ac_res=`eval echo '${'$as_ac_Header'}'`
16982 { echo "$as_me:$LINENO: result: $ac_res" >&5
16983 echo "${ECHO_T}$ac_res" >&6; }
16986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987 ZAPTEL_HEADER_FOUND=1
16989 ZAPTEL_HEADER_FOUND=0
16995 if test "xzaptel.h" != "x" ; then
16996 if test "${ac_cv_header_zaptel_h+set}" = set; then
16997 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
16998 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
16999 if test "${ac_cv_header_zaptel_h+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
17003 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
17005 # Is the header compilable?
17006 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
17007 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 $ac_includes_default
17015 #include <zaptel.h>
17017 rm -f conftest.$ac_objext
17018 if { (ac_try="$ac_compile"
17019 case "(($ac_try" in
17020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17021 *) ac_try_echo
=$ac_try;;
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17026 grep -v '^ *+' conftest.er1
>conftest.err
17028 cat conftest.err
>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17032 { (case "(($ac_try" in
17033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_try") 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (case "(($ac_try" in
17043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17044 *) ac_try_echo
=$ac_try;;
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_try") 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_header_compiler
=yes
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.
$ac_ext >&5
17056 ac_header_compiler
=no
17059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17061 echo "${ECHO_T}$ac_header_compiler" >&6; }
17063 # Is the header present?
17064 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
17065 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
17066 cat >conftest.
$ac_ext <<_ACEOF
17069 cat confdefs.h
>>conftest.
$ac_ext
17070 cat >>conftest.
$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 #include <zaptel.h>
17074 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17075 case "(($ac_try" in
17076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17082 grep -v '^ *+' conftest.er1 >conftest.err
17084 cat conftest.err >&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } >/dev/null; then
17087 if test -s conftest.err; then
17088 ac_cpp_err=$ac_c_preproc_warn_flag
17089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17096 if test -z "$ac_cpp_err"; then
17097 ac_header_preproc=yes
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 ac_header_preproc=no
17105 rm -f conftest.err conftest.$ac_ext
17106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17107 echo "${ECHO_T}$ac_header_preproc" >&6; }
17109 # So? What about this header?
17110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17112 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17113 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
17115 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
17116 ac_header_preproc=yes
17119 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
17120 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
17121 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
17122 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
17124 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
17126 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
17128 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
17130 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
17134 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
17135 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
17136 if test "${ac_cv_header_zaptel_h+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 ac_cv_header_zaptel_h=$ac_header_preproc
17141 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
17142 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
17145 if test $ac_cv_header_zaptel_h = yes; then
17146 ZAPTEL_HEADER_FOUND=1
17148 ZAPTEL_HEADER_FOUND=0
17154 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
17155 if test ! -z "${ZAPTEL_MANDATORY}" ;
17158 echo " *** It appears that you do not have the tonezone development package installed."
17159 echo " *** Please install it to include Zaptel support, or re-run configure"
17160 echo " *** without explicitly specifying --with-tonezone"
17169 cat >>confdefs.h <<_ACEOF
17170 #define HAVE_ZAPTEL 1
17174 elif test ! -z "${ZAPTEL_MANDATORY}";
17177 echo "*** The Zaptel installation on this system appears to be broken."
17178 echo "*** Either correct the installation, or run configure"
17179 echo "*** without explicity specifying --with-tonezone"
17192 # Check whether --with-gsm was given.
17193 if test "${with_gsm+set}" = set; then
17205 GSM_DIR="${withval}"
17215 if test "${USE_GSM}" != "no"; then
17216 if test "${GSM_SYSTEM}" = "yes"; then
17218 if test "x${GSM_DIR}" != "x"; then
17219 gsmlibdir="-L${GSM_DIR}/lib"
17221 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17222 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17223 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-lgsm ${gsmlibdir} $LIBS"
17228 cat >conftest.$ac_ext <<_ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17235 /* Override any GCC internal prototype to avoid an error.
17236 Use char because int might match the return type of a GCC
17237 builtin and then its argument prototype would still apply. */
17241 char gsm_create ();
17245 return gsm_create ();
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17254 *) ac_try_echo
=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1
>conftest.err
17261 cat conftest.err
>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17265 { (case "(($ac_try" in
17266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest$ac_exeext'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17277 *) ac_try_echo
=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_lib_gsm_gsm_create
=yes
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.
$ac_ext >&5
17289 ac_cv_lib_gsm_gsm_create
=no
17292 rm -f conftest.err conftest.
$ac_objext \
17293 conftest
$ac_exeext conftest.
$ac_ext
17294 LIBS
=$ac_check_lib_save_LIBS
17296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17297 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17298 if test $ac_cv_lib_gsm_gsm_create = yes; then
17300 cat >>confdefs.h
<<_ACEOF
17306 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17308 if test "x${GSM_DIR}" != "x"; then
17309 gsm_LIB
="${gsmlibdir} ${gsm_LIB}"
17310 gsm_INCLUDE
="-I${GSM_DIR}/include"
17316 if test "${GSM_INTERNAL}" = "yes"; then
17320 if test "x${PBX_LIBgsm}" = "x0"; then
17322 echo "*** The GSM installation on this system appears to be broken."
17323 echo "*** Either correct the installation, or run configure"
17324 echo "*** including --without-gsm"
17334 # Check whether --with-pq was given.
17335 if test "${with_pq+set}" = set; then
17345 PQ_DIR
="${withval}"
17355 if test "${USE_PQ}" != "no"; then
17356 if test "x${PQ_DIR}" != "x"; then
17357 if test -n "$ac_tool_prefix"; then
17358 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
17359 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
17360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17362 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
17370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17371 for as_dir
in ${PQ_DIR}/bin
17374 test -z "$as_dir" && as_dir
=.
17375 for ac_exec_ext
in '' $ac_executable_extensions; do
17376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17377 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17388 PG_CONFIG
=$ac_cv_path_PG_CONFIG
17389 if test -n "$PG_CONFIG"; then
17390 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
17391 echo "${ECHO_T}$PG_CONFIG" >&6; }
17393 { echo "$as_me:$LINENO: result: no" >&5
17394 echo "${ECHO_T}no" >&6; }
17399 if test -z "$ac_cv_path_PG_CONFIG"; then
17400 ac_pt_PG_CONFIG
=$PG_CONFIG
17401 # Extract the first word of "pg_config", so it can be a program name with args.
17402 set dummy pg_config
; ac_word
=$2
17403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17405 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 case $ac_pt_PG_CONFIG in
17410 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
17413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17414 for as_dir
in ${PQ_DIR}/bin
17417 test -z "$as_dir" && as_dir
=.
17418 for ac_exec_ext
in '' $ac_executable_extensions; do
17419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17420 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17431 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
17432 if test -n "$ac_pt_PG_CONFIG"; then
17433 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
17434 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
17436 { echo "$as_me:$LINENO: result: no" >&5
17437 echo "${ECHO_T}no" >&6; }
17440 if test "x$ac_pt_PG_CONFIG" = x
; then
17443 case $cross_compiling:$ac_tool_warned in
17445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17446 whose name does not start with the host triplet. If you think this
17447 configuration is useful to you, please write to autoconf@gnu.org." >&5
17448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17449 whose name does not start with the host triplet. If you think this
17450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17451 ac_tool_warned
=yes ;;
17453 PG_CONFIG
=$ac_pt_PG_CONFIG
17456 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
17459 if test x
"${PG_CONFIG}" = xNo
; then
17461 echo "*** pg_config was not found in the path you specified:"
17462 echo "*** ${PQ_DIR}/bin"
17463 echo "*** Either correct the installation, or run configure"
17464 echo "*** including --without-pq"
17468 if test -n "$ac_tool_prefix"; then
17469 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
17470 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
17471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17473 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
17481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17482 for as_dir
in $PATH
17485 test -z "$as_dir" && as_dir
=.
17486 for ac_exec_ext
in '' $ac_executable_extensions; do
17487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17488 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17499 PG_CONFIG
=$ac_cv_path_PG_CONFIG
17500 if test -n "$PG_CONFIG"; then
17501 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
17502 echo "${ECHO_T}$PG_CONFIG" >&6; }
17504 { echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6; }
17510 if test -z "$ac_cv_path_PG_CONFIG"; then
17511 ac_pt_PG_CONFIG
=$PG_CONFIG
17512 # Extract the first word of "pg_config", so it can be a program name with args.
17513 set dummy pg_config
; ac_word
=$2
17514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17516 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 case $ac_pt_PG_CONFIG in
17521 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
17524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17525 for as_dir
in $PATH
17528 test -z "$as_dir" && as_dir
=.
17529 for ac_exec_ext
in '' $ac_executable_extensions; do
17530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17531 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17542 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
17543 if test -n "$ac_pt_PG_CONFIG"; then
17544 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
17545 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
17547 { echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6; }
17551 if test "x$ac_pt_PG_CONFIG" = x
; then
17554 case $cross_compiling:$ac_tool_warned in
17556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17557 whose name does not start with the host triplet. If you think this
17558 configuration is useful to you, please write to autoconf@gnu.org." >&5
17559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17560 whose name does not start with the host triplet. If you think this
17561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17562 ac_tool_warned
=yes ;;
17564 PG_CONFIG
=$ac_pt_PG_CONFIG
17567 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
17573 if test x
"${PG_CONFIG}" != xNo
; then
17574 PQ_libdir
=`pg_config --libdir`
17575 PQ_includedir
=`pg_config --includedir`
17577 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
17578 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
17579 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 ac_check_lib_save_LIBS
=$LIBS
17583 LIBS
="-lpq -L${PQ_libdir} -lz $LIBS"
17584 cat >conftest.
$ac_ext <<_ACEOF
17587 cat confdefs.h
>>conftest.
$ac_ext
17588 cat >>conftest.
$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17606 rm -f conftest.
$ac_objext conftest
$ac_exeext
17607 if { (ac_try
="$ac_link"
17608 case "(($ac_try" in
17609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17623 *) ac_try_echo
=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try
='test -s conftest$ac_exeext'
17631 { (case "(($ac_try" in
17632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_try") 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 ac_cv_lib_pq_PQexec=yes
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_cv_lib_pq_PQexec=no
17648 rm -f conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
17650 LIBS=$ac_check_lib_save_LIBS
17652 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
17653 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
17654 if test $ac_cv_lib_pq_PQexec = yes; then
17656 cat >>confdefs.h <<_ACEOF
17663 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
17664 pq_LIB="-L${PQ_libdir} -lpq -lz"
17665 pq_INCLUDE="-I${PQ_includedir}"
17667 elif test ! -z "${PQ_MANDATORY}";
17670 echo "*** The PostgreSQL installation on this system appears to be broken."
17671 echo "*** Either correct the installation, or run configure"
17672 echo "*** including --without-pq"
17680 if test "${ac_cv_header_h323_h+set}" = set; then
17681 { echo "$as_me:$LINENO: checking for h323.h" >&5
17682 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
17683 if test "${ac_cv_header_h323_h+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
17687 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
17689 # Is the header compilable?
17690 { echo "$as_me:$LINENO: checking h323.h usability" >&5
17691 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
17692 cat >conftest.$ac_ext <<_ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 $ac_includes_default
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17705 *) ac_try_echo
=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1
>conftest.err
17712 cat conftest.err
>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17728 *) ac_try_echo
=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_header_compiler
=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.
$ac_ext >&5
17740 ac_header_compiler
=no
17743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17745 echo "${ECHO_T}$ac_header_compiler" >&6; }
17747 # Is the header present?
17748 { echo "$as_me:$LINENO: checking h323.h presence" >&5
17749 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
17750 cat >conftest.
$ac_ext <<_ACEOF
17753 cat confdefs.h
>>conftest.
$ac_ext
17754 cat >>conftest.
$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17758 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17759 case "(($ac_try" in
17760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17766 grep -v '^ *+' conftest.er1 >conftest.err
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } >/dev/null; then
17771 if test -s conftest.err; then
17772 ac_cpp_err=$ac_c_preproc_warn_flag
17773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17780 if test -z "$ac_cpp_err"; then
17781 ac_header_preproc=yes
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_header_preproc=no
17789 rm -f conftest.err conftest.$ac_ext
17790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17791 echo "${ECHO_T}$ac_header_preproc" >&6; }
17793 # So? What about this header?
17794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17796 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
17797 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
17799 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
17800 ac_header_preproc=yes
17803 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
17804 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
17806 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
17808 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
17810 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
17812 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
17813 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
17814 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
17818 { echo "$as_me:$LINENO: checking for h323.h" >&5
17819 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
17820 if test "${ac_cv_header_h323_h+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 ac_cv_header_h323_h=$ac_header_preproc
17825 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
17826 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
17829 if test $ac_cv_header_h323_h = yes; then
17838 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
17839 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
17840 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17850 #include <linux/version.h>
17851 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
17852 #include <linux/compiler.h>
17856 #include <linux/ixjuser.h>
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17862 *) ac_try_echo
=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17867 grep -v '^ *+' conftest.er1
>conftest.err
17869 cat conftest.err
>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873 { (case "(($ac_try" in
17874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17885 *) ac_try_echo
=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_header_linux_ixjuser_h
=yes
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.
$ac_ext >&5
17897 ac_cv_header_linux_ixjuser_h
=no
17900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17902 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
17903 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
17904 if test $ac_cv_header_linux_ixjuser_h = yes; then
17914 ac_cpp
='$CXXCPP $CPPFLAGS'
17915 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17921 # Check whether --with-vpb was given.
17922 if test "${with_vpb+set}" = set; then
17927 VPB_MANDATORY
="yes"
17932 VPB_DIR
="${withval}"
17933 VPB_MANDATORY
="yes"
17939 if test "${USE_VPB}" != "no"; then
17940 echo -n "checking for vpb_open in -lvpb... "
17941 saved_libs
="${LIBS}"
17942 saved_cppflags
="${CPPFLAGS}"
17943 if test "x${VPB_DIR}" != "x"; then
17944 LIBS
="${LIBS} -L${VPB_DIR}/lib"
17945 CPPFLAGS
="${CPPFLAGS} -I${VPB_DIR}/include"
17947 LIBS
="${LIBS} -lvpb -lpthread"
17949 cat >conftest.
$ac_ext <<_ACEOF
17953 cat confdefs.h
>>conftest.
$ac_ext
17954 cat >>conftest.
$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <vpbapi.h>
17960 int q = vpb_open(0,0);
17966 rm -f conftest.
$ac_objext conftest
$ac_exeext
17967 if { (ac_try
="$ac_link"
17968 case "(($ac_try" in
17969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17975 grep -v '^ *+' conftest.er1 >conftest.err
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
17990 { ac_try
='test -s conftest$ac_exeext'
17991 { (case "(($ac_try" in
17992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 { echo "$as_me:$LINENO: result: yes" >&5
18001 echo "${ECHO_T}yes" >&6; }
18002 ac_cv_lib_vpb_vpb_open="yes"
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18010 ac_cv_lib_vpb_vpb_open="no"
18015 rm -f conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS="${saved_libs}"
18018 CPPFLAGS="${saved_cppflags}"
18020 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
18022 if test "${VPB_DIR}" != ""; then
18023 VPB_LIB="-L${VPB_DIR}/lib ${VPB_LIB}"
18024 VPB_INCLUDE="-I${VPB_DIR}/include"
18030 cat >>confdefs.h <<\_ACEOF
18031 #define HAVE_LIBVPB 1
18034 elif test ! -z "${VPB_MANDATORY}";
18037 echo "*** The VoiceTronix (vpb) installation on this system appears to be broken."
18038 echo "*** Either correct the installation, or run configure"
18039 echo "*** including --without-vpb."
18046 # Check whether --with-qt was given.
18047 if test "${with_qt+set}" = set; then
18057 QT_DIR="${withval}"
18066 if test "${USE_QT}" != "no"; then
18067 echo -n "checking for QDate in -lqt... "
18068 saved_libs="${LIBS}"
18069 saved_cppflags="${CPPFLAGS}"
18070 if test "x${QT_DIR}" != "x"; then
18071 LIBS="${LIBS} -L${QT_DIR}/lib"
18072 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
18074 LIBS="${LIBS} -lqt"
18076 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <qt3/qdatetime.h>
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18097 *) ac_try_echo
=$ac_try;;
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_link") 2>conftest.er1
18102 grep -v '^ *+' conftest.er1
>conftest.err
18104 cat conftest.err
>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18108 { (case "(($ac_try" in
18109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest$ac_exeext'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18120 *) ac_try_echo
=$ac_try;;
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_lib_qt_qt_date
="yes"
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.
$ac_ext >&5
18132 ac_cv_lib_qt_qt_date
="no"
18135 rm -f conftest.err conftest.
$ac_objext \
18136 conftest
$ac_exeext conftest.
$ac_ext
18137 LIBS
="${saved_libs}"
18138 CPPFLAGS
="${saved_cppflags}"
18140 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
18141 saved_libs
="${LIBS}"
18142 saved_cppflags
="${CPPFLAGS}"
18143 if test "x${QT_DIR}" != "x"; then
18144 LIBS
="${LIBS} -L${QT_DIR}/lib"
18145 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
18147 LIBS
="${LIBS} -lqt-mt"
18149 cat >conftest.
$ac_ext <<_ACEOF
18153 cat confdefs.h
>>conftest.
$ac_ext
18154 cat >>conftest.
$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <qt3/qdatetime.h>
18166 rm -f conftest.
$ac_objext conftest
$ac_exeext
18167 if { (ac_try
="$ac_link"
18168 case "(($ac_try" in
18169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_link") 2>conftest.er1
18175 grep -v '^ *+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
18180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18183 *) ac_try_echo
=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try
='test -s conftest$ac_exeext'
18191 { (case "(($ac_try" in
18192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 ac_cv_lib_qt_qt_date="yes"
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_cv_lib_qt_qt_date="no"
18208 rm -f conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 LIBS="${saved_libs}"
18211 CPPFLAGS="${saved_cppflags}"
18214 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
18215 { echo "$as_me:$LINENO: result: yes" >&5
18216 echo "${ECHO_T}yes" >&6; }
18218 { echo "$as_me:$LINENO: result: no" >&5
18219 echo "${ECHO_T}no" >&6; }
18222 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
18223 QT_LIB="-l${qtlib}"
18224 if test "${QT_DIR}" != ""; then
18225 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
18226 QT_INCLUDE="-I${QT_DIR}/include"
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_LIBQT 1
18236 if test -n "$ac_tool_prefix"; then
18237 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18238 set dummy ${ac_tool_prefix}moc; ac_word=$2
18239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18241 if test "${ac_cv_path_QTMOC+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
18249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18250 for as_dir in $PATH
18253 test -z "$as_dir" && as_dir=.
18254 for ac_exec_ext in '' $ac_executable_extensions; do
18255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18256 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
18257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18267 QTMOC=$ac_cv_path_QTMOC
18268 if test -n "$QTMOC"; then
18269 { echo "$as_me:$LINENO: result: $QTMOC" >&5
18270 echo "${ECHO_T}$QTMOC" >&6; }
18272 { echo "$as_me:$LINENO: result: no" >&5
18273 echo "${ECHO_T}no" >&6; }
18278 if test -z "$ac_cv_path_QTMOC"; then
18280 # Extract the first word of "moc", so it can be a program name with args.
18281 set dummy moc; ac_word=$2
18282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18284 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 case $ac_pt_QTMOC in
18289 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
18292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18293 for as_dir in $PATH
18296 test -z "$as_dir" && as_dir=.
18297 for ac_exec_ext in '' $ac_executable_extensions; do
18298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18299 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
18300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18310 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
18311 if test -n "$ac_pt_QTMOC"; then
18312 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
18313 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
18315 { echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6; }
18319 if test "x$ac_pt_QTMOC" = x; then
18322 case $cross_compiling:$ac_tool_warned in
18324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18325 whose name does not start with the host triplet. If you think this
18326 configuration is useful to you, please write to autoconf@gnu.org." >&5
18327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18328 whose name does not start with the host triplet. If you think this
18329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18330 ac_tool_warned=yes ;;
18335 QTMOC="$ac_cv_path_QTMOC"
18338 elif test ! -z "${QT_MANDATORY}";
18341 echo "*** The Qt installation on this system appears to be broken."
18342 echo "*** Either correct the installation, or run configure"
18343 echo "*** including --without-qt."
18350 # Check whether --with-kde was given.
18351 if test "${with_kde+set}" = set; then
18356 KDE_MANDATORY="yes"
18361 KDE_DIR="${withval}"
18362 KDE_MANDATORY="yes"
18370 if test "${USE_KDE}" != "no"; then
18371 echo -n "checking for crashHandler in -lkdecore... "
18372 saved_ldflags="${LDFLAGS}"
18373 LDFLAGS="-I${KDE_DIR}/include ${LDFLAGS} -L${KDE_DIR}/lib -lkdecore"
18374 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include "kcrash.h"
18385 KCrash::defaultCrashHandler(1);
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18395 *) ac_try_echo
=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_link") 2>conftest.er1
18400 grep -v '^ *+' conftest.er1
>conftest.err
18402 cat conftest.err
>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18406 { (case "(($ac_try" in
18407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_try") 2>&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest$ac_exeext'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18418 *) ac_try_echo
=$ac_try;;
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 ac_cv_lib_kde_crash
="yes"
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.
$ac_ext >&5
18430 ac_cv_lib_kde_crash
="no"
18433 rm -f conftest.err conftest.
$ac_objext \
18434 conftest
$ac_exeext conftest.
$ac_ext
18436 LDFLAGS
="${saved_ldflags}"
18438 if test "${ac_cv_lib_kde_crash}" = "yes"; then
18439 { echo "$as_me:$LINENO: result: yes" >&5
18440 echo "${ECHO_T}yes" >&6; }
18442 { echo "$as_me:$LINENO: result: no" >&5
18443 echo "${ECHO_T}no" >&6; }
18446 if test "${ac_cv_lib_kde_crash}" = "yes"; then
18447 KDE_LIBS
="-lkdecore -lkdeui"
18448 if test "${KDE_DIR}" != ""; then
18449 KDE_LIBS
="-L${KDE_DIR}/lib ${KDE_LIBS}"
18450 KDE_INCLUDE
="-I${KDE_DIR}/include"
18456 cat >>confdefs.h
<<\_ACEOF
18457 #define HAVE_LIBKDE 1
18460 elif test ! -z "${KDE_MANDATORY}";
18463 echo "*** The KDE installation on this system appears to be broken."
18464 echo "*** Either correct the installation, or run configure"
18465 echo "*** including --without-kde."
18471 if test x
"${PBX_KDE}" = x1
; then
18472 if test -n "$ac_tool_prefix"; then
18473 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
18474 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_path_KDEINIT+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
18485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18486 for as_dir
in $PATH
18489 test -z "$as_dir" && as_dir
=.
18490 for ac_exec_ext
in '' $ac_executable_extensions; do
18491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18492 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
18493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18503 KDEINIT
=$ac_cv_path_KDEINIT
18504 if test -n "$KDEINIT"; then
18505 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
18506 echo "${ECHO_T}$KDEINIT" >&6; }
18508 { echo "$as_me:$LINENO: result: no" >&5
18509 echo "${ECHO_T}no" >&6; }
18514 if test -z "$ac_cv_path_KDEINIT"; then
18515 ac_pt_KDEINIT
=$KDEINIT
18516 # Extract the first word of "kdeinit", so it can be a program name with args.
18517 set dummy kdeinit
; ac_word
=$2
18518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18520 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 case $ac_pt_KDEINIT in
18525 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
18528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18529 for as_dir
in $PATH
18532 test -z "$as_dir" && as_dir
=.
18533 for ac_exec_ext
in '' $ac_executable_extensions; do
18534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18535 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18546 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
18547 if test -n "$ac_pt_KDEINIT"; then
18548 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
18549 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
18551 { echo "$as_me:$LINENO: result: no" >&5
18552 echo "${ECHO_T}no" >&6; }
18555 if test "x$ac_pt_KDEINIT" = x
; then
18558 case $cross_compiling:$ac_tool_warned in
18560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18561 whose name does not start with the host triplet. If you think this
18562 configuration is useful to you, please write to autoconf@gnu.org." >&5
18563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18564 whose name does not start with the host triplet. If you think this
18565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18566 ac_tool_warned
=yes ;;
18568 KDEINIT
=$ac_pt_KDEINIT
18571 KDEINIT
="$ac_cv_path_KDEINIT"
18574 if test ! x
"${KDEINIT}" = xNo
; then
18575 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
18576 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
18582 ac_cpp
='$CPP $CPPFLAGS'
18583 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18589 if test -n "$ac_tool_prefix"; then
18590 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
18591 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
18592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18594 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 if test -n "$GTKCONFIG"; then
18598 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
18600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18601 for as_dir
in $PATH
18604 test -z "$as_dir" && as_dir
=.
18605 for ac_exec_ext
in '' $ac_executable_extensions; do
18606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18607 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
18608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18617 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
18618 if test -n "$GTKCONFIG"; then
18619 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
18620 echo "${ECHO_T}$GTKCONFIG" >&6; }
18622 { echo "$as_me:$LINENO: result: no" >&5
18623 echo "${ECHO_T}no" >&6; }
18628 if test -z "$ac_cv_prog_GTKCONFIG"; then
18629 ac_ct_GTKCONFIG
=$GTKCONFIG
18630 # Extract the first word of "gtk-config", so it can be a program name with args.
18631 set dummy gtk-config
; ac_word
=$2
18632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18634 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 if test -n "$ac_ct_GTKCONFIG"; then
18638 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
18640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18641 for as_dir
in $PATH
18644 test -z "$as_dir" && as_dir
=.
18645 for ac_exec_ext
in '' $ac_executable_extensions; do
18646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18647 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
18648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18657 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
18658 if test -n "$ac_ct_GTKCONFIG"; then
18659 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
18660 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
18662 { echo "$as_me:$LINENO: result: no" >&5
18663 echo "${ECHO_T}no" >&6; }
18666 if test "x$ac_ct_GTKCONFIG" = x
; then
18669 case $cross_compiling:$ac_tool_warned in
18671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18672 whose name does not start with the host triplet. If you think this
18673 configuration is useful to you, please write to autoconf@gnu.org." >&5
18674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18675 whose name does not start with the host triplet. If you think this
18676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18677 ac_tool_warned
=yes ;;
18679 GTKCONFIG
=$ac_ct_GTKCONFIG
18682 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
18685 if test ! "x${GTKCONFIG}" = xNo
; then
18686 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
18687 GTK_LIBS
=$
(${GTKCONFIG} --libs gthread
)
18690 cat >>confdefs.h
<<\_ACEOF
18699 PLATFORM_PTLIB
="ptlib_${OSTYPE}_${MACHTYPE}_r"
18702 # Check whether --with-pwlib was given.
18703 if test "${with_pwlib+set}" = set; then
18704 withval
=$with_pwlib;
18712 PWLIB_DIR
="${withval}"
18718 if test "${USE_PWLIB}" != "no"; then
18719 echo -n "checking for existence of pwlib... "
18721 saved_ldflags
="${LDFLAGS}"
18722 LDFLAGS
="${LDFLAGS} -L${PWLIB_DIR} -l${PLATFORM_PTLIB}"
18724 cat >conftest.
$ac_ext <<_ACEOF
18728 cat confdefs.h
>>conftest.
$ac_ext
18729 cat >>conftest.
$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include "${PWDIR_DIR}ptime.h"
18735 int q = PTime::IsDaylightSaving();
18741 rm -f conftest.
$ac_objext conftest
$ac_exeext
18742 if { (ac_try
="$ac_link"
18743 case "(($ac_try" in
18744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18758 *) ac_try_echo
=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try
='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 { echo "$as_me:$LINENO: result: yes" >&5
18776 echo "${ECHO_T}yes" >&6; }
18777 ac_cv_lib_pwlib="yes"
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 { echo "$as_me:$LINENO: result: no" >&5
18784 echo "${ECHO_T}no" >&6; }
18785 ac_cv_lib_pwlib="no"
18790 rm -f conftest.err conftest.$ac_objext \
18791 conftest$ac_exeext conftest.$ac_ext
18792 LDFLAGS="${saved_ldflags}"
18796 if test "${ac_cv_lib_pwlib}" = "yes"; then
18797 PWLIB_LIB="-l{PLATFORM_PWLIB}"
18798 if test "${PWLIB_DIR}" != ""; then
18799 PWLIB_LIB="-L${PWLIB_DIR}/lib ${PWLIB_LIB}"
18800 PWLIB_INCLUDE="-I${PWLIB_DIR}/include"
18806 cat >>confdefs.h <<\_ACEOF
18807 #define HAVE_LIBPWLIB 1
18810 elif test ! -z "${PWLIB_DIR}";
18813 echo "*** The PWLIB installation on this system appears to be broken."
18814 echo "*** Either correct the installation, or run configure"
18815 echo "*** including --without-pwlib"
18822 if test -n "$ac_tool_prefix"; then
18823 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
18824 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
18825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18827 if test "${ac_cv_path_CURL+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
18835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18836 for as_dir in $PATH
18839 test -z "$as_dir" && as_dir=.
18840 for ac_exec_ext in '' $ac_executable_extensions; do
18841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18842 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
18843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853 CURL=$ac_cv_path_CURL
18854 if test -n "$CURL"; then
18855 { echo "$as_me:$LINENO: result: $CURL" >&5
18856 echo "${ECHO_T}$CURL" >&6; }
18858 { echo "$as_me:$LINENO: result: no" >&5
18859 echo "${ECHO_T}no" >&6; }
18864 if test -z "$ac_cv_path_CURL"; then
18866 # Extract the first word of "curl-config", so it can be a program name with args.
18867 set dummy curl-config; ac_word=$2
18868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18870 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 case $ac_pt_CURL in
18875 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
18878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18879 for as_dir in $PATH
18882 test -z "$as_dir" && as_dir=.
18883 for ac_exec_ext in '' $ac_executable_extensions; do
18884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18885 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
18886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18896 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
18897 if test -n "$ac_pt_CURL"; then
18898 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
18899 echo "${ECHO_T}$ac_pt_CURL" >&6; }
18901 { echo "$as_me:$LINENO: result: no" >&5
18902 echo "${ECHO_T}no" >&6; }
18905 if test "x$ac_pt_CURL" = x; then
18908 case $cross_compiling:$ac_tool_warned in
18910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18911 whose name does not start with the host triplet. If you think this
18912 configuration is useful to you, please write to autoconf@gnu.org." >&5
18913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18914 whose name does not start with the host triplet. If you think this
18915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18916 ac_tool_warned=yes ;;
18921 CURL="$ac_cv_path_CURL"
18924 if test ! x"${CURL}" = xNo; then
18925 # check for version
18926 CURLLIBS=$(${CURL} --libs)
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_CURL 1
18937 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18938 # for constant arguments. Useless!
18939 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
18940 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
18941 if test "${ac_cv_working_alloca_h+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 cat >conftest.$ac_ext <<_ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 #include <alloca.h>
18954 char *p = (char *) alloca (2 * sizeof (int));
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18963 *) ac_try_echo
=$ac_try;;
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_link") 2>conftest.er1
18968 grep -v '^ *+' conftest.er1
>conftest.err
18970 cat conftest.err
>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18974 { (case "(($ac_try" in
18975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (case "(($ac_try" in
18985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18986 *) ac_try_echo
=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_try") 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_working_alloca_h
=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.
$ac_ext >&5
18998 ac_cv_working_alloca_h
=no
19001 rm -f conftest.err conftest.
$ac_objext \
19002 conftest
$ac_exeext conftest.
$ac_ext
19004 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19005 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19006 if test $ac_cv_working_alloca_h = yes; then
19008 cat >>confdefs.h
<<\_ACEOF
19009 #define HAVE_ALLOCA_H 1
19014 { echo "$as_me:$LINENO: checking for alloca" >&5
19015 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19016 if test "${ac_cv_func_alloca_works+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 cat >conftest.
$ac_ext <<_ACEOF
19022 cat confdefs.h
>>conftest.
$ac_ext
19023 cat >>conftest.
$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19026 # define alloca __builtin_alloca
19029 # include <malloc.h>
19030 # define alloca _alloca
19033 # include <alloca.h>
19038 # ifndef alloca /* predefined by HP cc +Olibcalls */
19049 char *p = (char *) alloca (1);
19054 rm -f conftest.
$ac_objext conftest
$ac_exeext
19055 if { (ac_try
="$ac_link"
19056 case "(($ac_try" in
19057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_link") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19071 *) ac_try_echo
=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try
='test -s conftest$ac_exeext'
19079 { (case "(($ac_try" in
19080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_func_alloca_works=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_func_alloca_works=no
19096 rm -f conftest.err conftest.$ac_objext \
19097 conftest$ac_exeext conftest.$ac_ext
19099 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19102 if test $ac_cv_func_alloca_works = yes; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_ALLOCA 1
19109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19110 # that cause trouble. Some versions do not even contain alloca or
19111 # contain a buggy version. If you still want to use their alloca,
19112 # use ar to extract alloca.o from them instead of compiling alloca.c.
19114 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19116 cat >>confdefs.h <<\_ACEOF
19121 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
19122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
19123 if test "${ac_cv_os_cray+set}" = set; then
19124 echo $ECHO_N "(cached
) $ECHO_C" >&6
19126 cat >conftest.$ac_ext <<_ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 #if defined CRAY && ! defined CRAY2
19139 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19140 $EGREP "webecray
" >/dev/null 2>&1; then
19148 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
19149 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19150 if test $ac_cv_os_cray = yes; then
19151 for ac_func in _getb67 GETB67 getb67; do
19152 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19153 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19154 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19155 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19156 echo $ECHO_N "(cached
) $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19166 #define $ac_func innocuous_$ac_func
19168 /* System header to define __stub macros and hopefully few prototypes,
19169 which can conflict with char $ac_func (); below.
19170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19171 <limits.h> exists even on freestanding compilers. */
19174 # include <limits.h>
19176 # include <assert.h>
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19188 /* The GNU C library defines this for functions which it implements
19189 to always fail with ENOSYS. Some functions are actually named
19190 something starting with __ and the normal name is an alias. */
19191 #if defined __stub_$ac_func || defined __stub___$ac_func
19198 return $ac_func ();
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_try") 2>&5
19235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 eval "$as_ac_var=yes"
19239 echo "$as_me: failed program was
:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 eval "$as_ac_var=no
"
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19248 ac_res=`eval echo '${'$as_ac_var'}'`
19249 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19250 echo "${ECHO_T}$ac_res" >&6; }
19251 if test `eval echo '${'$as_ac_var'}'` = yes; then
19253 cat >>confdefs.h <<_ACEOF
19254 #define CRAY_STACKSEG_END $ac_func
19263 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
19264 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
19265 if test "${ac_cv_c_stack_direction+set}" = set; then
19266 echo $ECHO_N "(cached
) $ECHO_C" >&6
19268 if test "$cross_compiling" = yes; then
19269 ac_cv_c_stack_direction=0
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19279 find_stack_direction ()
19281 static char *addr = 0;
19286 return find_stack_direction ();
19289 return (&dummy > addr) ? 1 : -1;
19295 return find_stack_direction () < 0;
19298 rm -f conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_link") 2>&5
19307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19309 { (case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_try") 2>&5
19316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_c_stack_direction=1
19320 echo "$as_me: program exited with status
$ac_status" >&5
19321 echo "$as_me: failed program was
:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ( exit $ac_status )
19325 ac_cv_c_stack_direction=-1
19327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19332 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
19333 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19335 cat >>confdefs.h <<_ACEOF
19336 #define STACK_DIRECTION $ac_cv_c_stack_direction
19347 ac_header_dirent=no
19348 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19349 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
19350 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
19351 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
19352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19353 echo $ECHO_N "(cached
) $ECHO_C" >&6
19355 cat >conftest.$ac_ext <<_ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 #include <sys/types.h>
19373 rm -f conftest.$ac_objext
19374 if { (ac_try="$ac_compile"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_compile") 2>conftest.er1
19382 grep -v '^ *+' conftest.er1 >conftest.err
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_try") 2>&5
19405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 eval "$as_ac_Header=yes"
19409 echo "$as_me: failed program was
:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 eval "$as_ac_Header=no
"
19415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417 ac_res=`eval echo '${'$as_ac_Header'}'`
19418 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19419 echo "${ECHO_T}$ac_res" >&6; }
19420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19421 cat >>confdefs.h <<_ACEOF
19422 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
19425 ac_header_dirent=$ac_hdr; break
19429 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19430 if test $ac_header_dirent = dirent.h; then
19431 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
19432 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
19433 if test "${ac_cv_search_opendir+set}" = set; then
19434 echo $ECHO_N "(cached
) $ECHO_C" >&6
19436 ac_func_search_save_LIBS=$LIBS
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19459 for ac_lib in '' dir; do
19460 if test -z "$ac_lib"; then
19461 ac_res="none required
"
19464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (ac_try="$ac_link"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_link") 2>conftest.er1
19475 grep -v '^ *+' conftest.er1 >conftest.err
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_cv_search_opendir=$ac_res
19502 echo "$as_me: failed program was
:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19508 rm -f conftest.err conftest.$ac_objext \
19510 if test "${ac_cv_search_opendir+set}" = set; then
19514 if test "${ac_cv_search_opendir+set}" = set; then
19517 ac_cv_search_opendir=no
19519 rm conftest.$ac_ext
19520 LIBS=$ac_func_search_save_LIBS
19522 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
19523 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19524 ac_res=$ac_cv_search_opendir
19525 if test "$ac_res" != no; then
19526 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
19531 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
19532 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
19533 if test "${ac_cv_search_opendir+set}" = set; then
19534 echo $ECHO_N "(cached
) $ECHO_C" >&6
19536 ac_func_search_save_LIBS=$LIBS
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19559 for ac_lib in '' x; do
19560 if test -z "$ac_lib"; then
19561 ac_res="none required
"
19564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19581 { (case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_try") 2>&5
19588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (case "(($ac_try" in
19592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593 *) ac_try_echo=$ac_try;;
19595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19596 (eval "$ac_try") 2>&5
19598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_cv_search_opendir=$ac_res
19602 echo "$as_me: failed program was
:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19608 rm -f conftest.err conftest.$ac_objext \
19610 if test "${ac_cv_search_opendir+set}" = set; then
19614 if test "${ac_cv_search_opendir+set}" = set; then
19617 ac_cv_search_opendir=no
19619 rm conftest.$ac_ext
19620 LIBS=$ac_func_search_save_LIBS
19622 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
19623 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19624 ac_res=$ac_cv_search_opendir
19625 if test "$ac_res" != no; then
19626 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
19632 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
19633 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
19634 if test "${ac_cv_header_stdc+set}" = set; then
19635 echo $ECHO_N "(cached
) $ECHO_C" >&6
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 #include <stdlib.h>
19644 #include <stdarg.h>
19645 #include <string.h>
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19671 { (case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_try") 2>&5
19678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
19681 { (case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_try") 2>&5
19688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_header_stdc=yes
19692 echo "$as_me: failed program was
:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 ac_cv_header_stdc=no
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 if test $ac_cv_header_stdc = yes; then
19701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 #include <string.h>
19711 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19712 $EGREP "memchr
" >/dev/null 2>&1; then
19715 ac_cv_header_stdc=no
19721 if test $ac_cv_header_stdc = yes; then
19722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19723 cat >conftest.$ac_ext <<_ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #include <stdlib.h>
19732 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19733 $EGREP "free
" >/dev/null 2>&1; then
19736 ac_cv_header_stdc=no
19742 if test $ac_cv_header_stdc = yes; then
19743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19744 if test "$cross_compiling" = yes; then
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19754 #include <stdlib.h>
19755 #if ((' ' & 0x0FF) == 0x020)
19756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19759 # define ISLOWER(c) \
19760 (('a' <= (c) && (c) <= 'i') \
19761 || ('j' <= (c) && (c) <= 'r') \
19762 || ('s' <= (c) && (c) <= 'z'))
19763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19771 for (i = 0; i < 256; i++)
19772 if (XOR (islower (i), ISLOWER (i))
19773 || toupper (i) != TOUPPER (i))
19778 rm -f conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>&5
19787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19789 { (case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_try") 2>&5
19796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19797 (exit $ac_status); }; }; then
19800 echo "$as_me: program exited with status
$ac_status" >&5
19801 echo "$as_me: failed program was
:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ( exit $ac_status )
19805 ac_cv_header_stdc=no
19807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19813 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
19814 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19815 if test $ac_cv_header_stdc = yes; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define STDC_HEADERS 1
19823 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
19824 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
19825 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19826 echo $ECHO_N "(cached
) $ECHO_C" >&6
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 #include <sys/types.h>
19835 #include <sys/wait.h>
19836 #ifndef WEXITSTATUS
19837 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_compile") 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19887 ac_cv_header_sys_wait_h=yes
19889 echo "$as_me: failed program was
:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ac_cv_header_sys_wait_h=no
19895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
19898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19899 if test $ac_cv_header_sys_wait_h = yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_SYS_WAIT_H 1
19930 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
19932 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19933 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19934 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19935 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19936 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19937 echo $ECHO_N "(cached
) $ECHO_C" >&6
19939 ac_res=`eval echo '${'$as_ac_Header'}'`
19940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19941 echo "${ECHO_T}$ac_res" >&6; }
19943 # Is the header compilable?
19944 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19945 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 $ac_includes_default
19953 #include <$ac_header>
19955 rm -f conftest.$ac_objext
19956 if { (ac_try="$ac_compile"
19957 case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970 { (case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_try") 2>&5
19977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest.$ac_objext'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_header_compiler=yes
19991 echo "$as_me: failed program was
:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19994 ac_header_compiler=no
19997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19999 echo "${ECHO_T}$ac_header_compiler" >&6; }
20001 # Is the header present?
20002 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20003 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <$ac_header>
20012 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20024 (exit $ac_status); } >/dev/null; then
20025 if test -s conftest.err; then
20026 ac_cpp_err=$ac_c_preproc_warn_flag
20027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20034 if test -z "$ac_cpp_err"; then
20035 ac_header_preproc=yes
20037 echo "$as_me: failed program was
:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_preproc=no
20043 rm -f conftest.err conftest.$ac_ext
20044 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20045 echo "${ECHO_T}$ac_header_preproc" >&6; }
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20050 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20051 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20052 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20054 ac_header_preproc=yes
20057 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20058 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20059 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20060 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20061 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20062 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20063 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20064 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20065 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20067 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20068 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20072 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20073 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20075 echo $ECHO_N "(cached
) $ECHO_C" >&6
20077 eval "$as_ac_Header=\
$ac_header_preproc"
20079 ac_res=`eval echo '${'$as_ac_Header'}'`
20080 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20081 echo "${ECHO_T}$ac_res" >&6; }
20084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20085 cat >>confdefs.h <<_ACEOF
20086 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20094 # Check whether --enable-largefile was given.
20095 if test "${enable_largefile+set}" = set; then
20096 enableval=$enable_largefile;
20099 if test "$enable_largefile" != no; then
20101 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
20102 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
20103 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20104 echo $ECHO_N "(cached
) $ECHO_C" >&6
20106 ac_cv_sys_largefile_CC=no
20107 if test "$GCC" != yes; then
20110 # IRIX 6.2 and later do not support large files by default,
20111 # so use the C compiler's -n32 option if that helps.
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <sys/types.h>
20119 /* Check that off_t can represent 2**63 - 1 correctly.
20120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20121 since some C++ compilers masquerading as C compilers
20122 incorrectly reject 9223372036854775807. */
20123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20125 && LARGE_OFF_T % 2147483647 == 1)
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest.$ac_objext'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20168 (exit $ac_status); }; }; then
20171 echo "$as_me: failed program was
:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20177 rm -f conftest.err conftest.$ac_objext
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_sys_largefile_CC=' -n32'; break
20215 echo "$as_me: failed program was
:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20221 rm -f conftest.err conftest.$ac_objext
20225 rm -f conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
20229 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
20230 if test "$ac_cv_sys_largefile_CC" != no; then
20231 CC=$CC$ac_cv_sys_largefile_CC
20234 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
20235 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
20236 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20237 echo $ECHO_N "(cached
) $ECHO_C" >&6
20240 ac_cv_sys_file_offset_bits=no
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 #include <sys/types.h>
20248 /* Check that off_t can represent 2**63 - 1 correctly.
20249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20250 since some C++ compilers masquerading as C compilers
20251 incorrectly reject 9223372036854775807. */
20252 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20254 && LARGE_OFF_T % 2147483647 == 1)
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_compile") 2>conftest.er1
20273 grep -v '^ *+' conftest.er1 >conftest.err
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest.$ac_objext'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20297 (exit $ac_status); }; }; then
20300 echo "$as_me: failed program was
:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #define _FILE_OFFSET_BITS 64
20314 #include <sys/types.h>
20315 /* Check that off_t can represent 2**63 - 1 correctly.
20316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20317 since some C++ compilers masquerading as C compilers
20318 incorrectly reject 9223372036854775807. */
20319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20321 && LARGE_OFF_T % 2147483647 == 1)
20331 rm -f conftest.$ac_objext
20332 if { (ac_try="$ac_compile"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_compile") 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20354 (exit $ac_status); }; } &&
20355 { ac_try='test -s conftest.$ac_objext'
20356 { (case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_try") 2>&5
20363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_sys_file_offset_bits=64; break
20367 echo "$as_me: failed program was
:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
20378 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
20379 if test "$ac_cv_sys_file_offset_bits" != no; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20387 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
20388 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
20389 if test "${ac_cv_sys_large_files+set}" = set; then
20390 echo $ECHO_N "(cached
) $ECHO_C" >&6
20393 ac_cv_sys_large_files=no
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <sys/types.h>
20401 /* Check that off_t can represent 2**63 - 1 correctly.
20402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20403 since some C++ compilers masquerading as C compilers
20404 incorrectly reject 9223372036854775807. */
20405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20407 && LARGE_OFF_T % 2147483647 == 1)
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20440 (exit $ac_status); }; } &&
20441 { ac_try='test -s conftest.$ac_objext'
20442 { (case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_try") 2>&5
20449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20450 (exit $ac_status); }; }; then
20453 echo "$as_me: failed program was
:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #define _LARGE_FILES 1
20467 #include <sys/types.h>
20468 /* Check that off_t can represent 2**63 - 1 correctly.
20469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20470 since some C++ compilers masquerading as C compilers
20471 incorrectly reject 9223372036854775807. */
20472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20474 && LARGE_OFF_T % 2147483647 == 1)
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_sys_large_files=1; break
20520 echo "$as_me: failed program was
:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
20531 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
20532 if test "$ac_cv_sys_large_files" != no; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define _LARGE_FILES $ac_cv_sys_large_files
20543 # Checks for typedefs, structures, and compiler characteristics.
20544 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
20545 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
20546 if test "${ac_cv_header_stdbool_h+set}" = set; then
20547 echo $ECHO_N "(cached
) $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 #include <stdbool.h>
20558 "error
: bool is not defined
"
20561 "error
: false is not defined
"
20564 "error
: false is not
0"
20567 "error
: true is not defined
"
20570 "error
: true is not
1"
20572 #ifndef __bool_true_false_are_defined
20573 "error
: __bool_true_false_are_defined is not defined
"
20576 struct s { _Bool s: 1; _Bool t; } s;
20578 char a[true == 1 ? 1 : -1];
20579 char b[false == 0 ? 1 : -1];
20580 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20581 char d[(bool) 0.5 == true ? 1 : -1];
20583 char f[(_Bool) 0.0 == false ? 1 : -1];
20585 char h[sizeof (_Bool)];
20586 char i[sizeof s.t];
20587 enum { j = false, k = true, l = false * true, m = true * 256 };
20589 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20590 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20591 # if defined __xlc__ || defined __GNUC__
20592 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20593 reported by James Lemley on 2005-10-05; see
20594 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20595 This test is not quite right, since xlc is allowed to
20596 reject this program, as the initializer for xlcbug is
20597 not one of the forms that C requires support for.
20598 However, doing the test right would require a runtime
20599 test, and that would make cross-compilation harder.
20600 Let us hope that IBM fixes the xlc bug, and also adds
20601 support for this kind of constant expression. In the
20602 meantime, this test will reject xlc, which is OK, since
20603 our stdbool.h substitute should suffice. We also test
20604 this with GCC, where it should work, to detect more
20605 quickly whether someone messes up the test in the
20607 char digs[] = "0123456789";
20608 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20610 /* Catch a bug in an HP-UX C compiler. See
20611 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20612 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20623 /* Refer to every declared value, to avoid compiler optimizations. */
20624 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20625 + !m + !n + !o + !p + !q + !pq);
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_compile") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest.$ac_objext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_header_stdbool_h=yes
20667 echo "$as_me: failed program was
:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_header_stdbool_h=no
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20675 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
20676 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20677 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
20678 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
20679 if test "${ac_cv_type__Bool+set}" = set; then
20680 echo $ECHO_N "(cached
) $ECHO_C" >&6
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20689 typedef _Bool ac__type_new_;
20693 if ((ac__type_new_ *) 0)
20695 if (sizeof (ac__type_new_))
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_compile") 2>conftest.er1
20710 grep -v '^ *+' conftest.er1 >conftest.err
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest.$ac_objext'
20726 { (case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_try") 2>&5
20733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_type__Bool=yes
20737 echo "$as_me: failed program was
:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_cv_type__Bool=no
20743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20745 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
20746 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20747 if test $ac_cv_type__Bool = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define HAVE__BOOL 1
20756 if test $ac_cv_header_stdbool_h = yes; then
20758 cat >>confdefs.h <<\_ACEOF
20759 #define HAVE_STDBOOL_H 1
20764 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
20765 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
20766 if test "${ac_cv_c_const+set}" = set; then
20767 echo $ECHO_N "(cached
) $ECHO_C" >&6
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20779 /* FIXME: Include the comments suggested by Paul. */
20780 #ifndef __cplusplus
20781 /* Ultrix mips cc rejects this. */
20782 typedef int charset[2];
20784 /* SunOS 4.1.1 cc rejects this. */
20785 char const *const *ccp;
20787 /* NEC SVR4.0.2 mips cc rejects this. */
20788 struct point {int x, y;};
20789 static struct point const zero = {0,0};
20790 /* AIX XL C 1.02.0.0 rejects this.
20791 It does not let you subtract one const X* pointer from another in
20792 an arm of an if-expression whose if-part is not a constant
20794 const char *g = "string
";
20795 ccp = &g + (g ? g-g : 0);
20796 /* HPUX 7.0 cc rejects these. */
20799 ccp = (char const *const *) p;
20800 { /* SCO 3.2v4 cc rejects this. */
20802 char const *s = 0 ? (char *) 0 : (char const *) 0;
20807 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20808 int x[] = {25, 17};
20809 const int *foo = &x[0];
20812 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20813 typedef const int *iptr;
20817 { /* AIX XL C 1.02.0.0 rejects this saying
20818 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20819 struct s { int j; const int *ap[3]; };
20820 struct s *b; b->j = 5;
20822 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20823 const int foo = 10;
20824 if (!foo) return 0;
20826 return !x[0] && !zero.x;
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20842 grep -v '^ *+' conftest.er1 >conftest.err
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20866 (exit $ac_status); }; }; then
20869 echo "$as_me: failed program was
:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
20878 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20879 if test $ac_cv_c_const = no; then
20881 cat >>confdefs.h <<\_ACEOF
20887 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
20888 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
20889 if test "${ac_cv_type_uid_t+set}" = set; then
20890 echo $ECHO_N "(cached
) $ECHO_C" >&6
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <sys/types.h>
20901 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20902 $EGREP "uid_t
" >/dev/null 2>&1; then
20903 ac_cv_type_uid_t=yes
20905 ac_cv_type_uid_t=no
20910 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
20911 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20912 if test $ac_cv_type_uid_t = no; then
20914 cat >>confdefs.h <<\_ACEOF
20919 cat >>confdefs.h <<\_ACEOF
20925 { echo "$as_me:$LINENO: checking
for inline
" >&5
20926 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
20927 if test "${ac_cv_c_inline+set}" = set; then
20928 echo $ECHO_N "(cached
) $ECHO_C" >&6
20931 for ac_kw in inline __inline__ __inline; do
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #ifndef __cplusplus
20940 static $ac_kw foo_t static_foo () {return 0; }
20941 $ac_kw foo_t foo () {return 0; }
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_c_inline=$ac_kw
20981 echo "$as_me: failed program was
:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20988 test "$ac_cv_c_inline" != no && break
20992 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
20993 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20996 case $ac_cv_c_inline in
20999 case $ac_cv_c_inline in
21001 *) ac_val=$ac_cv_c_inline;;
21003 cat >>confdefs.h <<_ACEOF
21004 #ifndef __cplusplus
21005 #define inline $ac_val
21011 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
21012 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
21013 if test "${ac_cv_type_mode_t+set}" = set; then
21014 echo $ECHO_N "(cached
) $ECHO_C" >&6
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 $ac_includes_default
21023 typedef mode_t ac__type_new_;
21027 if ((ac__type_new_ *) 0)
21029 if (sizeof (ac__type_new_))
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_compile") 2>conftest.er1
21044 grep -v '^ *+' conftest.er1 >conftest.err
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21050 { (case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_try") 2>&5
21057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try='test -s conftest.$ac_objext'
21060 { (case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_try") 2>&5
21067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21068 (exit $ac_status); }; }; then
21069 ac_cv_type_mode_t=yes
21071 echo "$as_me: failed program was
:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_type_mode_t=no
21077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
21080 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
21081 if test $ac_cv_type_mode_t = yes; then
21085 cat >>confdefs.h <<_ACEOF
21091 { echo "$as_me:$LINENO: checking
for off_t
" >&5
21092 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
21093 if test "${ac_cv_type_off_t+set}" = set; then
21094 echo $ECHO_N "(cached
) $ECHO_C" >&6
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 $ac_includes_default
21103 typedef off_t ac__type_new_;
21107 if ((ac__type_new_ *) 0)
21109 if (sizeof (ac__type_new_))
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_compile") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21130 { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21138 (exit $ac_status); }; } &&
21139 { ac_try='test -s conftest.$ac_objext'
21140 { (case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_try") 2>&5
21147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_type_off_t=yes
21151 echo "$as_me: failed program was
:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 ac_cv_type_off_t=no
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
21160 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21161 if test $ac_cv_type_off_t = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define off_t long int
21171 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21172 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21173 if test "${ac_cv_type_pid_t+set}" = set; then
21174 echo $ECHO_N "(cached
) $ECHO_C" >&6
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 typedef pid_t ac__type_new_;
21187 if ((ac__type_new_ *) 0)
21189 if (sizeof (ac__type_new_))
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21210 { (case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21215 (eval "$ac_try") 2>&5
21217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest.$ac_objext'
21220 { (case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_try") 2>&5
21227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_type_pid_t=yes
21231 echo "$as_me: failed program was
:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_cv_type_pid_t=no
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
21240 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21241 if test $ac_cv_type_pid_t = yes; then
21245 cat >>confdefs.h <<_ACEOF
21251 { echo "$as_me:$LINENO: checking
for size_t
" >&5
21252 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
21253 if test "${ac_cv_type_size_t+set}" = set; then
21254 echo $ECHO_N "(cached
) $ECHO_C" >&6
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 $ac_includes_default
21263 typedef size_t ac__type_new_;
21267 if ((ac__type_new_ *) 0)
21269 if (sizeof (ac__type_new_))
21275 rm -f conftest.$ac_objext
21276 if { (ac_try="$ac_compile"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_compile") 2>conftest.er1
21284 grep -v '^ *+' conftest.er1 >conftest.err
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21290 { (case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_try") 2>&5
21297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest.$ac_objext'
21300 { (case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_try") 2>&5
21307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 ac_cv_type_size_t=yes
21311 echo "$as_me: failed program was
:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 ac_cv_type_size_t=no
21317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
21320 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21321 if test $ac_cv_type_size_t = yes; then
21325 cat >>confdefs.h <<_ACEOF
21326 #define size_t unsigned int
21331 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
21332 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
21333 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21334 echo $ECHO_N "(cached
) $ECHO_C" >&6
21336 cat >conftest.$ac_ext <<_ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 $ac_includes_default
21346 static struct stat ac_aggr;
21347 if (ac_aggr.st_blksize)
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21368 { (case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_try") 2>&5
21375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest.$ac_objext'
21378 { (case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_try") 2>&5
21385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 ac_cv_member_struct_stat_st_blksize=yes
21389 echo "$as_me: failed program was
:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 $ac_includes_default
21402 static struct stat ac_aggr;
21403 if (sizeof ac_aggr.st_blksize)
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21424 { (case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_try") 2>&5
21431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest.$ac_objext'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 ac_cv_member_struct_stat_st_blksize=yes
21445 echo "$as_me: failed program was
:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_member_struct_stat_st_blksize=no
21451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
21457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21458 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21460 cat >>confdefs.h <<_ACEOF
21461 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21467 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
21468 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
21469 if test "${ac_cv_header_time+set}" = set; then
21470 echo $ECHO_N "(cached
) $ECHO_C" >&6
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <sys/types.h>
21479 #include <sys/time.h>
21485 if ((struct tm *) 0)
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21506 { (case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_try") 2>&5
21513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_header_time=yes
21527 echo "$as_me: failed program was
:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_cv_header_time=no
21533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21535 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
21536 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21537 if test $ac_cv_header_time = yes; then
21539 cat >>confdefs.h <<\_ACEOF
21540 #define TIME_WITH_SYS_TIME 1
21545 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
21546 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
21547 if test "${ac_cv_struct_tm+set}" = set; then
21548 echo $ECHO_N "(cached
) $ECHO_C" >&6
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 #include <sys/types.h>
21562 struct tm *tp; tp->tm_sec;
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21582 { (case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_try") 2>&5
21589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21590 (exit $ac_status); }; } &&
21591 { ac_try='test -s conftest.$ac_objext'
21592 { (case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_try") 2>&5
21599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21600 (exit $ac_status); }; }; then
21601 ac_cv_struct_tm=time.h
21603 echo "$as_me: failed program was
:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21606 ac_cv_struct_tm=sys/time.h
21609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21611 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
21612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21613 if test $ac_cv_struct_tm = sys/time.h; then
21615 cat >>confdefs.h <<\_ACEOF
21616 #define TM_IN_SYS_TIME 1
21621 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
21622 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
21623 if test "${ac_cv_c_volatile+set}" = set; then
21624 echo $ECHO_N "(cached
) $ECHO_C" >&6
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21638 int * volatile y = (int *) 0;
21644 rm -f conftest.$ac_objext
21645 if { (ac_try="$ac_compile"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_compile") 2>conftest.er1
21653 grep -v '^ *+' conftest.er1 >conftest.err
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21657 (exit $ac_status); } &&
21658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21659 { (case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_try") 2>&5
21666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21674 (eval "$ac_try") 2>&5
21676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 ac_cv_c_volatile=yes
21680 echo "$as_me: failed program was
:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_cv_c_volatile=no
21686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
21689 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
21690 if test $ac_cv_c_volatile = no; then
21692 cat >>confdefs.h <<\_ACEOF
21698 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
21699 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
21700 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21701 echo $ECHO_N "(cached
) $ECHO_C" >&6
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 $ac_includes_default
21710 typedef ptrdiff_t ac__type_new_;
21714 if ((ac__type_new_ *) 0)
21716 if (sizeof (ac__type_new_))
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_compile") 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21735 (exit $ac_status); } &&
21736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21737 { (case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_try") 2>&5
21744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21745 (exit $ac_status); }; } &&
21746 { ac_try='test -s conftest.$ac_objext'
21747 { (case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_try") 2>&5
21754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 ac_cv_type_ptrdiff_t=yes
21758 echo "$as_me: failed program was
:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_cv_type_ptrdiff_t=no
21764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21766 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
21767 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21768 if test $ac_cv_type_ptrdiff_t = yes; then
21770 cat >>confdefs.h <<_ACEOF
21771 #define HAVE_PTRDIFF_T 1
21778 # Checks for library functions.
21780 for ac_header in unistd.h
21782 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21784 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21785 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21787 echo $ECHO_N "(cached
) $ECHO_C" >&6
21789 ac_res=`eval echo '${'$as_ac_Header'}'`
21790 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21793 # Is the header compilable?
21794 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21795 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 $ac_includes_default
21803 #include <$ac_header>
21805 rm -f conftest.$ac_objext
21806 if { (ac_try="$ac_compile"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_compile") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21818 (exit $ac_status); } &&
21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21820 { (case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_try") 2>&5
21827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21828 (exit $ac_status); }; } &&
21829 { ac_try='test -s conftest.$ac_objext'
21830 { (case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_try") 2>&5
21837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_header_compiler=yes
21841 echo "$as_me: failed program was
:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_header_compiler=no
21847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21848 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21849 echo "${ECHO_T}$ac_header_compiler" >&6; }
21851 # Is the header present?
21852 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21853 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21854 cat >conftest.$ac_ext <<_ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 #include <$ac_header>
21862 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21874 (exit $ac_status); } >/dev/null; then
21875 if test -s conftest.err; then
21876 ac_cpp_err=$ac_c_preproc_warn_flag
21877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21884 if test -z "$ac_cpp_err"; then
21885 ac_header_preproc=yes
21887 echo "$as_me: failed program was
:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_header_preproc=no
21893 rm -f conftest.err conftest.$ac_ext
21894 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21895 echo "${ECHO_T}$ac_header_preproc" >&6; }
21897 # So? What about this header?
21898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21900 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21901 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21902 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21904 ac_header_preproc=yes
21907 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21908 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21909 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21910 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21911 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21912 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21914 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21917 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21918 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21922 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21923 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21924 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21925 echo $ECHO_N "(cached
) $ECHO_C" >&6
21927 eval "$as_ac_Header=\
$ac_header_preproc"
21929 ac_res=`eval echo '${'$as_ac_Header'}'`
21930 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21931 echo "${ECHO_T}$ac_res" >&6; }
21934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21935 cat >>confdefs.h <<_ACEOF
21936 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21943 { echo "$as_me:$LINENO: checking
for working chown
" >&5
21944 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
21945 if test "${ac_cv_func_chown_works+set}" = set; then
21946 echo $ECHO_N "(cached
) $ECHO_C" >&6
21948 if test "$cross_compiling" = yes; then
21949 ac_cv_func_chown_works=no
21951 cat >conftest.$ac_ext <<_ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 $ac_includes_default
21963 char *f = "conftest.chown
";
21964 struct stat before, after;
21966 if (creat (f, 0600) < 0)
21968 if (stat (f, &before) < 0)
21970 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21972 if (stat (f, &after) < 0)
21974 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21980 rm -f conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>&5
21989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 ac_cv_func_chown_works=yes
22002 echo "$as_me: program exited with status
$ac_status" >&5
22003 echo "$as_me: failed program was
:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ( exit $ac_status )
22007 ac_cv_func_chown_works=no
22009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22013 rm -f conftest.chown
22016 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
22017 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
22018 if test $ac_cv_func_chown_works = yes; then
22020 cat >>confdefs.h <<\_ACEOF
22021 #define HAVE_CHOWN 1
22026 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
22027 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
22028 if test "${ac_cv_func_closedir_void+set}" = set; then
22029 echo $ECHO_N "(cached
) $ECHO_C" >&6
22031 if test "$cross_compiling" = yes; then
22032 ac_cv_func_closedir_void=yes
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 $ac_includes_default
22041 #include <$ac_header_dirent>
22042 #ifndef __cplusplus
22049 return closedir (opendir (".
")) != 0;
22054 rm -f conftest$ac_exeext
22055 if { (ac_try="$ac_link"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_link") 2>&5
22063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22065 { (case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_try") 2>&5
22072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_func_closedir_void=no
22076 echo "$as_me: program exited with status
$ac_status" >&5
22077 echo "$as_me: failed program was
:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ( exit $ac_status )
22081 ac_cv_func_closedir_void=yes
22083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22088 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
22089 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
22090 if test $ac_cv_func_closedir_void = yes; then
22092 cat >>confdefs.h <<\_ACEOF
22093 #define CLOSEDIR_VOID 1
22098 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
22099 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
22100 if test "${ac_cv_lib_error_at_line+set}" = set; then
22101 echo $ECHO_N "(cached
) $ECHO_C" >&6
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 $ac_includes_default
22113 error_at_line (0, 0, "", 0, "");
22118 rm -f conftest.$ac_objext conftest$ac_exeext
22119 if { (ac_try="$ac_link"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_link") 2>conftest.er1
22127 grep -v '^ *+' conftest.er1 >conftest.err
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22131 (exit $ac_status); } &&
22132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22133 { (case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_try") 2>&5
22140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try='test -s conftest$ac_exeext'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 ac_cv_lib_error_at_line=yes
22154 echo "$as_me: failed program was
:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ac_cv_lib_error_at_line=no
22160 rm -f conftest.err conftest.$ac_objext \
22161 conftest$ac_exeext conftest.$ac_ext
22163 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
22164 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
22165 if test $ac_cv_lib_error_at_line = no; then
22166 case " $LIBOBJS " in
22167 *" error.
$ac_objext "* ) ;;
22168 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
22175 for ac_header in vfork.h
22177 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22178 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22179 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22180 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22181 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22182 echo $ECHO_N "(cached
) $ECHO_C" >&6
22184 ac_res=`eval echo '${'$as_ac_Header'}'`
22185 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22186 echo "${ECHO_T}$ac_res" >&6; }
22188 # Is the header compilable?
22189 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22190 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 $ac_includes_default
22198 #include <$ac_header>
22200 rm -f conftest.$ac_objext
22201 if { (ac_try="$ac_compile"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_compile") 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22213 (exit $ac_status); } &&
22214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22215 { (case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_try") 2>&5
22222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22223 (exit $ac_status); }; } &&
22224 { ac_try='test -s conftest.$ac_objext'
22225 { (case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_try") 2>&5
22232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 ac_header_compiler=yes
22236 echo "$as_me: failed program was
:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ac_header_compiler=no
22242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22244 echo "${ECHO_T}$ac_header_compiler" >&6; }
22246 # Is the header present?
22247 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22248 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 #include <$ac_header>
22257 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22269 (exit $ac_status); } >/dev/null; then
22270 if test -s conftest.err; then
22271 ac_cpp_err=$ac_c_preproc_warn_flag
22272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22279 if test -z "$ac_cpp_err"; then
22280 ac_header_preproc=yes
22282 echo "$as_me: failed program was
:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22285 ac_header_preproc=no
22288 rm -f conftest.err conftest.$ac_ext
22289 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22290 echo "${ECHO_T}$ac_header_preproc" >&6; }
22292 # So? What about this header?
22293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22295 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22296 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22297 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22299 ac_header_preproc=yes
22302 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22303 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22304 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22305 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22306 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22307 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22308 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22309 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22310 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22312 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22313 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22317 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22318 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22319 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22320 echo $ECHO_N "(cached
) $ECHO_C" >&6
22322 eval "$as_ac_Header=\
$ac_header_preproc"
22324 ac_res=`eval echo '${'$as_ac_Header'}'`
22325 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22326 echo "${ECHO_T}$ac_res" >&6; }
22329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22330 cat >>confdefs.h <<_ACEOF
22331 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22340 for ac_func in fork vfork
22342 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22343 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22344 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22345 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22346 echo $ECHO_N "(cached
) $ECHO_C" >&6
22348 cat >conftest.$ac_ext <<_ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22356 #define $ac_func innocuous_$ac_func
22358 /* System header to define __stub macros and hopefully few prototypes,
22359 which can conflict with char $ac_func (); below.
22360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361 <limits.h> exists even on freestanding compilers. */
22364 # include <limits.h>
22366 # include <assert.h>
22371 /* Override any GCC internal prototype to avoid an error.
22372 Use char because int might match the return type of a GCC
22373 builtin and then its argument prototype would still apply. */
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined __stub_$ac_func || defined __stub___$ac_func
22388 return $ac_func ();
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_link") 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_try") 2>&5
22415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest$ac_exeext'
22418 { (case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_try") 2>&5
22425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 eval "$as_ac_var=yes"
22429 echo "$as_me: failed program was
:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 eval "$as_ac_var=no
"
22435 rm -f conftest.err conftest.$ac_objext \
22436 conftest$ac_exeext conftest.$ac_ext
22438 ac_res=`eval echo '${'$as_ac_var'}'`
22439 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22441 if test `eval echo '${'$as_ac_var'}'` = yes; then
22442 cat >>confdefs.h <<_ACEOF
22443 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22449 if test "x
$ac_cv_func_fork" = xyes; then
22450 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22451 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22452 if test "${ac_cv_func_fork_works+set}" = set; then
22453 echo $ECHO_N "(cached
) $ECHO_C" >&6
22455 if test "$cross_compiling" = yes; then
22456 ac_cv_func_fork_works=cross
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 $ac_includes_default
22469 /* By Ruediger Kuhlmann. */
22470 return fork () < 0;
22476 rm -f conftest$ac_exeext
22477 if { (ac_try="$ac_link"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_link") 2>&5
22485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22487 { (case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_try") 2>&5
22494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22495 (exit $ac_status); }; }; then
22496 ac_cv_func_fork_works=yes
22498 echo "$as_me: program exited with status
$ac_status" >&5
22499 echo "$as_me: failed program was
:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ( exit $ac_status )
22503 ac_cv_func_fork_works=no
22505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22510 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22511 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22514 ac_cv_func_fork_works=$ac_cv_func_fork
22516 if test "x
$ac_cv_func_fork_works" = xcross; then
22518 *-*-amigaos* | *-*-msdosdjgpp*)
22519 # Override, as these systems have only a dummy fork() stub
22520 ac_cv_func_fork_works=no
22523 ac_cv_func_fork_works=yes
22526 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22527 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22529 ac_cv_func_vfork_works=$ac_cv_func_vfork
22530 if test "x
$ac_cv_func_vfork" = xyes; then
22531 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22532 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22533 if test "${ac_cv_func_vfork_works+set}" = set; then
22534 echo $ECHO_N "(cached
) $ECHO_C" >&6
22536 if test "$cross_compiling" = yes; then
22537 ac_cv_func_vfork_works=cross
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 /* Thanks to Paul Eggert for this test. */
22546 $ac_includes_default
22547 #include <sys/wait.h>
22549 # include <vfork.h>
22551 /* On some sparc systems, changes by the child to local and incoming
22552 argument registers are propagated back to the parent. The compiler
22553 is told about this with #include <vfork.h>, but some compilers
22554 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22555 static variable whose address is put into a register that is
22556 clobbered by the vfork. */
22559 sparc_address_test (int arg)
22561 sparc_address_test (arg) int arg;
22564 static pid_t child;
22582 pid_t parent = getpid ();
22585 sparc_address_test (0);
22590 /* Here is another test for sparc vfork register problems. This
22591 test uses lots of local variables, at least as many local
22592 variables as main has allocated so far including compiler
22593 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22594 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22595 reuse the register of parent for one of the local variables,
22596 since it will think that parent can't possibly be used any more
22597 in this routine. Assigning to the local variable will thus
22598 munge parent in the parent process. */
22600 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22601 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22602 /* Convince the compiler that p..p7 are live; otherwise, it might
22603 use the same hardware register for all 8 local variables. */
22604 if (p != p1 || p != p2 || p != p3 || p != p4
22605 || p != p5 || p != p6 || p != p7)
22608 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22609 from child file descriptors. If the child closes a descriptor
22610 before it execs or exits, this munges the parent's descriptor
22611 as well. Test for this by closing stdout in the child. */
22612 _exit(close(fileno(stdout)) != 0);
22617 while (wait(&status) != child)
22620 /* Was there some problem with vforking? */
22623 /* Did the child fail? (This shouldn't happen.) */
22626 /* Did the vfork/compiler bug occur? */
22627 || parent != getpid()
22629 /* Did the file descriptor bug occur? */
22630 || fstat(fileno(stdout), &st) != 0
22635 rm -f conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_link") 2>&5
22644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646 { (case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22651 (eval "$ac_try") 2>&5
22653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22654 (exit $ac_status); }; }; then
22655 ac_cv_func_vfork_works=yes
22657 echo "$as_me: program exited with status
$ac_status" >&5
22658 echo "$as_me: failed program was
:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ( exit $ac_status )
22662 ac_cv_func_vfork_works=no
22664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22669 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22670 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22673 if test "x
$ac_cv_func_fork_works" = xcross; then
22674 ac_cv_func_vfork_works=$ac_cv_func_vfork
22675 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22676 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22679 if test "x
$ac_cv_func_vfork_works" = xyes; then
22681 cat >>confdefs.h <<\_ACEOF
22682 #define HAVE_WORKING_VFORK 1
22687 cat >>confdefs.h <<\_ACEOF
22692 if test "x
$ac_cv_func_fork_works" = xyes; then
22694 cat >>confdefs.h <<\_ACEOF
22695 #define HAVE_WORKING_FORK 1
22700 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
22701 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
22702 if test "${ac_cv_sys_largefile_source+set}" = set; then
22703 echo $ECHO_N "(cached
) $ECHO_C" >&6
22706 ac_cv_sys_largefile_source=no
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22737 { (case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_try") 2>&5
22744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_try") 2>&5
22754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22755 (exit $ac_status); }; }; then
22758 echo "$as_me: failed program was
:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #define _LARGEFILE_SOURCE 1
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22794 (exit $ac_status); } &&
22795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22796 { (case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_try") 2>&5
22803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest.$ac_objext'
22806 { (case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_try") 2>&5
22813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 ac_cv_sys_largefile_source=1; break
22817 echo "$as_me: failed program was
:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22827 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
22828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22829 if test "$ac_cv_sys_largefile_source" != no; then
22831 cat >>confdefs.h <<_ACEOF
22832 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22838 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22839 # in glibc 2.1.3, but that breaks too many other things.
22840 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22841 { echo "$as_me:$LINENO: checking
for fseeko
" >&5
22842 echo $ECHO_N "checking
for fseeko...
$ECHO_C" >&6; }
22843 if test "${ac_cv_func_fseeko+set}" = set; then
22844 echo $ECHO_N "(cached
) $ECHO_C" >&6
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22856 return fseeko && fseeko (stdin, 0, 0);
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (ac_try="$ac_link"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_link") 2>conftest.er1
22870 grep -v '^ *+' conftest.er1 >conftest.err
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22874 (exit $ac_status); } &&
22875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22876 { (case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_try") 2>&5
22883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22884 (exit $ac_status); }; } &&
22885 { ac_try='test -s conftest$ac_exeext'
22886 { (case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_try") 2>&5
22893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_func_fseeko=yes
22897 echo "$as_me: failed program was
:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_cv_func_fseeko=no
22903 rm -f conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result
: $ac_cv_func_fseeko" >&5
22907 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
22908 if test $ac_cv_func_fseeko = yes; then
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_FSEEKO 1
22916 if test $ac_cv_c_compiler_gnu = yes; then
22917 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
22918 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
22919 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22920 echo $ECHO_N "(cached
) $ECHO_C" >&6
22922 ac_pattern="Autoconf.
*'x'"
22923 cat >conftest.$ac_ext <<_ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h. */
22932 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22933 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22934 ac_cv_prog_gcc_traditional=yes
22936 ac_cv_prog_gcc_traditional=no
22941 if test $ac_cv_prog_gcc_traditional = no; then
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <termio.h>
22951 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22952 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22953 ac_cv_prog_gcc_traditional=yes
22959 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
22960 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
22961 if test $ac_cv_prog_gcc_traditional = yes; then
22962 CC="$CC -traditional"
22967 for ac_header in stdlib.h
22969 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22970 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22971 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22972 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22973 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22974 echo $ECHO_N "(cached
) $ECHO_C" >&6
22976 ac_res=`eval echo '${'$as_ac_Header'}'`
22977 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22978 echo "${ECHO_T}$ac_res" >&6; }
22980 # Is the header compilable?
22981 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22982 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 $ac_includes_default
22990 #include <$ac_header>
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_compile") 2>conftest.er1
23001 grep -v '^ *+' conftest.er1 >conftest.err
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23005 (exit $ac_status); } &&
23006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23007 { (case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_try") 2>&5
23014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest.$ac_objext'
23017 { (case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_try") 2>&5
23024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 ac_header_compiler=yes
23028 echo "$as_me: failed program was
:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23031 ac_header_compiler=no
23034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23036 echo "${ECHO_T}$ac_header_compiler" >&6; }
23038 # Is the header present?
23039 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23040 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 #include <$ac_header>
23049 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23050 case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23055 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23057 grep -v '^ *+' conftest.er1 >conftest.err
23059 cat conftest.err >&5
23060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23061 (exit $ac_status); } >/dev/null; then
23062 if test -s conftest.err; then
23063 ac_cpp_err=$ac_c_preproc_warn_flag
23064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23071 if test -z "$ac_cpp_err"; then
23072 ac_header_preproc=yes
23074 echo "$as_me: failed program was
:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_header_preproc=no
23080 rm -f conftest.err conftest.$ac_ext
23081 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23082 echo "${ECHO_T}$ac_header_preproc" >&6; }
23084 # So? What about this header?
23085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23087 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23088 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23089 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23091 ac_header_preproc=yes
23094 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23095 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23096 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23097 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23098 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23099 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23100 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23101 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23102 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23104 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23105 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23109 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23110 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23111 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23112 echo $ECHO_N "(cached
) $ECHO_C" >&6
23114 eval "$as_ac_Header=\
$ac_header_preproc"
23116 ac_res=`eval echo '${'$as_ac_Header'}'`
23117 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23118 echo "${ECHO_T}$ac_res" >&6; }
23121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23122 cat >>confdefs.h <<_ACEOF
23123 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23130 { echo "$as_me:$LINENO: checking
for GNU libc compatible malloc
" >&5
23131 echo $ECHO_N "checking
for GNU libc compatible malloc...
$ECHO_C" >&6; }
23132 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23133 echo $ECHO_N "(cached
) $ECHO_C" >&6
23135 if test "$cross_compiling" = yes; then
23136 ac_cv_func_malloc_0_nonnull=no
23138 cat >conftest.$ac_ext <<_ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23144 #if STDC_HEADERS || HAVE_STDLIB_H
23145 # include <stdlib.h>
23153 return ! malloc (0);
23158 rm -f conftest$ac_exeext
23159 if { (ac_try="$ac_link"
23160 case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_link") 2>&5
23167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23169 { (case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23174 (eval "$ac_try") 2>&5
23176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23177 (exit $ac_status); }; }; then
23178 ac_cv_func_malloc_0_nonnull=yes
23180 echo "$as_me: program exited with status
$ac_status" >&5
23181 echo "$as_me: failed program was
:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ( exit $ac_status )
23185 ac_cv_func_malloc_0_nonnull=no
23187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23192 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_0_nonnull" >&5
23193 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
23194 if test $ac_cv_func_malloc_0_nonnull = yes; then
23196 cat >>confdefs.h <<\_ACEOF
23197 #define HAVE_MALLOC 1
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_MALLOC 0
23205 case " $LIBOBJS " in
23206 *" malloc.
$ac_objext "* ) ;;
23207 *) LIBOBJS="$LIBOBJS malloc.
$ac_objext"
23212 cat >>confdefs.h <<\_ACEOF
23213 #define malloc rpl_malloc
23220 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
23221 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
23222 if test "${ac_cv_func_memcmp_working+set}" = set; then
23223 echo $ECHO_N "(cached
) $ECHO_C" >&6
23225 if test "$cross_compiling" = yes; then
23226 ac_cv_func_memcmp_working=no
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 $ac_includes_default
23239 /* Some versions of memcmp are not 8-bit clean. */
23240 char c0 = '\100', c1 = '\200', c2 = '\201';
23241 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23244 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23245 or more and with at least one buffer not starting on a 4-byte boundary.
23246 William Lewis provided this test program. */
23251 for (i = 0; i < 4; i++)
23255 strcpy (a, "--------01111111");
23256 strcpy (b, "--------10000000");
23257 if (memcmp (a, b, 16) >= 0)
23267 rm -f conftest$ac_exeext
23268 if { (ac_try="$ac_link"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_link") 2>&5
23276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23278 { (case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_try") 2>&5
23285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_func_memcmp_working=yes
23289 echo "$as_me: program exited with status
$ac_status" >&5
23290 echo "$as_me: failed program was
:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ( exit $ac_status )
23294 ac_cv_func_memcmp_working=no
23296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23301 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
23302 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
23303 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23304 *" memcmp.
$ac_objext "* ) ;;
23305 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
23313 for ac_header in stdlib.h sys/time.h unistd.h
23315 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23316 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23317 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23318 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23319 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23320 echo $ECHO_N "(cached
) $ECHO_C" >&6
23322 ac_res=`eval echo '${'$as_ac_Header'}'`
23323 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23324 echo "${ECHO_T}$ac_res" >&6; }
23326 # Is the header compilable?
23327 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23328 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 $ac_includes_default
23336 #include <$ac_header>
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353 { (case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_try") 2>&5
23360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest.$ac_objext'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_try") 2>&5
23370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_header_compiler=yes
23374 echo "$as_me: failed program was
:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 ac_header_compiler=no
23380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23381 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23382 echo "${ECHO_T}$ac_header_compiler" >&6; }
23384 # Is the header present?
23385 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23386 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 #include <$ac_header>
23395 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23396 case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23403 grep -v '^ *+' conftest.er1 >conftest.err
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23407 (exit $ac_status); } >/dev/null; then
23408 if test -s conftest.err; then
23409 ac_cpp_err=$ac_c_preproc_warn_flag
23410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23417 if test -z "$ac_cpp_err"; then
23418 ac_header_preproc=yes
23420 echo "$as_me: failed program was
:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_preproc=no
23426 rm -f conftest.err conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23428 echo "${ECHO_T}$ac_header_preproc" >&6; }
23430 # So? What about this header?
23431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23433 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23434 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23435 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23437 ac_header_preproc=yes
23440 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23441 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23442 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23443 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23444 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23445 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23446 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23447 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23450 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23451 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23455 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23456 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23458 echo $ECHO_N "(cached
) $ECHO_C" >&6
23460 eval "$as_ac_Header=\
$ac_header_preproc"
23462 ac_res=`eval echo '${'$as_ac_Header'}'`
23463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23464 echo "${ECHO_T}$ac_res" >&6; }
23467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23477 for ac_func in alarm
23479 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23480 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23481 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23482 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23483 echo $ECHO_N "(cached
) $ECHO_C" >&6
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23493 #define $ac_func innocuous_$ac_func
23495 /* System header to define __stub macros and hopefully few prototypes,
23496 which can conflict with char $ac_func (); below.
23497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23498 <limits.h> exists even on freestanding compilers. */
23501 # include <limits.h>
23503 # include <assert.h>
23508 /* Override any GCC internal prototype to avoid an error.
23509 Use char because int might match the return type of a GCC
23510 builtin and then its argument prototype would still apply. */
23515 /* The GNU C library defines this for functions which it implements
23516 to always fail with ENOSYS. Some functions are actually named
23517 something starting with __ and the normal name is an alias. */
23518 #if defined __stub_$ac_func || defined __stub___$ac_func
23525 return $ac_func ();
23530 rm -f conftest.$ac_objext conftest$ac_exeext
23531 if { (ac_try="$ac_link"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_link") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23543 (exit $ac_status); } &&
23544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23545 { (case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23550 (eval "$ac_try") 2>&5
23552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23553 (exit $ac_status); }; } &&
23554 { ac_try='test -s conftest$ac_exeext'
23555 { (case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_try") 2>&5
23562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23563 (exit $ac_status); }; }; then
23564 eval "$as_ac_var=yes"
23566 echo "$as_me: failed program was
:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 eval "$as_ac_var=no
"
23572 rm -f conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23575 ac_res=`eval echo '${'$as_ac_var'}'`
23576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23577 echo "${ECHO_T}$ac_res" >&6; }
23578 if test `eval echo '${'$as_ac_var'}'` = yes; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23586 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
23587 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
23588 if test "${ac_cv_func_working_mktime+set}" = set; then
23589 echo $ECHO_N "(cached
) $ECHO_C" >&6
23591 if test "$cross_compiling" = yes; then
23592 ac_cv_func_working_mktime=no
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 /* Test program from Paul Eggert and Tony Leneis. */
23601 #if TIME_WITH_SYS_TIME
23602 # include <sys/time.h>
23605 # if HAVE_SYS_TIME_H
23606 # include <sys/time.h>
23613 # include <stdlib.h>
23617 # include <unistd.h>
23621 # define alarm(X) /* empty */
23624 /* Work around redefinition to rpl_putenv by other config tests. */
23627 static time_t time_t_max;
23628 static time_t time_t_min;
23630 /* Values we'll use to set the TZ environment variable. */
23631 static char *tz_strings[] = {
23632 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
23633 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
23635 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
23637 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
23638 Based on a problem report from Andreas Jaeger. */
23640 spring_forward_gap ()
23642 /* glibc (up to about 1998-10-07) failed this test. */
23645 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
23646 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
23647 on systems that don't support the Olson extension, or don't have the
23648 full zoneinfo tables installed. */
23649 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
23658 return mktime (&tm) != (time_t) -1;
23666 return ! (lt = localtime (&now)) || mktime (lt) == now;
23673 return (mktime_test1 (now)
23674 && mktime_test1 ((time_t) (time_t_max - now))
23675 && mktime_test1 ((time_t) (time_t_min + now)));
23681 /* Based on code from Ariel Faigon. */
23691 return tm.tm_mon == 2 && tm.tm_mday == 31;
23700 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23701 now = mktime (&tm);
23702 if (now != (time_t) -1)
23704 struct tm *lt = localtime (&now);
23706 && lt->tm_year == tm.tm_year
23707 && lt->tm_mon == tm.tm_mon
23708 && lt->tm_mday == tm.tm_mday
23709 && lt->tm_hour == tm.tm_hour
23710 && lt->tm_min == tm.tm_min
23711 && lt->tm_sec == tm.tm_sec
23712 && lt->tm_yday == tm.tm_yday
23713 && lt->tm_wday == tm.tm_wday
23714 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23715 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23727 /* This test makes some buggy mktime implementations loop.
23728 Give up after 60 seconds; a mktime slower than that
23729 isn't worth using anyway. */
23732 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
23735 if ((time_t) -1 < 0)
23736 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
23738 delta = time_t_max / 997; /* a suitable prime number */
23739 for (i = 0; i < N_STRINGS; i++)
23742 putenv (tz_strings[i]);
23744 for (t = 0; t <= time_t_max - delta; t += delta)
23745 if (! mktime_test (t))
23747 if (! (mktime_test ((time_t) 1)
23748 && mktime_test ((time_t) (60 * 60))
23749 && mktime_test ((time_t) (60 * 60 * 24))))
23752 for (j = 1; 0 < j; j *= 2)
23753 if (! bigtime_test (j))
23755 if (! bigtime_test (j - 1))
23758 return ! (irix_6_4_bug () && spring_forward_gap ());
23761 rm -f conftest$ac_exeext
23762 if { (ac_try="$ac_link"
23763 case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_link") 2>&5
23770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23772 { (case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_try") 2>&5
23779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23780 (exit $ac_status); }; }; then
23781 ac_cv_func_working_mktime=yes
23783 echo "$as_me: program exited with status
$ac_status" >&5
23784 echo "$as_me: failed program was
:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 ( exit $ac_status )
23788 ac_cv_func_working_mktime=no
23790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23795 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
23796 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
23797 if test $ac_cv_func_working_mktime = no; then
23798 case " $LIBOBJS " in
23799 *" mktime.
$ac_objext "* ) ;;
23800 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
23808 for ac_header in stdlib.h unistd.h
23810 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23812 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23813 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23815 echo $ECHO_N "(cached
) $ECHO_C" >&6
23817 ac_res=`eval echo '${'$as_ac_Header'}'`
23818 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23819 echo "${ECHO_T}$ac_res" >&6; }
23821 # Is the header compilable?
23822 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23823 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23824 cat >conftest.$ac_ext <<_ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830 $ac_includes_default
23831 #include <$ac_header>
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_compile") 2>conftest.er1
23842 grep -v '^ *+' conftest.er1 >conftest.err
23844 cat conftest.err >&5
23845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23846 (exit $ac_status); } &&
23847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23848 { (case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_try") 2>&5
23855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest.$ac_objext'
23858 { (case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_try") 2>&5
23865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 ac_header_compiler=yes
23869 echo "$as_me: failed program was
:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 ac_header_compiler=no
23875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23876 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23877 echo "${ECHO_T}$ac_header_compiler" >&6; }
23879 # Is the header present?
23880 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23881 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <$ac_header>
23890 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null; then
23903 if test -s conftest.err; then
23904 ac_cpp_err=$ac_c_preproc_warn_flag
23905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23912 if test -z "$ac_cpp_err"; then
23913 ac_header_preproc=yes
23915 echo "$as_me: failed program was
:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 ac_header_preproc=no
23921 rm -f conftest.err conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23923 echo "${ECHO_T}$ac_header_preproc" >&6; }
23925 # So? What about this header?
23926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23928 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23929 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23932 ac_header_preproc=yes
23935 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23936 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23937 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23938 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23939 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23940 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23941 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23942 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23943 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23945 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23946 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23950 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23951 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23952 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23953 echo $ECHO_N "(cached
) $ECHO_C" >&6
23955 eval "$as_ac_Header=\
$ac_header_preproc"
23957 ac_res=`eval echo '${'$as_ac_Header'}'`
23958 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23959 echo "${ECHO_T}$ac_res" >&6; }
23962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23963 cat >>confdefs.h <<_ACEOF
23964 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23972 for ac_func in getpagesize
23974 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23975 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23976 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23977 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23978 echo $ECHO_N "(cached
) $ECHO_C" >&6
23980 cat >conftest.$ac_ext <<_ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23988 #define $ac_func innocuous_$ac_func
23990 /* System header to define __stub macros and hopefully few prototypes,
23991 which can conflict with char $ac_func (); below.
23992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23993 <limits.h> exists even on freestanding compilers. */
23996 # include <limits.h>
23998 # include <assert.h>
24003 /* Override any GCC internal prototype to avoid an error.
24004 Use char because int might match the return type of a GCC
24005 builtin and then its argument prototype would still apply. */
24010 /* The GNU C library defines this for functions which it implements
24011 to always fail with ENOSYS. Some functions are actually named
24012 something starting with __ and the normal name is an alias. */
24013 #if defined __stub_$ac_func || defined __stub___$ac_func
24020 return $ac_func ();
24025 rm -f conftest.$ac_objext conftest$ac_exeext
24026 if { (ac_try="$ac_link"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24032 (eval "$ac_link") 2>conftest.er1
24034 grep -v '^ *+' conftest.er1 >conftest.err
24036 cat conftest.err >&5
24037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24038 (exit $ac_status); } &&
24039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24040 { (case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_try") 2>&5
24047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24048 (exit $ac_status); }; } &&
24049 { ac_try='test -s conftest$ac_exeext'
24050 { (case "(($ac_try" in
24051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24052 *) ac_try_echo=$ac_try;;
24054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24055 (eval "$ac_try") 2>&5
24057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24058 (exit $ac_status); }; }; then
24059 eval "$as_ac_var=yes"
24061 echo "$as_me: failed program was
:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 eval "$as_ac_var=no
"
24067 rm -f conftest.err conftest.$ac_objext \
24068 conftest$ac_exeext conftest.$ac_ext
24070 ac_res=`eval echo '${'$as_ac_var'}'`
24071 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24072 echo "${ECHO_T}$ac_res" >&6; }
24073 if test `eval echo '${'$as_ac_var'}'` = yes; then
24074 cat >>confdefs.h <<_ACEOF
24075 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24081 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
24082 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
24083 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24084 echo $ECHO_N "(cached
) $ECHO_C" >&6
24086 if test "$cross_compiling" = yes; then
24087 ac_cv_func_mmap_fixed_mapped=no
24089 cat >conftest.$ac_ext <<_ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 $ac_includes_default
24096 /* malloc might have been renamed as rpl_malloc. */
24099 /* Thanks to Mike Haertel and Jim Avera for this test.
24100 Here is a matrix of mmap possibilities:
24101 mmap private not fixed
24102 mmap private fixed at somewhere currently unmapped
24103 mmap private fixed at somewhere already mapped
24104 mmap shared not fixed
24105 mmap shared fixed at somewhere currently unmapped
24106 mmap shared fixed at somewhere already mapped
24107 For private mappings, we should verify that changes cannot be read()
24108 back from the file, nor mmap's back from the file at a different
24109 address. (There have been systems where private was not correctly
24110 implemented like the infamous i386 svr4.0, and systems where the
24111 VM page cache was not coherent with the file system buffer cache
24112 like early versions of FreeBSD and possibly contemporary NetBSD.)
24113 For shared mappings, we should conversely verify that changes get
24114 propagated back to all the places they're supposed to be.
24116 Grep wants private fixed already mapped.
24117 The main things grep needs to know about mmap are:
24118 * does it exist and is it safe to write into the mmap'd area
24119 * how to use it (BSD variants) */
24122 #include <sys/mman.h>
24124 #if !STDC_HEADERS && !HAVE_STDLIB_H
24128 /* This mess was copied from the GNU getpagesize.h. */
24129 #if !HAVE_GETPAGESIZE
24130 /* Assume that all systems that can run configure have sys/param.h. */
24131 # if !HAVE_SYS_PARAM_H
24132 # define HAVE_SYS_PARAM_H 1
24135 # ifdef _SC_PAGESIZE
24136 # define getpagesize() sysconf(_SC_PAGESIZE)
24137 # else /* no _SC_PAGESIZE */
24138 # if HAVE_SYS_PARAM_H
24139 # include <sys/param.h>
24140 # ifdef EXEC_PAGESIZE
24141 # define getpagesize() EXEC_PAGESIZE
24142 # else /* no EXEC_PAGESIZE */
24144 # define getpagesize() NBPG * CLSIZE
24147 # endif /* no CLSIZE */
24148 # else /* no NBPG */
24150 # define getpagesize() NBPC
24151 # else /* no NBPC */
24153 # define getpagesize() PAGESIZE
24154 # endif /* PAGESIZE */
24155 # endif /* no NBPC */
24156 # endif /* no NBPG */
24157 # endif /* no EXEC_PAGESIZE */
24158 # else /* no HAVE_SYS_PARAM_H */
24159 # define getpagesize() 8192 /* punt totally */
24160 # endif /* no HAVE_SYS_PARAM_H */
24161 # endif /* no _SC_PAGESIZE */
24163 #endif /* no HAVE_GETPAGESIZE */
24168 char *data, *data2, *data3;
24172 pagesize = getpagesize ();
24174 /* First, make a file with some known garbage in it. */
24175 data = (char *) malloc (pagesize);
24178 for (i = 0; i < pagesize; ++i)
24179 *(data + i) = rand ();
24181 fd = creat ("conftest.mmap
", 0600);
24184 if (write (fd, data, pagesize) != pagesize)
24188 /* Next, try to mmap the file at a fixed address which already has
24189 something else allocated at it. If we can, also make sure that
24190 we see the same garbage. */
24191 fd = open ("conftest.mmap
", O_RDWR);
24194 data2 = (char *) malloc (2 * pagesize);
24197 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24201 for (i = 0; i < pagesize; ++i)
24202 if (*(data + i) != *(data2 + i))
24205 /* Finally, make sure that changes to the mapped area do not
24206 percolate back to the file as seen by read(). (This is a bug on
24207 some variants of i386 svr4.0.) */
24208 for (i = 0; i < pagesize; ++i)
24209 *(data2 + i) = *(data2 + i) + 1;
24210 data3 = (char *) malloc (pagesize);
24213 if (read (fd, data3, pagesize) != pagesize)
24215 for (i = 0; i < pagesize; ++i)
24216 if (*(data + i) != *(data3 + i))
24222 rm -f conftest$ac_exeext
24223 if { (ac_try="$ac_link"
24224 case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_link") 2>&5
24231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24233 { (case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_try") 2>&5
24240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 ac_cv_func_mmap_fixed_mapped=yes
24244 echo "$as_me: program exited with status
$ac_status" >&5
24245 echo "$as_me: failed program was
:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ( exit $ac_status )
24249 ac_cv_func_mmap_fixed_mapped=no
24251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24256 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
24257 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_MMAP 1
24265 rm -f conftest.mmap
24268 for ac_header in stdlib.h
24270 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24271 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24272 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24273 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24275 echo $ECHO_N "(cached
) $ECHO_C" >&6
24277 ac_res=`eval echo '${'$as_ac_Header'}'`
24278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24279 echo "${ECHO_T}$ac_res" >&6; }
24281 # Is the header compilable?
24282 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24283 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 $ac_includes_default
24291 #include <$ac_header>
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_compile") 2>conftest.er1
24302 grep -v '^ *+' conftest.er1 >conftest.err
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24306 (exit $ac_status); } &&
24307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24308 { (case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_try") 2>&5
24315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest.$ac_objext'
24318 { (case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_try") 2>&5
24325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_header_compiler=yes
24329 echo "$as_me: failed program was
:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_header_compiler=no
24335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24336 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24337 echo "${ECHO_T}$ac_header_compiler" >&6; }
24339 # Is the header present?
24340 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24341 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
24342 cat >conftest.$ac_ext <<_ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h. */
24348 #include <$ac_header>
24350 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24362 (exit $ac_status); } >/dev/null; then
24363 if test -s conftest.err; then
24364 ac_cpp_err=$ac_c_preproc_warn_flag
24365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24372 if test -z "$ac_cpp_err"; then
24373 ac_header_preproc=yes
24375 echo "$as_me: failed program was
:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ac_header_preproc=no
24381 rm -f conftest.err conftest.$ac_ext
24382 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24383 echo "${ECHO_T}$ac_header_preproc" >&6; }
24385 # So? What about this header?
24386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24388 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24389 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24390 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24392 ac_header_preproc=yes
24395 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24396 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24397 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24398 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24399 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24400 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24401 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24402 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24403 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24405 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24406 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24410 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24411 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24412 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24413 echo $ECHO_N "(cached
) $ECHO_C" >&6
24415 eval "$as_ac_Header=\
$ac_header_preproc"
24417 ac_res=`eval echo '${'$as_ac_Header'}'`
24418 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24431 { echo "$as_me:$LINENO: checking
for GNU libc compatible realloc
" >&5
24432 echo $ECHO_N "checking
for GNU libc compatible realloc...
$ECHO_C" >&6; }
24433 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
24434 echo $ECHO_N "(cached
) $ECHO_C" >&6
24436 if test "$cross_compiling" = yes; then
24437 ac_cv_func_realloc_0_nonnull=no
24439 cat >conftest.$ac_ext <<_ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24445 #if STDC_HEADERS || HAVE_STDLIB_H
24446 # include <stdlib.h>
24454 return ! realloc (0, 0);
24459 rm -f conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24466 (eval "$ac_link") 2>&5
24468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24470 { (case "(($ac_try" in
24471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472 *) ac_try_echo=$ac_try;;
24474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24475 (eval "$ac_try") 2>&5
24477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24478 (exit $ac_status); }; }; then
24479 ac_cv_func_realloc_0_nonnull=yes
24481 echo "$as_me: program exited with status
$ac_status" >&5
24482 echo "$as_me: failed program was
:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 ( exit $ac_status )
24486 ac_cv_func_realloc_0_nonnull=no
24488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24493 { echo "$as_me:$LINENO: result
: $ac_cv_func_realloc_0_nonnull" >&5
24494 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
24495 if test $ac_cv_func_realloc_0_nonnull = yes; then
24497 cat >>confdefs.h <<\_ACEOF
24498 #define HAVE_REALLOC 1
24502 cat >>confdefs.h <<\_ACEOF
24503 #define HAVE_REALLOC 0
24506 case " $LIBOBJS " in
24507 *" realloc.
$ac_objext "* ) ;;
24508 *) LIBOBJS="$LIBOBJS realloc.
$ac_objext"
24513 cat >>confdefs.h <<\_ACEOF
24514 #define realloc rpl_realloc
24523 for ac_header in sys/select.h sys/socket.h
24525 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24530 echo $ECHO_N "(cached
) $ECHO_C" >&6
24532 ac_res=`eval echo '${'$as_ac_Header'}'`
24533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24534 echo "${ECHO_T}$ac_res" >&6; }
24536 # Is the header compilable?
24537 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24538 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 #include <$ac_header>
24548 rm -f conftest.$ac_objext
24549 if { (ac_try="$ac_compile"
24550 case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24557 grep -v '^ *+' conftest.er1 >conftest.err
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24561 (exit $ac_status); } &&
24562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24563 { (case "(($ac_try" in
24564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565 *) ac_try_echo=$ac_try;;
24567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24568 (eval "$ac_try") 2>&5
24570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24571 (exit $ac_status); }; } &&
24572 { ac_try='test -s conftest.$ac_objext'
24573 { (case "(($ac_try" in
24574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575 *) ac_try_echo=$ac_try;;
24577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24578 (eval "$ac_try") 2>&5
24580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24581 (exit $ac_status); }; }; then
24582 ac_header_compiler=yes
24584 echo "$as_me: failed program was
:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_header_compiler=no
24590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24592 echo "${ECHO_T}$ac_header_compiler" >&6; }
24594 # Is the header present?
24595 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24596 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
24597 cat >conftest.$ac_ext <<_ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24603 #include <$ac_header>
24605 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24606 case "(($ac_try" in
24607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608 *) ac_try_echo=$ac_try;;
24610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24613 grep -v '^ *+' conftest.er1 >conftest.err
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24617 (exit $ac_status); } >/dev/null; then
24618 if test -s conftest.err; then
24619 ac_cpp_err=$ac_c_preproc_warn_flag
24620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24627 if test -z "$ac_cpp_err"; then
24628 ac_header_preproc=yes
24630 echo "$as_me: failed program was
:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ac_header_preproc=no
24636 rm -f conftest.err conftest.$ac_ext
24637 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24638 echo "${ECHO_T}$ac_header_preproc" >&6; }
24640 # So? What about this header?
24641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24643 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24644 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24645 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24647 ac_header_preproc=yes
24650 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24651 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24652 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24653 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24654 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24655 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24656 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24657 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24658 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24660 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24661 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24665 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24666 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24668 echo $ECHO_N "(cached
) $ECHO_C" >&6
24670 eval "$as_ac_Header=\
$ac_header_preproc"
24672 ac_res=`eval echo '${'$as_ac_Header'}'`
24673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24674 echo "${ECHO_T}$ac_res" >&6; }
24677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24678 cat >>confdefs.h <<_ACEOF
24679 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24686 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
24687 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
24688 if test "${ac_cv_func_select_args+set}" = set; then
24689 echo $ECHO_N "(cached
) $ECHO_C" >&6
24691 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24692 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24693 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24694 cat >conftest.$ac_ext <<_ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h. */
24700 $ac_includes_default
24701 #if HAVE_SYS_SELECT_H
24702 # include <sys/select.h>
24704 #if HAVE_SYS_SOCKET_H
24705 # include <sys/socket.h>
24711 extern int select ($ac_arg1,
24712 $ac_arg234, $ac_arg234, $ac_arg234,
24718 rm -f conftest.$ac_objext
24719 if { (ac_try="$ac_compile"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24725 (eval "$ac_compile") 2>conftest.er1
24727 grep -v '^ *+' conftest.er1 >conftest.err
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24731 (exit $ac_status); } &&
24732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24733 { (case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_try") 2>&5
24740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24741 (exit $ac_status); }; } &&
24742 { ac_try='test -s conftest.$ac_objext'
24743 { (case "(($ac_try" in
24744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745 *) ac_try_echo=$ac_try;;
24747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24748 (eval "$ac_try") 2>&5
24750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24751 (exit $ac_status); }; }; then
24752 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24754 echo "$as_me: failed program was
:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24764 # Provide a safe default value.
24765 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
24768 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
24769 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
24770 ac_save_IFS=$IFS; IFS=','
24771 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24775 cat >>confdefs.h <<_ACEOF
24776 #define SELECT_TYPE_ARG1 $1
24780 cat >>confdefs.h <<_ACEOF
24781 #define SELECT_TYPE_ARG234 ($2)
24785 cat >>confdefs.h <<_ACEOF
24786 #define SELECT_TYPE_ARG5 ($3)
24791 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
24792 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
24793 if test "$ac_cv_prog_cc_c89" != no; then
24794 { echo "$as_me:$LINENO: result
: yes" >&5
24795 echo "${ECHO_T}yes" >&6; }
24797 cat >>confdefs.h <<\_ACEOF
24798 #define PROTOTYPES 1
24802 cat >>confdefs.h <<\_ACEOF
24803 #define __PROTOTYPES 1
24807 { echo "$as_me:$LINENO: result
: no
" >&5
24808 echo "${ECHO_T}no
" >&6; }
24811 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
24812 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
24813 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
24814 echo $ECHO_N "(cached
) $ECHO_C" >&6
24816 ac_cv_func_setvbuf_reversed=no
24817 cat >conftest.$ac_ext <<_ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24825 int (setvbuf) (FILE *, int, char *, size_t);
24830 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
24835 rm -f conftest.$ac_objext conftest$ac_exeext
24836 if { (ac_try="$ac_link"
24837 case "(($ac_try" in
24838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839 *) ac_try_echo=$ac_try;;
24841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24842 (eval "$ac_link") 2>conftest.er1
24844 grep -v '^ *+' conftest.er1 >conftest.err
24846 cat conftest.err >&5
24847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24848 (exit $ac_status); } &&
24849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24850 { (case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_try") 2>&5
24857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest$ac_exeext'
24860 { (case "(($ac_try" in
24861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862 *) ac_try_echo=$ac_try;;
24864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24865 (eval "$ac_try") 2>&5
24867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24868 (exit $ac_status); }; }; then
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24877 int (setvbuf) (FILE *, int, char *, size_t);
24882 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1 >conftest.err
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24902 { (case "(($ac_try" in
24903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904 *) ac_try_echo=$ac_try;;
24906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24907 (eval "$ac_try") 2>&5
24909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24910 (exit $ac_status); }; } &&
24911 { ac_try='test -s conftest$ac_exeext'
24912 { (case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24917 (eval "$ac_try") 2>&5
24919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 # It compiles and links either way, so it must not be declared
24922 # with a prototype and most likely this is a K&R C compiler.
24924 if test "$cross_compiling" = yes; then
24925 : # Assume setvbuf is not reversed when cross-compiling.
24927 cat >conftest.$ac_ext <<_ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 $ac_includes_default
24937 /* This call has the arguments reversed.
24938 A reversed system may check and see that the address of buf
24939 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
24941 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
24944 return 0; /* Non-reversed systems SEGV here. */
24949 rm -f conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953 *) ac_try_echo=$ac_try;;
24955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24956 (eval "$ac_link") 2>&5
24958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24960 { (case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_try") 2>&5
24967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24968 (exit $ac_status); }; }; then
24969 ac_cv_func_setvbuf_reversed=yes
24971 echo "$as_me: program exited with status
$ac_status" >&5
24972 echo "$as_me: failed program was
:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24980 ac_cv_func_setvbuf_reversed=yes
24982 echo "$as_me: failed program was
:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24988 rm -f conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
24991 echo "$as_me: failed program was
:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24997 rm -f conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
25000 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
25001 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25002 if test $ac_cv_func_setvbuf_reversed = yes; then
25004 cat >>confdefs.h <<\_ACEOF
25005 #define SETVBUF_REVERSED 1
25010 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
25011 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
25012 if test "${ac_cv_type_signal+set}" = set; then
25013 echo $ECHO_N "(cached
) $ECHO_C" >&6
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #include <sys/types.h>
25022 #include <signal.h>
25027 return *(signal (0, 0)) (0) == 1;
25032 rm -f conftest.$ac_objext
25033 if { (ac_try="$ac_compile"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_compile") 2>conftest.er1
25041 grep -v '^ *+' conftest.er1 >conftest.err
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25045 (exit $ac_status); } &&
25046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25047 { (case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_try") 2>&5
25054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest.$ac_objext'
25057 { (case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_try") 2>&5
25064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_type_signal=int
25068 echo "$as_me: failed program was
:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25071 ac_cv_type_signal=void
25074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25076 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
25077 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25079 cat >>confdefs.h <<_ACEOF
25080 #define RETSIGTYPE $ac_cv_type_signal
25084 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
25085 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
25086 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25087 echo $ECHO_N "(cached
) $ECHO_C" >&6
25089 rm -f conftest.sym conftest.file
25090 echo >conftest.file
25091 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25092 if test "$cross_compiling" = yes; then
25093 ac_cv_func_lstat_dereferences_slashed_symlink=no
25095 cat >conftest.$ac_ext <<_ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25101 $ac_includes_default
25106 /* Linux will dereference the symlink and fail.
25107 That is better in the sense that it means we will not
25108 have to compile and use the lstat wrapper. */
25109 return lstat ("conftest.sym
/", &sbuf) == 0;
25114 rm -f conftest$ac_exeext
25115 if { (ac_try="$ac_link"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_link") 2>&5
25123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25125 { (case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_try") 2>&5
25132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25136 echo "$as_me: program exited with status
$ac_status" >&5
25137 echo "$as_me: failed program was
:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 ( exit $ac_status )
25141 ac_cv_func_lstat_dereferences_slashed_symlink=no
25143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25148 # If the `ln -s' command failed, then we probably don't even
25149 # have an lstat function.
25150 ac_cv_func_lstat_dereferences_slashed_symlink=no
25152 rm -f conftest.sym conftest.file
25155 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25156 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25158 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25160 cat >>confdefs.h <<_ACEOF
25161 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25165 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25166 case " $LIBOBJS " in
25167 *" lstat.
$ac_objext "* ) ;;
25168 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
25174 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
25175 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
25176 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25177 echo $ECHO_N "(cached
) $ECHO_C" >&6
25179 if test "$cross_compiling" = yes; then
25180 ac_cv_func_stat_empty_string_bug=yes
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 $ac_includes_default
25193 return stat ("", &sbuf) == 0;
25198 rm -f conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>&5
25207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_try") 2>&5
25216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 ac_cv_func_stat_empty_string_bug=no
25220 echo "$as_me: program exited with status
$ac_status" >&5
25221 echo "$as_me: failed program was
:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ( exit $ac_status )
25225 ac_cv_func_stat_empty_string_bug=yes
25227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25232 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
25233 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
25234 if test $ac_cv_func_stat_empty_string_bug = yes; then
25235 case " $LIBOBJS " in
25236 *" stat.
$ac_objext "* ) ;;
25237 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
25242 cat >>confdefs.h <<_ACEOF
25243 #define HAVE_STAT_EMPTY_STRING_BUG 1
25248 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
25249 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
25250 if test "${ac_cv_func_strcoll_works+set}" = set; then
25251 echo $ECHO_N "(cached
) $ECHO_C" >&6
25253 if test "$cross_compiling" = yes; then
25254 ac_cv_func_strcoll_works=no
25256 cat >conftest.$ac_ext <<_ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262 $ac_includes_default
25266 return (strcoll ("abc
", "def
") >= 0 ||
25267 strcoll ("ABC
", "DEF
") >= 0 ||
25268 strcoll ("123", "456") >= 0)
25273 rm -f conftest$ac_exeext
25274 if { (ac_try="$ac_link"
25275 case "(($ac_try" in
25276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25277 *) ac_try_echo=$ac_try;;
25279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25280 (eval "$ac_link") 2>&5
25282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_strcoll_works=yes
25295 echo "$as_me: program exited with status
$ac_status" >&5
25296 echo "$as_me: failed program was
:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ( exit $ac_status )
25300 ac_cv_func_strcoll_works=no
25302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25307 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
25308 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
25309 if test $ac_cv_func_strcoll_works = yes; then
25311 cat >>confdefs.h <<\_ACEOF
25312 #define HAVE_STRCOLL 1
25318 for ac_func in strftime
25320 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25321 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
25322 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
25323 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25324 echo $ECHO_N "(cached
) $ECHO_C" >&6
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25334 #define $ac_func innocuous_$ac_func
25336 /* System header to define __stub macros and hopefully few prototypes,
25337 which can conflict with char $ac_func (); below.
25338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25339 <limits.h> exists even on freestanding compilers. */
25342 # include <limits.h>
25344 # include <assert.h>
25349 /* Override any GCC internal prototype to avoid an error.
25350 Use char because int might match the return type of a GCC
25351 builtin and then its argument prototype would still apply. */
25356 /* The GNU C library defines this for functions which it implements
25357 to always fail with ENOSYS. Some functions are actually named
25358 something starting with __ and the normal name is an alias. */
25359 #if defined __stub_$ac_func || defined __stub___$ac_func
25366 return $ac_func ();
25371 rm -f conftest.$ac_objext conftest$ac_exeext
25372 if { (ac_try="$ac_link"
25373 case "(($ac_try" in
25374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25375 *) ac_try_echo=$ac_try;;
25377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25378 (eval "$ac_link") 2>conftest.er1
25380 grep -v '^ *+' conftest.er1 >conftest.err
25382 cat conftest.err >&5
25383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25384 (exit $ac_status); } &&
25385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25386 { (case "(($ac_try" in
25387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388 *) ac_try_echo=$ac_try;;
25390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25391 (eval "$ac_try") 2>&5
25393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25394 (exit $ac_status); }; } &&
25395 { ac_try='test -s conftest$ac_exeext'
25396 { (case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25401 (eval "$ac_try") 2>&5
25403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 eval "$as_ac_var=yes"
25407 echo "$as_me: failed program was
:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 eval "$as_ac_var=no
"
25413 rm -f conftest.err conftest.$ac_objext \
25414 conftest$ac_exeext conftest.$ac_ext
25416 ac_res=`eval echo '${'$as_ac_var'}'`
25417 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25418 echo "${ECHO_T}$ac_res" >&6; }
25419 if test `eval echo '${'$as_ac_var'}'` = yes; then
25420 cat >>confdefs.h <<_ACEOF
25421 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25425 # strftime is in -lintl on SCO UNIX.
25426 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
25427 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
25428 if test "${ac_cv_lib_intl_strftime+set}" = set; then
25429 echo $ECHO_N "(cached
) $ECHO_C" >&6
25431 ac_check_lib_save_LIBS=$LIBS
25432 LIBS="-lintl $LIBS"
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25440 /* Override any GCC internal prototype to avoid an error.
25441 Use char because int might match the return type of a GCC
25442 builtin and then its argument prototype would still apply. */
25450 return strftime ();
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (ac_try="$ac_link"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25462 (eval "$ac_link") 2>conftest.er1
25464 grep -v '^ *+' conftest.er1 >conftest.err
25466 cat conftest.err >&5
25467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25468 (exit $ac_status); } &&
25469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25470 { (case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_try") 2>&5
25477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest$ac_exeext'
25480 { (case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25485 (eval "$ac_try") 2>&5
25487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 ac_cv_lib_intl_strftime=yes
25491 echo "$as_me: failed program was
:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25494 ac_cv_lib_intl_strftime=no
25497 rm -f conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25499 LIBS=$ac_check_lib_save_LIBS
25501 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
25502 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
25503 if test $ac_cv_lib_intl_strftime = yes; then
25504 cat >>confdefs.h <<\_ACEOF
25505 #define HAVE_STRFTIME 1
25508 LIBS="-lintl $LIBS"
25514 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
25515 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
25516 if test "${ac_cv_func_strnlen_working+set}" = set; then
25517 echo $ECHO_N "(cached
) $ECHO_C" >&6
25519 if test "$cross_compiling" = yes; then
25520 ac_cv_func_strnlen_working=no
25522 cat >conftest.$ac_ext <<_ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 $ac_includes_default
25534 #define S_LEN (sizeof S - 1)
25536 /* At least one implementation is buggy: that of AIX 4.3 would
25537 give strnlen (S, 1) == 3. */
25540 for (i = 0; i < S_LEN + 1; ++i)
25542 int expected = i <= S_LEN ? i : S_LEN;
25543 if (strnlen (S, i) != expected)
25552 rm -f conftest$ac_exeext
25553 if { (ac_try="$ac_link"
25554 case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_link") 2>&5
25561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25563 { (case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25568 (eval "$ac_try") 2>&5
25570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25571 (exit $ac_status); }; }; then
25572 ac_cv_func_strnlen_working=yes
25574 echo "$as_me: program exited with status
$ac_status" >&5
25575 echo "$as_me: failed program was
:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 ( exit $ac_status )
25579 ac_cv_func_strnlen_working=no
25581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25586 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
25587 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
25588 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
25589 *" strnlen.
$ac_objext "* ) ;;
25590 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
25595 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
25596 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
25597 if test "${ac_cv_func_strtod+set}" = set; then
25598 echo $ECHO_N "(cached
) $ECHO_C" >&6
25600 if test "$cross_compiling" = yes; then
25601 ac_cv_func_strtod=no
25603 cat >conftest.$ac_ext <<_ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25610 $ac_includes_default
25618 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25619 char *string = " +69";
25622 value = strtod (string, &term);
25623 if (value != 69 || term != (string + 4))
25628 /* Under Solaris 2.4, strtod returns the wrong value for the
25629 terminating character under some conditions. */
25630 char *string = "NaN
";
25632 strtod (string, &term);
25633 if (term != string && *(term - 1) == 0)
25640 rm -f conftest$ac_exeext
25641 if { (ac_try="$ac_link"
25642 case "(($ac_try" in
25643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25647 (eval "$ac_link") 2>&5
25649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25651 { (case "(($ac_try" in
25652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25653 *) ac_try_echo=$ac_try;;
25655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25656 (eval "$ac_try") 2>&5
25658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 ac_cv_func_strtod=yes
25662 echo "$as_me: program exited with status
$ac_status" >&5
25663 echo "$as_me: failed program was
:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25666 ( exit $ac_status )
25667 ac_cv_func_strtod=no
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25674 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
25675 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
25676 if test $ac_cv_func_strtod = no; then
25677 case " $LIBOBJS " in
25678 *" strtod.
$ac_objext "* ) ;;
25679 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
25683 { echo "$as_me:$LINENO: checking
for pow
" >&5
25684 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
25685 if test "${ac_cv_func_pow+set}" = set; then
25686 echo $ECHO_N "(cached
) $ECHO_C" >&6
25688 cat >conftest.$ac_ext <<_ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h. */
25694 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
25695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25696 #define pow innocuous_pow
25698 /* System header to define __stub macros and hopefully few prototypes,
25699 which can conflict with char pow (); below.
25700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25701 <limits.h> exists even on freestanding compilers. */
25704 # include <limits.h>
25706 # include <assert.h>
25711 /* Override any GCC internal prototype to avoid an error.
25712 Use char because int might match the return type of a GCC
25713 builtin and then its argument prototype would still apply. */
25718 /* The GNU C library defines this for functions which it implements
25719 to always fail with ENOSYS. Some functions are actually named
25720 something starting with __ and the normal name is an alias. */
25721 #if defined __stub_pow || defined __stub___pow
25733 rm -f conftest.$ac_objext conftest$ac_exeext
25734 if { (ac_try="$ac_link"
25735 case "(($ac_try" in
25736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 *) ac_try_echo=$ac_try;;
25739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25740 (eval "$ac_link") 2>conftest.er1
25742 grep -v '^ *+' conftest.er1 >conftest.err
25744 cat conftest.err >&5
25745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25746 (exit $ac_status); } &&
25747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25748 { (case "(($ac_try" in
25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750 *) ac_try_echo=$ac_try;;
25752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25753 (eval "$ac_try") 2>&5
25755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25756 (exit $ac_status); }; } &&
25757 { ac_try='test -s conftest$ac_exeext'
25758 { (case "(($ac_try" in
25759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760 *) ac_try_echo=$ac_try;;
25762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25763 (eval "$ac_try") 2>&5
25765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25766 (exit $ac_status); }; }; then
25769 echo "$as_me: failed program was
:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25775 rm -f conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
25778 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
25779 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
25781 if test $ac_cv_func_pow = no; then
25782 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
25783 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
25784 if test "${ac_cv_lib_m_pow+set}" = set; then
25785 echo $ECHO_N "(cached
) $ECHO_C" >&6
25787 ac_check_lib_save_LIBS=$LIBS
25789 cat >conftest.$ac_ext <<_ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25796 /* Override any GCC internal prototype to avoid an error.
25797 Use char because int might match the return type of a GCC
25798 builtin and then its argument prototype would still apply. */
25811 rm -f conftest.$ac_objext conftest$ac_exeext
25812 if { (ac_try="$ac_link"
25813 case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_link") 2>conftest.er1
25820 grep -v '^ *+' conftest.er1 >conftest.err
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25826 { (case "(($ac_try" in
25827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 *) ac_try_echo=$ac_try;;
25830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25831 (eval "$ac_try") 2>&5
25833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25834 (exit $ac_status); }; } &&
25835 { ac_try='test -s conftest$ac_exeext'
25836 { (case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25841 (eval "$ac_try") 2>&5
25843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25844 (exit $ac_status); }; }; then
25845 ac_cv_lib_m_pow=yes
25847 echo "$as_me: failed program was
:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25853 rm -f conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
25855 LIBS=$ac_check_lib_save_LIBS
25857 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
25858 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
25859 if test $ac_cv_lib_m_pow = yes; then
25862 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
25863 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
25870 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
25871 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
25872 if test "${ac_cv_func_utime_null+set}" = set; then
25873 echo $ECHO_N "(cached
) $ECHO_C" >&6
25875 rm -f conftest.data; >conftest.data
25876 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
25877 if test "$cross_compiling" = yes; then
25878 ac_cv_func_utime_null=no
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 $ac_includes_default
25891 return ! (stat ("conftest.data
", &s) == 0
25892 && utime ("conftest.data
", 0) == 0
25893 && stat ("conftest.data
", &t) == 0
25894 && t.st_mtime >= s.st_mtime
25895 && t.st_mtime - s.st_mtime < 120);
25900 rm -f conftest$ac_exeext
25901 if { (ac_try="$ac_link"
25902 case "(($ac_try" in
25903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904 *) ac_try_echo=$ac_try;;
25906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25907 (eval "$ac_link") 2>&5
25909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25911 { (case "(($ac_try" in
25912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25913 *) ac_try_echo=$ac_try;;
25915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25916 (eval "$ac_try") 2>&5
25918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25919 (exit $ac_status); }; }; then
25920 ac_cv_func_utime_null=yes
25922 echo "$as_me: program exited with status
$ac_status" >&5
25923 echo "$as_me: failed program was
:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 ( exit $ac_status )
25927 ac_cv_func_utime_null=no
25929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25934 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
25935 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
25936 if test $ac_cv_func_utime_null = yes; then
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_UTIME_NULL 1
25943 rm -f conftest.data
25946 for ac_func in vprintf
25948 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25949 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
25950 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
25951 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached
) $ECHO_C" >&6
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25962 #define $ac_func innocuous_$ac_func
25964 /* System header to define __stub macros and hopefully few prototypes,
25965 which can conflict with char $ac_func (); below.
25966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25967 <limits.h> exists even on freestanding compilers. */
25970 # include <limits.h>
25972 # include <assert.h>
25977 /* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25984 /* The GNU C library defines this for functions which it implements
25985 to always fail with ENOSYS. Some functions are actually named
25986 something starting with __ and the normal name is an alias. */
25987 #if defined __stub_$ac_func || defined __stub___$ac_func
25994 return $ac_func ();
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26012 (exit $ac_status); } &&
26013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26014 { (case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_try") 2>&5
26021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest$ac_exeext'
26024 { (case "(($ac_try" in
26025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026 *) ac_try_echo=$ac_try;;
26028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26029 (eval "$ac_try") 2>&5
26031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26032 (exit $ac_status); }; }; then
26033 eval "$as_ac_var=yes"
26035 echo "$as_me: failed program was
:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26038 eval "$as_ac_var=no
"
26041 rm -f conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
26044 ac_res=`eval echo '${'$as_ac_var'}'`
26045 { echo "$as_me:$LINENO: result
: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26047 if test `eval echo '${'$as_ac_var'}'` = yes; then
26048 cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
26052 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
26053 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
26054 if test "${ac_cv_func__doprnt+set}" = set; then
26055 echo $ECHO_N "(cached
) $ECHO_C" >&6
26057 cat >conftest.$ac_ext <<_ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h. */
26063 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26065 #define _doprnt innocuous__doprnt
26067 /* System header to define __stub macros and hopefully few prototypes,
26068 which can conflict with char _doprnt (); below.
26069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26070 <limits.h> exists even on freestanding compilers. */
26073 # include <limits.h>
26075 # include <assert.h>
26080 /* Override any GCC internal prototype to avoid an error.
26081 Use char because int might match the return type of a GCC
26082 builtin and then its argument prototype would still apply. */
26087 /* The GNU C library defines this for functions which it implements
26088 to always fail with ENOSYS. Some functions are actually named
26089 something starting with __ and the normal name is an alias. */
26090 #if defined __stub__doprnt || defined __stub____doprnt
26102 rm -f conftest.$ac_objext conftest$ac_exeext
26103 if { (ac_try="$ac_link"
26104 case "(($ac_try" in
26105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106 *) ac_try_echo=$ac_try;;
26108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26109 (eval "$ac_link") 2>conftest.er1
26111 grep -v '^ *+' conftest.er1 >conftest.err
26113 cat conftest.err >&5
26114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26115 (exit $ac_status); } &&
26116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26117 { (case "(($ac_try" in
26118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119 *) ac_try_echo=$ac_try;;
26121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26122 (eval "$ac_try") 2>&5
26124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26125 (exit $ac_status); }; } &&
26126 { ac_try='test -s conftest$ac_exeext'
26127 { (case "(($ac_try" in
26128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129 *) ac_try_echo=$ac_try;;
26131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26132 (eval "$ac_try") 2>&5
26134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26135 (exit $ac_status); }; }; then
26136 ac_cv_func__doprnt=yes
26138 echo "$as_me: failed program was
:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 ac_cv_func__doprnt=no
26144 rm -f conftest.err conftest.$ac_objext \
26145 conftest$ac_exeext conftest.$ac_ext
26147 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
26148 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26149 if test $ac_cv_func__doprnt = yes; then
26151 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_DOPRNT 1
26207 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
26209 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
26210 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
26211 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
26212 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
26213 echo $ECHO_N "(cached
) $ECHO_C" >&6
26215 cat >conftest.$ac_ext <<_ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26223 #define $ac_func innocuous_$ac_func
26225 /* System header to define __stub macros and hopefully few prototypes,
26226 which can conflict with char $ac_func (); below.
26227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26228 <limits.h> exists even on freestanding compilers. */
26231 # include <limits.h>
26233 # include <assert.h>
26238 /* Override any GCC internal prototype to avoid an error.
26239 Use char because int might match the return type of a GCC
26240 builtin and then its argument prototype would still apply. */
26245 /* The GNU C library defines this for functions which it implements
26246 to always fail with ENOSYS. Some functions are actually named
26247 something starting with __ and the normal name is an alias. */
26248 #if defined __stub_$ac_func || defined __stub___$ac_func
26255 return $ac_func ();
26260 rm -f conftest.$ac_objext conftest$ac_exeext
26261 if { (ac_try="$ac_link"
26262 case "(($ac_try" in
26263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26264 *) ac_try_echo=$ac_try;;
26266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26267 (eval "$ac_link") 2>conftest.er1
26269 grep -v '^ *+' conftest.er1 >conftest.err
26271 cat conftest.err >&5
26272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26273 (exit $ac_status); } &&
26274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26275 { (case "(($ac_try" in
26276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277 *) ac_try_echo=$ac_try;;
26279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26280 (eval "$ac_try") 2>&5
26282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26283 (exit $ac_status); }; } &&
26284 { ac_try='test -s conftest$ac_exeext'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26293 (exit $ac_status); }; }; then
26294 eval "$as_ac_var=yes"
26296 echo "$as_me: failed program was
:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26299 eval "$as_ac_var=no
"
26302 rm -f conftest.err conftest.$ac_objext \
26303 conftest$ac_exeext conftest.$ac_ext
26305 ac_res=`eval echo '${'$as_ac_var'}'`
26306 { echo "$as_me:$LINENO: result
: $ac_res" >&5
26307 echo "${ECHO_T}$ac_res" >&6; }
26308 if test `eval echo '${'$as_ac_var'}'` = yes; then
26309 cat >>confdefs.h <<_ACEOF
26310 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
26317 echo -n "checking
for compiler atomic operations...
"
26318 cat >conftest.$ac_ext <<_ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26328 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_link") 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26346 (exit $ac_status); } &&
26347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26348 { (case "(($ac_try" in
26349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350 *) ac_try_echo=$ac_try;;
26352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26353 (eval "$ac_try") 2>&5
26355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26356 (exit $ac_status); }; } &&
26357 { ac_try='test -s conftest$ac_exeext'
26358 { (case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26363 (eval "$ac_try") 2>&5
26365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26366 (exit $ac_status); }; }; then
26367 { echo "$as_me:$LINENO: result
: yes" >&5
26368 echo "${ECHO_T}yes" >&6; }
26370 cat >>confdefs.h <<\_ACEOF
26371 #define HAVE_GCC_ATOMICS 1
26375 echo "$as_me: failed program was
:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 { echo "$as_me:$LINENO: result
: no
" >&5
26379 echo "${ECHO_T}no
" >&6; }
26383 rm -f conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
26386 ac_config_files="$ac_config_files build_tools
/menuselect-deps makeopts
"
26388 cat >confcache <<\_ACEOF
26389 # This file is a shell script that caches the results of configure
26390 # tests run on this system so they can be shared between configure
26391 # scripts and configure runs, see configure's option --config-cache.
26392 # It is not useful on other systems. If it contains results you don't
26393 # want to keep, you may remove or edit it.
26395 # config.status only pays attention to the cache file if you give it
26396 # the --recheck option to rerun configure.
26398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26400 # following values.
26404 # The following way of writing the cache mishandles newlines in values,
26405 # but we know of no workaround that is simple, portable, and efficient.
26406 # So, we kill variables containing newlines.
26407 # Ultrix sh set writes to stderr and can't be redirected directly,
26408 # and sets the high bit in the cache file unless we assign to the vars.
26410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26411 eval ac_val=\$$ac_var
26415 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26416 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26419 _ | IFS | as_nl) ;; #(
26420 *) $as_unset $ac_var ;;
26426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26427 *${as_nl}ac_space=\ *)
26428 # `set' does not quote correctly, so add quotes (double-quote
26429 # substitution turns \\\\ into \\, and sed turns \\ into \).
26432 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26435 # `set' quotes correctly as required by POSIX, so do not add quotes.
26436 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26450 if test -w "$cache_file"; then
26451 test "x
$cache_file" != "x
/dev
/null
" &&
26452 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26453 echo "$as_me: updating cache
$cache_file" >&6;}
26454 cat confcache >$cache_file
26456 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26457 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26462 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26463 # Let make expand exec_prefix.
26464 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26466 DEFS=-DHAVE_CONFIG_H
26470 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26471 # 1. Remove the extension, and $U if already installed.
26472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26473 ac_i=`echo "$ac_i" | sed "$ac_script"`
26474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26475 # will be set to the directory where LIBOBJS objects are built.
26476 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26477 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26479 LIBOBJS=$ac_libobjs
26481 LTLIBOBJS=$ac_ltlibobjs
26485 : ${CONFIG_STATUS=./config.status}
26486 ac_clean_files_save=$ac_clean_files
26487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26488 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26489 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26490 cat >$CONFIG_STATUS <<_ACEOF
26492 # Generated by $as_me.
26493 # Run this file to recreate the current configuration.
26494 # Compiler output produced by configure, useful for debugging
26495 # configure, is in config.log if it exists.
26498 ac_cs_recheck=false
26500 SHELL=\${CONFIG_SHELL-$SHELL}
26503 cat >>$CONFIG_STATUS <<\_ACEOF
26504 ## --------------------- ##
26505 ## M4sh Initialization. ##
26506 ## --------------------- ##
26508 # Be Bourne compatible
26509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26512 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26513 # is contrary to our usage. Disable this feature.
26514 alias -g '${1+"$@"}'='"$@
"'
26515 setopt NO_GLOB_SUBST
26517 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26519 BIN_SH=xpg4; export BIN_SH # for Tru64
26520 DUALCASE=1; export DUALCASE # for MKS sh
26524 # Avoid depending upon Character Ranges.
26525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26528 as_cr_digits='0123456789'
26529 as_cr_alnum=$as_cr_Letters$as_cr_digits
26531 # The user is always right.
26532 if test "${PATH_SEPARATOR+set}" != set; then
26533 echo "#! /bin/sh" >conf$$.sh
26534 echo "exit 0" >>conf$$.sh
26536 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26544 # Support unset when possible.
26545 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26553 # We need space, tab and new line, in precisely that order. Quoting is
26554 # there to prevent editors from complaining about space-tab.
26555 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26556 # splitting by setting IFS to empty value.)
26561 # Find who we are. Look in the path if we contain no directory separator.
26563 *[\\/]* ) as_myself
=$0 ;;
26564 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26565 for as_dir
in $PATH
26568 test -z "$as_dir" && as_dir
=.
26569 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26575 # We did not find ourselves, most probably we were run as `sh COMMAND'
26576 # in which case we are not to be found in the path.
26577 if test "x$as_myself" = x
; then
26580 if test ! -f "$as_myself"; then
26581 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26582 { (exit 1); exit 1; }
26585 # Work around bugs in pre-3.0 UWIN ksh.
26586 for as_var
in ENV MAIL MAILPATH
26587 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26595 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26596 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26597 LC_TELEPHONE LC_TIME
26599 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26600 eval $as_var=C
; export $as_var
26602 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26606 # Required to use basename.
26607 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26608 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26614 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26615 as_basename
=basename
26621 # Name of the executable.
26622 as_me
=`$as_basename -- "$0" ||
26623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26624 X"$0" : 'X\(//\)$' \| \
26625 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26627 sed '/^.*\/\([^/][^/]*\)\/*$/{
26646 as_lineno_1
=$LINENO
26647 as_lineno_2
=$LINENO
26648 test "x$as_lineno_1" != "x$as_lineno_2" &&
26649 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26651 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26652 # uniformly replaced by the line number. The first 'sed' inserts a
26653 # line-number line after each line using $LINENO; the second 'sed'
26654 # does the real work. The second script uses 'N' to pair each
26655 # line-number line with the line containing $LINENO, and appends
26656 # trailing '-' during substitution so that $LINENO is not a special
26657 # case at line end.
26658 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26659 # scripts with optimization help from Paolo Bonzini. Blame Lee
26660 # E. McMahon (1931-1989) for sed's syntax. :-)
26672 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26675 ' >$as_me.lineno
&&
26676 chmod +x
"$as_me.lineno" ||
26677 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26678 { (exit 1); exit 1; }; }
26680 # Don't try to exec as it changes $[0], causing all sort of problems
26681 # (the dirname of $[0] is not the place where we might find the
26682 # original and so on. Autoconf is especially sensitive to this).
26683 .
"./$as_me.lineno"
26684 # Exit status is that of the last command.
26689 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26695 ECHO_C
= ECHO_N
= ECHO_T
=
26696 case `echo -n x` in
26698 case `echo 'x\c'` in
26699 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26706 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26707 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26713 rm -f conf$$ conf$$.exe conf$$.
file
26714 if test -d conf$$.dir
; then
26715 rm -f conf$$.dir
/conf$$.
file
26721 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26723 # ... but there are two gotchas:
26724 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26725 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26726 # In both cases, we have to default to `cp -p'.
26727 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26729 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26734 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26735 rmdir conf$$.dir
2>/dev
/null
26737 if mkdir
-p .
2>/dev
/null
; then
26740 test -d .
/-p && rmdir .
/-p
26744 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26745 # systems may use methods other than mode bits to determine executability.
26746 cat >conf$$.
file <<_ASEOF
26750 chmod +x conf$$.
file
26751 if test -x conf$$.
file >/dev
/null
2>&1; then
26752 as_executable_p
="test -x"
26758 # Sed expression to map a string onto a valid CPP name.
26759 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26761 # Sed expression to map a string onto a valid variable name.
26762 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26767 # Save the log message, to keep $[0] and so on meaningful, and to
26768 # report actual input values of CONFIG_FILES etc. instead of their
26769 # values after options handling.
26771 This file was extended by $as_me, which was
26772 generated by GNU Autoconf 2.59e. Invocation command line was
26774 CONFIG_FILES = $CONFIG_FILES
26775 CONFIG_HEADERS = $CONFIG_HEADERS
26776 CONFIG_LINKS = $CONFIG_LINKS
26777 CONFIG_COMMANDS = $CONFIG_COMMANDS
26780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26785 cat >>$CONFIG_STATUS <<_ACEOF
26786 # Files that config.status was made for.
26787 config_files="$ac_config_files"
26788 config_headers="$ac_config_headers"
26792 cat >>$CONFIG_STATUS <<\_ACEOF
26794 \`$as_me' instantiates files from templates according to the
26795 current configuration.
26797 Usage: $0 [OPTIONS] [FILE]...
26799 -h, --help print this help, then exit
26800 -V, --version print version number, then exit
26801 -q, --quiet do not print progress messages
26802 -d, --debug don't remove temporary files
26803 --recheck update $as_me by reconfiguring in the same conditions
26804 --file=FILE[:TEMPLATE]
26805 instantiate the configuration file FILE
26806 --header=FILE[:TEMPLATE]
26807 instantiate the configuration header FILE
26809 Configuration files:
26812 Configuration headers:
26815 Report bugs to <bug-autoconf@gnu.org>."
26818 cat >>$CONFIG_STATUS <<_ACEOF
26821 configured by $0, generated by GNU Autoconf 2.59e,
26822 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26824 Copyright (C) 2006 Free Software Foundation, Inc.
26825 This config.status script is free software; the Free Software Foundation
26826 gives unlimited permission to copy, distribute and modify it."
26833 cat >>$CONFIG_STATUS <<\_ACEOF
26834 # If no file are specified by the user, then we need to provide default
26835 # value. By we need to know if files were specified by the user.
26841 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26842 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26853 # Handling of the options.
26854 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26856 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26857 echo "$ac_cs_version"; exit ;;
26858 --debug |
--debu |
--deb |
--de |
--d |
-d )
26860 --file |
--fil |
--fi |
--f )
26862 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26863 ac_need_defaults
=false
;;
26864 --header |
--heade |
--head |
--hea )
26866 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26867 ac_need_defaults
=false
;;
26869 # Conflict between --help and --header
26870 { echo "$as_me: error: ambiguous option: $1
26871 Try \`$0 --help' for more information." >&2
26872 { (exit 1); exit 1; }; };;
26873 --help |
--hel |
-h )
26874 echo "$ac_cs_usage"; exit ;;
26875 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26876 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26879 # This is an error.
26880 -*) { echo "$as_me: error: unrecognized option: $1
26881 Try \`$0 --help' for more information." >&2
26882 { (exit 1); exit 1; }; } ;;
26884 *) ac_config_targets
="$ac_config_targets $1"
26885 ac_need_defaults
=false
;;
26891 ac_configure_extra_args
=
26893 if $ac_cs_silent; then
26895 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26899 cat >>$CONFIG_STATUS <<_ACEOF
26900 if \$ac_cs_recheck; then
26901 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26902 CONFIG_SHELL=$SHELL
26903 export CONFIG_SHELL
26904 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26908 cat >>$CONFIG_STATUS <<\_ACEOF
26912 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26913 ## Running $as_me. ##
26919 cat >>$CONFIG_STATUS <<_ACEOF
26922 cat >>$CONFIG_STATUS <<\_ACEOF
26924 # Handling of arguments.
26925 for ac_config_target
in $ac_config_targets
26927 case $ac_config_target in
26928 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
26929 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
26930 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
26932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26934 { (exit 1); exit 1; }; };;
26939 # If the user did not use the arguments to specify the items to instantiate,
26940 # then the envvar interface is used. Set only those that are not.
26941 # We use the long form for the default assignment because of an extremely
26942 # bizarre bug on SunOS 4.1.3.
26943 if $ac_need_defaults; then
26944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26948 # Have a temporary directory for convenience. Make it in the build tree
26949 # simply because there is no reason against having it here, and in addition,
26950 # creating and moving files from /tmp can sometimes cause problems.
26951 # Hook for its removal unless debugging.
26952 # Note that there is a small window in which the directory will not be cleaned:
26953 # after its creation but before its name has been assigned to `$tmp'.
26957 trap 'exit_status=$?
26958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26960 trap '{ (exit 1); exit 1; }' 1 2 13 15
26962 # Create a (secure) tmp directory for tmp files.
26965 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26966 test -n "$tmp" && test -d "$tmp"
26969 tmp
=.
/conf$$
-$RANDOM
26970 (umask 077 && mkdir
"$tmp")
26973 echo "$me: cannot create a temporary directory in ." >&2
26974 { (exit 1); exit 1; }
26978 # Set up the sed scripts for CONFIG_FILES section.
26981 # No need to generate the scripts if there are no CONFIG_FILES.
26982 # This happens for instance when ./config.status config.h
26983 if test -n "$CONFIG_FILES"; then
26990 for ac_last_try
in false false false false false
:; do
26991 cat >conf$
$subs.
sed <<_ACEOF
26992 SHELL!$SHELL$ac_delim
26993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26999 exec_prefix!$exec_prefix$ac_delim
27000 prefix!$prefix$ac_delim
27001 program_transform_name!$program_transform_name$ac_delim
27002 bindir!$bindir$ac_delim
27003 sbindir!$sbindir$ac_delim
27004 libexecdir!$libexecdir$ac_delim
27005 datarootdir!$datarootdir$ac_delim
27006 datadir!$datadir$ac_delim
27007 sysconfdir!$sysconfdir$ac_delim
27008 sharedstatedir!$sharedstatedir$ac_delim
27009 localstatedir!$localstatedir$ac_delim
27010 includedir!$includedir$ac_delim
27011 oldincludedir!$oldincludedir$ac_delim
27012 docdir!$docdir$ac_delim
27013 infodir!$infodir$ac_delim
27014 htmldir!$htmldir$ac_delim
27015 dvidir!$dvidir$ac_delim
27016 pdfdir!$pdfdir$ac_delim
27017 psdir!$psdir$ac_delim
27018 libdir!$libdir$ac_delim
27019 localedir!$localedir$ac_delim
27020 mandir!$mandir$ac_delim
27021 DEFS!$DEFS$ac_delim
27022 ECHO_C!$ECHO_C$ac_delim
27023 ECHO_N!$ECHO_N$ac_delim
27024 ECHO_T!$ECHO_T$ac_delim
27025 LIBS!$LIBS$ac_delim
27026 build_alias!$build_alias$ac_delim
27027 host_alias!$host_alias$ac_delim
27028 target_alias!$target_alias$ac_delim
27029 build!$build$ac_delim
27030 build_cpu!$build_cpu$ac_delim
27031 build_vendor!$build_vendor$ac_delim
27032 build_os!$build_os$ac_delim
27033 host!$host$ac_delim
27034 host_cpu!$host_cpu$ac_delim
27035 host_vendor!$host_vendor$ac_delim
27036 host_os!$host_os$ac_delim
27037 target!$target$ac_delim
27038 target_cpu!$target_cpu$ac_delim
27039 target_vendor!$target_vendor$ac_delim
27040 target_os!$target_os$ac_delim
27041 PBX_PLATFORM!$PBX_PLATFORM$ac_delim
27042 PBX_CPU!$PBX_CPU$ac_delim
27043 PBX_VENDOR!$PBX_VENDOR$ac_delim
27044 PBX_OS!$PBX_OS$ac_delim
27045 UNAME!$UNAME$ac_delim
27046 PBX_OSREV!$PBX_OSREV$ac_delim
27047 OSISWIN32!$OSISWIN32$ac_delim
27048 PBX_OSTYPE!$PBX_OSTYPE$ac_delim
27051 RANLIB!$RANLIB$ac_delim
27054 WINDRES!$WINDRES$ac_delim
27055 DLLWRAP!$DLLWRAP$ac_delim
27056 CFLAGS!$CFLAGS$ac_delim
27057 LDFLAGS!$LDFLAGS$ac_delim
27058 CPPFLAGS!$CPPFLAGS$ac_delim
27059 ac_ct_CC!$ac_ct_CC$ac_delim
27060 EXEEXT!$EXEEXT$ac_delim
27061 OBJEXT!$OBJEXT$ac_delim
27062 CXXFLAGS!$CXXFLAGS$ac_delim
27063 ac_ct_CXX!$ac_ct_CXX$ac_delim
27065 CXXCPP!$CXXCPP$ac_delim
27067 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27068 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27069 INSTALL_DATA!$INSTALL_DATA$ac_delim
27070 LN_S!$LN_S$ac_delim
27071 GNU_MAKE!$GNU_MAKE$ac_delim
27072 GREP!$GREP$ac_delim
27073 FIND!$FIND$ac_delim
27074 COMPRESS!$COMPRESS$ac_delim
27075 BASENAME!$BASENAME$ac_delim
27076 DIRNAME!$DIRNAME$ac_delim
27079 AST_DEVMODE!$AST_DEVMODE$ac_delim
27080 EGREP!$EGREP$ac_delim
27081 ALSA_LIB!$ALSA_LIB$ac_delim
27082 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
27083 PBX_LIBALSA!$PBX_LIBALSA$ac_delim
27084 CURSES_LIB!$CURSES_LIB$ac_delim
27085 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
27086 PBX_LIBCURSES!$PBX_LIBCURSES$ac_delim
27087 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
27088 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
27091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27093 elif $ac_last_try; then
27094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27096 { (exit 1); exit 1; }; }
27098 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27102 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27103 if test -n "$ac_eof"; then
27104 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27105 ac_eof
=`expr $ac_eof + 1`
27108 cat >>$CONFIG_STATUS <<_ACEOF
27109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27114 s/^/s,@/; s/!/@,|#_!!_#|/
27117 s/'"$ac_delim"'$/,g/; t
27119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27120 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27121 rm -f conf$
$subs.
sed
27122 cat >>$CONFIG_STATUS <<_ACEOF
27128 for ac_last_try
in false false false false false
:; do
27129 cat >conf$
$subs.
sed <<_ACEOF
27130 PBX_LIBIKSEMEL!$PBX_LIBIKSEMEL$ac_delim
27131 NBS_LIB!$NBS_LIB$ac_delim
27132 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
27133 PBX_LIBNBS!$PBX_LIBNBS$ac_delim
27134 NCURSES_LIB!$NCURSES_LIB$ac_delim
27135 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
27136 PBX_LIBNCURSES!$PBX_LIBNCURSES$ac_delim
27137 NEWT_LIB!$NEWT_LIB$ac_delim
27138 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
27139 PBX_LIBNEWT!$PBX_LIBNEWT$ac_delim
27140 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
27141 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
27142 PBX_LIBUNIXODBC!$PBX_LIBUNIXODBC$ac_delim
27143 OGG_LIB!$OGG_LIB$ac_delim
27144 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
27145 PBX_LIBOGG!$PBX_LIBOGG$ac_delim
27146 OSPTK_LIB!$OSPTK_LIB$ac_delim
27147 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
27148 PBX_LIBOSPTK!$PBX_LIBOSPTK$ac_delim
27149 POPT_LIB!$POPT_LIB$ac_delim
27150 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
27151 PBX_LIBPOPT!$PBX_LIBPOPT$ac_delim
27152 LIBPRI_LIB!$LIBPRI_LIB$ac_delim
27153 LIBPRI_INCLUDE!$LIBPRI_INCLUDE$ac_delim
27154 PBX_LIBLIBPRI!$PBX_LIBLIBPRI$ac_delim
27155 RADIUSCLIENT_LIB!$RADIUSCLIENT_LIB$ac_delim
27156 RADIUSCLIENT_INCLUDE!$RADIUSCLIENT_INCLUDE$ac_delim
27157 PBX_LIBRADIUSCLIENT!$PBX_LIBRADIUSCLIENT$ac_delim
27158 SPEEX_LIB!$SPEEX_LIB$ac_delim
27159 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
27160 PBX_LIBSPEEX!$PBX_LIBSPEEX$ac_delim
27161 SQLITE_LIB!$SQLITE_LIB$ac_delim
27162 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
27163 PBX_LIBSQLITE!$PBX_LIBSQLITE$ac_delim
27164 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
27165 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27166 PBX_LIBOPENSSL!$PBX_LIBOPENSSL$ac_delim
27167 FREETDS_LIB!$FREETDS_LIB$ac_delim
27168 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
27169 PBX_LIBFREETDS!$PBX_LIBFREETDS$ac_delim
27170 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
27171 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
27172 PBX_LIBTERMCAP!$PBX_LIBTERMCAP$ac_delim
27173 TINFO_LIB!$TINFO_LIB$ac_delim
27174 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
27175 PBX_LIBTINFO!$PBX_LIBTINFO$ac_delim
27176 VORBIS_LIB!$VORBIS_LIB$ac_delim
27177 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
27178 PBX_LIBVORBIS!$PBX_LIBVORBIS$ac_delim
27179 ZLIB_LIB!$ZLIB_LIB$ac_delim
27180 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
27181 PBX_LIBZLIB!$PBX_LIBZLIB$ac_delim
27182 EDITLINE_LIBS!$EDITLINE_LIBS$ac_delim
27183 OSS_LIB!$OSS_LIB$ac_delim
27184 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
27185 PBX_LIBOSS!$PBX_LIBOSS$ac_delim
27186 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
27187 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
27188 PBX_LIBZAPTEL!$PBX_LIBZAPTEL$ac_delim
27189 gsm_LIB!$gsm_LIB$ac_delim
27190 gsm_INCLUDE!$gsm_INCLUDE$ac_delim
27191 PBX_LIBgsm!$PBX_LIBgsm$ac_delim
27192 PG_CONFIG!$PG_CONFIG$ac_delim
27193 pq_INCLUDE!$pq_INCLUDE$ac_delim
27194 pq_LIB!$pq_LIB$ac_delim
27195 PBX_LIBpq!$PBX_LIBpq$ac_delim
27196 PBX_H323!$PBX_H323$ac_delim
27197 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
27198 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
27199 VPB_LIB!$VPB_LIB$ac_delim
27200 PBX_LIBvpb!$PBX_LIBvpb$ac_delim
27201 QT_INCLUDE!$QT_INCLUDE$ac_delim
27202 QT_LIB!$QT_LIB$ac_delim
27203 QTMOC!$QTMOC$ac_delim
27204 PBX_QT!$PBX_QT$ac_delim
27205 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
27206 KDE_LIBS!$KDE_LIBS$ac_delim
27207 PBX_KDE!$PBX_KDE$ac_delim
27208 KDEINIT!$KDEINIT$ac_delim
27209 KDEDIR!$KDEDIR$ac_delim
27210 GTKCONFIG!$GTKCONFIG$ac_delim
27211 PBX_GTK!$PBX_GTK$ac_delim
27212 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
27213 GTK_LIBS!$GTK_LIBS$ac_delim
27214 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
27215 PWLIB_LIB!$PWLIB_LIB$ac_delim
27216 PBX_LIBPWLIB!$PBX_LIBPWLIB$ac_delim
27217 CURL!$CURL$ac_delim
27218 PBX_CURL!$PBX_CURL$ac_delim
27219 CURLLIBS!$CURLLIBS$ac_delim
27220 ALLOCA!$ALLOCA$ac_delim
27221 LIBOBJS!$LIBOBJS$ac_delim
27222 POW_LIB!$POW_LIB$ac_delim
27223 LTLIBOBJS!$LTLIBOBJS$ac_delim
27226 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
27228 elif $ac_last_try; then
27229 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27230 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27231 { (exit 1); exit 1; }; }
27233 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27237 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27238 if test -n "$ac_eof"; then
27239 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27240 ac_eof
=`expr $ac_eof + 1`
27243 cat >>$CONFIG_STATUS <<_ACEOF
27244 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27248 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27249 s/^/s,@/; s/!/@,|#_!!_#|/
27252 s/'"$ac_delim"'$/,g/; t
27254 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27255 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27256 rm -f conf$
$subs.
sed
27257 cat >>$CONFIG_STATUS <<_ACEOF
27264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27266 # trailing colons and then remove the whole line if VPATH becomes empty
27267 # (actually we leave an empty line to preserve line numbers).
27268 if test "x$srcdir" = x.
; then
27269 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27270 s/:*\$(srcdir):*/:/
27271 s/:*\${srcdir}:*/:/
27273 s/^\([^=]*=[ ]*\):*/\1/
27279 cat >>$CONFIG_STATUS <<\_ACEOF
27280 fi # test -n "$CONFIG_FILES"
27283 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
27286 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27288 case $ac_mode$ac_tag in
27290 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27291 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27292 { (exit 1); exit 1; }; };;
27293 :[FH
]-) ac_tag
=-:-;;
27294 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27311 -) ac_f
="$tmp/stdin";;
27312 *) # Look for the file first in the build tree, then in the source tree
27313 # (if the path is not absolute). The absolute path cannot be DOS-style,
27314 # because $ac_f cannot contain `:'.
27318 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27320 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27321 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27322 { (exit 1); exit 1; }; };;
27324 ac_file_inputs
="$ac_file_inputs $ac_f"
27327 # Let's still pretend it is `configure' which instantiates (i.e., don't
27328 # use $as_me), people would be surprised to read:
27329 # /* config.h. Generated by config.status. */
27330 configure_input
="Generated from "`IFS=:
27331 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27332 if test x
"$ac_file" != x-
; then
27333 configure_input
="$ac_file. $configure_input"
27334 { echo "$as_me:$LINENO: creating $ac_file" >&5
27335 echo "$as_me: creating $ac_file" >&6;}
27339 *:-:* |
*:-) cat >"$tmp/stdin";;
27344 ac_dir
=`$as_dirname -- "$ac_file" ||
27345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346 X"$ac_file" : 'X\(//\)[^/]' \| \
27347 X"$ac_file" : 'X\(//\)$' \| \
27348 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27354 /^X\(\/\/\)[^/].*/{
27369 -*) as_dir
=.
/$as_dir;;
27371 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27375 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27376 *) as_qdir
=$as_dir;;
27378 as_dirs
="'$as_qdir' $as_dirs"
27379 as_dir
=`$as_dirname -- "$as_dir" ||
27380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27381 X"$as_dir" : 'X\(//\)[^/]' \| \
27382 X"$as_dir" : 'X\(//\)$' \| \
27383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27389 /^X\(\/\/\)[^/].*/{
27402 test -d "$as_dir" && break
27404 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27405 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27406 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27407 { (exit 1); exit 1; }; }; }
27411 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27413 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27414 # A ".." for each directory in $ac_dir_suffix.
27415 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27416 case $ac_top_builddir_sub in
27417 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27418 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27421 ac_abs_top_builddir
=$ac_pwd
27422 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27423 # for backward compatibility:
27424 ac_top_builddir
=$ac_top_build_prefix
27427 .
) # We are building in place.
27429 ac_top_srcdir
=$ac_top_builddir_sub
27430 ac_abs_top_srcdir
=$ac_pwd ;;
27431 [\\/]* | ?
:[\\/]* ) # Absolute name.
27432 ac_srcdir
=$srcdir$ac_dir_suffix;
27433 ac_top_srcdir
=$srcdir
27434 ac_abs_top_srcdir
=$srcdir ;;
27435 *) # Relative name.
27436 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27437 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27438 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27440 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27450 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27451 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27455 cat >>$CONFIG_STATUS <<\_ACEOF
27456 # If the template does not know about datarootdir, expand it.
27457 # FIXME: This hack should be removed a few years after 2.60.
27458 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27460 case `sed -n '/datarootdir/ {
27469 ' $ac_file_inputs` in
27470 *datarootdir
*) ac_datarootdir_seen
=yes;;
27471 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27472 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27473 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27475 cat >>$CONFIG_STATUS <<_ACEOF
27476 ac_datarootdir_hack='
27477 s&@datadir@&$datadir&g
27478 s&@docdir@&$docdir&g
27479 s&@infodir@&$infodir&g
27480 s&@localedir@&$localedir&g
27481 s&@mandir@&$mandir&g
27482 s&\\\${datarootdir}&$datarootdir&g' ;;
27486 # Neutralize VPATH when `$srcdir' = `.'.
27487 # Shell code in configure.ac might set extrasub.
27488 # FIXME: do we really want to maintain this feature?
27489 cat >>$CONFIG_STATUS <<_ACEOF
27493 cat >>$CONFIG_STATUS <<\_ACEOF
27495 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27496 s
&@configure_input@
&$configure_input&;t t
27497 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27498 s
&@srcdir@
&$ac_srcdir&;t t
27499 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27500 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27501 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27502 s
&@builddir@
&$ac_builddir&;t t
27503 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27504 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27505 s
&@INSTALL@
&$ac_INSTALL&;t t
27506 $ac_datarootdir_hack
27507 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27509 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27510 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27511 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27512 which seems to be undefined. Please make sure it is defined." >&5
27513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27514 which seems to be undefined. Please make sure it is defined." >&2;}
27518 -) cat "$tmp/out"; rm -f "$tmp/out";;
27519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27528 # Transform confdefs.h into a sed script `conftest.defines', that
27529 # substitutes the proper values into config.h.in to produce config.h.
27530 rm -f conftest.defines conftest.
tail
27531 # First, append a space to every undef/define line, to ease matching.
27532 echo 's/$/ /' >conftest.defines
27533 # Then, protect against being on the right side of a sed subst, or in
27534 # an unquoted here document, in config.status. If some macros were
27535 # called several times there might be several #defines for the same
27536 # symbol, which is useless. But do not sort them, since the last
27537 # AC_DEFINE must be honored.
27538 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27541 # PARAMS is the parameter list in the macro definition--in most cases, it's
27542 # just an empty string.
27543 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27544 ac_dB
='\\)[ (].*,\\1define\\2'
27552 s/^[ ]*#[ ]*define[ ][ ]*//
27557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27559 ' >>conftest.defines
27561 # Remove the space that was appended to ease matching.
27562 # Then replace #undef with comments. This is necessary, for
27563 # example, in the case of _POSIX_SOURCE, which is predefined and required
27564 # on some systems where configure will not decide to define it.
27565 # (The regexp can be short, since the line contains either #define or #undef.)
27567 s,^[ #]*u.*,/* & */,' >>conftest.defines
27569 # Break up conftest.defines:
27570 ac_max_sed_lines
=50
27572 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27573 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27574 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27576 ac_in
='$ac_file_inputs'
27577 ac_out
='"$tmp/out1"'
27578 ac_nxt
='"$tmp/out2"'
27582 # Write a here document:
27583 cat >>$CONFIG_STATUS <<_ACEOF
27584 # First, check the format of the line:
27585 cat >"\$tmp/defines.sed" <<\\CEOF
27586 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27587 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27591 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27594 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27595 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27596 grep . conftest.
tail >/dev
/null ||
break
27597 rm -f conftest.defines
27598 mv conftest.
tail conftest.defines
27600 rm -f conftest.defines conftest.
tail
27602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27603 cat >>$CONFIG_STATUS <<\_ACEOF
27604 if test x
"$ac_file" != x-
; then
27605 echo "/* $configure_input */" >"$tmp/config.h"
27606 cat "$ac_result" >>"$tmp/config.h"
27607 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27609 echo "$as_me: $ac_file is unchanged" >&6;}
27612 mv "$tmp/config.h" $ac_file
27615 echo "/* $configure_input */"
27627 { (exit 0); exit 0; }
27629 chmod +x
$CONFIG_STATUS
27630 ac_clean_files
=$ac_clean_files_save
27633 # configure is writing to config.log, and then calls config.status.
27634 # config.status does its own redirection, appending to config.log.
27635 # Unfortunately, on DOS this fails, as config.log is still kept open
27636 # by configure, so config.status won't be able to write to it; its
27637 # output is simply discarded. So we exec the FD to /dev/null,
27638 # effectively closing config.log, so it can be properly (re)opened and
27639 # appended to by config.status. When coming back to configure, we
27640 # need to make the FD available again.
27641 if test "$no_create" != yes; then
27643 ac_config_status_args
=
27644 test "$silent" = yes &&
27645 ac_config_status_args
="$ac_config_status_args --quiet"
27647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27650 # would make configure fail if this is the last instruction.
27651 $ac_cs_success ||
{ (exit 1); exit 1; }
27656 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
27657 echo " .\$7\$7.. .7\$\$7:. "
27658 echo " .\$\$:. ,\$7.7 "
27659 echo " .\$7. 7\$\$\$\$ .\$\$77 "
27660 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
27661 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
27662 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
27663 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
27664 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
27665 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
27666 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
27667 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
27668 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
27669 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
27670 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
27671 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
27672 echo " \$\$\$\$\$ \$\$\$ "
27673 echo " \$\$\$\$7. \$\$ (TM) "
27674 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
27675 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
27676 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
27679 echo "Package configured for: "
27680 echo " OS type : $PBX_OSTYPE"
27681 echo " Host CPU : $host_cpu"
27682 if test "x${crossCompile}" = xYes
; then
27684 echo " Cross Compilation = YES"
27685 echo " Target = ${host}"