2 # From configure.ac Revision: 115257 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix
*) set -o posix
;;
38 # Avoid depending upon Character Ranges.
39 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits
='0123456789'
43 as_cr_alnum
=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
50 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
58 # Support unset when possible.
59 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself
=$0 ;;
78 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir
=.
83 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x
; then
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var
in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
113 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C
; export $as_var
116 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
128 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135 # Name of the executable.
136 as_me
=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x
; then
160 if (eval ":") 2>/dev
/null
; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev
/null
; then
226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
227 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir
=.
233 for as_base
in sh bash ksh sh5
; do
234 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
241 for as_shell
in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix
*) set -o posix
;;
263 CONFIG_SHELL
=$as_shell
265 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix
*) set -o posix
;;
291 as_func_ret_success
() {
294 as_func_ret_failure
() {
299 if as_func_success
; then
303 echo as_func_success failed.
306 if as_func_failure
; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success
; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure
; then
320 echo as_func_ret_failure succeeded.
323 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) ||
{ (exit 1); exit 1; }
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
347 if test "x$CONFIG_SHELL" != x
; then
348 for as_var
in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no
; then
357 echo This
script requires a shell
more modern than all the
358 echo shells that I found on your system. Please
install a
359 echo modern shell
, or manually run the
script under such a
360 echo shell
if you
do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
416 echo positional parameters were not saved.
419 test \$exitcode = 0") ||
{
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system
,
422 echo including any error possibly output before this
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x
"$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
471 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
477 ECHO_C
= ECHO_N
= ECHO_T
=
481 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
488 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
495 rm -f conf$$ conf$$.exe conf$$.
file
496 if test -d conf$$.dir
; then
497 rm -f conf$$.dir
/conf$$.
file
503 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
511 elif ln conf$$.
file conf$$
2>/dev
/null
; then
516 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
517 rmdir conf$$.dir
2>/dev
/null
519 if mkdir
-p .
2>/dev
/null
; then
522 test -d .
/-p && rmdir .
/-p
526 if test -x / >/dev
/null
2>&1; then
529 if ls -dL / >/dev
/null
2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
547 as_executable_p
=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev
/null
6>&1
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
567 ac_default_prefix
=/usr
/local
569 ac_config_libobj_dir
=.
575 SHELL
=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME
='asterisk'
579 PACKAGE_TARNAME
='asterisk'
580 PACKAGE_VERSION
='1.4'
581 PACKAGE_STRING
='asterisk 1.4'
582 PACKAGE_BUGREPORT
='www.asterisk.org'
584 ac_unique_file
="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
631 program_transform_name
885 AST_DECLARATION_AFTER_STATEMENT
886 AST_NO_STRICT_OVERFLOW
918 ac_precious_vars
='build_alias
933 # Initialize some variables set by options.
935 ac_init_version
=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name
=s
,x
,x
,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir
='${exec_prefix}/bin'
960 sbindir
='${exec_prefix}/sbin'
961 libexecdir
='${exec_prefix}/libexec'
962 datarootdir
='${prefix}/share'
963 datadir
='${datarootdir}'
964 sysconfdir
='${prefix}/etc'
965 sharedstatedir
='${prefix}/com'
966 localstatedir
='${prefix}/var'
967 includedir
='${prefix}/include'
968 oldincludedir
='/usr/include'
969 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir
='${datarootdir}/info'
975 libdir
='${exec_prefix}/lib'
976 localedir
='${datarootdir}/locale'
977 mandir
='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\
$ac_option
991 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1003 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1004 bindir
=$ac_optarg ;;
1006 -build |
--build |
--buil |
--bui |
--bu)
1007 ac_prev
=build_alias
;;
1008 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1009 build_alias
=$ac_optarg ;;
1011 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1012 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1013 ac_prev
=cache_file
;;
1014 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1015 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1016 cache_file
=$ac_optarg ;;
1018 --config-cache |
-C)
1019 cache_file
=config.cache
;;
1021 -datadir |
--datadir |
--datadi |
--datad)
1023 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1024 datadir
=$ac_optarg ;;
1026 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1027 |
--dataroo |
--dataro |
--datar)
1028 ac_prev
=datarootdir
;;
1029 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1030 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1031 datarootdir
=$ac_optarg ;;
1033 -disable-* |
--disable-*)
1034 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_
$ac_feature=no
;;
1042 -docdir |
--docdir |
--docdi |
--doc |
--do)
1044 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1045 docdir
=$ac_optarg ;;
1047 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1049 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1050 dvidir
=$ac_optarg ;;
1052 -enable-* |
--enable-*)
1053 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_
$ac_feature=\
$ac_optarg ;;
1061 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1062 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1063 |
--exec |
--exe |
--ex)
1064 ac_prev
=exec_prefix
;;
1065 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1066 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1067 |
--exec=* |
--exe=* |
--ex=*)
1068 exec_prefix
=$ac_optarg ;;
1070 -gas |
--gas |
--ga |
--g)
1071 # Obsolete; use --with-gas.
1074 -help |
--help |
--hel |
--he |
-h)
1075 ac_init_help
=long
;;
1076 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1077 ac_init_help
=recursive
;;
1078 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1079 ac_init_help
=short
;;
1081 -host |
--host |
--hos |
--ho)
1082 ac_prev
=host_alias
;;
1083 -host=* |
--host=* |
--hos=* |
--ho=*)
1084 host_alias
=$ac_optarg ;;
1086 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1088 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1090 htmldir
=$ac_optarg ;;
1092 -includedir |
--includedir |
--includedi |
--included |
--include \
1093 |
--includ |
--inclu |
--incl |
--inc)
1094 ac_prev
=includedir
;;
1095 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1096 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1097 includedir
=$ac_optarg ;;
1099 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1101 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1102 infodir
=$ac_optarg ;;
1104 -libdir |
--libdir |
--libdi |
--libd)
1106 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1107 libdir
=$ac_optarg ;;
1109 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1110 |
--libexe |
--libex |
--libe)
1111 ac_prev
=libexecdir
;;
1112 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1113 |
--libexe=* |
--libex=* |
--libe=*)
1114 libexecdir
=$ac_optarg ;;
1116 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1117 ac_prev
=localedir
;;
1118 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1119 localedir
=$ac_optarg ;;
1121 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1122 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1123 ac_prev
=localstatedir
;;
1124 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1125 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1126 localstatedir
=$ac_optarg ;;
1128 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1130 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1131 mandir
=$ac_optarg ;;
1133 -nfp |
--nfp |
--nf)
1134 # Obsolete; use --without-fp.
1137 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1138 |
--no-cr |
--no-c |
-n)
1141 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1142 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1145 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1146 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1147 |
--oldin |
--oldi |
--old |
--ol |
--o)
1148 ac_prev
=oldincludedir
;;
1149 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1150 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1151 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1152 oldincludedir
=$ac_optarg ;;
1154 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1156 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1157 prefix
=$ac_optarg ;;
1159 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1160 |
--program-pre |
--program-pr |
--program-p)
1161 ac_prev
=program_prefix
;;
1162 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1163 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1164 program_prefix
=$ac_optarg ;;
1166 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1167 |
--program-suf |
--program-su |
--program-s)
1168 ac_prev
=program_suffix
;;
1169 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1170 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1171 program_suffix
=$ac_optarg ;;
1173 -program-transform-name |
--program-transform-name \
1174 |
--program-transform-nam |
--program-transform-na \
1175 |
--program-transform-n |
--program-transform- \
1176 |
--program-transform |
--program-transfor \
1177 |
--program-transfo |
--program-transf \
1178 |
--program-trans |
--program-tran \
1179 |
--progr-tra |
--program-tr |
--program-t)
1180 ac_prev
=program_transform_name
;;
1181 -program-transform-name=* |
--program-transform-name=* \
1182 |
--program-transform-nam=* |
--program-transform-na=* \
1183 |
--program-transform-n=* |
--program-transform-=* \
1184 |
--program-transform=* |
--program-transfor=* \
1185 |
--program-transfo=* |
--program-transf=* \
1186 |
--program-trans=* |
--program-tran=* \
1187 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1188 program_transform_name
=$ac_optarg ;;
1190 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1192 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1193 pdfdir
=$ac_optarg ;;
1195 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1197 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1201 |
-silent |
--silent |
--silen |
--sile |
--sil)
1204 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1206 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1208 sbindir
=$ac_optarg ;;
1210 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1211 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1212 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1214 ac_prev
=sharedstatedir
;;
1215 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1216 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1217 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1219 sharedstatedir
=$ac_optarg ;;
1221 -site |
--site |
--sit)
1223 -site=* |
--site=* |
--sit=*)
1226 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1228 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1229 srcdir
=$ac_optarg ;;
1231 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1232 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1233 ac_prev
=sysconfdir
;;
1234 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1235 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1236 sysconfdir
=$ac_optarg ;;
1238 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1239 ac_prev
=target_alias
;;
1240 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1241 target_alias
=$ac_optarg ;;
1243 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1246 -version |
--version |
--versio |
--versi |
--vers |
-V)
1247 ac_init_version
=: ;;
1250 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_
$ac_package=\
$ac_optarg ;;
1258 -without-* |
--without-*)
1259 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_
$ac_package=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val
=\$
$ac_var
1324 [\\/$
]* | ?
:[\\/]* ) continue;;
1325 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target
=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x
; then
1340 if test "x$build_alias" = x
; then
1341 cross_compiling
=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1352 test "$silent" = yes && exec 6>/dev
/null
1355 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di
=`ls -di .` &&
1357 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted
=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir
=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1397 ac_srcdir_defaulted
=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var
in $ac_precious_vars; do
1420 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1422 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --build=BUILD configure
for building on BUILD
[guessed
]
1492 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive
) echo "Configuration of asterisk 1.4:";;
1503 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1504 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1505 --enable-dev-mode Turn on developer mode
1506 --disable-largefile omit support
for large files
1509 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1510 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1511 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1512 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1513 --with-curl=PATH use cURL files
in PATH
1514 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1515 --with-curses=PATH use curses files
in PATH
1516 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1518 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1519 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1520 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1521 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1522 --with-kde=PATH use KDE files
in PATH
1523 --with-ltdl=PATH use libtool files
in PATH
1524 --with-misdn=PATH use mISDN User Library files
in PATH
1525 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1526 --with-ncurses=PATH use ncurses files
in PATH
1527 --with-netsnmp=PATH use Net-SNMP files
in PATH
1528 --with-newt=PATH use newt files
in PATH
1529 --with-odbc=PATH use unixODBC files
in PATH
1530 --with-ogg=PATH use OGG files
in PATH
1531 --with-osptk=PATH use OSP Toolkit files
in PATH
1532 --with-oss=PATH use Open Sound System files
in PATH
1533 --with-popt=PATH use popt files
in PATH
1534 --with-postgres=PATH use PostgreSQL files
in PATH
1535 --with-pri=PATH use ISDN PRI files
in PATH
1536 --with-pwlib=PATH use PWlib files
in PATH
1537 --with-h323=PATH use OpenH323 files
in PATH
1538 --with-radius=PATH use Radius Client files
in PATH
1539 --with-speex=PATH use Speex files
in PATH
1540 --with-speexdsp=PATH use Speexdsp files
in PATH
1541 --with-sqlite=PATH use SQLite files
in PATH
1542 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1543 --with-ssl=PATH use OpenSSL files
in PATH
1544 --with-tds=PATH use FreeTDS files
in PATH
1545 --with-termcap=PATH use Termcap files
in PATH
1546 --with-tinfo=PATH use Term Info files
in PATH
1547 --with-tonezone=PATH use tonezone files
in PATH
1548 --with-usb=PATH use usb files
in PATH
1549 --with-vorbis=PATH use Vorbis files
in PATH
1550 --with-vpb=PATH use Voicetronix API files
in PATH
1551 --with-z=PATH use zlib files
in PATH
1552 --with-zaptel=PATH use Zaptel files
in PATH
1554 Some influential environment variables
:
1555 CC C compiler
command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1558 nonstandard directory
<lib dir
>
1559 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1560 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1561 you have headers
in a nonstandard directory
<include dir
>
1563 CXX C
++ compiler
command
1564 CXXFLAGS C
++ compiler flags
1565 CXXCPP C
++ preprocessor
1567 Use these variables to override the choices made by
`configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1570 Report bugs to <www.asterisk.org>.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 asterisk configure 1.4
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by asterisk $as_me 1.4, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1660 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1661 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1662 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1663 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1664 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1666 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1667 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1669 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1670 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1671 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1672 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1673 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1674 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1675 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_must_keep_next=false
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1719 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 -* ) ac_must_keep_next=true ;;
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1767 eval ac_val=\$$ac_var
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1920 ac_header_list="$ac_header_list utime.h"
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1932 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1936 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1943 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1944 echo "$as_me: former value
: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1946 echo "$as_me: current value
: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1964 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1965 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 # cross-compile macros
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 elif test -f "$ac_dir/install.sh"; then
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 elif test -f "$ac_dir/shtool"; then
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2067 ac_save_IFS=$IFS; IFS='-'
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2077 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2118 # check existence of the package
2121 # specify output header file
2122 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2129 cat >>confdefs.h <<\_ACEOF
2130 #define _GNU_SOURCE 1
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2376 if test -z "$CC"; then
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2420 if test "x$ac_ct_CC" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log
' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details.
" >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler --version >&5") 2>&5
2457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -v >&5") 2>&5
2467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2500 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2501 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2513 for ac_file in $ac_files
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522 if { (ac_try="$ac_link_default"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 # We found the default executable, but exeext='' is most
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was
:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2575 See \
`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log
' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='.
/$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 if test "$cross_compiling" = maybe; then
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \
`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details.
" >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result
: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2623 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2628 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2654 See \
`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log
' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2707 echo "$as_me: failed program was:" >&5
2708 sed 's
/^
/|
/' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details.
" >&5
2712 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2713 See \
`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2750 *) ac_try_echo
=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2755 grep -v '^ *+' conftest.er1
>conftest.err
2757 cat conftest.err
>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.
$ac_objext; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.
$ac_ext >&5
2771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS
=${CFLAGS+set}
2779 ac_save_CFLAGS
=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_save_c_werror_flag
=$ac_c_werror_flag
2786 ac_c_werror_flag
=yes
2789 cat >conftest.
$ac_ext <<_ACEOF
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.
$ac_objext
2805 if { (ac_try
="$ac_compile"
2807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2846 *) ac_try_echo
=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.
$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2864 ac_c_werror_flag
=$ac_save_c_werror_flag
2866 cat >conftest.
$ac_ext <<_ACEOF
2869 cat confdefs.h
>>conftest.
$ac_ext
2870 cat >>conftest.
$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.
$ac_objext
2882 if { (ac_try
="$ac_compile"
2884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 ac_cv_prog_cc_c89=no
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2963 s = g (p, va_arg (v,int));
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3004 *) ac_try_echo
=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.
$ac_objext; then
3017 ac_cv_prog_cc_c89
=$ac_arg
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.
$ac_ext >&5
3025 rm -f core conftest.err conftest.
$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 rm -f conftest.
$ac_ext
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC
="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3048 ac_cpp
='$CPP $CPPFLAGS'
3049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3055 ac_cpp
='$CPP $CPPFLAGS'
3056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3065 if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 # Double quotes because CPP needs to be expanded
3070 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 for ac_c_preproc_warn_flag
in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.
$ac_ext <<_ACEOF
3084 cat confdefs.h
>>conftest.
$ac_ext
3085 cat >>conftest.
$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3088 # include <limits.h>
3090 # include <assert.h>
3094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1
>conftest.err
3141 cat conftest.err
>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev
/null
&& {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3147 # Broken: success on invalid input.
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.
$ac_ext >&5
3153 # Passes both tests.
3158 rm -f conftest.err conftest.
$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.
$ac_ext
3163 if $ac_preproc_ok; then
3175 { echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6; }
3178 for ac_c_preproc_warn_flag
in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.
$ac_ext <<_ACEOF
3189 cat confdefs.h
>>conftest.
$ac_ext
3190 cat >>conftest.
$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 # include <limits.h>
3195 # include <assert.h>
3199 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3224 rm -f conftest.err conftest.$ac_ext
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3239 *) ac_try_echo
=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1
>conftest.err
3246 cat conftest.err
>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev
/null
&& {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3252 # Broken: success on invalid input.
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.
$ac_ext >&5
3258 # Passes both tests.
3263 rm -f conftest.err conftest.
$ac_ext
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.
$ac_ext
3268 if $ac_preproc_ok; then
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3279 ac_cpp
='$CPP $CPPFLAGS'
3280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287 if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 # Extract the first word of "grep ggrep" to use in msg output
3291 if test -z "$GREP"; then
3292 set dummy
grep ggrep
; ac_prog_name
=$2
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_path_GREP_found
=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_prog
in grep ggrep
; do
3304 for ac_exec_ext
in '' $ac_executable_extensions; do
3305 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3311 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3322 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3323 ac_count
=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP
="$ac_path_GREP"
3327 ac_path_GREP_max
=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3332 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3336 $ac_path_GREP_found && break 3
3346 GREP
="$ac_cv_path_GREP"
3347 if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3354 ac_cv_path_GREP
=$GREP
3359 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3361 GREP
="$ac_cv_path_GREP"
3364 { echo "$as_me:$LINENO: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_EGREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3370 then ac_cv_path_EGREP
="$GREP -E"
3372 # Extract the first word of "egrep" to use in msg output
3373 if test -z "$EGREP"; then
3374 set dummy
egrep; ac_prog_name
=$2
3375 if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 ac_path_EGREP_found
=false
3379 # Loop through the user's path and test for each of PROGNAME-LIST
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_prog
in egrep; do
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
3390 # Check for GNU $ac_path_EGREP
3391 case `"$ac_path_EGREP" --version 2>&1` in
3393 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
3402 echo 'EGREP' >> "conftest.nl"
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3404 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3405 ac_count
=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP
="$ac_path_EGREP"
3409 ac_path_EGREP_max
=$ac_count
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3414 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3418 $ac_path_EGREP_found && break 3
3428 EGREP
="$ac_cv_path_EGREP"
3429 if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3432 { (exit 1); exit 1; }; }
3436 ac_cv_path_EGREP
=$EGREP
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3444 EGREP
="$ac_cv_path_EGREP"
3448 { echo "$as_me:$LINENO: checking for AIX" >&5
3449 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "yes" >/dev
/null
2>&1; then
3463 { echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6; }
3465 cat >>confdefs.h
<<\_ACEOF
3466 #define _ALL_SOURCE 1
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3476 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3478 if test "${ac_cv_header_stdc+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 cat >conftest.
$ac_ext <<_ACEOF
3484 cat confdefs.h
>>conftest.
$ac_ext
3485 cat >>conftest.
$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3500 rm -f conftest.
$ac_objext
3501 if { (ac_try
="$ac_compile"
3503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_header_stdc=yes
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 ac_cv_header_stdc=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 if test $ac_cv_header_stdc = yes; then
3528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 $EGREP "memchr" >/dev/null 2>&1; then
3542 ac_cv_header_stdc=no
3548 if test $ac_cv_header_stdc = yes; then
3549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "free" >/dev/null 2>&1; then
3563 ac_cv_header_stdc=no
3569 if test $ac_cv_header_stdc = yes; then
3570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3571 if test "$cross_compiling" = yes; then
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3582 #if ((' ' & 0x0FF) == 0x020)
3583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3586 # define ISLOWER(c) \
3587 (('a' <= (c) && (c) <= 'i') \
3588 || ('j' <= (c) && (c) <= 'r') \
3589 || ('s' <= (c) && (c) <= 'z'))
3590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3598 for (i = 0; i < 256; i++)
3599 if (XOR (islower (i), ISLOWER (i))
3600 || toupper (i) != TOUPPER (i))
3605 rm -f conftest$ac_exeext
3606 if { (ac_try="$ac_link"
3608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3609 *) ac_try_echo
=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_link") 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3616 { (case "(($ac_try" in
3617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3632 ac_cv_header_stdc=no
3634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3661 inttypes.h stdint.h unistd.h
3663 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 $ac_includes_default
3677 #include <$ac_header>
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3683 *) ac_try_echo
=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1
>conftest.err
3690 cat conftest.err
>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.
$ac_objext; then
3696 eval "$as_ac_Header=yes"
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.
$ac_ext >&5
3701 eval "$as_ac_Header=no"
3704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3706 ac_res
=`eval echo '${'$as_ac_Header'}'`
3707 { echo "$as_me:$LINENO: result: $ac_res" >&5
3708 echo "${ECHO_T}$ac_res" >&6; }
3709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3710 cat >>confdefs.h
<<_ACEOF
3711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3719 if test "${ac_cv_header_minix_config_h+set}" = set; then
3720 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3721 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_minix_config_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3728 # Is the header compilable?
3729 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3730 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 $ac_includes_default
3738 #include <minix/config.h>
3740 rm -f conftest.
$ac_objext
3741 if { (ac_try
="$ac_compile"
3743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_header_compiler=yes
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_compiler=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6; }
3769 # Is the header present?
3770 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3771 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <minix/config.h>
3780 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3783 *) ac_try_echo
=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev
/null
&& {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3796 ac_header_preproc
=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.
$ac_ext >&5
3801 ac_header_preproc
=no
3804 rm -f conftest.err conftest.
$ac_ext
3805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6; }
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3815 ac_header_preproc
=yes
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3831 ## ------------------------------- ##
3832 ## Report this to www.asterisk.org ##
3833 ## ------------------------------- ##
3835 ) |
sed "s/^/$as_me: WARNING: /" >&2
3838 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3839 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_minix_config_h+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_cv_header_minix_config_h
=$ac_header_preproc
3845 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3846 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3849 if test $ac_cv_header_minix_config_h = yes; then
3856 if test "$MINIX" = yes; then
3858 cat >>confdefs.h
<<\_ACEOF
3859 #define _POSIX_SOURCE 1
3863 cat >>confdefs.h
<<\_ACEOF
3864 #define _POSIX_1_SOURCE 2
3868 cat >>confdefs.h
<<\_ACEOF
3884 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3885 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3886 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.
$ac_ext <<_ACEOF
3892 cat confdefs.h
>>conftest.
$ac_ext
3893 cat >>conftest.
$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # define __EXTENSIONS__ 1
3897 $ac_includes_default
3906 rm -f conftest.
$ac_objext
3907 if { (ac_try
="$ac_compile"
3909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_safe_to_define___extensions__=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_safe_to_define___extensions__=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3934 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3935 test $ac_cv_safe_to_define___extensions__ = yes &&
3936 cat >>confdefs.h <<\_ACEOF
3937 #define __EXTENSIONS__ 1
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _POSIX_PTHREAD_SEMANTICS 1
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _TANDEM_SOURCE 1
3948 # note- does not work on FreeBSD
3950 case "${host_os}" in
3952 ac_default_prefix=/usr/local
3953 CPPFLAGS=-I/usr/local/include
3954 LDFLAGS=-L/usr/local/lib
3957 ac_default_prefix=/usr
3958 if test ${sysconfdir} = '${prefix}/etc'; then
3961 if test ${mandir} = '${prefix}/man'; then
3962 mandir=/usr/share/man
3967 if test ${localstatedir} = '${prefix}/var'; then
3971 BUILD_PLATFORM=${build}
3972 BUILD_CPU=${build_cpu}
3973 BUILD_VENDOR=${build_vendor}
3974 BUILD_OS=${build_os}
3981 HOST_PLATFORM=${host}
3982 HOST_CPU=${host_cpu}
3983 HOST_VENDOR=${host_vendor}
3991 case "${host_os}" in
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}uname; ac_word=$2
4015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_UNAME+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 UNAME=$ac_cv_path_UNAME
4044 if test -n "$UNAME"; then
4045 { echo "$as_me:$LINENO: result: $UNAME" >&5
4046 echo "${ECHO_T}$UNAME" >&6; }
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4054 if test -z "$ac_cv_path_UNAME"; then
4056 # Extract the first word of "uname", so it can be a program name with args.
4057 set dummy uname; ac_word=$2
4058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $ac_pt_UNAME in
4065 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4087 if test -n "$ac_pt_UNAME"; then
4088 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4089 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 if test "x$ac_pt_UNAME" = x; then
4098 case $cross_compiling:$ac_tool_warned in
4100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4101 whose name does not start with the host triplet. If you think this
4102 configuration is useful to you, please write to autoconf@gnu.org." >&5
4103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet. If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4106 ac_tool_warned=yes ;;
4111 UNAME="$ac_cv_path_UNAME"
4114 if test ! x"${UNAME}" = xNo; then
4115 PBX_OSREV=$(${UNAME} -r)
4125 # cross-compile checks
4126 if test "${cross_compiling}" = "yes";
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 if test -n "$CC"; then
4158 { echo "$as_me:$LINENO: result: $CC" >&5
4159 echo "${ECHO_T}$CC" >&6; }
4161 { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4167 if test -z "$ac_cv_prog_CC"; then
4169 # Extract the first word of "gcc", so it can be a program name with args.
4170 set dummy gcc; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_ac_ct_CC="gcc"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6; }
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4205 if test "x$ac_ct_CC" = x; then
4208 case $cross_compiling:$ac_tool_warned in
4210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&5
4213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214 whose name does not start with the host triplet. If you think this
4215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216 ac_tool_warned=yes ;;
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}g++; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$CXX"; then
4233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 if test -n "$CXX"; then
4254 { echo "$as_me:$LINENO: result: $CXX" >&5
4255 echo "${ECHO_T}$CXX" >&6; }
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4263 if test -z "$ac_cv_prog_CXX"; then
4265 # Extract the first word of "g++", so it can be a program name with args.
4266 set dummy g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CXX="g++"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293 if test -n "$ac_ct_CXX"; then
4294 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4295 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4301 if test "x$ac_ct_CXX" = x; then
4304 case $cross_compiling:$ac_tool_warned in
4306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet. If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&5
4309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4310 whose name does not start with the host triplet. If you think this
4311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4312 ac_tool_warned=yes ;;
4317 CXX="$ac_cv_prog_CXX"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ld; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_prog_LD+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$LD"; then
4329 ac_cv_prog_LD="$LD" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_LD="${ac_tool_prefix}ld"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 if test -n "$LD"; then
4350 { echo "$as_me:$LINENO: result: $LD" >&5
4351 echo "${ECHO_T}$LD" >&6; }
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4359 if test -z "$ac_cv_prog_LD"; then
4361 # Extract the first word of "ld", so it can be a program name with args.
4362 set dummy ld; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$ac_ct_LD"; then
4369 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_LD="ld"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4389 if test -n "$ac_ct_LD"; then
4390 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4391 echo "${ECHO_T}$ac_ct_LD" >&6; }
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4397 if test "x$ac_ct_LD" = x; then
4400 case $cross_compiling:$ac_tool_warned in
4402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4403 whose name does not start with the host triplet. If you think this
4404 configuration is useful to you, please write to autoconf@gnu.org." >&5
4405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4406 whose name does not start with the host triplet. If you think this
4407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4408 ac_tool_warned=yes ;;
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_RANLIB+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$RANLIB"; then
4425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 RANLIB=$ac_cv_prog_RANLIB
4445 if test -n "$RANLIB"; then
4446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4447 echo "${ECHO_T}$RANLIB" >&6; }
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4455 if test -z "$ac_cv_prog_RANLIB"; then
4456 ac_ct_RANLIB=$RANLIB
4457 # Extract the first word of "ranlib", so it can be a program name with args.
4458 set dummy ranlib; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 if test -n "$ac_ct_RANLIB"; then
4465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_RANLIB="ranlib"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4485 if test -n "$ac_ct_RANLIB"; then
4486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4487 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4493 if test "x$ac_ct_RANLIB" = x; then
4496 case $cross_compiling:$ac_tool_warned in
4498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499 whose name does not start with the host triplet. If you think this
4500 configuration is useful to you, please write to autoconf@gnu.org." >&5
4501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4504 ac_tool_warned=yes ;;
4506 RANLIB=$ac_ct_RANLIB
4509 RANLIB="$ac_cv_prog_RANLIB"
4514 # Checks for programs.
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 if test -n "$CC"; then
4550 { echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4559 if test -z "$ac_cv_prog_CC"; then
4561 # Extract the first word of "gcc", so it can be a program name with args.
4562 set dummy gcc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_CC="gcc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4597 if test "x$ac_ct_CC" = x; then
4600 case $cross_compiling:$ac_tool_warned in
4602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}cc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}cc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4657 if test -z "$CC"; then
4658 # Extract the first word of "cc", so it can be a program name with args.
4659 set dummy cc; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4677 ac_prog_rejected=yes
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test $ac_prog_rejected = yes; then
4689 # We found a bogon in the path, so make sure we never use it.
4690 set dummy $ac_cv_prog_CC
4692 if test $# != 0; then
4693 # We chose a different compiler from the bogus one.
4694 # However, it has the same basename, so the bogon will be chosen
4695 # first if we set CC to just the basename; use the full file name.
4697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4703 if test -n "$CC"; then
4704 { echo "$as_me:$LINENO: result: $CC" >&5
4705 echo "${ECHO_T}$CC" >&6; }
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 for ac_prog in cl.exe
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4754 test -n "$CC" && break
4757 if test -z "$CC"; then
4759 for ac_prog in cl.exe
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 if test -n "$ac_ct_CC"; then
4769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_CC="$ac_prog"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4789 if test -n "$ac_ct_CC"; then
4790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4791 echo "${ECHO_T}$ac_ct_CC" >&6; }
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 test -n "$ac_ct_CC" && break
4801 if test "x$ac_ct_CC" = x; then
4804 case $cross_compiling:$ac_tool_warned in
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the host triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the host triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4822 See \`config.log
' for more details." >&5
4823 echo "$as_me: error: no acceptable C compiler found in \$PATH
4824 See \`config.log' for more details.
" >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Provide some information about the compiler.
4828 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4829 ac_compiler=`set X $ac_compile; echo $2`
4830 { (ac_try="$ac_compiler --version >&5"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compiler --version >&5") 2>&5
4838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4839 (exit $ac_status); }
4840 { (ac_try="$ac_compiler -v >&5"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compiler -v >&5") 2>&5
4848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4849 (exit $ac_status); }
4850 { (ac_try="$ac_compiler -V >&5"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compiler -V >&5") 2>&5
4858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4859 (exit $ac_status); }
4861 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4862 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4864 echo $ECHO_N "(cached
) $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4903 echo "$as_me: failed program was
:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4913 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4915 GCC=`test $ac_compiler_gnu = yes && echo yes`
4916 ac_test_CFLAGS=${CFLAGS+set}
4917 ac_save_CFLAGS=$CFLAGS
4918 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4919 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4920 if test "${ac_cv_prog_cc_g+set}" = set; then
4921 echo $ECHO_N "(cached
) $ECHO_C" >&6
4923 ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4961 echo "$as_me: failed program was
:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4999 echo "$as_me: failed program was
:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_c_werror_flag=$ac_save_c_werror_flag
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5038 echo "$as_me: failed program was
:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_c_werror_flag=$ac_save_c_werror_flag
5053 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5055 if test "$ac_test_CFLAGS" = set; then
5056 CFLAGS=$ac_save_CFLAGS
5057 elif test $ac_cv_prog_cc_g = yes; then
5058 if test "$GCC" = yes; then
5064 if test "$GCC" = yes; then
5070 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5071 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5072 if test "${ac_cv_prog_cc_c89+set}" = set; then
5073 echo $ECHO_N "(cached
) $ECHO_C" >&6
5075 ac_cv_prog_cc_c89=no
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5085 #include <sys/types.h>
5086 #include <sys/stat.h>
5087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5088 struct buf { int x; };
5089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5090 static char *e (p, i)
5096 static char *f (char * (*g) (char **, int), char **p, ...)
5101 s = g (p, va_arg (v,int));
5106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5107 function prototypes and stuff, but not '\xHH' hex character constants.
5108 These don't provoke an error unfortunately, instead are silently treated
5109 as 'x'. The following induces an error, until -std is added to get
5110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5111 array size at least. It's necessary to write '\x00'==0 to get something
5112 that's true only with -std. */
5113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5116 inside strings and character constants. */
5118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5120 int test (int i, double x);
5121 struct s1 {int (*f) (int a);};
5122 struct s2 {int (*f) (double a);};
5123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5137 CC="$ac_save_CC $ac_arg"
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_prog_cc_c89=$ac_arg
5157 echo "$as_me: failed program was
:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5166 rm -f conftest.$ac_ext
5171 case "x
$ac_cv_prog_cc_c89" in
5173 { echo "$as_me:$LINENO: result
: none needed
" >&5
5174 echo "${ECHO_T}none needed
" >&6; } ;;
5176 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5177 echo "${ECHO_T}unsupported
" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5206 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5207 if test "${ac_cv_prog_CXX+set}" = set; then
5208 echo $ECHO_N "(cached
) $ECHO_C" >&6
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5231 if test -n "$CXX"; then
5232 { echo "$as_me:$LINENO: result
: $CXX" >&5
5233 echo "${ECHO_T}$CXX" >&6; }
5235 { echo "$as_me:$LINENO: result
: no
" >&5
5236 echo "${ECHO_T}no
" >&6; }
5240 test -n "$CXX" && break
5243 if test -z "$CXX"; then
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5250 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5252 echo $ECHO_N "(cached
) $ECHO_C" >&6
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279 { echo "$as_me:$LINENO: result
: no
" >&5
5280 echo "${ECHO_T}no
" >&6; }
5284 test -n "$ac_ct_CXX" && break
5287 if test "x
$ac_ct_CXX" = x; then
5290 case $cross_compiling:$ac_tool_warned in
5292 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5293 whose name does not start with the
host triplet. If you think this
5294 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5295 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5296 whose name does not start with the
host triplet. If you think this
5297 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5298 ac_tool_warned=yes ;;
5306 # Provide some information about the compiler.
5307 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (ac_try="$ac_compiler --version >&5"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compiler --version >&5") 2>&5
5317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5318 (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler -v >&5") 2>&5
5327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -V >&5"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -V >&5") 2>&5
5337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5338 (exit $ac_status); }
5340 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5341 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5343 echo $ECHO_N "(cached
) $ECHO_C" >&6
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_cxx_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5382 echo "$as_me: failed program was
:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5392 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5394 GXX=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CXXFLAGS=${CXXFLAGS+set}
5396 ac_save_CXXFLAGS=$CXXFLAGS
5397 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5398 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cxx_g+set}" = set; then
5400 echo $ECHO_N "(cached
) $ECHO_C" >&6
5402 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5403 ac_cxx_werror_flag=yes
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_cxx_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5438 ac_cv_prog_cxx_g=yes
5440 echo "$as_me: failed program was
:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_cxx_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5478 echo "$as_me: failed program was
:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_prog_cxx_g=yes
5517 echo "$as_me: failed program was
:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5534 if test "$ac_test_CXXFLAGS" = set; then
5535 CXXFLAGS=$ac_save_CXXFLAGS
5536 elif test $ac_cv_prog_cxx_g = yes; then
5537 if test "$GXX" = yes; then
5543 if test "$GXX" = yes; then
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5561 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then
5568 echo $ECHO_N "(cached
) $ECHO_C" >&6
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error
" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 # include <limits.h>
5591 # include <assert.h>
5595 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5607 (exit $ac_status); } >/dev/null && {
5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5613 echo "$as_me: failed program was
:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Broken: fails on valid input.
5620 rm -f conftest.err conftest.$ac_ext
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5632 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5644 (exit $ac_status); } >/dev/null && {
5645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5648 # Broken: success on invalid input.
5651 echo "$as_me: failed program was
:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 # Passes both tests.
5659 rm -f conftest.err conftest.$ac_ext
5662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663 rm -f conftest.err conftest.$ac_ext
5664 if $ac_preproc_ok; then
5676 { echo "$as_me:$LINENO: result
: $CPP" >&5
5677 echo "${ECHO_T}$CPP" >&6; }
5679 for ac_c_preproc_warn_flag in '' yes
5681 # Use a header file that comes with gcc, so configuring glibc
5682 # with a fresh cross-compiler works.
5683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 # <limits.h> exists even on freestanding compilers.
5685 # On the NeXT, cc -E runs the code through the compiler's parser,
5686 # not just through cpp. "Syntax error
" is here to catch this case.
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 # include <limits.h>
5696 # include <assert.h>
5700 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5712 (exit $ac_status); } >/dev/null && {
5713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5718 echo "$as_me: failed program was
:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Broken: fails on valid input.
5725 rm -f conftest.err conftest.$ac_ext
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5737 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5749 (exit $ac_status); } >/dev/null && {
5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5753 # Broken: success on invalid input.
5756 echo "$as_me: failed program was
:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Passes both tests.
5764 rm -f conftest.err conftest.$ac_ext
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5772 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5773 See \
`config.log' for more details." >&5
5774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5775 See \`config.log
' for more details." >&2;}
5776 { (exit 1); exit 1; }; }
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5782 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 ac_cpp='$CXXCPP $CPPFLAGS'
5787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5788 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5791 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5792 if test -z "$CXXCPP"; then
5793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 # Double quotes because CXXCPP needs to be expanded
5797 for CXXCPP in "$CXX -E" "/lib/cpp"
5800 for ac_cxx_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser
,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.
$ac_ext <<_ACEOF
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 # include <limits.h>
5817 # include <assert.h>
5821 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 # Broken: fails on valid input.
5846 rm -f conftest.err conftest.$ac_ext
5848 # OK, works on sane cases. Now check whether nonexistent headers
5849 # can be detected and how.
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5861 *) ac_try_echo
=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev
/null
&& {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5874 # Broken: success on invalid input.
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 # Passes both tests.
5885 rm -f conftest.err conftest.
$ac_ext
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.
$ac_ext
5890 if $ac_preproc_ok; then
5895 ac_cv_prog_CXXCPP
=$CXXCPP
5898 CXXCPP
=$ac_cv_prog_CXXCPP
5900 ac_cv_prog_CXXCPP
=$CXXCPP
5902 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5903 echo "${ECHO_T}$CXXCPP" >&6; }
5905 for ac_cxx_preproc_warn_flag
in '' yes
5907 # Use a header file that comes with gcc, so configuring glibc
5908 # with a fresh cross-compiler works.
5909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910 # <limits.h> exists even on freestanding compilers.
5911 # On the NeXT, cc -E runs the code through the compiler's parser,
5912 # not just through cpp. "Syntax error" is here to catch this case.
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 # include <limits.h>
5922 # include <assert.h>
5926 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5940 test ! -s conftest.err
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 # Broken: fails on valid input.
5951 rm -f conftest.err conftest.$ac_ext
5953 # OK, works on sane cases. Now check whether nonexistent headers
5954 # can be detected and how.
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <ac_nonexistent.h>
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5966 *) ac_try_echo
=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1
>conftest.err
5973 cat conftest.err
>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev
/null
&& {
5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977 test ! -s conftest.err
5979 # Broken: success on invalid input.
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.
$ac_ext >&5
5985 # Passes both tests.
5990 rm -f conftest.err conftest.
$ac_ext
5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994 rm -f conftest.err conftest.
$ac_ext
5995 if $ac_preproc_ok; then
5998 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&5
6000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6001 See \`config.log' for more details." >&2;}
6002 { (exit 1); exit 1; }; }
6006 ac_cpp
='$CPP $CPPFLAGS'
6007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6011 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6012 # the developers regenerating the configure script don't have to install libtool.
6013 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6014 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_SED+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6019 for ac_i
in 1 2 3 4 5 6 7; do
6020 ac_script
="$ac_script$as_nl$ac_script"
6022 echo "$ac_script" |
sed 99q
>conftest.
sed
6023 $as_unset ac_script || ac_script
=
6024 # Extract the first word of "sed gsed" to use in msg output
6025 if test -z "$SED"; then
6026 set dummy
sed gsed
; ac_prog_name
=$2
6027 if test "${ac_cv_path_SED+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_path_SED_found
=false
6031 # Loop through the user's path and test for each of PROGNAME-LIST
6032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir
=.
6037 for ac_prog
in sed gsed
; do
6038 for ac_exec_ext
in '' $ac_executable_extensions; do
6039 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6040 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6041 # Check for GNU ac_path_SED and select it if it is found.
6042 # Check for GNU $ac_path_SED
6043 case `"$ac_path_SED" --version 2>&1` in
6045 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6048 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6051 cat "conftest.in" "conftest.in" >"conftest.tmp"
6052 mv "conftest.tmp" "conftest.in"
6053 cp "conftest.in" "conftest.nl"
6054 echo '' >> "conftest.nl"
6055 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6056 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6057 ac_count
=`expr $ac_count + 1`
6058 if test $ac_count -gt ${ac_path_SED_max-0}; then
6059 # Best one so far, save it but keep looking for a better one
6060 ac_cv_path_SED
="$ac_path_SED"
6061 ac_path_SED_max
=$ac_count
6063 # 10*(2^10) chars as input seems more than enough
6064 test $ac_count -gt 10 && break
6066 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6070 $ac_path_SED_found && break 3
6080 SED
="$ac_cv_path_SED"
6081 if test -z "$SED"; then
6082 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6083 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6084 { (exit 1); exit 1; }; }
6092 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6093 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6094 SED
="$ac_cv_path_SED"
6097 { echo "$as_me:$LINENO: checking for egrep" >&5
6098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_egrep+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6103 then ac_cv_prog_egrep
='grep -E'
6104 else ac_cv_prog_egrep
='egrep'
6107 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6109 EGREP
=$ac_cv_prog_egrep
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6121 if test "$GCC" = yes; then
6122 # Check if gcc -print-prog-name=ld gives a path.
6123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6127 # gcc leaves a trailing carriage return which upsets mingw
6128 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6130 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6133 # Accept absolute paths.
6135 re_direlt
='/[^/][^/]*/\.\./'
6136 # Canonicalize the pathname of ld
6137 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6139 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6141 test -z "$LD" && LD
="$ac_prog"
6144 # If it fails, then pretend we aren't using GCC.
6148 # If it is relative, then search for the first ld in PATH.
6152 elif test "$with_gnu_ld" = yes; then
6153 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6159 if test "${lt_cv_path_LD+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test -z "$LD"; then
6163 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6164 for ac_dir
in $PATH; do
6166 test -z "$ac_dir" && ac_dir
=.
6167 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168 lt_cv_path_LD
="$ac_dir/$ac_prog"
6169 # Check to see if the program is GNU ld. I'd rather use --version,
6170 # but apparently some variants of GNU ld only accept -v.
6171 # Break only if it was the GNU/non-GNU ld that we prefer.
6172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173 *GNU
* |
*'with BFD'*)
6174 test "$with_gnu_ld" != no
&& break
6177 test "$with_gnu_ld" != yes && break
6184 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6189 if test -n "$LD"; then
6190 { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198 { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU
* |
*'with BFD'*)
6207 lt_cv_prog_gnu_ld
=yes
6210 lt_cv_prog_gnu_ld
=no
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld
=$lt_cv_prog_gnu_ld
6218 # note - does not work on freebsd
6219 for ac_prog
in gawk mawk nawk
awk
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy
$ac_prog; ac_word
=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test -n "$AWK"; then
6229 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir
=.
6236 for ac_exec_ext
in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AWK
="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 if test -n "$AWK"; then
6250 { echo "$as_me:$LINENO: result: $AWK" >&5
6251 echo "${ECHO_T}$AWK" >&6; }
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 test -n "$AWK" && break
6261 # Find a good install program. We prefer a C program (faster),
6262 # so one script is as good as another. But avoid the broken or
6263 # incompatible versions:
6264 # SysV /etc/install, /usr/sbin/install
6265 # SunOS /usr/etc/install
6266 # IRIX /sbin/install
6268 # AmigaOS /C/install, which installs bootblocks on floppy discs
6269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6272 # OS/2's system install, which has a completely different semantic
6273 # ./install, which can be erroneously created by make from ./install.sh.
6274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6276 if test -z "$INSTALL"; then
6277 if test "${ac_cv_path_install+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir
=.
6285 # Account for people who put trailing slashes in PATH elements.
6287 .
/ | .
// |
/cC
/* | \
6288 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6289 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6292 # OSF1 and SCO ODT 3.0 have their own names for install.
6293 # Don't use installbsd from OSF since it installs stuff as root
6295 for ac_prog
in ginstall scoinst
install; do
6296 for ac_exec_ext
in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6298 if test $ac_prog = install &&
6299 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6300 # AIX install. It has an incompatible calling convention.
6302 elif test $ac_prog = install &&
6303 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6304 # program-specific install script used by HP pwplus--don't use.
6307 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6320 if test "${ac_cv_path_install+set}" = set; then
6321 INSTALL
=$ac_cv_path_install
6323 # As a last resort, use the slow shell script. Don't cache a
6324 # value for INSTALL within a source directory, because that will
6325 # break other packages using the cache if that directory is
6326 # removed, or if the value is a relative name.
6327 INSTALL
=$ac_install_sh
6330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6331 echo "${ECHO_T}$INSTALL" >&6; }
6333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6334 # It thinks the first close brace ends the variable substitution.
6335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6344 if test "$LN_S" = "ln -s"; then
6345 { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6349 echo "${ECHO_T}no, using $LN_S" >&6; }
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir
=.
6368 for ac_exec_ext
in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 RANLIB
=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB
=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib
; ac_word
=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir
=.
6408 for ac_exec_ext
in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 if test "x$ac_ct_RANLIB" = x
; then
6432 case $cross_compiling:$ac_tool_warned in
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned
=yes ;;
6442 RANLIB
=$ac_ct_RANLIB
6445 RANLIB
="$ac_cv_prog_RANLIB"
6448 { echo "$as_me:$LINENO: checking for GNU make" >&5
6449 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6450 if test "${GNU_MAKE+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 GNU_MAKE
='Not Found' ;
6454 GNU_MAKE_VERSION_MAJOR
=0 ;
6455 GNU_MAKE_VERSION_MINOR
=0 ;
6456 for a
in make gmake gnumake
; do
6457 if test -z "$a" ; then continue ; fi ;
6458 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6460 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6461 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6467 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6468 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6469 if test "x$GNU_MAKE" = "xNot Found" ; then
6470 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6471 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6472 { (exit 1); exit 1; }; }
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_STRIP+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir
=.
6496 for ac_exec_ext
in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 STRIP
=$ac_cv_path_STRIP
6510 if test -n "$STRIP"; then
6511 { echo "$as_me:$LINENO: result: $STRIP" >&5
6512 echo "${ECHO_T}$STRIP" >&6; }
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6520 if test -z "$ac_cv_path_STRIP"; then
6522 # Extract the first word of "strip", so it can be a program name with args.
6523 set dummy strip
; ac_word
=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 case $ac_pt_STRIP in
6531 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir
=.
6539 for ac_exec_ext
in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6553 if test -n "$ac_pt_STRIP"; then
6554 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6555 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6561 if test "x$ac_pt_STRIP" = x
; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet. If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned
=yes ;;
6577 STRIP
="$ac_cv_path_STRIP"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6582 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir
=.
6598 for ac_exec_ext
in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 if test -n "$AR"; then
6613 { echo "$as_me:$LINENO: result: $AR" >&5
6614 echo "${ECHO_T}$AR" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6622 if test -z "$ac_cv_path_AR"; then
6624 # Extract the first word of "ar", so it can be a program name with args.
6625 set dummy
ar; ac_word
=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir
=.
6641 for ac_exec_ext
in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6655 if test -n "$ac_pt_AR"; then
6656 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6657 echo "${ECHO_T}$ac_pt_AR" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6663 if test "x$ac_pt_AR" = x
; then
6666 case $cross_compiling:$ac_tool_warned in
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674 ac_tool_warned
=yes ;;
6684 if test "x$with_gnu_ld" = "xyes" ; then
6689 # Extract the first word of "awk", so it can be a program name with args.
6690 set dummy
awk; ac_word
=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_AWK+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir
=.
6706 for ac_exec_ext
in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6721 if test -n "$AWK"; then
6722 { echo "$as_me:$LINENO: result: $AWK" >&5
6723 echo "${ECHO_T}$AWK" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy
grep; ac_word
=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir
=.
6747 for ac_exec_ext
in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6761 GREP
=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "find", so it can be a program name with args.
6772 set dummy
find; ac_word
=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_FIND+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir
=.
6788 for ac_exec_ext
in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6802 FIND
=$ac_cv_path_FIND
6803 if test -n "$FIND"; then
6804 { echo "$as_me:$LINENO: result: $FIND" >&5
6805 echo "${ECHO_T}$FIND" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "compress", so it can be a program name with args.
6813 set dummy
compress; ac_word
=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_COMPRESS+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir
=.
6829 for ac_exec_ext
in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6843 COMPRESS
=$ac_cv_path_COMPRESS
6844 if test -n "$COMPRESS"; then
6845 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6846 echo "${ECHO_T}$COMPRESS" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "basename", so it can be a program name with args.
6854 set dummy
basename; ac_word
=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_BASENAME+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir
=.
6870 for ac_exec_ext
in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6884 BASENAME
=$ac_cv_path_BASENAME
6885 if test -n "$BASENAME"; then
6886 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6887 echo "${ECHO_T}$BASENAME" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "id", so it can be a program name with args.
6895 set dummy id
; ac_word
=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_ID+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir
=.
6911 for ac_exec_ext
in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6926 if test -n "$ID"; then
6927 { echo "$as_me:$LINENO: result: $ID" >&5
6928 echo "${ECHO_T}$ID" >&6; }
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "dirname", so it can be a program name with args.
6936 set dummy
dirname; ac_word
=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_DIRNAME+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir
=.
6952 for ac_exec_ext
in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6966 DIRNAME
=$ac_cv_path_DIRNAME
6967 if test -n "$DIRNAME"; then
6968 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6969 echo "${ECHO_T}$DIRNAME" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "sh", so it can be a program name with args.
6977 set dummy sh
; ac_word
=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_SHELL+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir
=.
6993 for ac_exec_ext
in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7007 SHELL
=$ac_cv_path_SHELL
7008 if test -n "$SHELL"; then
7009 { echo "$as_me:$LINENO: result: $SHELL" >&5
7010 echo "${ECHO_T}$SHELL" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "ln", so it can be a program name with args.
7018 set dummy
ln; ac_word
=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_LN+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7049 if test -n "$LN"; then
7050 { echo "$as_me:$LINENO: result: $LN" >&5
7051 echo "${ECHO_T}$LN" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "dot", so it can be a program name with args.
7059 set dummy dot
; ac_word
=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_DOT+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7090 if test -n "$DOT"; then
7091 { echo "$as_me:$LINENO: result: $DOT" >&5
7092 echo "${ECHO_T}$DOT" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "wget", so it can be a program name with args.
7100 set dummy wget
; ac_word
=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_WGET+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir
=.
7116 for ac_exec_ext
in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7130 WGET
=$ac_cv_path_WGET
7131 if test -n "$WGET"; then
7132 { echo "$as_me:$LINENO: result: $WGET" >&5
7133 echo "${ECHO_T}$WGET" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 if test "${WGET}" != ":" ; then
7143 # Extract the first word of "fetch", so it can be a program name with args.
7144 set dummy fetch
; ac_word
=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_FETCH+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir
=.
7160 for ac_exec_ext
in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7174 FETCH
=$ac_cv_path_FETCH
7175 if test -n "$FETCH"; then
7176 { echo "$as_me:$LINENO: result: $FETCH" >&5
7177 echo "${ECHO_T}$FETCH" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7190 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 if test -n "$SOXMIX"; then
7197 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir
=.
7204 for ac_exec_ext
in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 SOXMIX
=$ac_cv_prog_SOXMIX
7217 if test -n "$SOXMIX"; then
7218 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7219 echo "${ECHO_T}$SOXMIX" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7227 if test -z "$ac_cv_prog_SOXMIX"; then
7228 ac_ct_SOXMIX
=$SOXMIX
7229 # Extract the first word of "soxmix", so it can be a program name with args.
7230 set dummy soxmix
; ac_word
=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 if test -n "$ac_ct_SOXMIX"; then
7237 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir
=.
7244 for ac_exec_ext
in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7257 if test -n "$ac_ct_SOXMIX"; then
7258 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7259 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7265 if test "x$ac_ct_SOXMIX" = x
; then
7268 case $cross_compiling:$ac_tool_warned in
7270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet. If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned
=yes ;;
7278 SOXMIX
=$ac_ct_SOXMIX
7281 SOXMIX
="$ac_cv_prog_SOXMIX"
7284 if test "${SOXMIX}" != ":" ; then
7286 cat >>confdefs.h
<<\_ACEOF
7287 #define HAVE_SOXMIX 1
7296 ac_cpp
='$CPP $CPPFLAGS'
7297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7303 # We used to check for pthread.h first, but this fails if pthread.h
7304 # requires special compiler flags (e.g. on True64 or Sequent).
7305 # It gets checked for in the link test anyway.
7307 # First of all, check if the user has set any of the PTHREAD_LIBS,
7308 # etcetera environment variables, and if threads linking works using
7310 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7311 save_CFLAGS
="$CFLAGS"
7312 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7314 LIBS
="$PTHREAD_LIBS $LIBS"
7315 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7316 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7330 char pthread_join ();
7334 return pthread_join ();
7339 rm -f conftest.
$ac_objext conftest
$ac_exeext
7340 if { (ac_try
="$ac_link"
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7368 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7369 if test x"$acx_pthread_ok" = xno; then
7374 CFLAGS="$save_CFLAGS"
7377 # We must check for the threads library under a number of different
7378 # names; the ordering is very important because some systems
7379 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7380 # libraries is broken (non-POSIX).
7382 # Create a list of thread flags to try. Items starting with a "-" are
7383 # C compiler flags, and other items are library names, except for "none"
7384 # which indicates that we try without any flags at all, and "pthread-config"
7385 # which is a program returning the flags for the Pth emulation library.
7387 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7389 # The ordering *is* (sometimes) important. Some notes on the
7390 # individual items follow:
7392 # pthreads: AIX (must check this before -lpthread)
7393 # none: in case threads are in libc; should be tried before -Kthread and
7394 # other compiler flags to prevent continual compiler warnings
7395 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7396 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7397 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7398 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7399 # -pthreads: Solaris/gcc
7400 # -mthreads: Mingw32/gcc, Lynx/gcc
7401 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7402 # doesn't hurt to check since this sometimes defines pthreads too;
7403 # also defines -D_REENTRANT)
7404 # ... -mt is also the pthreads flag for HP/aCC
7405 # pthread: Linux, etcetera
7406 # --thread-safe: KAI C++
7407 # pthread-config: use pthread-config program (for GNU Pth library)
7409 case "${host_cpu}-${host_os}" in
7412 # On Solaris (at least, for some versions), libc contains stubbed
7413 # (non-functional) versions of the pthreads routines, so link-based
7414 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7416 # a function called by this macro, so we could check for that, but
7417 # who knows whether they'll stub that too in a future libc.) So,
7418 # we'll just look for -pthreads and -lpthread first:
7420 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7424 if test x"$acx_pthread_ok" = xno; then
7425 for flag in $acx_pthread_flags; do
7429 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7430 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7434 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7435 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7436 PTHREAD_CFLAGS="$flag"
7440 # Extract the first word of "pthread-config", so it can be a program name with args.
7441 set dummy pthread-config; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 if test -n "$acx_pthread_config"; then
7448 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_acx_pthread_config="yes"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7468 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7469 if test -n "$acx_pthread_config"; then
7470 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7471 echo "${ECHO_T}$acx_pthread_config" >&6; }
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test x"$acx_pthread_config" = xno; then continue; fi
7479 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7480 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7484 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7485 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7486 PTHREAD_LIBS="-l$flag"
7491 save_CFLAGS="$CFLAGS"
7492 LIBS="$PTHREAD_LIBS $LIBS"
7493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7495 # Check for various functions. We must include pthread.h,
7496 # since some functions may be macros. (On the Sequent, we
7497 # need a special flag -Kthread to make this header compile.)
7498 # We check for pthread_join because it is in -lpthread on IRIX
7499 # while pthread_create is in libc. We check for pthread_attr_init
7500 # due to DEC craziness with -lpthreads. We check for
7501 # pthread_cleanup_push because it is one of the few pthread
7502 # functions on Solaris that doesn't have a non-functional libc stub.
7503 # We try pthread_create on general principles.
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <pthread.h>
7514 pthread_t th; pthread_join(th, 0);
7515 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7516 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7525 *) ac_try_echo
=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest
$ac_exeext &&
7538 $as_test_x conftest
$ac_exeext; then
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.
$ac_ext >&5
7547 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7548 conftest
$ac_exeext conftest.
$ac_ext
7551 CFLAGS
="$save_CFLAGS"
7553 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7554 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7555 if test "x$acx_pthread_ok" = xyes
; then
7564 # Various other checks:
7565 if test "x$acx_pthread_ok" = xyes
; then
7567 LIBS
="$PTHREAD_LIBS $LIBS"
7568 save_CFLAGS
="$CFLAGS"
7569 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7571 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7572 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7573 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7575 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <pthread.h>
7586 int attr=$attr; return attr;
7591 rm -f conftest.
$ac_objext conftest
$ac_exeext
7592 if { (ac_try
="$ac_link"
7594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 attr_name=$attr; break
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7620 { echo "$as_me:$LINENO: result: $attr_name" >&5
7621 echo "${ECHO_T}$attr_name" >&6; }
7622 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define PTHREAD_CREATE_JOINABLE $attr_name
7630 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7631 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7633 case "${host_cpu}-${host_os}" in
7634 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7635 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7637 { echo "$as_me:$LINENO: result: ${flag}" >&5
7638 echo "${ECHO_T}${flag}" >&6; }
7639 if test "x$flag" != xno; then
7640 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7644 CFLAGS="$save_CFLAGS"
7646 # More AIX lossage: must compile with xlc_r or cc_r
7647 if test x"$GCC" != xyes; then
7648 for ac_prog in xlc_r cc_r
7650 # Extract the first word of "$ac_prog", so it can be a program name with args.
7651 set dummy $ac_prog; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 if test -n "$PTHREAD_CC"; then
7658 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_PTHREAD_CC="$ac_prog"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7678 if test -n "$PTHREAD_CC"; then
7679 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7680 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7682 { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7687 test -n "$PTHREAD_CC" && break
7689 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7702 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7703 if test x"$acx_pthread_ok" = xyes; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_PTHREAD 1
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729 # Check whether --enable-dev-mode was given.
7730 if test "${enable_dev_mode+set}" = set; then
7731 enableval=$enable_dev_mode; case "${enableval}" in
7732 y|ye|yes) AST_DEVMODE=yes ;;
7733 n|no) AST_DEVMODE=no ;;
7734 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7735 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7742 # package option names should be in alphabetical order
7743 # by the --with option name, to make things easier for the users :-)
7746 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7747 ALSA_OPTION="asound"
7749 # Check whether --with-asound was given.
7750 if test "${with_asound+set}" = set; then
7751 withval=$with_asound;
7757 ALSA_MANDATORY="yes"
7760 ALSA_DIR="${withval}"
7761 ALSA_MANDATORY="yes"
7777 # Check whether --with-curl was given.
7778 if test "${with_curl+set}" = set; then
7785 CURL_MANDATORY="yes"
7788 CURL_DIR="${withval}"
7789 CURL_MANDATORY="yes"
7802 CAP_DESCRIP="POSIX 1.e capabilities"
7805 # Check whether --with-cap was given.
7806 if test "${with_cap+set}" = set; then
7816 CAP_DIR="${withval}"
7830 CURSES_DESCRIP="curses"
7831 CURSES_OPTION="curses"
7833 # Check whether --with-curses was given.
7834 if test "${with_curses+set}" = set; then
7835 withval=$with_curses;
7841 CURSES_MANDATORY="yes"
7844 CURSES_DIR="${withval}"
7845 CURSES_MANDATORY="yes"
7858 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7859 GNUTLS_OPTION="gnutls"
7861 # Check whether --with-gnutls was given.
7862 if test "${with_gnutls+set}" = set; then
7863 withval=$with_gnutls;
7869 GNUTLS_MANDATORY="yes"
7872 GNUTLS_DIR="${withval}"
7873 GNUTLS_MANDATORY="yes"
7889 # Check whether --with-gsm was given.
7890 if test "${with_gsm+set}" = set; then
7900 GSM_DIR="${withval}"
7914 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7915 IKSEMEL_OPTION="iksemel"
7917 # Check whether --with-iksemel was given.
7918 if test "${with_iksemel+set}" = set; then
7919 withval=$with_iksemel;
7925 IKSEMEL_MANDATORY="yes"
7928 IKSEMEL_DIR="${withval}"
7929 IKSEMEL_MANDATORY="yes"
7942 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7943 IMAP_TK_OPTION="imap"
7945 # Check whether --with-imap was given.
7946 if test "${with_imap+set}" = set; then
7953 IMAP_TK_MANDATORY="yes"
7956 IMAP_TK_DIR="${withval}"
7957 IMAP_TK_MANDATORY="yes"
7970 ISDNNET_DESCRIP="ISDN4Linux Library"
7971 ISDNNET_OPTION="isdnnet"
7973 # Check whether --with-isdnnet was given.
7974 if test "${with_isdnnet+set}" = set; then
7975 withval=$with_isdnnet;
7981 ISDNNET_MANDATORY="yes"
7984 ISDNNET_DIR="${withval}"
7985 ISDNNET_MANDATORY="yes"
8001 # Check whether --with-kde was given.
8002 if test "${with_kde+set}" = set; then
8012 KDE_DIR="${withval}"
8026 LTDL_DESCRIP="libtool"
8029 # Check whether --with-ltdl was given.
8030 if test "${with_ltdl+set}" = set; then
8037 LTDL_MANDATORY="yes"
8040 LTDL_DIR="${withval}"
8041 LTDL_MANDATORY="yes"
8054 MISDN_DESCRIP="mISDN User Library"
8055 MISDN_OPTION="misdn"
8057 # Check whether --with-misdn was given.
8058 if test "${with_misdn+set}" = set; then
8059 withval=$with_misdn;
8065 MISDN_MANDATORY="yes"
8068 MISDN_DIR="${withval}"
8069 MISDN_MANDATORY="yes"
8082 NBS_DESCRIP="Network Broadcast Sound"
8085 # Check whether --with-nbs was given.
8086 if test "${with_nbs+set}" = set; then
8096 NBS_DIR="${withval}"
8110 NCURSES_DESCRIP="ncurses"
8111 NCURSES_OPTION="ncurses"
8113 # Check whether --with-ncurses was given.
8114 if test "${with_ncurses+set}" = set; then
8115 withval=$with_ncurses;
8121 NCURSES_MANDATORY="yes"
8124 NCURSES_DIR="${withval}"
8125 NCURSES_MANDATORY="yes"
8138 NETSNMP_DESCRIP="Net-SNMP"
8139 NETSNMP_OPTION="netsnmp"
8141 # Check whether --with-netsnmp was given.
8142 if test "${with_netsnmp+set}" = set; then
8143 withval=$with_netsnmp;
8149 NETSNMP_MANDATORY="yes"
8152 NETSNMP_DIR="${withval}"
8153 NETSNMP_MANDATORY="yes"
8169 # Check whether --with-newt was given.
8170 if test "${with_newt+set}" = set; then
8177 NEWT_MANDATORY="yes"
8180 NEWT_DIR="${withval}"
8181 NEWT_MANDATORY="yes"
8194 UNIXODBC_DESCRIP="unixODBC"
8195 UNIXODBC_OPTION="odbc"
8197 # Check whether --with-odbc was given.
8198 if test "${with_odbc+set}" = set; then
8205 UNIXODBC_MANDATORY="yes"
8208 UNIXODBC_DIR="${withval}"
8209 UNIXODBC_MANDATORY="yes"
8225 # Check whether --with-ogg was given.
8226 if test "${with_ogg+set}" = set; then
8236 OGG_DIR="${withval}"
8250 OSPTK_DESCRIP="OSP Toolkit"
8251 OSPTK_OPTION="osptk"
8253 # Check whether --with-osptk was given.
8254 if test "${with_osptk+set}" = set; then
8255 withval=$with_osptk;
8261 OSPTK_MANDATORY="yes"
8264 OSPTK_DIR="${withval}"
8265 OSPTK_MANDATORY="yes"
8278 OSS_DESCRIP="Open Sound System"
8281 # Check whether --with-oss was given.
8282 if test "${with_oss+set}" = set; then
8292 OSS_DIR="${withval}"
8309 # Check whether --with-popt was given.
8310 if test "${with_popt+set}" = set; then
8317 POPT_MANDATORY="yes"
8320 POPT_DIR="${withval}"
8321 POPT_MANDATORY="yes"
8334 PGSQL_DESCRIP="PostgreSQL"
8335 PGSQL_OPTION="postgres"
8337 # Check whether --with-postgres was given.
8338 if test "${with_postgres+set}" = set; then
8339 withval=$with_postgres;
8345 PGSQL_MANDATORY="yes"
8348 PGSQL_DIR="${withval}"
8349 PGSQL_MANDATORY="yes"
8362 PRI_DESCRIP="ISDN PRI"
8365 # Check whether --with-pri was given.
8366 if test "${with_pri+set}" = set; then
8376 PRI_DIR="${withval}"
8390 PWLIB_DESCRIP="PWlib"
8391 PWLIB_OPTION="pwlib"
8393 # Check whether --with-pwlib was given.
8394 if test "${with_pwlib+set}" = set; then
8395 withval=$with_pwlib;
8401 PWLIB_MANDATORY="yes"
8404 PWLIB_DIR="${withval}"
8405 PWLIB_MANDATORY="yes"
8418 OPENH323_DESCRIP="OpenH323"
8419 OPENH323_OPTION="h323"
8421 # Check whether --with-h323 was given.
8422 if test "${with_h323+set}" = set; then
8429 OPENH323_MANDATORY="yes"
8432 OPENH323_DIR="${withval}"
8433 OPENH323_MANDATORY="yes"
8446 RADIUS_DESCRIP="Radius Client"
8447 RADIUS_OPTION="radius"
8449 # Check whether --with-radius was given.
8450 if test "${with_radius+set}" = set; then
8451 withval=$with_radius;
8457 RADIUS_MANDATORY="yes"
8460 RADIUS_DIR="${withval}"
8461 RADIUS_MANDATORY="yes"
8474 SPEEX_DESCRIP="Speex"
8475 SPEEX_OPTION="speex"
8477 # Check whether --with-speex was given.
8478 if test "${with_speex+set}" = set; then
8479 withval=$with_speex;
8485 SPEEX_MANDATORY="yes"
8488 SPEEX_DIR="${withval}"
8489 SPEEX_MANDATORY="yes"
8502 SPEEXDSP_DESCRIP="Speexdsp"
8503 SPEEXDSP_OPTION="speexdsp"
8505 # Check whether --with-speexdsp was given.
8506 if test "${with_speexdsp+set}" = set; then
8507 withval=$with_speexdsp;
8513 SPEEXDSP_MANDATORY="yes"
8516 SPEEXDSP_DIR="${withval}"
8517 SPEEXDSP_MANDATORY="yes"
8530 SQLITE_DESCRIP="SQLite"
8531 SQLITE_OPTION="sqlite"
8533 # Check whether --with-sqlite was given.
8534 if test "${with_sqlite+set}" = set; then
8535 withval=$with_sqlite;
8541 SQLITE_MANDATORY="yes"
8544 SQLITE_DIR="${withval}"
8545 SQLITE_MANDATORY="yes"
8558 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8559 SUPPSERV_OPTION="suppserv"
8561 # Check whether --with-suppserv was given.
8562 if test "${with_suppserv+set}" = set; then
8563 withval=$with_suppserv;
8569 SUPPSERV_MANDATORY="yes"
8572 SUPPSERV_DIR="${withval}"
8573 SUPPSERV_MANDATORY="yes"
8586 OPENSSL_DESCRIP="OpenSSL"
8587 OPENSSL_OPTION="ssl"
8589 # Check whether --with-ssl was given.
8590 if test "${with_ssl+set}" = set; then
8597 OPENSSL_MANDATORY="yes"
8600 OPENSSL_DIR="${withval}"
8601 OPENSSL_MANDATORY="yes"
8614 FREETDS_DESCRIP="FreeTDS"
8615 FREETDS_OPTION="tds"
8617 # Check whether --with-tds was given.
8618 if test "${with_tds+set}" = set; then
8625 FREETDS_MANDATORY="yes"
8628 FREETDS_DIR="${withval}"
8629 FREETDS_MANDATORY="yes"
8642 TERMCAP_DESCRIP="Termcap"
8643 TERMCAP_OPTION="termcap"
8645 # Check whether --with-termcap was given.
8646 if test "${with_termcap+set}" = set; then
8647 withval=$with_termcap;
8653 TERMCAP_MANDATORY="yes"
8656 TERMCAP_DIR="${withval}"
8657 TERMCAP_MANDATORY="yes"
8670 TINFO_DESCRIP="Term Info"
8671 TINFO_OPTION="tinfo"
8673 # Check whether --with-tinfo was given.
8674 if test "${with_tinfo+set}" = set; then
8675 withval=$with_tinfo;
8681 TINFO_MANDATORY="yes"
8684 TINFO_DIR="${withval}"
8685 TINFO_MANDATORY="yes"
8698 TONEZONE_DESCRIP="tonezone"
8699 TONEZONE_OPTION="tonezone"
8701 # Check whether --with-tonezone was given.
8702 if test "${with_tonezone+set}" = set; then
8703 withval=$with_tonezone;
8709 TONEZONE_MANDATORY="yes"
8712 TONEZONE_DIR="${withval}"
8713 TONEZONE_MANDATORY="yes"
8729 # Check whether --with-usb was given.
8730 if test "${with_usb+set}" = set; then
8740 USB_DIR="${withval}"
8754 VORBIS_DESCRIP="Vorbis"
8755 VORBIS_OPTION="vorbis"
8757 # Check whether --with-vorbis was given.
8758 if test "${with_vorbis+set}" = set; then
8759 withval=$with_vorbis;
8765 VORBIS_MANDATORY="yes"
8768 VORBIS_DIR="${withval}"
8769 VORBIS_MANDATORY="yes"
8782 VPB_DESCRIP="Voicetronix API"
8785 # Check whether --with-vpb was given.
8786 if test "${with_vpb+set}" = set; then
8796 VPB_DIR="${withval}"
8813 # Check whether --with-z was given.
8814 if test "${with_z+set}" = set; then
8821 ZLIB_MANDATORY="yes"
8824 ZLIB_DIR="${withval}"
8825 ZLIB_MANDATORY="yes"
8838 ZAPTEL_DESCRIP="Zaptel"
8839 ZAPTEL_OPTION="zaptel"
8841 # Check whether --with-zaptel was given.
8842 if test "${with_zaptel+set}" = set; then
8843 withval=$with_zaptel;
8849 ZAPTEL_MANDATORY="yes"
8852 ZAPTEL_DIR="${withval}"
8853 ZAPTEL_MANDATORY="yes"
8866 # check for basic system features and functionality before
8867 # checking for package libraries
8869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8870 # for constant arguments. Useless!
8871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8873 if test "${ac_cv_working_alloca_h+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8886 char *p = (char *) alloca (2 * sizeof (int));
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (ac_try="$ac_link"
8895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8896 *) ac_try_echo
=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_link") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1
>conftest.err
8903 cat conftest.err
>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest
$ac_exeext &&
8909 $as_test_x conftest
$ac_exeext; then
8910 ac_cv_working_alloca_h
=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 ac_cv_working_alloca_h
=no
8918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8919 conftest
$ac_exeext conftest.
$ac_ext
8921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8923 if test $ac_cv_working_alloca_h = yes; then
8925 cat >>confdefs.h
<<\_ACEOF
8926 #define HAVE_ALLOCA_H 1
8931 { echo "$as_me:$LINENO: checking for alloca" >&5
8932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_alloca_works+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8943 # define alloca __builtin_alloca
8946 # include <malloc.h>
8947 # define alloca _alloca
8949 # ifdef HAVE_ALLOCA_H
8950 # include <alloca.h>
8955 # ifndef alloca /* predefined by HP cc +Olibcalls */
8966 char *p = (char *) alloca (1);
8972 rm -f conftest.
$ac_objext conftest
$ac_exeext
8973 if { (ac_try
="$ac_link"
8975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_func_alloca_works=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_func_alloca_works=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9004 if test $ac_cv_func_alloca_works = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ALLOCA 1
9011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9012 # that cause trouble. Some versions do not even contain alloca or
9013 # contain a buggy version. If you still want to use their alloca,
9014 # use ar to extract alloca.o from them instead of compiling alloca.c.
9016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9018 cat >>confdefs.h <<\_ACEOF
9023 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9025 if test "${ac_cv_os_cray+set}" = set; then
9026 echo $ECHO_N "(cached
) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 #if defined CRAY && ! defined CRAY2
9041 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9042 $EGREP "webecray
" >/dev/null 2>&1; then
9050 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9052 if test $ac_cv_os_cray = yes; then
9053 for ac_func in _getb67 GETB67 getb67; do
9054 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9055 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9056 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9057 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached
) $ECHO_C" >&6
9060 cat >conftest.$ac_ext <<_ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9076 # include <limits.h>
9078 # include <assert.h>
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9090 /* The GNU C library defines this for functions which it implements
9091 to always fail with ENOSYS. Some functions are actually named
9092 something starting with __ and the normal name is an alias. */
9093 #if defined __stub_$ac_func || defined __stub___$ac_func
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>conftest.er1
9114 grep -v '^ *+' conftest.er1 >conftest.err
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest$ac_exeext &&
9122 $as_test_x conftest$ac_exeext; then
9123 eval "$as_ac_var=yes"
9125 echo "$as_me: failed program was
:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 eval "$as_ac_var=no
"
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9134 ac_res=`eval echo '${'$as_ac_var'}'`
9135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9136 echo "${ECHO_T}$ac_res" >&6; }
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define CRAY_STACKSEG_END $ac_func
9149 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9150 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9151 if test "${ac_cv_c_stack_direction+set}" = set; then
9152 echo $ECHO_N "(cached
) $ECHO_C" >&6
9154 if test "$cross_compiling" = yes; then
9155 ac_cv_c_stack_direction=0
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9165 find_stack_direction ()
9167 static char *addr = 0;
9172 return find_stack_direction ();
9175 return (&dummy > addr) ? 1 : -1;
9181 return find_stack_direction () < 0;
9184 rm -f conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>&5
9193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_c_stack_direction=1
9206 echo "$as_me: program exited with status
$ac_status" >&5
9207 echo "$as_me: failed program was
:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_cv_c_stack_direction=-1
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9218 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9221 cat >>confdefs.h <<_ACEOF
9222 #define STACK_DIRECTION $ac_cv_c_stack_direction
9234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9235 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9236 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9237 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached
) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <sys/types.h>
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 eval "$as_ac_Header=yes"
9278 echo "$as_me: failed program was
:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 eval "$as_ac_Header=no
"
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 ac_res=`eval echo '${'$as_ac_Header'}'`
9287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9288 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9294 ac_header_dirent=$ac_hdr; break
9298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9299 if test $ac_header_dirent = dirent.h; then
9300 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9301 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9302 if test "${ac_cv_search_opendir+set}" = set; then
9303 echo $ECHO_N "(cached
) $ECHO_C" >&6
9305 ac_func_search_save_LIBS=$LIBS
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any GCC internal prototype to avoid an error.
9314 Use char because int might match the return type of a GCC
9315 builtin and then its argument prototype would still apply. */
9328 for ac_lib in '' dir; do
9329 if test -z "$ac_lib"; then
9330 ac_res="none required
"
9333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_link") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest$ac_exeext &&
9352 $as_test_x conftest$ac_exeext; then
9353 ac_cv_search_opendir=$ac_res
9355 echo "$as_me: failed program was
:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 if test "${ac_cv_search_opendir+set}" = set; then
9367 if test "${ac_cv_search_opendir+set}" = set; then
9370 ac_cv_search_opendir=no
9373 LIBS=$ac_func_search_save_LIBS
9375 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9377 ac_res=$ac_cv_search_opendir
9378 if test "$ac_res" != no; then
9379 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9384 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9385 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9386 if test "${ac_cv_search_opendir+set}" = set; then
9387 echo $ECHO_N "(cached
) $ECHO_C" >&6
9389 ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9412 for ac_lib in '' x; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required
"
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437 ac_cv_search_opendir=$ac_res
9439 echo "$as_me: failed program was
:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 if test "${ac_cv_search_opendir+set}" = set; then
9451 if test "${ac_cv_search_opendir+set}" = set; then
9454 ac_cv_search_opendir=no
9457 LIBS=$ac_func_search_save_LIBS
9459 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9461 ac_res=$ac_cv_search_opendir
9462 if test "$ac_res" != no; then
9463 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9469 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9470 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9471 if test "${ac_cv_header_stdc+set}" = set; then
9472 echo $ECHO_N "(cached
) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_cv_header_stdc=yes
9512 echo "$as_me: failed program was
:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_header_stdc=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 if test $ac_cv_header_stdc = yes; then
9521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9531 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9532 $EGREP "memchr
" >/dev/null 2>&1; then
9535 ac_cv_header_stdc=no
9541 if test $ac_cv_header_stdc = yes; then
9542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9552 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9553 $EGREP "free
" >/dev/null 2>&1; then
9556 ac_cv_header_stdc=no
9562 if test $ac_cv_header_stdc = yes; then
9563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9564 if test "$cross_compiling" = yes; then
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9575 #if ((' ' & 0x0FF) == 0x020)
9576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9579 # define ISLOWER(c) \
9580 (('a' <= (c) && (c) <= 'i') \
9581 || ('j' <= (c) && (c) <= 'r') \
9582 || ('s' <= (c) && (c) <= 'z'))
9583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9591 for (i = 0; i < 256; i++)
9592 if (XOR (islower (i), ISLOWER (i))
9593 || toupper (i) != TOUPPER (i))
9598 rm -f conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>&5
9607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9617 (exit $ac_status); }; }; then
9620 echo "$as_me: program exited with status
$ac_status" >&5
9621 echo "$as_me: failed program was
:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9625 ac_cv_header_stdc=no
9627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9635 if test $ac_cv_header_stdc = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define STDC_HEADERS 1
9643 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9644 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9645 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9646 echo $ECHO_N "(cached
) $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/wait.h>
9657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_cv_header_sys_wait_h=yes
9692 echo "$as_me: failed program was
:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_header_sys_wait_h=no
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9701 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9702 if test $ac_cv_header_sys_wait_h = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_SYS_WAIT_H 1
9733 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
9735 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9736 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9737 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9738 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9739 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached
) $ECHO_C" >&6
9742 ac_res=`eval echo '${'$as_ac_Header'}'`
9743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9744 echo "${ECHO_T}$ac_res" >&6; }
9746 # Is the header compilable?
9747 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9748 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #include <$ac_header>
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_header_compiler=yes
9777 echo "$as_me: failed program was
:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_compiler=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9785 echo "${ECHO_T}$ac_header_compiler" >&6; }
9787 # Is the header present?
9788 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9789 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 #include <$ac_header>
9798 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9810 (exit $ac_status); } >/dev/null && {
9811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9814 ac_header_preproc=yes
9816 echo "$as_me: failed program was
:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_preproc=no
9822 rm -f conftest.err conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9824 echo "${ECHO_T}$ac_header_preproc" >&6; }
9826 # So? What about this header?
9827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9830 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9831 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9833 ac_header_preproc=yes
9836 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9837 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9838 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9839 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9840 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9841 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9842 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9843 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9844 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9846 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9847 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9849 ## ------------------------------- ##
9850 ## Report this to www.asterisk.org ##
9851 ## ------------------------------- ##
9853 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9856 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9857 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9859 echo $ECHO_N "(cached
) $ECHO_C" >&6
9861 eval "$as_ac_Header=\
$ac_header_preproc"
9863 ac_res=`eval echo '${'$as_ac_Header'}'`
9864 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9878 # Check whether --enable-largefile was given.
9879 if test "${enable_largefile+set}" = set; then
9880 enableval=$enable_largefile;
9883 if test "$enable_largefile" != no; then
9885 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9886 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9887 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9888 echo $ECHO_N "(cached
) $ECHO_C" >&6
9890 ac_cv_sys_largefile_CC=no
9891 if test "$GCC" != yes; then
9894 # IRIX 6.2 and later do not support large files by default,
9895 # so use the C compiler's -n32 option if that helps.
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <sys/types.h>
9903 /* Check that off_t can represent 2**63 - 1 correctly.
9904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9905 since some C++ compilers masquerading as C compilers
9906 incorrectly reject 9223372036854775807. */
9907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9909 && LARGE_OFF_T % 2147483647 == 1)
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9938 echo "$as_me: failed program was
:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9944 rm -f core conftest.err conftest.$ac_objext
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_cv_sys_largefile_CC=' -n32'; break
9965 echo "$as_me: failed program was
:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9971 rm -f core conftest.err conftest.$ac_objext
9975 rm -f conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9979 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9980 if test "$ac_cv_sys_largefile_CC" != no; then
9981 CC=$CC$ac_cv_sys_largefile_CC
9984 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9985 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9986 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9987 echo $ECHO_N "(cached
) $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 #include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
10001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_compile") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest.$ac_objext; then
10030 ac_cv_sys_file_offset_bits=no; break
10032 echo "$as_me: failed program was
:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #define _FILE_OFFSET_BITS 64
10046 #include <sys/types.h>
10047 /* Check that off_t can represent 2**63 - 1 correctly.
10048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10049 since some C++ compilers masquerading as C compilers
10050 incorrectly reject 9223372036854775807. */
10051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10053 && LARGE_OFF_T % 2147483647 == 1)
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_cv_sys_file_offset_bits=64; break
10082 echo "$as_me: failed program was
:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 ac_cv_sys_file_offset_bits=unknown
10093 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10094 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10095 case $ac_cv_sys_file_offset_bits in #(
10098 cat >>confdefs.h <<_ACEOF
10099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10104 if test $ac_cv_sys_file_offset_bits = unknown; then
10105 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10106 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10107 if test "${ac_cv_sys_large_files+set}" = set; then
10108 echo $ECHO_N "(cached
) $ECHO_C" >&6
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <sys/types.h>
10118 /* Check that off_t can represent 2**63 - 1 correctly.
10119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10120 since some C++ compilers masquerading as C compilers
10121 incorrectly reject 9223372036854775807. */
10122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10124 && LARGE_OFF_T % 2147483647 == 1)
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_compile") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_cv_sys_large_files=no; break
10153 echo "$as_me: failed program was
:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 cat >conftest.$ac_ext <<_ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #define _LARGE_FILES 1
10167 #include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_cv_sys_large_files=1; break
10203 echo "$as_me: failed program was
:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 ac_cv_sys_large_files=unknown
10214 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10215 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10216 case $ac_cv_sys_large_files in #(
10219 cat >>confdefs.h <<_ACEOF
10220 #define _LARGE_FILES $ac_cv_sys_large_files
10229 # Checks for typedefs, structures, and compiler characteristics.
10230 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10231 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10232 if test "${ac_cv_header_stdbool_h+set}" = set; then
10233 echo $ECHO_N "(cached
) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10242 #include <stdbool.h>
10244 "error
: bool is not defined
"
10247 "error
: false is not defined
"
10250 "error
: false is not
0"
10253 "error
: true is not defined
"
10256 "error
: true is not
1"
10258 #ifndef __bool_true_false_are_defined
10259 "error
: __bool_true_false_are_defined is not defined
"
10262 struct s { _Bool s: 1; _Bool t; } s;
10264 char a[true == 1 ? 1 : -1];
10265 char b[false == 0 ? 1 : -1];
10266 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10267 char d[(bool) 0.5 == true ? 1 : -1];
10269 char f[(_Bool) 0.0 == false ? 1 : -1];
10271 char h[sizeof (_Bool)];
10272 char i[sizeof s.t];
10273 enum { j = false, k = true, l = false * true, m = true * 256 };
10275 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10276 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10277 # if defined __xlc__ || defined __GNUC__
10278 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10279 reported by James Lemley on 2005-10-05; see
10280 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10281 This test is not quite right, since xlc is allowed to
10282 reject this program, as the initializer for xlcbug is
10283 not one of the forms that C requires support for.
10284 However, doing the test right would require a runtime
10285 test, and that would make cross-compilation harder.
10286 Let us hope that IBM fixes the xlc bug, and also adds
10287 support for this kind of constant expression. In the
10288 meantime, this test will reject xlc, which is OK, since
10289 our stdbool.h substitute should suffice. We also test
10290 this with GCC, where it should work, to detect more
10291 quickly whether someone messes up the test in the
10293 char digs[] = "0123456789";
10294 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10296 /* Catch a bug in an HP-UX C compiler. See
10297 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10298 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10309 /* Refer to every declared value, to avoid compiler optimizations. */
10310 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10311 + !m + !n + !o + !p + !q + !pq);
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_compile") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest.$ac_objext; then
10334 ac_cv_header_stdbool_h=yes
10336 echo "$as_me: failed program was
:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_header_stdbool_h=no
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10346 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10347 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10348 if test "${ac_cv_type__Bool+set}" = set; then
10349 echo $ECHO_N "(cached
) $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef _Bool ac__type_new_;
10362 if ((ac__type_new_ *) 0)
10364 if (sizeof (ac__type_new_))
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type__Bool=yes
10389 echo "$as_me: failed program was
:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_type__Bool=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10398 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10399 if test $ac_cv_type__Bool = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE__BOOL 1
10408 if test $ac_cv_header_stdbool_h = yes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define HAVE_STDBOOL_H 1
10416 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10417 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10418 if test "${ac_cv_c_const+set}" = set; then
10419 echo $ECHO_N "(cached
) $ECHO_C" >&6
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10431 /* FIXME: Include the comments suggested by Paul. */
10432 #ifndef __cplusplus
10433 /* Ultrix mips cc rejects this. */
10434 typedef int charset[2];
10436 /* SunOS 4.1.1 cc rejects this. */
10437 char const *const *pcpcc;
10439 /* NEC SVR4.0.2 mips cc rejects this. */
10440 struct point {int x, y;};
10441 static struct point const zero = {0,0};
10442 /* AIX XL C 1.02.0.0 rejects this.
10443 It does not let you subtract one const X* pointer from another in
10444 an arm of an if-expression whose if-part is not a constant
10446 const char *g = "string
";
10447 pcpcc = &g + (g ? g-g : 0);
10448 /* HPUX 7.0 cc rejects these. */
10450 ppc = (char**) pcpcc;
10451 pcpcc = (char const *const *) ppc;
10452 { /* SCO 3.2v4 cc rejects this. */
10454 char const *s = 0 ? (char *) 0 : (char const *) 0;
10459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10460 int x[] = {25, 17};
10461 const int *foo = &x[0];
10464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10465 typedef const int *iptr;
10469 { /* AIX XL C 1.02.0.0 rejects this saying
10470 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10471 struct s { int j; const int *ap[3]; };
10472 struct s *b; b->j = 5;
10474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10475 const int foo = 10;
10476 if (!foo) return 0;
10478 return !cs[0] && !zero.x;
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10504 echo "$as_me: failed program was
:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10513 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10514 if test $ac_cv_c_const = no; then
10516 cat >>confdefs.h <<\_ACEOF
10522 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10523 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10524 if test "${ac_cv_type_uid_t+set}" = set; then
10525 echo $ECHO_N "(cached
) $ECHO_C" >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <sys/types.h>
10536 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10537 $EGREP "uid_t
" >/dev/null 2>&1; then
10538 ac_cv_type_uid_t=yes
10540 ac_cv_type_uid_t=no
10545 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10546 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10547 if test $ac_cv_type_uid_t = no; then
10549 cat >>confdefs.h <<\_ACEOF
10554 cat >>confdefs.h <<\_ACEOF
10560 { echo "$as_me:$LINENO: checking
for inline
" >&5
10561 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10562 if test "${ac_cv_c_inline+set}" = set; then
10563 echo $ECHO_N "(cached
) $ECHO_C" >&6
10566 for ac_kw in inline __inline__ __inline; do
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #ifndef __cplusplus
10575 static $ac_kw foo_t static_foo () {return 0; }
10576 $ac_kw foo_t foo () {return 0; }
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_cv_c_inline=$ac_kw
10599 echo "$as_me: failed program was
:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 test "$ac_cv_c_inline" != no && break
10610 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10614 case $ac_cv_c_inline in
10617 case $ac_cv_c_inline in
10619 *) ac_val=$ac_cv_c_inline;;
10621 cat >>confdefs.h <<_ACEOF
10622 #ifndef __cplusplus
10623 #define inline $ac_val
10629 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10630 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10631 if test "${ac_cv_type_mode_t+set}" = set; then
10632 echo $ECHO_N "(cached
) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef mode_t ac__type_new_;
10645 if ((ac__type_new_ *) 0)
10647 if (sizeof (ac__type_new_))
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
10662 grep -v '^ *+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
10670 ac_cv_type_mode_t=yes
10672 echo "$as_me: failed program was
:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_type_mode_t=no
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10682 if test $ac_cv_type_mode_t = yes; then
10686 cat >>confdefs.h <<_ACEOF
10692 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10693 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10694 if test "${ac_cv_type_off_t+set}" = set; then
10695 echo $ECHO_N "(cached
) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 typedef off_t ac__type_new_;
10708 if ((ac__type_new_ *) 0)
10710 if (sizeof (ac__type_new_))
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest.$ac_objext; then
10733 ac_cv_type_off_t=yes
10735 echo "$as_me: failed program was
:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_type_off_t=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10744 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10745 if test $ac_cv_type_off_t = yes; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define off_t long int
10755 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10756 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10757 if test "${ac_cv_type_pid_t+set}" = set; then
10758 echo $ECHO_N "(cached
) $ECHO_C" >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_new_;
10771 if ((ac__type_new_ *) 0)
10773 if (sizeof (ac__type_new_))
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_cv_type_pid_t=yes
10798 echo "$as_me: failed program was
:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_type_pid_t=no
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10808 if test $ac_cv_type_pid_t = yes; then
10812 cat >>confdefs.h <<_ACEOF
10818 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10819 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10820 if test "${ac_cv_type_size_t+set}" = set; then
10821 echo $ECHO_N "(cached
) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_includes_default
10830 typedef size_t ac__type_new_;
10834 if ((ac__type_new_ *) 0)
10836 if (sizeof (ac__type_new_))
10842 rm -f conftest.$ac_objext
10843 if { (ac_try="$ac_compile"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_cv_type_size_t=yes
10861 echo "$as_me: failed program was
:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_type_size_t=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10870 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10871 if test $ac_cv_type_size_t = yes; then
10875 cat >>confdefs.h <<_ACEOF
10876 #define size_t unsigned int
10881 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10882 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10884 echo $ECHO_N "(cached
) $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10896 static struct stat ac_aggr;
10897 if (ac_aggr.st_blksize)
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_cv_member_struct_stat_st_blksize=yes
10922 echo "$as_me: failed program was
:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_blksize)
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_cv_member_struct_stat_st_blksize=yes
10961 echo "$as_me: failed program was
:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_member_struct_stat_st_blksize=no
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10974 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10983 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10984 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10985 if test "${ac_cv_header_time+set}" = set; then
10986 echo $ECHO_N "(cached
) $ECHO_C" >&6
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <sys/types.h>
10995 #include <sys/time.h>
11001 if ((struct tm *) 0)
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_compile") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest.$ac_objext; then
11024 ac_cv_header_time=yes
11026 echo "$as_me: failed program was
:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_header_time=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11036 if test $ac_cv_header_time = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TIME_WITH_SYS_TIME 1
11044 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11045 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11046 if test "${ac_cv_struct_tm+set}" = set; then
11047 echo $ECHO_N "(cached
) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <sys/types.h>
11062 int *p = &tm.tm_sec;
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085 ac_cv_struct_tm=time.h
11087 echo "$as_me: failed program was
:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_cv_struct_tm=sys/time.h
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11096 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11097 if test $ac_cv_struct_tm = sys/time.h; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define TM_IN_SYS_TIME 1
11105 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11106 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11107 if test "${ac_cv_c_volatile+set}" = set; then
11108 echo $ECHO_N "(cached
) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11122 int * volatile y = (int *) 0;
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11145 ac_cv_c_volatile=yes
11147 echo "$as_me: failed program was
:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_c_volatile=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11156 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11157 if test $ac_cv_c_volatile = no; then
11159 cat >>confdefs.h <<\_ACEOF
11165 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11166 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11168 echo $ECHO_N "(cached
) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11177 typedef ptrdiff_t ac__type_new_;
11181 if ((ac__type_new_ *) 0)
11183 if (sizeof (ac__type_new_))
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest.$ac_objext; then
11206 ac_cv_type_ptrdiff_t=yes
11208 echo "$as_me: failed program was
:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_type_ptrdiff_t=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11218 if test $ac_cv_type_ptrdiff_t = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_PTRDIFF_T 1
11228 # Checks for library functions.
11230 for ac_header in unistd.h
11232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached
) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_header_compiler=yes
11274 echo "$as_me: failed program was
:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_compiler=no
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11282 echo "${ECHO_T}$ac_header_compiler" >&6; }
11284 # Is the header present?
11285 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11286 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <$ac_header>
11295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11307 (exit $ac_status); } >/dev/null && {
11308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11311 ac_header_preproc=yes
11313 echo "$as_me: failed program was
:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_preproc=no
11319 rm -f conftest.err conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6; }
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11330 ac_header_preproc=yes
11333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11346 ## ------------------------------- ##
11347 ## Report this to www.asterisk.org ##
11348 ## ------------------------------- ##
11350 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11353 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11354 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11356 echo $ECHO_N "(cached
) $ECHO_C" >&6
11358 eval "$as_ac_Header=\
$ac_header_preproc"
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11374 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11375 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11376 if test "${ac_cv_func_chown_works+set}" = set; then
11377 echo $ECHO_N "(cached
) $ECHO_C" >&6
11379 if test "$cross_compiling" = yes; then
11380 ac_cv_func_chown_works=no
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11394 char *f = "conftest.chown
";
11395 struct stat before, after;
11397 if (creat (f, 0600) < 0)
11399 if (stat (f, &before) < 0)
11401 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11403 if (stat (f, &after) < 0)
11405 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11411 rm -f conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>&5
11420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_try") 2>&5
11429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 ac_cv_func_chown_works=yes
11433 echo "$as_me: program exited with status
$ac_status" >&5
11434 echo "$as_me: failed program was
:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ( exit $ac_status )
11438 ac_cv_func_chown_works=no
11440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11444 rm -f conftest.chown
11447 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11449 if test $ac_cv_func_chown_works = yes; then
11451 cat >>confdefs.h <<\_ACEOF
11452 #define HAVE_CHOWN 1
11457 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11458 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11459 if test "${ac_cv_func_closedir_void+set}" = set; then
11460 echo $ECHO_N "(cached
) $ECHO_C" >&6
11462 if test "$cross_compiling" = yes; then
11463 ac_cv_func_closedir_void=yes
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header_dirent>
11473 #ifndef __cplusplus
11480 return closedir (opendir (".
")) != 0;
11485 rm -f conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>&5
11494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_func_closedir_void=no
11507 echo "$as_me: program exited with status
$ac_status" >&5
11508 echo "$as_me: failed program was
:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ( exit $ac_status )
11512 ac_cv_func_closedir_void=yes
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11521 if test $ac_cv_func_closedir_void = yes; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define CLOSEDIR_VOID 1
11529 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11530 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11531 if test "${ac_cv_lib_error_at_line+set}" = set; then
11532 echo $ECHO_N "(cached
) $ECHO_C" >&6
11534 cat >conftest.$ac_ext <<_ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11544 error_at_line (0, 0, "", 0, "an error occurred
");
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_error_at_line=yes
11569 echo "$as_me: failed program was
:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_error_at_line=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11580 if test $ac_cv_lib_error_at_line = no; then
11581 case " $LIBOBJS " in
11582 *" error.
$ac_objext "* ) ;;
11583 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11590 for ac_header in vfork.h
11592 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11595 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached
) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11605 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11634 echo "$as_me: failed program was
:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11646 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11655 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11671 ac_header_preproc=yes
11673 echo "$as_me: failed program was
:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11687 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11690 ac_header_preproc=yes
11693 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11694 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11695 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11696 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11697 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11698 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11699 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11700 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11703 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11704 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11706 ## ------------------------------- ##
11707 ## Report this to www.asterisk.org ##
11708 ## ------------------------------- ##
11710 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11713 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11714 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached
) $ECHO_C" >&6
11718 eval "$as_ac_Header=\
$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11736 for ac_func in fork vfork
11738 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11740 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached
) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11760 # include <limits.h>
11762 # include <assert.h>
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11784 return $ac_func ();
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
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_link") 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 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
11807 eval "$as_ac_var=yes"
11809 echo "$as_me: failed program was
:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no
"
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11829 if test "x
$ac_cv_func_fork" = xyes; then
11830 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11831 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11832 if test "${ac_cv_func_fork_works+set}" = set; then
11833 echo $ECHO_N "(cached
) $ECHO_C" >&6
11835 if test "$cross_compiling" = yes; then
11836 ac_cv_func_fork_works=cross
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11849 /* By Ruediger Kuhlmann. */
11850 return fork () < 0;
11856 rm -f conftest$ac_exeext
11857 if { (ac_try="$ac_link"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_link") 2>&5
11865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_func_fork_works=yes
11878 echo "$as_me: program exited with status
$ac_status" >&5
11879 echo "$as_me: failed program was
:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ( exit $ac_status )
11883 ac_cv_func_fork_works=no
11885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11894 ac_cv_func_fork_works=$ac_cv_func_fork
11896 if test "x
$ac_cv_func_fork_works" = xcross; then
11898 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11899 # Override, as these systems have only a dummy fork() stub
11900 ac_cv_func_fork_works=no
11903 ac_cv_func_fork_works=yes
11906 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11907 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11909 ac_cv_func_vfork_works=$ac_cv_func_vfork
11910 if test "x
$ac_cv_func_vfork" = xyes; then
11911 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11912 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11913 if test "${ac_cv_func_vfork_works+set}" = set; then
11914 echo $ECHO_N "(cached
) $ECHO_C" >&6
11916 if test "$cross_compiling" = yes; then
11917 ac_cv_func_vfork_works=cross
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 /* Thanks to Paul Eggert for this test. */
11926 $ac_includes_default
11927 #include <sys/wait.h>
11928 #ifdef HAVE_VFORK_H
11929 # include <vfork.h>
11931 /* On some sparc systems, changes by the child to local and incoming
11932 argument registers are propagated back to the parent. The compiler
11933 is told about this with #include <vfork.h>, but some compilers
11934 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11935 static variable whose address is put into a register that is
11936 clobbered by the vfork. */
11939 sparc_address_test (int arg)
11941 sparc_address_test (arg) int arg;
11944 static pid_t child;
11962 pid_t parent = getpid ();
11965 sparc_address_test (0);
11970 /* Here is another test for sparc vfork register problems. This
11971 test uses lots of local variables, at least as many local
11972 variables as main has allocated so far including compiler
11973 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11974 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11975 reuse the register of parent for one of the local variables,
11976 since it will think that parent can't possibly be used any more
11977 in this routine. Assigning to the local variable will thus
11978 munge parent in the parent process. */
11980 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11981 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11982 /* Convince the compiler that p..p7 are live; otherwise, it might
11983 use the same hardware register for all 8 local variables. */
11984 if (p != p1 || p != p2 || p != p3 || p != p4
11985 || p != p5 || p != p6 || p != p7)
11988 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11989 from child file descriptors. If the child closes a descriptor
11990 before it execs or exits, this munges the parent's descriptor
11991 as well. Test for this by closing stdout in the child. */
11992 _exit(close(fileno(stdout)) != 0);
11997 while (wait(&status) != child)
12000 /* Was there some problem with vforking? */
12003 /* Did the child fail? (This shouldn't happen.) */
12006 /* Did the vfork/compiler bug occur? */
12007 || parent != getpid()
12009 /* Did the file descriptor bug occur? */
12010 || fstat(fileno(stdout), &st) != 0
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>&5
12024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_vfork_works=yes
12037 echo "$as_me: program exited with status
$ac_status" >&5
12038 echo "$as_me: failed program was
:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ( exit $ac_status )
12042 ac_cv_func_vfork_works=no
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12053 if test "x
$ac_cv_func_fork_works" = xcross; then
12054 ac_cv_func_vfork_works=$ac_cv_func_vfork
12055 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12056 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12059 if test "x
$ac_cv_func_vfork_works" = xyes; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_WORKING_VFORK 1
12067 cat >>confdefs.h <<\_ACEOF
12072 if test "x
$ac_cv_func_fork_works" = xyes; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_WORKING_FORK 1
12080 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12081 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12082 if test "${ac_cv_sys_largefile_source+set}" = set; then
12083 echo $ECHO_N "(cached
) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <sys/types.h> /* for off_t */
12097 int (*fp) (FILE *, off_t, int) = fseeko;
12098 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest$ac_exeext &&
12120 $as_test_x conftest$ac_exeext; then
12121 ac_cv_sys_largefile_source=no; break
12123 echo "$as_me: failed program was
:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130 conftest$ac_exeext conftest.$ac_ext
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 #define _LARGEFILE_SOURCE 1
12138 #include <sys/types.h> /* for off_t */
12143 int (*fp) (FILE *, off_t, int) = fseeko;
12144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest$ac_exeext &&
12166 $as_test_x conftest$ac_exeext; then
12167 ac_cv_sys_largefile_source=1; break
12169 echo "$as_me: failed program was
:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 conftest$ac_exeext conftest.$ac_ext
12177 ac_cv_sys_largefile_source=unknown
12181 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12182 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12183 case $ac_cv_sys_largefile_source in #(
12186 cat >>confdefs.h <<_ACEOF
12187 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12193 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12194 # in glibc 2.1.3, but that breaks too many other things.
12195 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12196 if test $ac_cv_sys_largefile_source != unknown; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_FSEEKO 1
12204 if test $ac_cv_c_compiler_gnu = yes; then
12205 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12206 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12207 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12208 echo $ECHO_N "(cached
) $ECHO_C" >&6
12210 ac_pattern="Autoconf.
*'x'"
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12220 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12221 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12222 ac_cv_prog_gcc_traditional=yes
12224 ac_cv_prog_gcc_traditional=no
12229 if test $ac_cv_prog_gcc_traditional = no; then
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <termio.h>
12239 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12240 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12241 ac_cv_prog_gcc_traditional=yes
12247 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12248 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12249 if test $ac_cv_prog_gcc_traditional = yes; then
12250 CC="$CC -traditional"
12254 # XXX: these are commented out until we determine whether it matters if our malloc()
12255 # acts exactly like glibc's or not
12258 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12259 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12260 if test "${ac_cv_func_memcmp_working+set}" = set; then
12261 echo $ECHO_N "(cached
) $ECHO_C" >&6
12263 if test "$cross_compiling" = yes; then
12264 ac_cv_func_memcmp_working=no
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12277 /* Some versions of memcmp are not 8-bit clean. */
12278 char c0 = '\100', c1 = '\200', c2 = '\201';
12279 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12282 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12283 or more and with at least one buffer not starting on a 4-byte boundary.
12284 William Lewis provided this test program. */
12289 for (i = 0; i < 4; i++)
12293 strcpy (a, "--------01111111");
12294 strcpy (b, "--------10000000");
12295 if (memcmp (a, b, 16) >= 0)
12305 rm -f conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>&5
12314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_func_memcmp_working=yes
12327 echo "$as_me: program exited with status
$ac_status" >&5
12328 echo "$as_me: failed program was
:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 ( exit $ac_status )
12332 ac_cv_func_memcmp_working=no
12334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12339 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12340 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12341 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12342 *" memcmp.
$ac_objext "* ) ;;
12343 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12350 for ac_header in stdlib.h unistd.h
12352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached
) $ECHO_C" >&6
12359 ac_res=`eval echo '${'$as_ac_Header'}'`
12360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12361 echo "${ECHO_T}$ac_res" >&6; }
12363 # Is the header compilable?
12364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12373 #include <$ac_header>
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1 >conftest.err
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 ac_header_compiler=yes
12394 echo "$as_me: failed program was
:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_header_compiler=no
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6; }
12404 # Is the header present?
12405 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12406 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <$ac_header>
12415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12431 ac_header_preproc=yes
12433 echo "$as_me: failed program was
:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_header_preproc=no
12439 rm -f conftest.err conftest.$ac_ext
12440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12441 echo "${ECHO_T}$ac_header_preproc" >&6; }
12443 # So? What about this header?
12444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12447 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12450 ac_header_preproc=yes
12453 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12454 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12455 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12456 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12457 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12458 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12459 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12460 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12461 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12463 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12464 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12466 ## ------------------------------- ##
12467 ## Report this to www.asterisk.org ##
12468 ## ------------------------------- ##
12470 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12473 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12474 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12475 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12476 echo $ECHO_N "(cached
) $ECHO_C" >&6
12478 eval "$as_ac_Header=\
$ac_header_preproc"
12480 ac_res=`eval echo '${'$as_ac_Header'}'`
12481 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12482 echo "${ECHO_T}$ac_res" >&6; }
12485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12495 for ac_func in getpagesize
12497 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12498 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12499 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12500 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12501 echo $ECHO_N "(cached
) $ECHO_C" >&6
12503 cat >conftest.$ac_ext <<_ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511 #define $ac_func innocuous_$ac_func
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12519 # include <limits.h>
12521 # include <assert.h>
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12533 /* The GNU C library defines this for functions which it implements
12534 to always fail with ENOSYS. Some functions are actually named
12535 something starting with __ and the normal name is an alias. */
12536 #if defined __stub_$ac_func || defined __stub___$ac_func
12543 return $ac_func ();
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 eval "$as_ac_var=yes"
12568 echo "$as_me: failed program was
:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 eval "$as_ac_var=no
"
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12577 ac_res=`eval echo '${'$as_ac_var'}'`
12578 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12579 echo "${ECHO_T}$ac_res" >&6; }
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12588 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12589 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12590 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12591 echo $ECHO_N "(cached
) $ECHO_C" >&6
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_mmap_fixed_mapped=no
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 /* malloc might have been renamed as rpl_malloc. */
12606 /* Thanks to Mike Haertel and Jim Avera for this test.
12607 Here is a matrix of mmap possibilities:
12608 mmap private not fixed
12609 mmap private fixed at somewhere currently unmapped
12610 mmap private fixed at somewhere already mapped
12611 mmap shared not fixed
12612 mmap shared fixed at somewhere currently unmapped
12613 mmap shared fixed at somewhere already mapped
12614 For private mappings, we should verify that changes cannot be read()
12615 back from the file, nor mmap's back from the file at a different
12616 address. (There have been systems where private was not correctly
12617 implemented like the infamous i386 svr4.0, and systems where the
12618 VM page cache was not coherent with the file system buffer cache
12619 like early versions of FreeBSD and possibly contemporary NetBSD.)
12620 For shared mappings, we should conversely verify that changes get
12621 propagated back to all the places they're supposed to be.
12623 Grep wants private fixed already mapped.
12624 The main things grep needs to know about mmap are:
12625 * does it exist and is it safe to write into the mmap'd area
12626 * how to use it (BSD variants) */
12629 #include <sys/mman.h>
12631 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12635 /* This mess was copied from the GNU getpagesize.h. */
12636 #ifndef HAVE_GETPAGESIZE
12637 /* Assume that all systems that can run configure have sys/param.h. */
12638 # ifndef HAVE_SYS_PARAM_H
12639 # define HAVE_SYS_PARAM_H 1
12642 # ifdef _SC_PAGESIZE
12643 # define getpagesize() sysconf(_SC_PAGESIZE)
12644 # else /* no _SC_PAGESIZE */
12645 # ifdef HAVE_SYS_PARAM_H
12646 # include <sys/param.h>
12647 # ifdef EXEC_PAGESIZE
12648 # define getpagesize() EXEC_PAGESIZE
12649 # else /* no EXEC_PAGESIZE */
12651 # define getpagesize() NBPG * CLSIZE
12654 # endif /* no CLSIZE */
12655 # else /* no NBPG */
12657 # define getpagesize() NBPC
12658 # else /* no NBPC */
12660 # define getpagesize() PAGESIZE
12661 # endif /* PAGESIZE */
12662 # endif /* no NBPC */
12663 # endif /* no NBPG */
12664 # endif /* no EXEC_PAGESIZE */
12665 # else /* no HAVE_SYS_PARAM_H */
12666 # define getpagesize() 8192 /* punt totally */
12667 # endif /* no HAVE_SYS_PARAM_H */
12668 # endif /* no _SC_PAGESIZE */
12670 #endif /* no HAVE_GETPAGESIZE */
12675 char *data, *data2, *data3;
12679 pagesize = getpagesize ();
12681 /* First, make a file with some known garbage in it. */
12682 data = (char *) malloc (pagesize);
12685 for (i = 0; i < pagesize; ++i)
12686 *(data + i) = rand ();
12688 fd = creat ("conftest.mmap
", 0600);
12691 if (write (fd, data, pagesize) != pagesize)
12695 /* Next, try to mmap the file at a fixed address which already has
12696 something else allocated at it. If we can, also make sure that
12697 we see the same garbage. */
12698 fd = open ("conftest.mmap
", O_RDWR);
12701 data2 = (char *) malloc (2 * pagesize);
12704 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12708 for (i = 0; i < pagesize; ++i)
12709 if (*(data + i) != *(data2 + i))
12712 /* Finally, make sure that changes to the mapped area do not
12713 percolate back to the file as seen by read(). (This is a bug on
12714 some variants of i386 svr4.0.) */
12715 for (i = 0; i < pagesize; ++i)
12716 *(data2 + i) = *(data2 + i) + 1;
12717 data3 = (char *) malloc (pagesize);
12720 if (read (fd, data3, pagesize) != pagesize)
12722 for (i = 0; i < pagesize; ++i)
12723 if (*(data + i) != *(data3 + i))
12729 rm -f conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_link") 2>&5
12738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_func_mmap_fixed_mapped=yes
12751 echo "$as_me: program exited with status
$ac_status" >&5
12752 echo "$as_me: failed program was
:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ( exit $ac_status )
12756 ac_cv_func_mmap_fixed_mapped=no
12758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_MMAP 1
12772 rm -f conftest.mmap
12776 for ac_header in sys/select.h sys/socket.h
12778 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12780 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12781 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12783 echo $ECHO_N "(cached
) $ECHO_C" >&6
12785 ac_res=`eval echo '${'$as_ac_Header'}'`
12786 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12787 echo "${ECHO_T}$ac_res" >&6; }
12789 # Is the header compilable?
12790 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12791 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 #include <$ac_header>
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_header_compiler=yes
12820 echo "$as_me: failed program was
:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_compiler=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12828 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830 # Is the header present?
12831 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12832 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <$ac_header>
12841 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12853 (exit $ac_status); } >/dev/null && {
12854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12857 ac_header_preproc=yes
12859 echo "$as_me: failed program was
:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_header_preproc=no
12865 rm -f conftest.err conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6; }
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12872 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12873 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12876 ac_header_preproc=yes
12879 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12880 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12881 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12882 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12883 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12884 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12885 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12886 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12887 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12889 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12890 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12892 ## ------------------------------- ##
12893 ## Report this to www.asterisk.org ##
12894 ## ------------------------------- ##
12896 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12899 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12900 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached
) $ECHO_C" >&6
12904 eval "$as_ac_Header=\
$ac_header_preproc"
12906 ac_res=`eval echo '${'$as_ac_Header'}'`
12907 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12920 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12921 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12922 if test "${ac_cv_func_select_args+set}" = set; then
12923 echo $ECHO_N "(cached
) $ECHO_C" >&6
12925 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12926 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12927 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 #ifdef HAVE_SYS_SELECT_H
12936 # include <sys/select.h>
12938 #ifdef HAVE_SYS_SOCKET_H
12939 # include <sys/socket.h>
12945 extern int select ($ac_arg1,
12946 $ac_arg234, $ac_arg234, $ac_arg234,
12952 rm -f conftest.$ac_objext
12953 if { (ac_try="$ac_compile"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_compile") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest.$ac_objext; then
12969 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12971 echo "$as_me: failed program was
:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 # Provide a safe default value.
12982 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12985 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
12986 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12987 ac_save_IFS=$IFS; IFS=','
12988 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12992 cat >>confdefs.h <<_ACEOF
12993 #define SELECT_TYPE_ARG1 $1
12997 cat >>confdefs.h <<_ACEOF
12998 #define SELECT_TYPE_ARG234 ($2)
13002 cat >>confdefs.h <<_ACEOF
13003 #define SELECT_TYPE_ARG5 ($3)
13008 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13009 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13010 if test "$ac_cv_prog_cc_c89" != no; then
13011 { echo "$as_me:$LINENO: result
: yes" >&5
13012 echo "${ECHO_T}yes" >&6; }
13014 cat >>confdefs.h <<\_ACEOF
13015 #define PROTOTYPES 1
13019 cat >>confdefs.h <<\_ACEOF
13020 #define __PROTOTYPES 1
13024 { echo "$as_me:$LINENO: result
: no
" >&5
13025 echo "${ECHO_T}no
" >&6; }
13028 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13029 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13030 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13031 echo $ECHO_N "(cached
) $ECHO_C" >&6
13033 ac_cv_func_setvbuf_reversed=no
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13042 int (setvbuf) (FILE *, int, char *, size_t);
13047 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext &&
13069 $as_test_x conftest$ac_exeext; then
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13078 int (setvbuf) (FILE *, int, char *, size_t);
13083 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest$ac_exeext &&
13105 $as_test_x conftest$ac_exeext; then
13106 # It compiles and links either way, so it must not be declared
13107 # with a prototype and most likely this is a K&R C compiler.
13109 if test "$cross_compiling" = yes; then
13110 : # Assume setvbuf is not reversed when cross-compiling.
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13122 /* This call has the arguments reversed.
13123 A reversed system may check and see that the address of buf
13124 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13126 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13129 return 0; /* Non-reversed systems SEGV here. */
13134 rm -f conftest$ac_exeext
13135 if { (ac_try="$ac_link"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>&5
13143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13144 (exit $ac_status); } && { ac_try='./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_func_setvbuf_reversed=yes
13156 echo "$as_me: program exited with status
$ac_status" >&5
13157 echo "$as_me: failed program was
:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13165 ac_cv_func_setvbuf_reversed=yes
13167 echo "$as_me: failed program was
:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174 conftest$ac_exeext conftest.$ac_ext
13176 echo "$as_me: failed program was
:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13186 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13187 if test $ac_cv_func_setvbuf_reversed = yes; then
13189 cat >>confdefs.h <<\_ACEOF
13190 #define SETVBUF_REVERSED 1
13195 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13196 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13197 if test "${ac_cv_type_signal+set}" = set; then
13198 echo $ECHO_N "(cached
) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <sys/types.h>
13207 #include <signal.h>
13212 return *(signal (0, 0)) (0) == 1;
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest.$ac_objext; then
13234 ac_cv_type_signal=int
13236 echo "$as_me: failed program was
:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_cv_type_signal=void
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13245 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13247 cat >>confdefs.h <<_ACEOF
13248 #define RETSIGTYPE $ac_cv_type_signal
13252 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13253 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13254 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13255 echo $ECHO_N "(cached
) $ECHO_C" >&6
13257 rm -f conftest.sym conftest.file
13258 echo >conftest.file
13259 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13260 if test "$cross_compiling" = yes; then
13261 ac_cv_func_lstat_dereferences_slashed_symlink=no
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13274 /* Linux will dereference the symlink and fail.
13275 That is better in the sense that it means we will not
13276 have to compile and use the lstat wrapper. */
13277 return lstat ("conftest.sym
/", &sbuf) == 0;
13282 rm -f conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>&5
13291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13304 echo "$as_me: program exited with status
$ac_status" >&5
13305 echo "$as_me: failed program was
:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ( exit $ac_status )
13309 ac_cv_func_lstat_dereferences_slashed_symlink=no
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13316 # If the `ln -s' command failed, then we probably don't even
13317 # have an lstat function.
13318 ac_cv_func_lstat_dereferences_slashed_symlink=no
13320 rm -f conftest.sym conftest.file
13323 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13324 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13326 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13328 cat >>confdefs.h <<_ACEOF
13329 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13333 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13334 case " $LIBOBJS " in
13335 *" lstat.
$ac_objext "* ) ;;
13336 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13342 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13343 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13344 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13345 echo $ECHO_N "(cached
) $ECHO_C" >&6
13347 if test "$cross_compiling" = yes; then
13348 ac_cv_func_stat_empty_string_bug=yes
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 $ac_includes_default
13361 return stat ("", &sbuf) == 0;
13366 rm -f conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>&5
13375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_func_stat_empty_string_bug=no
13388 echo "$as_me: program exited with status
$ac_status" >&5
13389 echo "$as_me: failed program was
:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ( exit $ac_status )
13393 ac_cv_func_stat_empty_string_bug=yes
13395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13401 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13402 if test $ac_cv_func_stat_empty_string_bug = yes; then
13403 case " $LIBOBJS " in
13404 *" stat.
$ac_objext "* ) ;;
13405 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_STAT_EMPTY_STRING_BUG 1
13416 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13417 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13418 if test "${ac_cv_func_strcoll_works+set}" = set; then
13419 echo $ECHO_N "(cached
) $ECHO_C" >&6
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strcoll_works=no
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13434 return (strcoll ("abc
", "def
") >= 0 ||
13435 strcoll ("ABC
", "DEF
") >= 0 ||
13436 strcoll ("123", "456") >= 0)
13441 rm -f conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>&5
13450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_func_strcoll_works=yes
13463 echo "$as_me: program exited with status
$ac_status" >&5
13464 echo "$as_me: failed program was
:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ( exit $ac_status )
13468 ac_cv_func_strcoll_works=no
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13476 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13477 if test $ac_cv_func_strcoll_works = yes; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_STRCOLL 1
13486 for ac_func in strftime
13488 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13489 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13490 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13491 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached
) $ECHO_C" >&6
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13502 #define $ac_func innocuous_$ac_func
13504 /* System header to define __stub macros and hopefully few prototypes,
13505 which can conflict with char $ac_func (); below.
13506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13507 <limits.h> exists even on freestanding compilers. */
13510 # include <limits.h>
13512 # include <assert.h>
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13524 /* The GNU C library defines this for functions which it implements
13525 to always fail with ENOSYS. Some functions are actually named
13526 something starting with __ and the normal name is an alias. */
13527 #if defined __stub_$ac_func || defined __stub___$ac_func
13534 return $ac_func ();
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>conftest.er1
13548 grep -v '^ *+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest$ac_exeext &&
13556 $as_test_x conftest$ac_exeext; then
13557 eval "$as_ac_var=yes"
13559 echo "$as_me: failed program was
:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 eval "$as_ac_var=no
"
13565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13566 conftest$ac_exeext conftest.$ac_ext
13568 ac_res=`eval echo '${'$as_ac_var'}'`
13569 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13570 echo "${ECHO_T}$ac_res" >&6; }
13571 if test `eval echo '${'$as_ac_var'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13577 # strftime is in -lintl on SCO UNIX.
13578 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13579 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13580 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13581 echo $ECHO_N "(cached
) $ECHO_C" >&6
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-lintl $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13602 return strftime ();
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_intl_strftime=yes
13627 echo "$as_me: failed program was
:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_lib_intl_strftime=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13638 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13639 if test $ac_cv_lib_intl_strftime = yes; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_STRFTIME 1
13644 LIBS="-lintl $LIBS"
13650 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13651 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13652 if test "${ac_cv_func_strnlen_working+set}" = set; then
13653 echo $ECHO_N "(cached
) $ECHO_C" >&6
13655 if test "$cross_compiling" = yes; then
13656 ac_cv_func_strnlen_working=no
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13670 #define S_LEN (sizeof S - 1)
13672 /* At least one implementation is buggy: that of AIX 4.3 would
13673 give strnlen (S, 1) == 3. */
13676 for (i = 0; i < S_LEN + 1; ++i)
13678 int expected = i <= S_LEN ? i : S_LEN;
13679 if (strnlen (S, i) != expected)
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>&5
13697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_func_strnlen_working=yes
13710 echo "$as_me: program exited with status
$ac_status" >&5
13711 echo "$as_me: failed program was
:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ( exit $ac_status )
13715 ac_cv_func_strnlen_working=no
13717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13722 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13723 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13724 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13725 *" strnlen.
$ac_objext "* ) ;;
13726 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13731 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13732 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13733 if test "${ac_cv_func_strtod+set}" = set; then
13734 echo $ECHO_N "(cached
) $ECHO_C" >&6
13736 if test "$cross_compiling" = yes; then
13737 ac_cv_func_strtod=no
13739 cat >conftest.$ac_ext <<_ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13746 $ac_includes_default
13754 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13755 char *string = " +69";
13758 value = strtod (string, &term);
13759 if (value != 69 || term != (string + 4))
13764 /* Under Solaris 2.4, strtod returns the wrong value for the
13765 terminating character under some conditions. */
13766 char *string = "NaN
";
13768 strtod (string, &term);
13769 if (term != string && *(term - 1) == 0)
13776 rm -f conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>&5
13785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_func_strtod=yes
13798 echo "$as_me: program exited with status
$ac_status" >&5
13799 echo "$as_me: failed program was
:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ( exit $ac_status )
13803 ac_cv_func_strtod=no
13805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13811 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13812 if test $ac_cv_func_strtod = no; then
13813 case " $LIBOBJS " in
13814 *" strtod.
$ac_objext "* ) ;;
13815 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13819 { echo "$as_me:$LINENO: checking
for pow
" >&5
13820 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13821 if test "${ac_cv_func_pow+set}" = set; then
13822 echo $ECHO_N "(cached
) $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define pow innocuous_pow
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char pow (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13840 # include <limits.h>
13842 # include <assert.h>
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_pow || defined __stub___pow
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13889 echo "$as_me: failed program was
:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13899 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13901 if test $ac_cv_func_pow = no; then
13902 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13903 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13904 if test "${ac_cv_lib_m_pow+set}" = set; then
13905 echo $ECHO_N "(cached
) $ECHO_C" >&6
13907 ac_check_lib_save_LIBS=$LIBS
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest$ac_exeext &&
13948 $as_test_x conftest$ac_exeext; then
13949 ac_cv_lib_m_pow=yes
13951 echo "$as_me: failed program was
:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13961 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13962 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13963 if test $ac_cv_lib_m_pow = yes; then
13966 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
13967 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
13978 for ac_header in $ac_header_list
13980 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13982 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13983 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13985 echo $ECHO_N "(cached
) $ECHO_C" >&6
13987 ac_res=`eval echo '${'$as_ac_Header'}'`
13988 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13989 echo "${ECHO_T}$ac_res" >&6; }
13991 # Is the header compilable?
13992 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13993 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14001 #include <$ac_header>
14003 rm -f conftest.$ac_objext
14004 if { (ac_try="$ac_compile"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_compile") 2>conftest.er1
14012 grep -v '^ *+' conftest.er1 >conftest.err
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14016 (exit $ac_status); } && {
14017 test -z "$ac_c_werror_flag" ||
14018 test ! -s conftest.err
14019 } && test -s conftest.$ac_objext; then
14020 ac_header_compiler=yes
14022 echo "$as_me: failed program was
:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_header_compiler=no
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14030 echo "${ECHO_T}$ac_header_compiler" >&6; }
14032 # Is the header present?
14033 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14034 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 #include <$ac_header>
14043 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14055 (exit $ac_status); } >/dev/null && {
14056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14059 ac_header_preproc=yes
14061 echo "$as_me: failed program was
:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_header_preproc=no
14067 rm -f conftest.err conftest.$ac_ext
14068 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14069 echo "${ECHO_T}$ac_header_preproc" >&6; }
14071 # So? What about this header?
14072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14074 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14075 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14076 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14078 ac_header_preproc=yes
14081 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14082 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14083 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14084 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14085 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14086 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14087 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14088 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14089 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14091 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14092 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14094 ## ------------------------------- ##
14095 ## Report this to www.asterisk.org ##
14096 ## ------------------------------- ##
14098 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14101 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14102 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14104 echo $ECHO_N "(cached
) $ECHO_C" >&6
14106 eval "$as_ac_Header=\
$ac_header_preproc"
14108 ac_res=`eval echo '${'$as_ac_Header'}'`
14109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14110 echo "${ECHO_T}$ac_res" >&6; }
14113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14114 cat >>confdefs.h <<_ACEOF
14115 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14130 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14131 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14132 if test "${ac_cv_func_utime_null+set}" = set; then
14133 echo $ECHO_N "(cached
) $ECHO_C" >&6
14135 rm -f conftest.data; >conftest.data
14136 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14137 if test "$cross_compiling" = yes; then
14138 ac_cv_func_utime_null=no
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 #ifdef HAVE_UTIME_H
14148 # include <utime.h>
14154 return ! (stat ("conftest.data
", &s) == 0
14155 && utime ("conftest.data
", 0) == 0
14156 && stat ("conftest.data
", &t) == 0
14157 && t.st_mtime >= s.st_mtime
14158 && t.st_mtime - s.st_mtime < 120);
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>&5
14172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_utime_null=yes
14185 echo "$as_me: program exited with status
$ac_status" >&5
14186 echo "$as_me: failed program was
:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 ac_cv_func_utime_null=no
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14198 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14199 if test $ac_cv_func_utime_null = yes; then
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_UTIME_NULL 1
14206 rm -f conftest.data
14209 for ac_func in vprintf
14211 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14212 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14213 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14214 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14215 echo $ECHO_N "(cached
) $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14225 #define $ac_func innocuous_$ac_func
14227 /* System header to define __stub macros and hopefully few prototypes,
14228 which can conflict with char $ac_func (); below.
14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230 <limits.h> exists even on freestanding compilers. */
14233 # include <limits.h>
14235 # include <assert.h>
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14247 /* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250 #if defined __stub_$ac_func || defined __stub___$ac_func
14257 return $ac_func ();
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest$ac_exeext &&
14279 $as_test_x conftest$ac_exeext; then
14280 eval "$as_ac_var=yes"
14282 echo "$as_me: failed program was
:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 eval "$as_ac_var=no
"
14288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14289 conftest$ac_exeext conftest.$ac_ext
14291 ac_res=`eval echo '${'$as_ac_var'}'`
14292 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14293 echo "${ECHO_T}$ac_res" >&6; }
14294 if test `eval echo '${'$as_ac_var'}'` = yes; then
14295 cat >>confdefs.h <<_ACEOF
14296 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14299 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14300 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14301 if test "${ac_cv_func__doprnt+set}" = set; then
14302 echo $ECHO_N "(cached
) $ECHO_C" >&6
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14312 #define _doprnt innocuous__doprnt
14314 /* System header to define __stub macros and hopefully few prototypes,
14315 which can conflict with char _doprnt (); below.
14316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14317 <limits.h> exists even on freestanding compilers. */
14320 # include <limits.h>
14322 # include <assert.h>
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined __stub__doprnt || defined __stub____doprnt
14349 rm -f conftest.$ac_objext conftest$ac_exeext
14350 if { (ac_try="$ac_link"
14351 case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14356 (eval "$ac_link") 2>conftest.er1
14358 grep -v '^ *+' conftest.er1 >conftest.err
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14362 (exit $ac_status); } && {
14363 test -z "$ac_c_werror_flag" ||
14364 test ! -s conftest.err
14365 } && test -s conftest$ac_exeext &&
14366 $as_test_x conftest$ac_exeext; then
14367 ac_cv_func__doprnt=yes
14369 echo "$as_me: failed program was
:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_cv_func__doprnt=no
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376 conftest$ac_exeext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14379 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14380 if test $ac_cv_func__doprnt = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_DOPRNT 1
14441 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
14443 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14444 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14445 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14446 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14447 echo $ECHO_N "(cached
) $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457 #define $ac_func innocuous_$ac_func
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14465 # include <limits.h>
14467 # include <assert.h>
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14479 /* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482 #if defined __stub_$ac_func || defined __stub___$ac_func
14489 return $ac_func ();
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest$ac_exeext &&
14511 $as_test_x conftest$ac_exeext; then
14512 eval "$as_ac_var=yes"
14514 echo "$as_me: failed program was
:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 eval "$as_ac_var=no
"
14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521 conftest$ac_exeext conftest.$ac_ext
14523 ac_res=`eval echo '${'$as_ac_var'}'`
14524 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 if test `eval echo '${'$as_ac_var'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14535 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14536 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14537 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14538 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14539 echo $ECHO_N "(cached
) $ECHO_C" >&6
14541 ac_func_search_save_LIBS=$LIBS
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14555 char gethostbyname_r ();
14559 return gethostbyname_r ();
14564 for ac_lib in '' socket nsl; do
14565 if test -z "$ac_lib"; then
14566 ac_res="none required
"
14569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14571 rm -f conftest.$ac_objext conftest$ac_exeext
14572 if { (ac_try="$ac_link"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_link") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext &&
14588 $as_test_x conftest$ac_exeext; then
14589 ac_cv_search_gethostbyname_r=$ac_res
14591 echo "$as_me: failed program was
:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14599 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14603 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14606 ac_cv_search_gethostbyname_r=no
14608 rm conftest.$ac_ext
14609 LIBS=$ac_func_search_save_LIBS
14611 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14612 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14613 ac_res=$ac_cv_search_gethostbyname_r
14614 if test "$ac_res" != no; then
14615 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14620 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14621 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <stdlib.h>
14633 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 { echo "$as_me:$LINENO: result
: yes" >&5
14657 echo "${ECHO_T}yes" >&6; }
14659 cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_GETHOSTBYNAME_R_6 1
14664 echo "$as_me: failed program was
:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 { echo "$as_me:$LINENO: result
: no
" >&5
14668 echo "${ECHO_T}no
" >&6; }
14672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14673 conftest$ac_exeext conftest.$ac_ext
14675 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14676 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <stdlib.h>
14688 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest$ac_exeext &&
14710 $as_test_x conftest$ac_exeext; then
14711 { echo "$as_me:$LINENO: result
: yes" >&5
14712 echo "${ECHO_T}yes" >&6; }
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_GETHOSTBYNAME_R_5 1
14719 echo "$as_me: failed program was
:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 { echo "$as_me:$LINENO: result
: no
" >&5
14723 echo "${ECHO_T}no
" >&6; }
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14731 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <pthread.h>
14742 int foo = PTHREAD_RWLOCK_INITIALIZER;
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest$ac_exeext &&
14764 $as_test_x conftest$ac_exeext; then
14765 { echo "$as_me:$LINENO: result
: yes" >&5
14766 echo "${ECHO_T}yes" >&6; }
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14773 echo "$as_me: failed program was
:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 { echo "$as_me:$LINENO: result
: no
" >&5
14777 echo "${ECHO_T}no
" >&6; }
14781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
14784 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14785 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <pthread.h>
14796 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 { echo "$as_me:$LINENO: result
: yes" >&5
14820 echo "${ECHO_T}yes" >&6; }
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14827 echo "$as_me: failed program was
:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 { echo "$as_me:$LINENO: result
: no
" >&5
14831 echo "${ECHO_T}no
" >&6; }
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14839 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14850 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14855 rm -f conftest.$ac_objext conftest$ac_exeext
14856 if { (ac_try="$ac_link"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_link") 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14868 (exit $ac_status); } && {
14869 test -z "$ac_c_werror_flag" ||
14870 test ! -s conftest.err
14871 } && test -s conftest$ac_exeext &&
14872 $as_test_x conftest$ac_exeext; then
14873 { echo "$as_me:$LINENO: result
: yes" >&5
14874 echo "${ECHO_T}yes" >&6; }
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_GCC_ATOMICS 1
14881 echo "$as_me: failed program was
:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 { echo "$as_me:$LINENO: result
: no
" >&5
14885 echo "${ECHO_T}no
" >&6; }
14889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890 conftest$ac_exeext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14894 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14895 saved_CFLAGS="$CFLAGS"
14896 CFLAGS="$CFLAGS -Werror"
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 static void __attribute__((pure)) *test(void *muffin, ...) {}
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 { echo "$as_me:$LINENO: result
: yes" >&5
14930 echo "${ECHO_T}yes" >&6; }
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_ATTRIBUTE_pure 1
14937 echo "$as_me: failed program was
:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 { echo "$as_me:$LINENO: result
: no
" >&5
14941 echo "${ECHO_T}no
" >&6; }
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 CFLAGS="$saved_CFLAGS"
14949 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14950 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14951 saved_CFLAGS="$CFLAGS"
14952 CFLAGS="$CFLAGS -Werror"
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest.$ac_objext; then
14985 { echo "$as_me:$LINENO: result
: yes" >&5
14986 echo "${ECHO_T}yes" >&6; }
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_ATTRIBUTE_malloc 1
14993 echo "$as_me: failed program was
:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 { echo "$as_me:$LINENO: result
: no
" >&5
14997 echo "${ECHO_T}no
" >&6; }
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 CFLAGS="$saved_CFLAGS"
15005 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
15006 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
15007 saved_CFLAGS="$CFLAGS"
15008 CFLAGS="$CFLAGS -Werror"
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 static void __attribute__((const)) *test(void *muffin, ...) {}
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 { echo "$as_me:$LINENO: result
: yes" >&5
15042 echo "${ECHO_T}yes" >&6; }
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_ATTRIBUTE_const 1
15049 echo "$as_me: failed program was
:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 { echo "$as_me:$LINENO: result
: no
" >&5
15053 echo "${ECHO_T}no
" >&6; }
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 CFLAGS="$saved_CFLAGS"
15061 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15062 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15063 saved_CFLAGS="$CFLAGS"
15064 CFLAGS="$CFLAGS -Werror"
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 static void __attribute__((unused)) *test(void *muffin, ...) {}
15080 rm -f conftest.$ac_objext
15081 if { (ac_try="$ac_compile"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_compile") 2>conftest.er1
15089 grep -v '^ *+' conftest.er1 >conftest.err
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_c_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest.$ac_objext; then
15097 { echo "$as_me:$LINENO: result
: yes" >&5
15098 echo "${ECHO_T}yes" >&6; }
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_ATTRIBUTE_unused 1
15105 echo "$as_me: failed program was
:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 { echo "$as_me:$LINENO: result
: no
" >&5
15109 echo "${ECHO_T}no
" >&6; }
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 CFLAGS="$saved_CFLAGS"
15117 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15118 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15119 saved_CFLAGS="$CFLAGS"
15120 CFLAGS="$CFLAGS -Werror"
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_compile") 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15149 (exit $ac_status); } && {
15150 test -z "$ac_c_werror_flag" ||
15151 test ! -s conftest.err
15152 } && test -s conftest.$ac_objext; then
15153 { echo "$as_me:$LINENO: result
: yes" >&5
15154 echo "${ECHO_T}yes" >&6; }
15156 cat >>confdefs.h <<_ACEOF
15157 #define HAVE_ATTRIBUTE_always_inline 1
15161 echo "$as_me: failed program was
:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 { echo "$as_me:$LINENO: result
: no
" >&5
15165 echo "${ECHO_T}no
" >&6; }
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 CFLAGS="$saved_CFLAGS"
15173 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15174 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15175 saved_CFLAGS="$CFLAGS"
15176 CFLAGS="$CFLAGS -Werror"
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_compile") 2>conftest.er1
15201 grep -v '^ *+' conftest.er1 >conftest.err
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15205 (exit $ac_status); } && {
15206 test -z "$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 } && test -s conftest.$ac_objext; then
15209 { echo "$as_me:$LINENO: result
: yes" >&5
15210 echo "${ECHO_T}yes" >&6; }
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_ATTRIBUTE_deprecated 1
15217 echo "$as_me: failed program was
:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 { echo "$as_me:$LINENO: result
: no
" >&5
15221 echo "${ECHO_T}no
" >&6; }
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15226 CFLAGS="$saved_CFLAGS"
15229 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15230 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15231 saved_CFLAGS="${CFLAGS}"
15232 CFLAGS="${CFLAGS} -ffunction-sections"
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15248 rm -f conftest.$ac_objext
15249 if { (ac_try="$ac_compile"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_compile") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15261 (exit $ac_status); } && {
15262 test -z "$ac_c_werror_flag" ||
15263 test ! -s conftest.err
15264 } && test -s conftest.$ac_objext; then
15265 { echo "$as_me:$LINENO: result
: yes" >&5
15266 echo "${ECHO_T}yes" >&6; }
15267 saved_LDFLAGS="${LDFLAGS}"
15268 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15269 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15270 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15271 cat >conftest.$ac_ext <<_ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (ac_try="$ac_link"
15288 case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_link") 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext &&
15303 $as_test_x conftest$ac_exeext; then
15304 { echo "$as_me:$LINENO: result
: yes" >&5
15305 echo "${ECHO_T}yes" >&6; }
15306 GC_CFLAGS="-ffunction-sections"
15307 GC_LDFLAGS="-Wl,--gc-sections"
15309 echo "$as_me: failed program was
:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 { echo "$as_me:$LINENO: result
: no
" >&5
15313 echo "${ECHO_T}no
" >&6; }
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318 conftest$ac_exeext conftest.$ac_ext
15319 LDFLAGS="${saved_LDFLAGS}"
15321 echo "$as_me: failed program was
:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 { echo "$as_me:$LINENO: result
: no
" >&5
15325 echo "${ECHO_T}no
" >&6; }
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 CFLAGS="${saved_CFLAGS}"
15334 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15335 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15336 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15337 { echo "$as_me:$LINENO: result
: yes" >&5
15338 echo "${ECHO_T}yes" >&6; }
15339 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15341 { echo "$as_me:$LINENO: result
: no
" >&5
15342 echo "${ECHO_T}no
" >&6; }
15343 AST_DECLARATION_AFTER_STATEMENT=
15347 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15348 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15349 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15350 { echo "$as_me:$LINENO: result
: yes" >&5
15351 echo "${ECHO_T}yes" >&6; }
15352 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15354 { echo "$as_me:$LINENO: result
: no
" >&5
15355 echo "${ECHO_T}no
" >&6; }
15356 AST_NO_STRICT_OVERFLOW=
15360 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15361 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <resolv.h>
15372 int foo = res_ninit(NULL);
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (ac_try="$ac_link"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_link") 2>conftest.er1
15386 grep -v '^ *+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15390 (exit $ac_status); } && {
15391 test -z "$ac_c_werror_flag" ||
15392 test ! -s conftest.err
15393 } && test -s conftest$ac_exeext &&
15394 $as_test_x conftest$ac_exeext; then
15395 { echo "$as_me:$LINENO: result
: yes" >&5
15396 echo "${ECHO_T}yes" >&6; }
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_RES_NINIT 1
15402 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15403 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <resolv.h>
15414 int foo = res_ndestroy(NULL);
15419 rm -f conftest.$ac_objext conftest$ac_exeext
15420 if { (ac_try="$ac_link"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>conftest.er1
15428 grep -v '^ *+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest$ac_exeext &&
15436 $as_test_x conftest$ac_exeext; then
15437 { echo "$as_me:$LINENO: result
: yes" >&5
15438 echo "${ECHO_T}yes" >&6; }
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE_RES_NDESTROY 1
15445 echo "$as_me: failed program was
:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 { echo "$as_me:$LINENO: result
: no
" >&5
15449 echo "${ECHO_T}no
" >&6; }
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15456 echo "$as_me: failed program was
:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 { echo "$as_me:$LINENO: result
: no
" >&5
15460 echo "${ECHO_T}no
" >&6; }
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15467 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15468 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15479 int foo = RTLD_NOLOAD;
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15497 (exit $ac_status); } && {
15498 test -z "$ac_c_werror_flag" ||
15499 test ! -s conftest.err
15500 } && test -s conftest$ac_exeext &&
15501 $as_test_x conftest$ac_exeext; then
15502 { echo "$as_me:$LINENO: result
: yes" >&5
15503 echo "${ECHO_T}yes" >&6; }
15505 cat >>confdefs.h <<\_ACEOF
15506 #define HAVE_RTLD_NOLOAD 1
15510 echo "$as_me: failed program was
:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 { echo "$as_me:$LINENO: result
: no
" >&5
15514 echo "${ECHO_T}no
" >&6; }
15518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15519 conftest$ac_exeext conftest.$ac_ext
15521 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15522 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <netinet/in.h>
15533 int foo = IP_MTU_DISCOVER;
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (ac_try="$ac_link"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_link") 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15551 (exit $ac_status); } && {
15552 test -z "$ac_c_werror_flag" ||
15553 test ! -s conftest.err
15554 } && test -s conftest$ac_exeext &&
15555 $as_test_x conftest$ac_exeext; then
15556 { echo "$as_me:$LINENO: result
: yes" >&5
15557 echo "${ECHO_T}yes" >&6; }
15559 cat >>confdefs.h <<\_ACEOF
15560 #define HAVE_IP_MTU_DISCOVER 1
15564 echo "$as_me: failed program was
:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 { echo "$as_me:$LINENO: result
: no
" >&5
15568 echo "${ECHO_T}no
" >&6; }
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573 conftest$ac_exeext conftest.$ac_ext
15575 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15576 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15577 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15578 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15579 echo $ECHO_N "(cached
) $ECHO_C" >&6
15581 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15582 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15584 # Is the header compilable?
15585 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15586 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15587 cat >conftest.$ac_ext <<_ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 $ac_includes_default
15594 #include <libkern/OSAtomic.h>
15596 rm -f conftest.$ac_objext
15597 if { (ac_try="$ac_compile"
15598 case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_compile") 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest.$ac_objext; then
15613 ac_header_compiler=yes
15615 echo "$as_me: failed program was
:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_header_compiler=no
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15623 echo "${ECHO_T}$ac_header_compiler" >&6; }
15625 # Is the header present?
15626 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15627 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 #include <libkern/OSAtomic.h>
15636 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15648 (exit $ac_status); } >/dev/null && {
15649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15650 test ! -s conftest.err
15652 ac_header_preproc=yes
15654 echo "$as_me: failed program was
:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 ac_header_preproc=no
15660 rm -f conftest.err conftest.$ac_ext
15661 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15662 echo "${ECHO_T}$ac_header_preproc" >&6; }
15664 # So? What about this header?
15665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15667 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15668 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15669 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15670 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15671 ac_header_preproc=yes
15674 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15675 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15676 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15677 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15678 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15679 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15680 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15681 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15682 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15683 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15684 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15685 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15687 ## ------------------------------- ##
15688 ## Report this to www.asterisk.org ##
15689 ## ------------------------------- ##
15691 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15694 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15695 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15696 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15697 echo $ECHO_N "(cached
) $ECHO_C" >&6
15699 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15701 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15702 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15705 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define HAVE_OSX_ATOMICS 1
15715 { echo "$as_me:$LINENO: checking
for int
" >&5
15716 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15717 if test "${ac_cv_type_int+set}" = set; then
15718 echo $ECHO_N "(cached
) $ECHO_C" >&6
15720 cat >conftest.$ac_ext <<_ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 $ac_includes_default
15727 typedef int ac__type_new_;
15731 if ((ac__type_new_ *) 0)
15733 if (sizeof (ac__type_new_))
15739 rm -f conftest.$ac_objext
15740 if { (ac_try="$ac_compile"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_compile") 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest.$ac_objext; then
15758 echo "$as_me: failed program was
:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15767 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15769 # The cast to long int works around a bug in the HP C Compiler
15770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15772 # This bug is HP SR number 8606223364.
15773 { echo "$as_me:$LINENO: checking size of int
" >&5
15774 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15775 if test "${ac_cv_sizeof_int+set}" = set; then
15776 echo $ECHO_N "(cached
) $ECHO_C" >&6
15778 if test "$cross_compiling" = yes; then
15779 # Depending upon the size, compute the lo and hi bounds.
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 $ac_includes_default
15787 typedef int ac__type_sizeof_;
15791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15817 cat >conftest.$ac_ext <<_ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 $ac_includes_default
15824 typedef int ac__type_sizeof_;
15828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15848 (exit $ac_status); } && {
15849 test -z "$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 } && test -s conftest.$ac_objext; then
15852 ac_hi=$ac_mid; break
15854 echo "$as_me: failed program was
:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_lo=`expr $ac_mid + 1`
15858 if test $ac_lo -le $ac_mid; then
15862 ac_mid=`expr 2 '*' $ac_mid + 1`
15865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 echo "$as_me: failed program was
:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 cat >conftest.$ac_ext <<_ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 typedef int ac__type_sizeof_;
15882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15889 rm -f conftest.$ac_objext
15890 if { (ac_try="$ac_compile"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_compile") 2>conftest.er1
15898 grep -v '^ *+' conftest.er1 >conftest.err
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest.$ac_objext; then
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 $ac_includes_default
15915 typedef int ac__type_sizeof_;
15919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest.$ac_objext; then
15943 ac_lo=$ac_mid; break
15945 echo "$as_me: failed program was
:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_hi=`expr '(' $ac_mid ')' - 1`
15949 if test $ac_mid -le $ac_hi; then
15953 ac_mid=`expr 2 '*' $ac_mid`
15956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15959 echo "$as_me: failed program was
:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 # Binary search between lo and hi bounds.
15970 while test "x
$ac_lo" != "x
$ac_hi"; do
15971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 typedef int ac__type_sizeof_;
15983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15990 rm -f conftest.$ac_objext
15991 if { (ac_try="$ac_compile"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_compile") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest.$ac_objext; then
16009 echo "$as_me: failed program was
:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_lo=`expr '(' $ac_mid ')' + 1`
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 ?*) ac_cv_sizeof_int=$ac_lo;;
16019 '') if test "$ac_cv_type_int" = yes; then
16020 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
16021 See \
`config.log' for more details." >&5
16022 echo "$as_me: error: cannot compute sizeof (int)
16023 See \`config.log
' for more details." >&2;}
16024 { (exit 77); exit 77; }; }
16030 cat >conftest.$ac_ext <<_ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 $ac_includes_default
16037 typedef int ac__type_sizeof_;
16038 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16039 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16041 #include <stdlib.h>
16046 FILE *f = fopen ("conftest.val", "w");
16049 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16051 long int i = longval ();
16052 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16054 fprintf (f, "%ld\n", i);
16058 unsigned long int i = ulongval ();
16059 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16061 fprintf (f, "%lu\n", i);
16063 return ferror (f) || fclose (f) != 0;
16069 rm -f conftest$ac_exeext
16070 if { (ac_try="$ac_link"
16071 case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_link") 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_sizeof_int=`cat conftest.val`
16091 echo "$as_me: program exited with status $ac_status" >&5
16092 echo "$as_me: failed program was:" >&5
16093 sed 's
/^
/|
/' conftest.$ac_ext >&5
16095 ( exit $ac_status )
16096 if test "$ac_cv_type_int" = yes; then
16097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16098 See \`config.log' for more details.
" >&5
16099 echo "$as_me: error
: cannot compute sizeof
(int
)
16100 See \
`config.log' for more details." >&2;}
16101 { (exit 77); exit 77; }; }
16106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16110 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16111 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16115 cat >>confdefs.h <<_ACEOF
16116 #define SIZEOF_INT $ac_cv_sizeof_int
16121 # do the package library checks now
16124 if test "${USE_ALSA}" != "no"; then
16126 if test "x${ALSA_DIR}" != "x"; then
16127 if test -d ${ALSA_DIR}/lib; then
16128 pbxlibdir="-L${ALSA_DIR}/lib"
16130 pbxlibdir="-L${ALSA_DIR}"
16133 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16134 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16135 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16140 cat >conftest.$ac_ext <<_ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 /* Override any GCC internal prototype to avoid an error.
16148 Use char because int might match the return type of a GCC
16149 builtin and then its argument prototype would still apply. */
16153 char snd_spcm_init ();
16157 return snd_spcm_init ();
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16166 *) ac_try_echo
=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1
>conftest.err
16173 cat conftest.err
>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && {
16176 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest
$ac_exeext &&
16179 $as_test_x conftest
$ac_exeext; then
16180 ac_cv_lib_asound_snd_spcm_init
=yes
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.
$ac_ext >&5
16185 ac_cv_lib_asound_snd_spcm_init
=no
16188 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16189 conftest
$ac_exeext conftest.
$ac_ext
16190 LIBS
=$ac_check_lib_save_LIBS
16192 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16193 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16194 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16201 if test "${AST_ALSA_FOUND}" = "yes"; then
16202 ALSA_LIB
="-lasound -lm -ldl"
16203 ALSA_HEADER_FOUND
="1"
16204 if test "x${ALSA_DIR}" != "x"; then
16205 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16206 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16207 saved_cppflags
="${CPPFLAGS}"
16208 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
16209 if test "xalsa/asoundlib.h" != "x" ; then
16210 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16211 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16213 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16214 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 ac_res
=`eval echo '${'$as_ac_Header'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219 echo "${ECHO_T}$ac_res" >&6; }
16221 # Is the header compilable?
16222 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16223 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16224 cat >conftest.
$ac_ext <<_ACEOF
16227 cat confdefs.h
>>conftest.
$ac_ext
16228 cat >>conftest.
$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16233 rm -f conftest.
$ac_objext
16234 if { (ac_try
="$ac_compile"
16235 case "(($ac_try" in
16236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } && {
16247 test -z "$ac_c_werror_flag" ||
16248 test ! -s conftest.err
16249 } && test -s conftest.$ac_objext; then
16250 ac_header_compiler=yes
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_header_compiler=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260 echo "${ECHO_T}$ac_header_compiler" >&6; }
16262 # Is the header present?
16263 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16264 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16273 if { (ac_try="$ac_cpp conftest.$ac_ext"
16274 case "(($ac_try" in
16275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16276 *) ac_try_echo
=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1
>conftest.err
16283 cat conftest.err
>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev
/null
&& {
16286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16289 ac_header_preproc
=yes
16291 echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.
$ac_ext >&5
16294 ac_header_preproc
=no
16297 rm -f conftest.err conftest.
$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16299 echo "${ECHO_T}$ac_header_preproc" >&6; }
16301 # So? What about this header?
16302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16304 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16305 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16307 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16308 ac_header_preproc
=yes
16311 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16312 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16314 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16316 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16318 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16320 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16322 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16324 ## ------------------------------- ##
16325 ## Report this to www.asterisk.org ##
16326 ## ------------------------------- ##
16328 ) |
sed "s/^/$as_me: WARNING: /" >&2
16331 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16332 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 eval "$as_ac_Header=\$ac_header_preproc"
16338 ac_res
=`eval echo '${'$as_ac_Header'}'`
16339 { echo "$as_me:$LINENO: result: $ac_res" >&5
16340 echo "${ECHO_T}$ac_res" >&6; }
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 ALSA_HEADER_FOUND
=1
16346 ALSA_HEADER_FOUND
=0
16351 CPPFLAGS
="${saved_cppflags}"
16353 if test "xalsa/asoundlib.h" != "x" ; then
16354 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16355 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16356 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16357 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16361 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16363 # Is the header compilable?
16364 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16365 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16366 cat >conftest.
$ac_ext <<_ACEOF
16369 cat confdefs.h
>>conftest.
$ac_ext
16370 cat >>conftest.
$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16373 #include <alsa/asoundlib.h>
16375 rm -f conftest.
$ac_objext
16376 if { (ac_try
="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 echo "${ECHO_T}$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16406 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <alsa/asoundlib.h>
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16418 *) ac_try_echo
=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16423 grep -v '^ *+' conftest.er1
>conftest.err
16425 cat conftest.err
>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev
/null
&& {
16428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16431 ac_header_preproc
=yes
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.
$ac_ext >&5
16436 ac_header_preproc
=no
16439 rm -f conftest.err conftest.
$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc
=yes
16453 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16466 ## ------------------------------- ##
16467 ## Report this to www.asterisk.org ##
16468 ## ------------------------------- ##
16470 ) |
sed "s/^/$as_me: WARNING: /" >&2
16473 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16474 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16475 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16480 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16484 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16485 ALSA_HEADER_FOUND
=1
16487 ALSA_HEADER_FOUND
=0
16493 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16494 if test -n "${ALSA_MANDATORY}" ;
16496 { echo "$as_me:$LINENO: ***" >&5
16497 echo "$as_me: ***" >&6;}
16498 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16499 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16500 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16501 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16502 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16503 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16512 cat >>confdefs.h
<<_ACEOF
16513 #define HAVE_ALSA 1
16517 elif test -n "${ALSA_MANDATORY}";
16519 { echo "$as_me:$LINENO: ***" >&5
16520 echo "$as_me: ***" >&6;}
16521 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16522 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16523 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16524 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16525 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16526 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16533 if test "${USE_CURSES}" != "no"; then
16535 if test "x${CURSES_DIR}" != "x"; then
16536 if test -d ${CURSES_DIR}/lib
; then
16537 pbxlibdir
="-L${CURSES_DIR}/lib"
16539 pbxlibdir
="-L${CURSES_DIR}"
16542 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16543 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16544 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 ac_check_lib_save_LIBS
=$LIBS
16548 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16549 cat >conftest.
$ac_ext <<_ACEOF
16552 cat confdefs.h
>>conftest.
$ac_ext
16553 cat >>conftest.
$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16556 /* Override any GCC internal prototype to avoid an error.
16557 Use char because int might match the return type of a GCC
16558 builtin and then its argument prototype would still apply. */
16571 rm -f conftest.
$ac_objext conftest
$ac_exeext
16572 if { (ac_try
="$ac_link"
16573 case "(($ac_try" in
16574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_link") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext &&
16588 $as_test_x conftest$ac_exeext; then
16589 ac_cv_lib_curses_initscr=yes
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ac_cv_lib_curses_initscr=no
16597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16598 conftest$ac_exeext conftest.$ac_ext
16599 LIBS=$ac_check_lib_save_LIBS
16601 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16602 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16603 if test $ac_cv_lib_curses_initscr = yes; then
16604 AST_CURSES_FOUND=yes
16606 AST_CURSES_FOUND=no
16610 if test "${AST_CURSES_FOUND}" = "yes"; then
16611 CURSES_LIB="-lcurses "
16612 CURSES_HEADER_FOUND="1"
16613 if test "x${CURSES_DIR}" != "x"; then
16614 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16615 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16616 saved_cppflags="${CPPFLAGS}"
16617 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16618 if test "xcurses.h" != "x" ; then
16619 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16621 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16622 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_res=`eval echo '${'$as_ac_Header'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16630 # Is the header compilable?
16631 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16632 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16633 cat >conftest.$ac_ext <<_ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 $ac_includes_default
16640 #include <${CURSES_DIR}/include/curses.h>
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16646 *) ac_try_echo
=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_compile") 2>conftest.er1
16651 grep -v '^ *+' conftest.er1
>conftest.err
16653 cat conftest.err
>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest.
$ac_objext; then
16659 ac_header_compiler
=yes
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.
$ac_ext >&5
16664 ac_header_compiler
=no
16667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16669 echo "${ECHO_T}$ac_header_compiler" >&6; }
16671 # Is the header present?
16672 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16673 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16674 cat >conftest.
$ac_ext <<_ACEOF
16677 cat confdefs.h
>>conftest.
$ac_ext
16678 cat >>conftest.
$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <${CURSES_DIR}/include/curses.h>
16682 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16683 case "(($ac_try" in
16684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16690 grep -v '^ *+' conftest.er1 >conftest.err
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } >/dev/null && {
16695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16696 test ! -s conftest.err
16698 ac_header_preproc=yes
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_header_preproc=no
16706 rm -f conftest.err conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6; }
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16713 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16720 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16733 ## ------------------------------- ##
16734 ## Report this to www.asterisk.org ##
16735 ## ------------------------------- ##
16737 ) | sed "s/^/$as_me: WARNING: /" >&2
16740 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16741 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 eval "$as_ac_Header=\$ac_header_preproc"
16747 ac_res=`eval echo '${'$as_ac_Header'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749 echo "${ECHO_T}$ac_res" >&6; }
16752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16753 CURSES_HEADER_FOUND=1
16755 CURSES_HEADER_FOUND=0
16760 CPPFLAGS="${saved_cppflags}"
16762 if test "xcurses.h" != "x" ; then
16763 if test "${ac_cv_header_curses_h+set}" = set; then
16764 { echo "$as_me:$LINENO: checking for curses.h" >&5
16765 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16766 if test "${ac_cv_header_curses_h+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16770 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16772 # Is the header compilable?
16773 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16774 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16775 cat >conftest.$ac_ext <<_ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781 $ac_includes_default
16782 #include <curses.h>
16784 rm -f conftest.$ac_objext
16785 if { (ac_try="$ac_compile"
16786 case "(($ac_try" in
16787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16788 *) ac_try_echo
=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1
>conftest.err
16795 cat conftest.err
>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.
$ac_objext; then
16801 ac_header_compiler
=yes
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.
$ac_ext >&5
16806 ac_header_compiler
=no
16809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16811 echo "${ECHO_T}$ac_header_compiler" >&6; }
16813 # Is the header present?
16814 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16815 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16816 cat >conftest.
$ac_ext <<_ACEOF
16819 cat confdefs.h
>>conftest.
$ac_ext
16820 cat >>conftest.
$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 #include <curses.h>
16824 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16825 case "(($ac_try" in
16826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } >/dev/null && {
16837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16838 test ! -s conftest.err
16840 ac_header_preproc=yes
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16845 ac_header_preproc=no
16848 rm -f conftest.err conftest.$ac_ext
16849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16850 echo "${ECHO_T}$ac_header_preproc" >&6; }
16852 # So? What about this header?
16853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16855 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16856 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16858 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16859 ac_header_preproc=yes
16862 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16863 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16864 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16865 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16866 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16867 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16869 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16871 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16873 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16875 ## ------------------------------- ##
16876 ## Report this to www.asterisk.org ##
16877 ## ------------------------------- ##
16879 ) | sed "s/^/$as_me: WARNING: /" >&2
16882 { echo "$as_me:$LINENO: checking for curses.h" >&5
16883 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16884 if test "${ac_cv_header_curses_h+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 ac_cv_header_curses_h=$ac_header_preproc
16889 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16890 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16893 if test $ac_cv_header_curses_h = yes; then
16894 CURSES_HEADER_FOUND=1
16896 CURSES_HEADER_FOUND=0
16902 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16903 if test -n "${CURSES_MANDATORY}" ;
16905 { echo "$as_me:$LINENO: ***" >&5
16906 echo "$as_me: ***" >&6;}
16907 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16908 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16909 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16910 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16912 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_CURSES 1
16926 elif test -n "${CURSES_MANDATORY}";
16928 { echo "$as_me:$LINENO: ***" >&5
16929 echo "$as_me: ***" >&6;}
16930 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16931 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16932 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16933 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16935 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16941 if test "x${host_os}" = "xlinux-gnu" ; then
16943 if test "${USE_CAP}" != "no"; then
16945 if test "x${CAP_DIR}" != "x"; then
16946 if test -d ${CAP_DIR}/lib; then
16947 pbxlibdir="-L${CAP_DIR}/lib"
16949 pbxlibdir="-L${CAP_DIR}"
16952 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16953 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16954 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 ac_check_lib_save_LIBS=$LIBS
16958 LIBS="-lcap ${pbxlibdir} $LIBS"
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16972 char cap_from_text ();
16976 return cap_from_text ();
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16985 *) ac_try_echo
=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1
>conftest.err
16992 cat conftest.err
>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest
$ac_exeext &&
16998 $as_test_x conftest
$ac_exeext; then
16999 ac_cv_lib_cap_cap_from_text
=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.
$ac_ext >&5
17004 ac_cv_lib_cap_cap_from_text
=no
17007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17008 conftest
$ac_exeext conftest.
$ac_ext
17009 LIBS
=$ac_check_lib_save_LIBS
17011 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
17012 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
17013 if test $ac_cv_lib_cap_cap_from_text = yes; then
17020 if test "${AST_CAP_FOUND}" = "yes"; then
17022 CAP_HEADER_FOUND
="1"
17023 if test "x${CAP_DIR}" != "x"; then
17024 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
17025 CAP_INCLUDE
="-I${CAP_DIR}/include"
17026 saved_cppflags
="${CPPFLAGS}"
17027 CPPFLAGS
="${CPPFLAGS} -I${CAP_DIR}/include"
17028 if test "xsys/capability.h" != "x" ; then
17029 as_ac_Header
=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17030 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17031 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17032 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17033 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 ac_res
=`eval echo '${'$as_ac_Header'}'`
17037 { echo "$as_me:$LINENO: result: $ac_res" >&5
17038 echo "${ECHO_T}$ac_res" >&6; }
17040 # Is the header compilable?
17041 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17042 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17043 cat >conftest.
$ac_ext <<_ACEOF
17046 cat confdefs.h
>>conftest.
$ac_ext
17047 cat >>conftest.
$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 $ac_includes_default
17050 #include <${CAP_DIR}/include/sys/capability.h>
17052 rm -f conftest.
$ac_objext
17053 if { (ac_try
="$ac_compile"
17054 case "(($ac_try" in
17055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_compile") 2>conftest.er1
17061 grep -v '^ *+' conftest.er1 >conftest.err
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest.$ac_objext; then
17069 ac_header_compiler=yes
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 ac_header_compiler=no
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17079 echo "${ECHO_T}$ac_header_compiler" >&6; }
17081 # Is the header present?
17082 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17083 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 #include <${CAP_DIR}/include/sys/capability.h>
17092 if { (ac_try="$ac_cpp conftest.$ac_ext"
17093 case "(($ac_try" in
17094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17095 *) ac_try_echo
=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1
>conftest.err
17102 cat conftest.err
>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev
/null
&& {
17105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17108 ac_header_preproc
=yes
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.
$ac_ext >&5
17113 ac_header_preproc
=no
17116 rm -f conftest.err conftest.
$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 echo "${ECHO_T}$ac_header_preproc" >&6; }
17120 # So? What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17123 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17124 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17126 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc
=yes
17130 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17131 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17133 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17135 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17137 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17139 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17141 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17143 ## ------------------------------- ##
17144 ## Report this to www.asterisk.org ##
17145 ## ------------------------------- ##
17147 ) |
sed "s/^/$as_me: WARNING: /" >&2
17150 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17151 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 eval "$as_ac_Header=\$ac_header_preproc"
17157 ac_res
=`eval echo '${'$as_ac_Header'}'`
17158 { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17170 CPPFLAGS
="${saved_cppflags}"
17172 if test "xsys/capability.h" != "x" ; then
17173 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17174 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17175 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17176 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17180 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17182 # Is the header compilable?
17183 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17184 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 $ac_includes_default
17192 #include <sys/capability.h>
17194 rm -f conftest.
$ac_objext
17195 if { (ac_try
="$ac_compile"
17196 case "(($ac_try" in
17197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_compile") 2>conftest.er1
17203 grep -v '^ *+' conftest.er1 >conftest.err
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest.$ac_objext; then
17211 ac_header_compiler=yes
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_header_compiler=no
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17221 echo "${ECHO_T}$ac_header_compiler" >&6; }
17223 # Is the header present?
17224 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17225 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #include <sys/capability.h>
17234 if { (ac_try="$ac_cpp conftest.$ac_ext"
17235 case "(($ac_try" in
17236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17237 *) ac_try_echo
=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1
>conftest.err
17244 cat conftest.err
>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } >/dev
/null
&& {
17247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17250 ac_header_preproc
=yes
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.
$ac_ext >&5
17255 ac_header_preproc
=no
17258 rm -f conftest.err conftest.
$ac_ext
17259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17260 echo "${ECHO_T}$ac_header_preproc" >&6; }
17262 # So? What about this header?
17263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17265 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17266 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17268 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17269 ac_header_preproc
=yes
17272 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17273 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17275 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17276 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17277 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17279 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17281 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17283 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17285 ## ------------------------------- ##
17286 ## Report this to www.asterisk.org ##
17287 ## ------------------------------- ##
17289 ) |
sed "s/^/$as_me: WARNING: /" >&2
17292 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17293 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17294 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 ac_cv_header_sys_capability_h
=$ac_header_preproc
17299 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17300 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17303 if test $ac_cv_header_sys_capability_h = yes; then
17312 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17313 if test -n "${CAP_MANDATORY}" ;
17315 { echo "$as_me:$LINENO: ***" >&5
17316 echo "$as_me: ***" >&6;}
17317 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17318 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17319 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17320 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17321 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17322 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17331 cat >>confdefs.h
<<_ACEOF
17336 elif test -n "${CAP_MANDATORY}";
17338 { echo "$as_me:$LINENO: ***" >&5
17339 echo "$as_me: ***" >&6;}
17340 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17341 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17342 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17343 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17344 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17345 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17353 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17354 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17355 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17356 saved_cppflags
="${CPPFLAGS}"
17357 if test "x${GETIFADDRS_DIR}" != "x"; then
17358 GETIFADDRS_INCLUDE
="-I${GETIFADDRS_DIR}/include"
17360 CPPFLAGS
="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17362 cat >conftest.
$ac_ext <<_ACEOF
17365 cat confdefs.h
>>conftest.
$ac_ext
17366 cat >>conftest.
$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <ifaddrs.h>
17372 struct ifaddrs *p; getifaddrs(&p);
17378 rm -f conftest.
$ac_objext
17379 if { (ac_try
="$ac_compile"
17380 case "(($ac_try" in
17381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17387 grep -v '^ *+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest.$ac_objext; then
17395 { echo "$as_me:$LINENO: result: yes" >&5
17396 echo "${ECHO_T}yes" >&6; }
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_GETIFADDRS 1
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_GETIFADDRS_VERSION
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 { echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6; }
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 CPPFLAGS="${saved_cppflags}"
17426 if test "${USE_GSM}" != "no"; then
17427 if test "${GSM_DIR}" = "internal"; then
17429 elif test "${GSM_DIR}" != ""; then
17432 if test "${GSM_SYSTEM}" = "yes"; then
17434 if test "x${GSM_DIR}" != "x"; then
17435 if test -d ${GSM_DIR}/lib; then
17436 gsmlibdir="-L${GSM_DIR}/lib"
17438 gsmlibdir="-L${GSM_DIR}"
17441 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17442 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17443 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_check_lib_save_LIBS=$LIBS
17447 LIBS="-lgsm ${gsmlibdir} $LIBS"
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17455 /* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17461 char gsm_create ();
17465 return gsm_create ();
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17474 *) ac_try_echo
=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17479 grep -v '^ *+' conftest.er1
>conftest.err
17481 cat conftest.err
>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest
$ac_exeext &&
17487 $as_test_x conftest
$ac_exeext; then
17488 ac_cv_lib_gsm_gsm_create
=yes
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.
$ac_ext >&5
17493 ac_cv_lib_gsm_gsm_create
=no
17496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17497 conftest
$ac_exeext conftest.
$ac_ext
17498 LIBS
=$ac_check_lib_save_LIBS
17500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17501 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17502 if test $ac_cv_lib_gsm_gsm_create = yes; then
17504 cat >>confdefs.h
<<_ACEOF
17510 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17511 if test "x${GSM_DIR}" != "x" ; then
17512 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17513 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17514 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17515 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17516 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 ac_res
=`eval echo '${'$as_ac_Header'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17523 # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17525 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17526 cat >conftest.
$ac_ext <<_ACEOF
17529 cat confdefs.h
>>conftest.
$ac_ext
17530 cat >>conftest.
$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 #include <${GSM_DIR}/include/gsm.h>
17535 rm -f conftest.
$ac_objext
17536 if { (ac_try
="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_header_compiler=yes
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_header_compiler=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17566 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 #include <${GSM_DIR}/include/gsm.h>
17575 if { (ac_try="$ac_cpp conftest.$ac_ext"
17576 case "(($ac_try" in
17577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17578 *) ac_try_echo
=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17583 grep -v '^ *+' conftest.er1
>conftest.err
17585 cat conftest.err
>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } >/dev
/null
&& {
17588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17591 ac_header_preproc
=yes
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.
$ac_ext >&5
17596 ac_header_preproc
=no
17599 rm -f conftest.err conftest.
$ac_ext
17600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17603 # So? What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17606 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17607 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17609 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17610 ac_header_preproc
=yes
17613 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17614 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17616 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17618 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17620 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17624 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17626 ## ------------------------------- ##
17627 ## Report this to www.asterisk.org ##
17628 ## ------------------------------- ##
17630 ) |
sed "s/^/$as_me: WARNING: /" >&2
17633 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17634 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 eval "$as_ac_Header=\$ac_header_preproc"
17640 ac_res
=`eval echo '${'$as_ac_Header'}'`
17641 { echo "$as_me:$LINENO: result: $ac_res" >&5
17642 echo "${ECHO_T}$ac_res" >&6; }
17645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17652 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17653 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17654 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17655 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 ac_res
=`eval echo '${'$as_ac_Header'}'`
17660 { echo "$as_me:$LINENO: result: $ac_res" >&5
17661 echo "${ECHO_T}$ac_res" >&6; }
17663 # Is the header compilable?
17664 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17665 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17666 cat >conftest.
$ac_ext <<_ACEOF
17669 cat confdefs.h
>>conftest.
$ac_ext
17670 cat >>conftest.
$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 $ac_includes_default
17673 #include <${GSM_DIR}/include/gsm/gsm.h>
17675 rm -f conftest.
$ac_objext
17676 if { (ac_try
="$ac_compile"
17677 case "(($ac_try" in
17678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_compile") 2>conftest.er1
17684 grep -v '^ *+' conftest.er1 >conftest.err
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && {
17689 test -z "$ac_c_werror_flag" ||
17690 test ! -s conftest.err
17691 } && test -s conftest.$ac_objext; then
17692 ac_header_compiler=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_header_compiler=no
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17702 echo "${ECHO_T}$ac_header_compiler" >&6; }
17704 # Is the header present?
17705 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17706 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 #include <${GSM_DIR}/include/gsm/gsm.h>
17715 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1
>conftest.err
17725 cat conftest.err
>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } >/dev
/null
&& {
17728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17729 test ! -s conftest.err
17731 ac_header_preproc
=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.
$ac_ext >&5
17736 ac_header_preproc
=no
17739 rm -f conftest.err conftest.
$ac_ext
17740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17741 echo "${ECHO_T}$ac_header_preproc" >&6; }
17743 # So? What about this header?
17744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17746 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17747 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17749 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17750 ac_header_preproc
=yes
17753 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17754 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17756 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17758 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17759 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17760 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17761 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17762 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17764 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17766 ## ------------------------------- ##
17767 ## Report this to www.asterisk.org ##
17768 ## ------------------------------- ##
17770 ) |
sed "s/^/$as_me: WARNING: /" >&2
17773 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17774 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 eval "$as_ac_Header=\$ac_header_preproc"
17780 ac_res
=`eval echo '${'$as_ac_Header'}'`
17781 { echo "$as_me:$LINENO: result: $ac_res" >&5
17782 echo "${ECHO_T}$ac_res" >&6; }
17785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17786 GSM_GSM_HEADER_FOUND
=1
17788 GSM_GSM_HEADER_FOUND
=0
17793 if test "${ac_cv_header_gsm_h+set}" = set; then
17794 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17795 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17796 if test "${ac_cv_header_gsm_h+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17800 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17802 # Is the header compilable?
17803 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17804 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17805 cat >conftest.
$ac_ext <<_ACEOF
17808 cat confdefs.h
>>conftest.
$ac_ext
17809 cat >>conftest.
$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17814 rm -f conftest.
$ac_objext
17815 if { (ac_try
="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest.$ac_objext; then
17831 ac_header_compiler=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_header_compiler=no
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17841 echo "${ECHO_T}$ac_header_compiler" >&6; }
17843 # Is the header present?
17844 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17845 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17846 cat >conftest.$ac_ext <<_ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17854 if { (ac_try="$ac_cpp conftest.$ac_ext"
17855 case "(($ac_try" in
17856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17857 *) ac_try_echo
=$ac_try;;
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17862 grep -v '^ *+' conftest.er1
>conftest.err
17864 cat conftest.err
>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } >/dev
/null
&& {
17867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17870 ac_header_preproc
=yes
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.
$ac_ext >&5
17875 ac_header_preproc
=no
17878 rm -f conftest.err conftest.
$ac_ext
17879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17880 echo "${ECHO_T}$ac_header_preproc" >&6; }
17882 # So? What about this header?
17883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17885 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17886 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17888 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17889 ac_header_preproc
=yes
17892 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17893 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17895 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17897 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17899 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17901 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17903 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17905 ## ------------------------------- ##
17906 ## Report this to www.asterisk.org ##
17907 ## ------------------------------- ##
17909 ) |
sed "s/^/$as_me: WARNING: /" >&2
17912 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17913 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17914 if test "${ac_cv_header_gsm_h+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 ac_cv_header_gsm_h
=$ac_header_preproc
17919 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17920 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17923 if test $ac_cv_header_gsm_h = yes; then
17930 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17931 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17932 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17933 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17937 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17939 # Is the header compilable?
17940 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17941 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17942 cat >conftest.
$ac_ext <<_ACEOF
17945 cat confdefs.h
>>conftest.
$ac_ext
17946 cat >>conftest.
$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 #include <gsm/gsm.h>
17951 rm -f conftest.
$ac_objext
17952 if { (ac_try
="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest.$ac_objext; then
17968 ac_header_compiler=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_header_compiler=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17978 echo "${ECHO_T}$ac_header_compiler" >&6; }
17980 # Is the header present?
17981 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17982 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17983 cat >conftest.$ac_ext <<_ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 #include <gsm/gsm.h>
17991 if { (ac_try="$ac_cpp conftest.$ac_ext"
17992 case "(($ac_try" in
17993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17994 *) ac_try_echo
=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17999 grep -v '^ *+' conftest.er1
>conftest.err
18001 cat conftest.err
>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } >/dev
/null
&& {
18004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18007 ac_header_preproc
=yes
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.
$ac_ext >&5
18012 ac_header_preproc
=no
18015 rm -f conftest.err conftest.
$ac_ext
18016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18017 echo "${ECHO_T}$ac_header_preproc" >&6; }
18019 # So? What about this header?
18020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18022 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18023 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18025 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18026 ac_header_preproc
=yes
18029 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18030 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18032 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18034 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18036 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18038 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18040 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18042 ## ------------------------------- ##
18043 ## Report this to www.asterisk.org ##
18044 ## ------------------------------- ##
18046 ) |
sed "s/^/$as_me: WARNING: /" >&2
18049 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18050 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18051 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
18056 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18057 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18060 if test $ac_cv_header_gsm_gsm_h = yes; then
18061 GSM_GSM_HEADER_FOUND
=1
18063 GSM_GSM_HEADER_FOUND
=0
18068 if test "${GSM_HEADER_FOUND}" = "0" ; then
18069 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18070 if test "x${GSM_MANDATORY}" = "xyes" ; then
18071 { echo "$as_me:$LINENO: ***" >&5
18072 echo "$as_me: ***" >&6;}
18073 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18074 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18075 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18076 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18077 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18078 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18084 if test "${GSM_HEADER_FOUND}" = "1" ; then
18086 cat >>confdefs.h
<<_ACEOF
18087 #define HAVE_GSM_HEADER 1
18092 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18094 cat >>confdefs.h
<<_ACEOF
18095 #define HAVE_GSM_GSM_HEADER 1
18101 if test "${GSM_OK}" = "1" ; then
18103 if test "x${GSM_DIR}" != "x"; then
18104 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
18105 GSM_INCLUDE
="-I${GSM_DIR}/include"
18112 if test "${GSM_INTERNAL}" = "yes"; then
18115 cat >>confdefs.h
<<_ACEOF
18116 #define HAVE_GSM_HEADER 1
18123 if test "${USE_IKSEMEL}" != "no"; then
18125 if test "x${IKSEMEL_DIR}" != "x"; then
18126 if test -d ${IKSEMEL_DIR}/lib
; then
18127 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
18129 pbxlibdir
="-L${IKSEMEL_DIR}"
18132 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18133 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18134 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 ac_check_lib_save_LIBS
=$LIBS
18138 LIBS
="-liksemel ${pbxlibdir} $LIBS"
18139 cat >conftest.
$ac_ext <<_ACEOF
18142 cat confdefs.h
>>conftest.
$ac_ext
18143 cat >>conftest.
$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18152 char iks_start_sasl ();
18156 return iks_start_sasl ();
18161 rm -f conftest.
$ac_objext conftest
$ac_exeext
18162 if { (ac_try
="$ac_link"
18163 case "(($ac_try" in
18164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_link") 2>conftest.er1
18170 grep -v '^ *+' conftest.er1 >conftest.err
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } && {
18175 test -z "$ac_c_werror_flag" ||
18176 test ! -s conftest.err
18177 } && test -s conftest$ac_exeext &&
18178 $as_test_x conftest$ac_exeext; then
18179 ac_cv_lib_iksemel_iks_start_sasl=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_lib_iksemel_iks_start_sasl=no
18187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18188 conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18191 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18192 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18193 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18194 AST_IKSEMEL_FOUND=yes
18196 AST_IKSEMEL_FOUND=no
18200 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18201 IKSEMEL_LIB="-liksemel "
18202 IKSEMEL_HEADER_FOUND="1"
18203 if test "x${IKSEMEL_DIR}" != "x"; then
18204 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18205 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18206 saved_cppflags="${CPPFLAGS}"
18207 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18208 if test "xiksemel.h" != "x" ; then
18209 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
18210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18211 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18212 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_res=`eval echo '${'$as_ac_Header'}'`
18217 { echo "$as_me:$LINENO: result: $ac_res" >&5
18218 echo "${ECHO_T}$ac_res" >&6; }
18220 # Is the header compilable?
18221 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18222 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 $ac_includes_default
18230 #include <${IKSEMEL_DIR}/include/iksemel.h>
18232 rm -f conftest.$ac_objext
18233 if { (ac_try="$ac_compile"
18234 case "(($ac_try" in
18235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18236 *) ac_try_echo
=$ac_try;;
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_compile") 2>conftest.er1
18241 grep -v '^ *+' conftest.er1
>conftest.err
18243 cat conftest.err
>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } && {
18246 test -z "$ac_c_werror_flag" ||
18247 test ! -s conftest.err
18248 } && test -s conftest.
$ac_objext; then
18249 ac_header_compiler
=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.
$ac_ext >&5
18254 ac_header_compiler
=no
18257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18259 echo "${ECHO_T}$ac_header_compiler" >&6; }
18261 # Is the header present?
18262 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18263 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18264 cat >conftest.
$ac_ext <<_ACEOF
18267 cat confdefs.h
>>conftest.
$ac_ext
18268 cat >>conftest.
$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 #include <${IKSEMEL_DIR}/include/iksemel.h>
18272 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18273 case "(($ac_try" in
18274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18280 grep -v '^ *+' conftest.er1 >conftest.err
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } >/dev/null && {
18285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18288 ac_header_preproc=yes
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_header_preproc=no
18296 rm -f conftest.err conftest.$ac_ext
18297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18298 echo "${ECHO_T}$ac_header_preproc" >&6; }
18300 # So? What about this header?
18301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18303 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18304 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18305 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18306 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18307 ac_header_preproc=yes
18310 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18311 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18313 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18315 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18317 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18319 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18321 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18323 ## ------------------------------- ##
18324 ## Report this to www.asterisk.org ##
18325 ## ------------------------------- ##
18327 ) | sed "s/^/$as_me: WARNING: /" >&2
18330 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18331 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 eval "$as_ac_Header=\$ac_header_preproc"
18337 ac_res=`eval echo '${'$as_ac_Header'}'`
18338 { echo "$as_me:$LINENO: result: $ac_res" >&5
18339 echo "${ECHO_T}$ac_res" >&6; }
18342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18343 IKSEMEL_HEADER_FOUND=1
18345 IKSEMEL_HEADER_FOUND=0
18350 CPPFLAGS="${saved_cppflags}"
18352 if test "xiksemel.h" != "x" ; then
18353 if test "${ac_cv_header_iksemel_h+set}" = set; then
18354 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18355 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18356 if test "${ac_cv_header_iksemel_h+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18360 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18362 # Is the header compilable?
18363 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18364 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 $ac_includes_default
18372 #include <iksemel.h>
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18378 *) ac_try_echo
=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1
>conftest.err
18385 cat conftest.err
>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.
$ac_objext; then
18391 ac_header_compiler
=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.
$ac_ext >&5
18396 ac_header_compiler
=no
18399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18401 echo "${ECHO_T}$ac_header_compiler" >&6; }
18403 # Is the header present?
18404 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18405 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18406 cat >conftest.
$ac_ext <<_ACEOF
18409 cat confdefs.h
>>conftest.
$ac_ext
18410 cat >>conftest.
$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 #include <iksemel.h>
18414 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18415 case "(($ac_try" in
18416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } >/dev/null && {
18427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18430 ac_header_preproc=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_header_preproc=no
18438 rm -f conftest.err conftest.$ac_ext
18439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18440 echo "${ECHO_T}$ac_header_preproc" >&6; }
18442 # So? What about this header?
18443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18446 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18448 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18449 ac_header_preproc=yes
18452 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18453 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18455 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18457 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18459 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18461 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18462 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18463 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18465 ## ------------------------------- ##
18466 ## Report this to www.asterisk.org ##
18467 ## ------------------------------- ##
18469 ) | sed "s/^/$as_me: WARNING: /" >&2
18472 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18473 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18474 if test "${ac_cv_header_iksemel_h+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 ac_cv_header_iksemel_h=$ac_header_preproc
18479 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18480 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18483 if test $ac_cv_header_iksemel_h = yes; then
18484 IKSEMEL_HEADER_FOUND=1
18486 IKSEMEL_HEADER_FOUND=0
18492 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18493 if test -n "${IKSEMEL_MANDATORY}" ;
18495 { echo "$as_me:$LINENO: ***" >&5
18496 echo "$as_me: ***" >&6;}
18497 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18498 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18499 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18500 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18501 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18502 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18511 cat >>confdefs.h <<_ACEOF
18512 #define HAVE_IKSEMEL 1
18516 elif test -n "${IKSEMEL_MANDATORY}";
18518 { echo "$as_me:$LINENO: ***" >&5
18519 echo "$as_me: ***" >&6;}
18520 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18521 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18522 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18523 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18524 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18525 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18531 if test "${PBX_IKSEMEL}" = 1; then
18533 if test "${USE_GNUTLS}" != "no"; then
18535 if test "x${GNUTLS_DIR}" != "x"; then
18536 if test -d ${GNUTLS_DIR}/lib; then
18537 pbxlibdir="-L${GNUTLS_DIR}/lib"
18539 pbxlibdir="-L${GNUTLS_DIR}"
18542 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18543 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18544 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any GCC internal prototype to avoid an error.
18557 Use char because int might match the return type of a GCC
18558 builtin and then its argument prototype would still apply. */
18562 char gnutls_bye ();
18566 return gnutls_bye ();
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18575 *) ac_try_echo
=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1
>conftest.err
18582 cat conftest.err
>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest
$ac_exeext &&
18588 $as_test_x conftest
$ac_exeext; then
18589 ac_cv_lib_gnutls_gnutls_bye
=yes
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.
$ac_ext >&5
18594 ac_cv_lib_gnutls_gnutls_bye
=no
18597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18598 conftest
$ac_exeext conftest.
$ac_ext
18599 LIBS
=$ac_check_lib_save_LIBS
18601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18602 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18603 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18604 AST_GNUTLS_FOUND
=yes
18606 AST_GNUTLS_FOUND
=no
18610 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18611 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
18612 GNUTLS_HEADER_FOUND
="1"
18613 if test "x${GNUTLS_DIR}" != "x"; then
18614 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
18615 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
18616 saved_cppflags
="${CPPFLAGS}"
18617 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18618 if test "xgnutls/gnutls.h" != "x" ; then
18619 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18620 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18621 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18622 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18623 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 ac_res
=`eval echo '${'$as_ac_Header'}'`
18627 { echo "$as_me:$LINENO: result: $ac_res" >&5
18628 echo "${ECHO_T}$ac_res" >&6; }
18630 # Is the header compilable?
18631 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18632 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18633 cat >conftest.
$ac_ext <<_ACEOF
18636 cat confdefs.h
>>conftest.
$ac_ext
18637 cat >>conftest.
$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 $ac_includes_default
18640 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18642 rm -f conftest.
$ac_objext
18643 if { (ac_try
="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_compile") 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && {
18656 test -z "$ac_c_werror_flag" ||
18657 test ! -s conftest.err
18658 } && test -s conftest.$ac_objext; then
18659 ac_header_compiler=yes
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_header_compiler=no
18667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18669 echo "${ECHO_T}$ac_header_compiler" >&6; }
18671 # Is the header present?
18672 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18673 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18682 if { (ac_try="$ac_cpp conftest.$ac_ext"
18683 case "(($ac_try" in
18684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18685 *) ac_try_echo
=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18690 grep -v '^ *+' conftest.er1
>conftest.err
18692 cat conftest.err
>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } >/dev
/null
&& {
18695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18698 ac_header_preproc
=yes
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.
$ac_ext >&5
18703 ac_header_preproc
=no
18706 rm -f conftest.err conftest.
$ac_ext
18707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18708 echo "${ECHO_T}$ac_header_preproc" >&6; }
18710 # So? What about this header?
18711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18713 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18714 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18716 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18717 ac_header_preproc
=yes
18720 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18721 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18723 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18725 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18727 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18729 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18731 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18733 ## ------------------------------- ##
18734 ## Report this to www.asterisk.org ##
18735 ## ------------------------------- ##
18737 ) |
sed "s/^/$as_me: WARNING: /" >&2
18740 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18741 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18742 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 eval "$as_ac_Header=\$ac_header_preproc"
18747 ac_res
=`eval echo '${'$as_ac_Header'}'`
18748 { echo "$as_me:$LINENO: result: $ac_res" >&5
18749 echo "${ECHO_T}$ac_res" >&6; }
18752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18753 GNUTLS_HEADER_FOUND
=1
18755 GNUTLS_HEADER_FOUND
=0
18760 CPPFLAGS
="${saved_cppflags}"
18762 if test "xgnutls/gnutls.h" != "x" ; then
18763 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18764 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18765 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18766 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18770 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18772 # Is the header compilable?
18773 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18774 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18775 cat >conftest.
$ac_ext <<_ACEOF
18778 cat confdefs.h
>>conftest.
$ac_ext
18779 cat >>conftest.
$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 $ac_includes_default
18782 #include <gnutls/gnutls.h>
18784 rm -f conftest.
$ac_objext
18785 if { (ac_try
="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_compile") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1 >conftest.err
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } && {
18798 test -z "$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 } && test -s conftest.$ac_objext; then
18801 ac_header_compiler=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_compiler=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18811 echo "${ECHO_T}$ac_header_compiler" >&6; }
18813 # Is the header present?
18814 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18815 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <gnutls/gnutls.h>
18824 if { (ac_try="$ac_cpp conftest.$ac_ext"
18825 case "(($ac_try" in
18826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18827 *) ac_try_echo
=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1
>conftest.err
18834 cat conftest.err
>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } >/dev
/null
&& {
18837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18840 ac_header_preproc
=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.
$ac_ext >&5
18845 ac_header_preproc
=no
18848 rm -f conftest.err conftest.
$ac_ext
18849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850 echo "${ECHO_T}$ac_header_preproc" >&6; }
18852 # So? What about this header?
18853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18855 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18856 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18858 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18859 ac_header_preproc
=yes
18862 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18863 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18864 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18865 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18867 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18868 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18869 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18871 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18872 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18873 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18875 ## ------------------------------- ##
18876 ## Report this to www.asterisk.org ##
18877 ## ------------------------------- ##
18879 ) |
sed "s/^/$as_me: WARNING: /" >&2
18882 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18883 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18884 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
18889 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18890 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18893 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18894 GNUTLS_HEADER_FOUND
=1
18896 GNUTLS_HEADER_FOUND
=0
18902 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18903 if test -n "${GNUTLS_MANDATORY}" ;
18905 { echo "$as_me:$LINENO: ***" >&5
18906 echo "$as_me: ***" >&6;}
18907 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18908 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18909 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18910 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18912 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18921 cat >>confdefs.h
<<_ACEOF
18922 #define HAVE_GNUTLS 1
18926 elif test -n "${GNUTLS_MANDATORY}";
18928 { echo "$as_me:$LINENO: ***" >&5
18929 echo "$as_me: ***" >&6;}
18930 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18931 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18932 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18933 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18935 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18942 if test "${USE_IMAP_TK}" != "no"; then
18943 saved_cppflags
="${CPPFLAGS}"
18944 saved_libs
="${LIBS}"
18945 switch_to_system_on_failure
="no"
18946 if test "${IMAP_TK_DIR}" = ""; then
18947 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
18948 switch_to_system_on_failure
="yes"
18950 if test "${IMAP_TK_DIR}" != "system"; then
18951 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18952 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18953 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18954 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18956 imap_libs
="${IMAP_TK_DIR}/c-client/c-client.a"
18957 imap_include
="-I${IMAP_TK_DIR}/c-client"
18958 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18959 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 #include "c-client.h
"
18967 void mm_searched (MAILSTREAM *stream,unsigned long number)
18970 void mm_exists (MAILSTREAM *stream,unsigned long number)
18973 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18976 void mm_flags (MAILSTREAM *stream,unsigned long number)
18979 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18982 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18985 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18988 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18991 void mm_log (char *string,long errflg)
18994 void mm_dlog (char *string)
18997 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19000 void mm_critical (MAILSTREAM *stream)
19003 void mm_nocritical (MAILSTREAM *stream)
19006 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19009 void mm_fatal (char *string)
19016 MAILSTREAM *foo = mail_open(NULL, "", 0);
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19036 (exit $ac_status); } && {
19037 test -z "$ac_c_werror_flag" ||
19038 test ! -s conftest.err
19039 } && test -s conftest$ac_exeext &&
19040 $as_test_x conftest$ac_exeext; then
19041 ac_cv_imap_tk="yes"
19043 echo "$as_me: failed program was
:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19051 conftest$ac_exeext conftest.$ac_ext
19052 if test "${ac_cv_imap_tk}" = "yes"; then
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 #include "c-client.h
"
19060 void mm_searched (MAILSTREAM *stream,unsigned long number)
19063 void mm_exists (MAILSTREAM *stream,unsigned long number)
19066 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19069 void mm_flags (MAILSTREAM *stream,unsigned long number)
19072 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19075 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19078 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19081 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19084 void mm_log (char *string,long errflg)
19087 void mm_dlog (char *string)
19090 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19093 void mm_critical (MAILSTREAM *stream)
19096 void mm_nocritical (MAILSTREAM *stream)
19099 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19102 void mm_fatal (char *string)
19109 long check = mail_expunge_full(NULL, "", 0);
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 ac_cv_imap_tk2006="yes"
19136 echo "$as_me: failed program was
:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_cv_imap_tk2006="no
"
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144 conftest$ac_exeext conftest.$ac_ext
19146 CPPFLAGS="${saved_cppflags}"
19147 LIBS="${saved_libs}"
19148 if test "${ac_cv_imap_tk}" = "no
"; then
19149 { echo "$as_me:$LINENO: result
: no
" >&5
19150 echo "${ECHO_T}no
" >&6; }
19151 if test "${switch_to_system_on_failure}" = "yes"; then
19152 IMAP_TK_DIR="system
"
19153 else #This means they specified a directory. Search for a package installation there too
19154 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19155 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19156 CPPFLAGS="${saved_cppflags}"
19157 LIBS="${saved_libs}"
19158 imap_include="-I${IMAP_TK_DIR}/include
"
19159 imap_ldflags="-L${IMAP_TK_DIR}/lib
"
19160 imap_libs="-lc-client"
19161 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19162 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19163 cat >conftest.$ac_ext <<_ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include "c-client.h
"
19170 void mm_searched (MAILSTREAM *stream,unsigned long number)
19173 void mm_exists (MAILSTREAM *stream,unsigned long number)
19176 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19179 void mm_flags (MAILSTREAM *stream,unsigned long number)
19182 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19185 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19188 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19191 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19194 void mm_log (char *string,long errflg)
19197 void mm_dlog (char *string)
19200 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19203 void mm_critical (MAILSTREAM *stream)
19206 void mm_nocritical (MAILSTREAM *stream)
19209 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19212 void mm_fatal (char *string)
19219 MAILSTREAM *foo = mail_open(NULL, "", 0);
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_imap_tk="yes"
19246 echo "$as_me: failed program was
:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19254 conftest$ac_exeext conftest.$ac_ext
19255 if test "${ac_cv_imap_tk}" = "yes"; then
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include "c-client.h
"
19263 void mm_searched (MAILSTREAM *stream,unsigned long number)
19266 void mm_exists (MAILSTREAM *stream,unsigned long number)
19269 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19272 void mm_flags (MAILSTREAM *stream,unsigned long number)
19275 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19278 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19281 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19284 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19287 void mm_log (char *string,long errflg)
19290 void mm_dlog (char *string)
19293 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19296 void mm_critical (MAILSTREAM *stream)
19299 void mm_nocritical (MAILSTREAM *stream)
19302 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19305 void mm_fatal (char *string)
19312 long check = mail_expunge_full(NULL, "", 0);
19319 rm -f conftest.$ac_objext conftest$ac_exeext
19320 if { (ac_try="$ac_link"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_link") 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19332 (exit $ac_status); } && {
19333 test -z "$ac_c_werror_flag" ||
19334 test ! -s conftest.err
19335 } && test -s conftest$ac_exeext &&
19336 $as_test_x conftest$ac_exeext; then
19337 ac_cv_imap_tk2006="yes"
19339 echo "$as_me: failed program was
:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_imap_tk2006="no
"
19346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19347 conftest$ac_exeext conftest.$ac_ext
19352 if test "${IMAP_TK_DIR}" = "system
"; then
19353 #We will enter here if user specified "system
" or if any of above checks failed
19354 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19355 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19356 CPPFLAGS="${saved_cppflags}"
19357 LIBS="${saved_libs}"
19359 imap_libs="-lc-client"
19360 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19361 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19362 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 #include <imap/c-client.h>
19371 void mm_searched (MAILSTREAM *stream,unsigned long number)
19374 void mm_exists (MAILSTREAM *stream,unsigned long number)
19377 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19380 void mm_flags (MAILSTREAM *stream,unsigned long number)
19383 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19386 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19389 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19392 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19395 void mm_log (char *string,long errflg)
19398 void mm_dlog (char *string)
19401 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19404 void mm_critical (MAILSTREAM *stream)
19407 void mm_nocritical (MAILSTREAM *stream)
19410 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19413 void mm_fatal (char *string)
19420 MAILSTREAM *foo = mail_open(NULL, "", 0);
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19431 *) ac_try_echo
=$ac_try;;
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>conftest.er1
19436 grep -v '^ *+' conftest.er1
>conftest.err
19438 cat conftest.err
>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } && {
19441 test -z "$ac_c_werror_flag" ||
19442 test ! -s conftest.err
19443 } && test -s conftest
$ac_exeext &&
19444 $as_test_x conftest
$ac_exeext; then
19445 ac_cv_imap_tk
="yes"
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.
$ac_ext >&5
19454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19455 conftest
$ac_exeext conftest.
$ac_ext
19456 if test "${ac_cv_imap_tk}" = "yes"; then
19457 cat >conftest.
$ac_ext <<_ACEOF
19460 cat confdefs.h
>>conftest.
$ac_ext
19461 cat >>conftest.
$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19464 #include <imap/c-client.h>
19465 void mm_searched (MAILSTREAM *stream,unsigned long number)
19468 void mm_exists (MAILSTREAM *stream,unsigned long number)
19471 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19474 void mm_flags (MAILSTREAM *stream,unsigned long number)
19477 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19480 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19483 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19486 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19489 void mm_log (char *string,long errflg)
19492 void mm_dlog (char *string)
19495 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19498 void mm_critical (MAILSTREAM *stream)
19501 void mm_nocritical (MAILSTREAM *stream)
19504 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19507 void mm_fatal (char *string)
19514 long check = mail_expunge_full(NULL, "", 0);
19521 rm -f conftest.
$ac_objext conftest
$ac_exeext
19522 if { (ac_try
="$ac_link"
19523 case "(($ac_try" in
19524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest$ac_exeext &&
19538 $as_test_x conftest$ac_exeext; then
19539 ac_cv_imap_tk2006="yes"
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_imap_tk2006="no"
19548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19549 conftest$ac_exeext conftest.$ac_ext
19550 else #looking in imap directory didn't work, try c-client
19552 imap_libs="-lc-client"
19553 imap_include="-DUSE_SYSTEM_CCLIENT"
19554 CPPFLAGS="${saved_cppflags}"
19555 LIBS="${saved_libs}"
19556 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19557 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19558 cat >conftest.
$ac_ext <<_ACEOF
19561 cat confdefs.h
>>conftest.
$ac_ext
19562 cat >>conftest.
$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19565 #include <c-client/c-client.h>
19566 void mm_searched (MAILSTREAM *stream,unsigned long number)
19569 void mm_exists (MAILSTREAM *stream,unsigned long number)
19572 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19575 void mm_flags (MAILSTREAM *stream,unsigned long number)
19578 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19581 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19584 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19587 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19590 void mm_log (char *string,long errflg)
19593 void mm_dlog (char *string)
19596 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19599 void mm_critical (MAILSTREAM *stream)
19602 void mm_nocritical (MAILSTREAM *stream)
19605 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19608 void mm_fatal (char *string)
19615 MAILSTREAM *foo = mail_open(NULL, "", 0);
19622 rm -f conftest.
$ac_objext conftest
$ac_exeext
19623 if { (ac_try
="$ac_link"
19624 case "(($ac_try" in
19625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } && {
19636 test -z "$ac_c_werror_flag" ||
19637 test ! -s conftest.err
19638 } && test -s conftest$ac_exeext &&
19639 $as_test_x conftest$ac_exeext; then
19640 ac_cv_imap_tk="yes"
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650 conftest$ac_exeext conftest.$ac_ext
19651 if test "${ac_cv_imap_tk}" = "yes"; then
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19659 #include <c-client/c-client.h>
19660 void mm_searched (MAILSTREAM *stream,unsigned long number)
19663 void mm_exists (MAILSTREAM *stream,unsigned long number)
19666 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19669 void mm_flags (MAILSTREAM *stream,unsigned long number)
19672 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19675 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19678 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19681 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19684 void mm_log (char *string,long errflg)
19687 void mm_dlog (char *string)
19690 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19693 void mm_critical (MAILSTREAM *stream)
19696 void mm_nocritical (MAILSTREAM *stream)
19699 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19702 void mm_fatal (char *string)
19709 long check = mail_expunge_full(NULL, "", 0);
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19720 *) ac_try_echo
=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19725 grep -v '^ *+' conftest.er1
>conftest.err
19727 cat conftest.err
>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest
$ac_exeext &&
19733 $as_test_x conftest
$ac_exeext; then
19734 ac_cv_imap_tk2006
="yes"
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.
$ac_ext >&5
19739 ac_cv_imap_tk2006
="no"
19743 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19744 conftest
$ac_exeext conftest.
$ac_ext
19748 if test "${ac_cv_imap_tk}" = "yes"; then
19749 { echo "$as_me:$LINENO: result: yes" >&5
19750 echo "${ECHO_T}yes" >&6; }
19751 IMAP_TK_LIB
="${imap_libs} "`echo ${imap_ldflags}`
19752 IMAP_TK_INCLUDE
="${imap_include}"
19755 cat >>confdefs.h
<<\_ACEOF
19756 #define HAVE_IMAP_TK 1
19759 if test "${ac_cv_imap_tk2006}" = "yes"; then
19761 cat >>confdefs.h
<<\_ACEOF
19762 #define HAVE_IMAP_TK2006 1
19766 elif test -n "${IMAP_TK_MANDATORY}"; then
19767 { echo "$as_me:$LINENO: result: no" >&5
19768 echo "${ECHO_T}no" >&6; }
19769 { echo "$as_me:$LINENO: ***" >&5
19770 echo "$as_me: ***" >&6;}
19771 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19772 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19773 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19774 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19775 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19776 echo "$as_me: *** including --without-imap." >&6;}
19779 { echo "$as_me:$LINENO: result: no" >&5
19780 echo "${ECHO_T}no" >&6; }
19782 CPPFLAGS
="${saved_cppflags}"
19783 LIBS
="${saved_libs}"
19786 # Needed by unixodbc
19788 if test "${USE_LTDL}" != "no"; then
19790 if test "x${LTDL_DIR}" != "x"; then
19791 if test -d ${LTDL_DIR}/lib
; then
19792 pbxlibdir
="-L${LTDL_DIR}/lib"
19794 pbxlibdir
="-L${LTDL_DIR}"
19797 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19798 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19799 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 ac_check_lib_save_LIBS
=$LIBS
19803 LIBS
="-lltdl ${pbxlibdir} $LIBS"
19804 cat >conftest.
$ac_ext <<_ACEOF
19807 cat confdefs.h
>>conftest.
$ac_ext
19808 cat >>conftest.
$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19821 return lt_dlinit ();
19826 rm -f conftest.
$ac_objext conftest
$ac_exeext
19827 if { (ac_try
="$ac_link"
19828 case "(($ac_try" in
19829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_link") 2>conftest.er1
19835 grep -v '^ *+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest$ac_exeext &&
19843 $as_test_x conftest$ac_exeext; then
19844 ac_cv_lib_ltdl_lt_dlinit=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_cv_lib_ltdl_lt_dlinit=no
19852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19853 conftest$ac_exeext conftest.$ac_ext
19854 LIBS=$ac_check_lib_save_LIBS
19856 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19857 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19858 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19865 if test "${AST_LTDL_FOUND}" = "yes"; then
19867 LTDL_HEADER_FOUND="1"
19868 if test "x${LTDL_DIR}" != "x"; then
19869 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19870 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19871 saved_cppflags="${CPPFLAGS}"
19872 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19873 if test "xltdl.h" != "x" ; then
19874 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" |
$as_tr_sh`
19875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19876 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19877 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 ac_res=`eval echo '${'$as_ac_Header'}'`
19882 { echo "$as_me:$LINENO: result: $ac_res" >&5
19883 echo "${ECHO_T}$ac_res" >&6; }
19885 # Is the header compilable?
19886 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19887 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 #include <${LTDL_DIR}/include/ltdl.h>
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19901 *) ac_try_echo
=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1
>conftest.err
19908 cat conftest.err
>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.
$ac_objext; then
19914 ac_header_compiler
=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.
$ac_ext >&5
19919 ac_header_compiler
=no
19922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19928 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19929 cat >conftest.
$ac_ext <<_ACEOF
19932 cat confdefs.h
>>conftest.
$ac_ext
19933 cat >>conftest.
$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <${LTDL_DIR}/include/ltdl.h>
19937 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19938 case "(($ac_try" in
19939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } >/dev/null && {
19950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19951 test ! -s conftest.err
19953 ac_header_preproc=yes
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_header_preproc=no
19961 rm -f conftest.err conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6; }
19965 # So? What about this header?
19966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19968 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19969 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19971 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19972 ac_header_preproc=yes
19975 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19976 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19978 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19980 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19982 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19984 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19986 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19988 ## ------------------------------- ##
19989 ## Report this to www.asterisk.org ##
19990 ## ------------------------------- ##
19992 ) | sed "s/^/$as_me: WARNING: /" >&2
19995 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19996 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 eval "$as_ac_Header=\$ac_header_preproc"
20002 ac_res=`eval echo '${'$as_ac_Header'}'`
20003 { echo "$as_me:$LINENO: result: $ac_res" >&5
20004 echo "${ECHO_T}$ac_res" >&6; }
20007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20008 LTDL_HEADER_FOUND=1
20010 LTDL_HEADER_FOUND=0
20015 CPPFLAGS="${saved_cppflags}"
20017 if test "xltdl.h" != "x" ; then
20018 if test "${ac_cv_header_ltdl_h+set}" = set; then
20019 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20020 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20021 if test "${ac_cv_header_ltdl_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20025 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20027 # Is the header compilable?
20028 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20029 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 $ac_includes_default
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20043 *) ac_try_echo
=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_compile") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1
>conftest.err
20050 cat conftest.err
>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest.
$ac_objext; then
20056 ac_header_compiler
=yes
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.
$ac_ext >&5
20061 ac_header_compiler
=no
20064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20066 echo "${ECHO_T}$ac_header_compiler" >&6; }
20068 # Is the header present?
20069 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20070 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20071 cat >conftest.
$ac_ext <<_ACEOF
20074 cat confdefs.h
>>conftest.
$ac_ext
20075 cat >>conftest.
$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20079 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20080 case "(($ac_try" in
20081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } >/dev/null && {
20092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20095 ac_header_preproc=yes
20097 echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_header_preproc=no
20103 rm -f conftest.err conftest.$ac_ext
20104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20105 echo "${ECHO_T}$ac_header_preproc" >&6; }
20107 # So? What about this header?
20108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20110 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20111 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20113 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20114 ac_header_preproc=yes
20117 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20118 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20120 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20122 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20124 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20126 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20128 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20130 ## ------------------------------- ##
20131 ## Report this to www.asterisk.org ##
20132 ## ------------------------------- ##
20134 ) | sed "s/^/$as_me: WARNING: /" >&2
20137 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20138 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20139 if test "${ac_cv_header_ltdl_h+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 ac_cv_header_ltdl_h=$ac_header_preproc
20144 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20145 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20148 if test $ac_cv_header_ltdl_h = yes; then
20149 LTDL_HEADER_FOUND=1
20151 LTDL_HEADER_FOUND=0
20157 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20158 if test -n "${LTDL_MANDATORY}" ;
20160 { echo "$as_me:$LINENO: ***" >&5
20161 echo "$as_me: ***" >&6;}
20162 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20163 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20164 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20165 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20166 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20167 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_LTDL 1
20181 elif test -n "${LTDL_MANDATORY}";
20183 { echo "$as_me:$LINENO: ***" >&5
20184 echo "$as_me: ***" >&6;}
20185 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20186 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20187 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20188 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20189 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20190 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20203 if test "${USE_KDE}" != "no"; then
20204 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20205 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20206 saved_libs="${LIBS}"
20207 saved_cppflags="${CPPFLAGS}"
20208 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20209 if test -d ${KDE_DIR}/lib; then
20210 kdelibdir="${KDE_DIR}/lib"
20212 kdelibdir="${KDE_DIR}"
20214 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20217 cat >conftest.$ac_ext <<_ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include "kcrash.h"
20227 KCrash::defaultCrashHandler(1);
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20237 *) ac_try_echo
=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>conftest.er1
20242 grep -v '^ *+' conftest.er1
>conftest.err
20244 cat conftest.err
>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && {
20247 test -z "$ac_cxx_werror_flag" ||
20248 test ! -s conftest.err
20249 } && test -s conftest
$ac_exeext &&
20250 $as_test_x conftest
$ac_exeext; then
20251 ac_cv_lib_kde_crash
="yes"
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.
$ac_ext >&5
20256 ac_cv_lib_kde_crash
="no"
20259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20260 conftest
$ac_exeext conftest.
$ac_ext
20262 LIBS
="${saved_libs}"
20263 CPPFLAGS
="${saved_cppflags}"
20265 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20266 { echo "$as_me:$LINENO: result: yes" >&5
20267 echo "${ECHO_T}yes" >&6; }
20268 KDE_LIB
="-lkdecore -lkdeui"
20269 if test "${KDE_DIR}" != ""; then
20270 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
20271 KDE_INCLUDE
="-I${KDE_DIR}/include"
20275 cat >>confdefs.h
<<\_ACEOF
20276 #define HAVE_LIBKDE 1
20279 elif test -n "${KDE_MANDATORY}"; then
20280 { echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6; }
20282 { echo "$as_me:$LINENO: ***" >&5
20283 echo "$as_me: ***" >&6;}
20284 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20285 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20286 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20287 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20288 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20289 echo "$as_me: *** including --without-kde." >&6;}
20292 { echo "$as_me:$LINENO: result: no" >&5
20293 echo "${ECHO_T}no" >&6; }
20296 if test "${PBX_KDE}" = 1; then
20297 if test -n "$ac_tool_prefix"; then
20298 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20299 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
20300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20302 if test "${ac_cv_path_KDEINIT+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20307 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
20310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20311 for as_dir
in $PATH
20314 test -z "$as_dir" && as_dir
=.
20315 for ac_exec_ext
in '' $ac_executable_extensions; do
20316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20317 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20328 KDEINIT
=$ac_cv_path_KDEINIT
20329 if test -n "$KDEINIT"; then
20330 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20331 echo "${ECHO_T}$KDEINIT" >&6; }
20333 { echo "$as_me:$LINENO: result: no" >&5
20334 echo "${ECHO_T}no" >&6; }
20339 if test -z "$ac_cv_path_KDEINIT"; then
20340 ac_pt_KDEINIT
=$KDEINIT
20341 # Extract the first word of "kdeinit", so it can be a program name with args.
20342 set dummy kdeinit
; ac_word
=$2
20343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20345 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 case $ac_pt_KDEINIT in
20350 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
20353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20354 for as_dir
in $PATH
20357 test -z "$as_dir" && as_dir
=.
20358 for ac_exec_ext
in '' $ac_executable_extensions; do
20359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20360 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20371 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
20372 if test -n "$ac_pt_KDEINIT"; then
20373 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20374 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20376 { echo "$as_me:$LINENO: result: no" >&5
20377 echo "${ECHO_T}no" >&6; }
20380 if test "x$ac_pt_KDEINIT" = x
; then
20383 case $cross_compiling:$ac_tool_warned in
20385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20386 whose name does not start with the host triplet. If you think this
20387 configuration is useful to you, please write to autoconf@gnu.org." >&5
20388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20389 whose name does not start with the host triplet. If you think this
20390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20391 ac_tool_warned
=yes ;;
20393 KDEINIT
=$ac_pt_KDEINIT
20396 KDEINIT
="$ac_cv_path_KDEINIT"
20399 if test ! x
"${KDEINIT}" = xNo
; then
20400 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
20401 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
20407 ac_cpp
='$CPP $CPPFLAGS'
20408 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20414 if test "${USE_MISDN}" != "no"; then
20416 if test "x${MISDN_DIR}" != "x"; then
20417 if test -d ${MISDN_DIR}/lib
; then
20418 pbxlibdir
="-L${MISDN_DIR}/lib"
20420 pbxlibdir
="-L${MISDN_DIR}"
20423 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20424 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20425 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 ac_check_lib_save_LIBS
=$LIBS
20429 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
20430 cat >conftest.
$ac_ext <<_ACEOF
20433 cat confdefs.h
>>conftest.
$ac_ext
20434 cat >>conftest.
$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20443 char mISDN_open ();
20447 return mISDN_open ();
20452 rm -f conftest.
$ac_objext conftest
$ac_exeext
20453 if { (ac_try
="$ac_link"
20454 case "(($ac_try" in
20455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_link") 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest$ac_exeext &&
20469 $as_test_x conftest$ac_exeext; then
20470 ac_cv_lib_mISDN_mISDN_open=yes
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_cv_lib_mISDN_mISDN_open=no
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20482 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20483 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20484 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20485 AST_MISDN_FOUND=yes
20491 if test "${AST_MISDN_FOUND}" = "yes"; then
20492 MISDN_LIB="-lmISDN "
20493 MISDN_HEADER_FOUND="1"
20494 if test "x${MISDN_DIR}" != "x"; then
20495 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20496 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20497 saved_cppflags="${CPPFLAGS}"
20498 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20499 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20500 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
20501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20502 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20503 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 ac_res=`eval echo '${'$as_ac_Header'}'`
20508 { echo "$as_me:$LINENO: result: $ac_res" >&5
20509 echo "${ECHO_T}$ac_res" >&6; }
20511 # Is the header compilable?
20512 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20513 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 $ac_includes_default
20521 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20523 rm -f conftest.$ac_objext
20524 if { (ac_try="$ac_compile"
20525 case "(($ac_try" in
20526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20527 *) ac_try_echo
=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_compile") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1
>conftest.err
20534 cat conftest.err
>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } && {
20537 test -z "$ac_c_werror_flag" ||
20538 test ! -s conftest.err
20539 } && test -s conftest.
$ac_objext; then
20540 ac_header_compiler
=yes
20542 echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.
$ac_ext >&5
20545 ac_header_compiler
=no
20548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20550 echo "${ECHO_T}$ac_header_compiler" >&6; }
20552 # Is the header present?
20553 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20554 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20555 cat >conftest.
$ac_ext <<_ACEOF
20558 cat confdefs.h
>>conftest.
$ac_ext
20559 cat >>conftest.
$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20563 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20564 case "(($ac_try" in
20565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20571 grep -v '^ *+' conftest.er1 >conftest.err
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } >/dev/null && {
20576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20579 ac_header_preproc=yes
20581 echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20584 ac_header_preproc=no
20587 rm -f conftest.err conftest.$ac_ext
20588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20589 echo "${ECHO_T}$ac_header_preproc" >&6; }
20591 # So? What about this header?
20592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20594 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20595 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20597 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20598 ac_header_preproc=yes
20601 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20602 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20604 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20606 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20608 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20610 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20612 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20614 ## ------------------------------- ##
20615 ## Report this to www.asterisk.org ##
20616 ## ------------------------------- ##
20618 ) | sed "s/^/$as_me: WARNING: /" >&2
20621 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20622 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 eval "$as_ac_Header=\$ac_header_preproc"
20628 ac_res=`eval echo '${'$as_ac_Header'}'`
20629 { echo "$as_me:$LINENO: result: $ac_res" >&5
20630 echo "${ECHO_T}$ac_res" >&6; }
20633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20634 MISDN_HEADER_FOUND=1
20636 MISDN_HEADER_FOUND=0
20641 CPPFLAGS="${saved_cppflags}"
20643 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20644 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20645 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20646 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20647 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20651 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20653 # Is the header compilable?
20654 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20655 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 #include <mISDNuser/mISDNlib.h>
20665 rm -f conftest.$ac_objext
20666 if { (ac_try="$ac_compile"
20667 case "(($ac_try" in
20668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20669 *) ac_try_echo
=$ac_try;;
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_compile") 2>conftest.er1
20674 grep -v '^ *+' conftest.er1
>conftest.err
20676 cat conftest.err
>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } && {
20679 test -z "$ac_c_werror_flag" ||
20680 test ! -s conftest.err
20681 } && test -s conftest.
$ac_objext; then
20682 ac_header_compiler
=yes
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.
$ac_ext >&5
20687 ac_header_compiler
=no
20690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20692 echo "${ECHO_T}$ac_header_compiler" >&6; }
20694 # Is the header present?
20695 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20696 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20697 cat >conftest.
$ac_ext <<_ACEOF
20700 cat confdefs.h
>>conftest.
$ac_ext
20701 cat >>conftest.
$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 #include <mISDNuser/mISDNlib.h>
20705 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20706 case "(($ac_try" in
20707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } >/dev/null && {
20718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20721 ac_header_preproc=yes
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_header_preproc=no
20729 rm -f conftest.err conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20731 echo "${ECHO_T}$ac_header_preproc" >&6; }
20733 # So? What about this header?
20734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20736 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20737 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20739 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20740 ac_header_preproc=yes
20743 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20744 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20746 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20748 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20750 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20751 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20752 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20753 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20754 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20756 ## ------------------------------- ##
20757 ## Report this to www.asterisk.org ##
20758 ## ------------------------------- ##
20760 ) | sed "s/^/$as_me: WARNING: /" >&2
20763 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20764 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20765 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20770 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20771 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20774 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20775 MISDN_HEADER_FOUND=1
20777 MISDN_HEADER_FOUND=0
20783 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20784 if test -n "${MISDN_MANDATORY}" ;
20786 { echo "$as_me:$LINENO: ***" >&5
20787 echo "$as_me: ***" >&6;}
20788 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20789 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20790 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20791 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20792 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20793 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_MISDN 1
20807 elif test -n "${MISDN_MANDATORY}";
20809 { echo "$as_me:$LINENO: ***" >&5
20810 echo "$as_me: ***" >&6;}
20811 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20812 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20813 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20814 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20815 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20816 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20822 if test "${PBX_MISDN}" = 1; then
20824 if test "${USE_ISDNNET}" != "no"; then
20826 if test "x${ISDNNET_DIR}" != "x"; then
20827 if test -d ${ISDNNET_DIR}/lib; then
20828 pbxlibdir="-L${ISDNNET_DIR}/lib"
20830 pbxlibdir="-L${ISDNNET_DIR}"
20833 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20834 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20835 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 ac_check_lib_save_LIBS=$LIBS
20839 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20840 cat >conftest.$ac_ext <<_ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20847 /* Override any GCC internal prototype to avoid an error.
20848 Use char because int might match the return type of a GCC
20849 builtin and then its argument prototype would still apply. */
20853 char init_manager ();
20857 return init_manager ();
20862 rm -f conftest.$ac_objext conftest$ac_exeext
20863 if { (ac_try="$ac_link"
20864 case "(($ac_try" in
20865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20866 *) ac_try_echo
=$ac_try;;
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_link") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1
>conftest.err
20873 cat conftest.err
>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } && {
20876 test -z "$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20878 } && test -s conftest
$ac_exeext &&
20879 $as_test_x conftest
$ac_exeext; then
20880 ac_cv_lib_isdnnet_init_manager
=yes
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.
$ac_ext >&5
20885 ac_cv_lib_isdnnet_init_manager
=no
20888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20889 conftest
$ac_exeext conftest.
$ac_ext
20890 LIBS
=$ac_check_lib_save_LIBS
20892 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20893 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20894 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20895 AST_ISDNNET_FOUND
=yes
20897 AST_ISDNNET_FOUND
=no
20901 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20902 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
20903 ISDNNET_HEADER_FOUND
="1"
20904 if test "x${ISDNNET_DIR}" != "x"; then
20905 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
20906 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
20907 saved_cppflags
="${CPPFLAGS}"
20908 CPPFLAGS
="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20909 if test "xmISDNuser/isdn_net.h" != "x" ; then
20910 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20911 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20912 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20913 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20914 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 ac_res
=`eval echo '${'$as_ac_Header'}'`
20918 { echo "$as_me:$LINENO: result: $ac_res" >&5
20919 echo "${ECHO_T}$ac_res" >&6; }
20921 # Is the header compilable?
20922 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20923 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20924 cat >conftest.
$ac_ext <<_ACEOF
20927 cat confdefs.h
>>conftest.
$ac_ext
20928 cat >>conftest.
$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 $ac_includes_default
20931 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20933 rm -f conftest.
$ac_objext
20934 if { (ac_try
="$ac_compile"
20935 case "(($ac_try" in
20936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_compile") 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && {
20947 test -z "$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 } && test -s conftest.$ac_objext; then
20950 ac_header_compiler=yes
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ac_header_compiler=no
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20960 echo "${ECHO_T}$ac_header_compiler" >&6; }
20962 # Is the header present?
20963 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20964 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20973 if { (ac_try="$ac_cpp conftest.$ac_ext"
20974 case "(($ac_try" in
20975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20976 *) ac_try_echo
=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20981 grep -v '^ *+' conftest.er1
>conftest.err
20983 cat conftest.err
>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } >/dev
/null
&& {
20986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20987 test ! -s conftest.err
20989 ac_header_preproc
=yes
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.
$ac_ext >&5
20994 ac_header_preproc
=no
20997 rm -f conftest.err conftest.
$ac_ext
20998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20999 echo "${ECHO_T}$ac_header_preproc" >&6; }
21001 # So? What about this header?
21002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21004 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21005 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21007 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21008 ac_header_preproc
=yes
21011 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21012 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21013 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21014 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21016 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21018 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21020 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21022 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21024 ## ------------------------------- ##
21025 ## Report this to www.asterisk.org ##
21026 ## ------------------------------- ##
21028 ) |
sed "s/^/$as_me: WARNING: /" >&2
21031 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21032 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21033 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 eval "$as_ac_Header=\$ac_header_preproc"
21038 ac_res
=`eval echo '${'$as_ac_Header'}'`
21039 { echo "$as_me:$LINENO: result: $ac_res" >&5
21040 echo "${ECHO_T}$ac_res" >&6; }
21043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21044 ISDNNET_HEADER_FOUND
=1
21046 ISDNNET_HEADER_FOUND
=0
21051 CPPFLAGS
="${saved_cppflags}"
21053 if test "xmISDNuser/isdn_net.h" != "x" ; then
21054 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21055 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21056 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21057 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21061 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21063 # Is the header compilable?
21064 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21065 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21066 cat >conftest.
$ac_ext <<_ACEOF
21069 cat confdefs.h
>>conftest.
$ac_ext
21070 cat >>conftest.
$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 $ac_includes_default
21073 #include <mISDNuser/isdn_net.h>
21075 rm -f conftest.
$ac_objext
21076 if { (ac_try
="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21084 grep -v '^ *+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_header_compiler=yes
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_header_compiler=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21102 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104 # Is the header present?
21105 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21106 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <mISDNuser/isdn_net.h>
21115 if { (ac_try="$ac_cpp conftest.$ac_ext"
21116 case "(($ac_try" in
21117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21118 *) ac_try_echo
=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21123 grep -v '^ *+' conftest.er1
>conftest.err
21125 cat conftest.err
>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } >/dev
/null
&& {
21128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21131 ac_header_preproc
=yes
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.
$ac_ext >&5
21136 ac_header_preproc
=no
21139 rm -f conftest.err conftest.
$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21141 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143 # So? What about this header?
21144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21146 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21147 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21149 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21150 ac_header_preproc
=yes
21153 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21154 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21156 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21158 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21160 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21162 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21164 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21166 ## ------------------------------- ##
21167 ## Report this to www.asterisk.org ##
21168 ## ------------------------------- ##
21170 ) |
sed "s/^/$as_me: WARNING: /" >&2
21173 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21174 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21175 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
21180 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21181 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21184 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21185 ISDNNET_HEADER_FOUND
=1
21187 ISDNNET_HEADER_FOUND
=0
21193 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21194 if test -n "${ISDNNET_MANDATORY}" ;
21196 { echo "$as_me:$LINENO: ***" >&5
21197 echo "$as_me: ***" >&6;}
21198 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21199 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21200 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21201 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21202 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21203 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21212 cat >>confdefs.h
<<_ACEOF
21213 #define HAVE_ISDNNET 1
21217 elif test -n "${ISDNNET_MANDATORY}";
21219 { echo "$as_me:$LINENO: ***" >&5
21220 echo "$as_me: ***" >&6;}
21221 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21222 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21223 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21224 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21225 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21226 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21232 if test "${USE_SUPPSERV}" != "no"; then
21234 if test "x${SUPPSERV_DIR}" != "x"; then
21235 if test -d ${SUPPSERV_DIR}/lib
; then
21236 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
21238 pbxlibdir
="-L${SUPPSERV_DIR}"
21241 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21242 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21243 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 ac_check_lib_save_LIBS
=$LIBS
21247 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
21248 cat >conftest.
$ac_ext <<_ACEOF
21251 cat confdefs.h
>>conftest.
$ac_ext
21252 cat >>conftest.
$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21255 /* Override any GCC internal prototype to avoid an error.
21256 Use char because int might match the return type of a GCC
21257 builtin and then its argument prototype would still apply. */
21265 return encodeFac ();
21270 rm -f conftest.
$ac_objext conftest
$ac_exeext
21271 if { (ac_try
="$ac_link"
21272 case "(($ac_try" in
21273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_link") 2>conftest.er1
21279 grep -v '^ *+' conftest.er1 >conftest.err
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest$ac_exeext &&
21287 $as_test_x conftest$ac_exeext; then
21288 ac_cv_lib_suppserv_encodeFac=yes
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_cv_lib_suppserv_encodeFac=no
21296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21297 conftest$ac_exeext conftest.$ac_ext
21298 LIBS=$ac_check_lib_save_LIBS
21300 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21301 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21302 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21303 AST_SUPPSERV_FOUND=yes
21305 AST_SUPPSERV_FOUND=no
21309 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21310 SUPPSERV_LIB="-lsuppserv "
21311 SUPPSERV_HEADER_FOUND="1"
21312 if test "x${SUPPSERV_DIR}" != "x"; then
21313 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21314 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21315 saved_cppflags="${CPPFLAGS}"
21316 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21317 if test "xmISDNuser/suppserv.h" != "x" ; then
21318 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21321 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_res=`eval echo '${'$as_ac_Header'}'`
21326 { echo "$as_me:$LINENO: result: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21329 # Is the header compilable?
21330 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21331 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21332 cat >conftest.$ac_ext <<_ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338 $ac_includes_default
21339 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21345 *) ac_try_echo
=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_compile") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1
>conftest.err
21352 cat conftest.err
>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest.
$ac_objext; then
21358 ac_header_compiler
=yes
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.
$ac_ext >&5
21363 ac_header_compiler
=no
21366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21368 echo "${ECHO_T}$ac_header_compiler" >&6; }
21370 # Is the header present?
21371 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21372 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21373 cat >conftest.
$ac_ext <<_ACEOF
21376 cat confdefs.h
>>conftest.
$ac_ext
21377 cat >>conftest.
$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21381 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21382 case "(($ac_try" in
21383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21389 grep -v '^ *+' conftest.er1 >conftest.err
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } >/dev/null && {
21394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21395 test ! -s conftest.err
21397 ac_header_preproc=yes
21399 echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21402 ac_header_preproc=no
21405 rm -f conftest.err conftest.$ac_ext
21406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21407 echo "${ECHO_T}$ac_header_preproc" >&6; }
21409 # So? What about this header?
21410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21412 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21413 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21414 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21415 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21416 ac_header_preproc=yes
21419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21421 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21422 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21423 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21424 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21425 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21426 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21427 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21428 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21429 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21430 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21432 ## ------------------------------- ##
21433 ## Report this to www.asterisk.org ##
21434 ## ------------------------------- ##
21436 ) | sed "s/^/$as_me: WARNING: /" >&2
21439 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21440 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 eval "$as_ac_Header=\$ac_header_preproc"
21446 ac_res=`eval echo '${'$as_ac_Header'}'`
21447 { echo "$as_me:$LINENO: result: $ac_res" >&5
21448 echo "${ECHO_T}$ac_res" >&6; }
21451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21452 SUPPSERV_HEADER_FOUND=1
21454 SUPPSERV_HEADER_FOUND=0
21459 CPPFLAGS="${saved_cppflags}"
21461 if test "xmISDNuser/suppserv.h" != "x" ; then
21462 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21463 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21464 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21465 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21469 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21471 # Is the header compilable?
21472 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21473 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 $ac_includes_default
21481 #include <mISDNuser/suppserv.h>
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21487 *) ac_try_echo
=$ac_try;;
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1
>conftest.err
21494 cat conftest.err
>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.
$ac_objext; then
21500 ac_header_compiler
=yes
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.
$ac_ext >&5
21505 ac_header_compiler
=no
21508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21510 echo "${ECHO_T}$ac_header_compiler" >&6; }
21512 # Is the header present?
21513 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21514 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21515 cat >conftest.
$ac_ext <<_ACEOF
21518 cat confdefs.h
>>conftest.
$ac_ext
21519 cat >>conftest.
$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 #include <mISDNuser/suppserv.h>
21523 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21524 case "(($ac_try" in
21525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } >/dev/null && {
21536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21539 ac_header_preproc=yes
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_header_preproc=no
21547 rm -f conftest.err conftest.$ac_ext
21548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21549 echo "${ECHO_T}$ac_header_preproc" >&6; }
21551 # So? What about this header?
21552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21554 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21555 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21557 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21558 ac_header_preproc=yes
21561 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21562 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21564 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21566 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21568 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21570 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21572 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21574 ## ------------------------------- ##
21575 ## Report this to www.asterisk.org ##
21576 ## ------------------------------- ##
21578 ) | sed "s/^/$as_me: WARNING: /" >&2
21581 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21582 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21583 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21586 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21588 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21589 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21592 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21593 SUPPSERV_HEADER_FOUND=1
21595 SUPPSERV_HEADER_FOUND=0
21601 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21602 if test -n "${SUPPSERV_MANDATORY}" ;
21604 { echo "$as_me:$LINENO: ***" >&5
21605 echo "$as_me: ***" >&6;}
21606 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21607 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21608 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21609 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21610 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21611 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21615 SUPPSERV_INCLUDE=""
21620 cat >>confdefs.h <<_ACEOF
21621 #define HAVE_SUPPSERV 1
21625 elif test -n "${SUPPSERV_MANDATORY}";
21627 { echo "$as_me:$LINENO: ***" >&5
21628 echo "$as_me: ***" >&6;}
21629 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21630 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21631 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21632 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21633 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21634 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21639 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21640 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21641 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21642 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21645 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21646 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21648 # Is the header compilable?
21649 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21650 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 $ac_includes_default
21658 #include <linux/mISDNdsp.h>
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21664 *) ac_try_echo
=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1
>conftest.err
21671 cat conftest.err
>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.
$ac_objext; then
21677 ac_header_compiler
=yes
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.
$ac_ext >&5
21682 ac_header_compiler
=no
21685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21687 echo "${ECHO_T}$ac_header_compiler" >&6; }
21689 # Is the header present?
21690 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21691 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21692 cat >conftest.
$ac_ext <<_ACEOF
21695 cat confdefs.h
>>conftest.
$ac_ext
21696 cat >>conftest.
$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <linux/mISDNdsp.h>
21700 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21701 case "(($ac_try" in
21702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } >/dev/null && {
21713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21716 ac_header_preproc=yes
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_preproc=no
21724 rm -f conftest.err conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21726 echo "${ECHO_T}$ac_header_preproc" >&6; }
21728 # So? What about this header?
21729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21731 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21732 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21734 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21735 ac_header_preproc=yes
21738 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21739 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21741 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21743 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21745 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21747 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21749 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21751 ## ------------------------------- ##
21752 ## Report this to www.asterisk.org ##
21753 ## ------------------------------- ##
21755 ) | sed "s/^/$as_me: WARNING: /" >&2
21758 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21759 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21760 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21765 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21766 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21769 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define MISDN_1_2 1
21781 if test "${USE_NBS}" != "no"; then
21783 if test "x${NBS_DIR}" != "x"; then
21784 if test -d ${NBS_DIR}/lib; then
21785 pbxlibdir="-L${NBS_DIR}/lib"
21787 pbxlibdir="-L${NBS_DIR}"
21790 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21791 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21792 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 ac_check_lib_save_LIBS=$LIBS
21796 LIBS="-lnbs ${pbxlibdir} $LIBS"
21797 cat >conftest.$ac_ext <<_ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21804 /* Override any GCC internal prototype to avoid an error.
21805 Use char because int might match the return type of a GCC
21806 builtin and then its argument prototype would still apply. */
21810 char nbs_connect ();
21814 return nbs_connect ();
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21823 *) ac_try_echo
=$ac_try;;
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_link") 2>conftest.er1
21828 grep -v '^ *+' conftest.er1
>conftest.err
21830 cat conftest.err
>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } && {
21833 test -z "$ac_c_werror_flag" ||
21834 test ! -s conftest.err
21835 } && test -s conftest
$ac_exeext &&
21836 $as_test_x conftest
$ac_exeext; then
21837 ac_cv_lib_nbs_nbs_connect
=yes
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.
$ac_ext >&5
21842 ac_cv_lib_nbs_nbs_connect
=no
21845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21846 conftest
$ac_exeext conftest.
$ac_ext
21847 LIBS
=$ac_check_lib_save_LIBS
21849 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21850 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21851 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21858 if test "${AST_NBS_FOUND}" = "yes"; then
21860 NBS_HEADER_FOUND
="1"
21861 if test "x${NBS_DIR}" != "x"; then
21862 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
21863 NBS_INCLUDE
="-I${NBS_DIR}/include"
21864 saved_cppflags
="${CPPFLAGS}"
21865 CPPFLAGS
="${CPPFLAGS} -I${NBS_DIR}/include"
21866 if test "xnbs.h" != "x" ; then
21867 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21869 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21870 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21871 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 ac_res
=`eval echo '${'$as_ac_Header'}'`
21875 { echo "$as_me:$LINENO: result: $ac_res" >&5
21876 echo "${ECHO_T}$ac_res" >&6; }
21878 # Is the header compilable?
21879 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21880 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21881 cat >conftest.
$ac_ext <<_ACEOF
21884 cat confdefs.h
>>conftest.
$ac_ext
21885 cat >>conftest.
$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21888 #include <${NBS_DIR}/include/nbs.h>
21890 rm -f conftest.
$ac_objext
21891 if { (ac_try
="$ac_compile"
21892 case "(($ac_try" in
21893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_compile") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest.$ac_objext; then
21907 ac_header_compiler=yes
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_compiler=no
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21917 echo "${ECHO_T}$ac_header_compiler" >&6; }
21919 # Is the header present?
21920 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21921 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 #include <${NBS_DIR}/include/nbs.h>
21930 if { (ac_try="$ac_cpp conftest.$ac_ext"
21931 case "(($ac_try" in
21932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21933 *) ac_try_echo
=$ac_try;;
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21938 grep -v '^ *+' conftest.er1
>conftest.err
21940 cat conftest.err
>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } >/dev
/null
&& {
21943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21946 ac_header_preproc
=yes
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.
$ac_ext >&5
21951 ac_header_preproc
=no
21954 rm -f conftest.err conftest.
$ac_ext
21955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21961 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21962 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21964 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21965 ac_header_preproc
=yes
21968 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21969 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21971 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21973 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21975 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21977 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21979 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21981 ## ------------------------------- ##
21982 ## Report this to www.asterisk.org ##
21983 ## ------------------------------- ##
21985 ) |
sed "s/^/$as_me: WARNING: /" >&2
21988 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21989 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21990 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 eval "$as_ac_Header=\$ac_header_preproc"
21995 ac_res
=`eval echo '${'$as_ac_Header'}'`
21996 { echo "$as_me:$LINENO: result: $ac_res" >&5
21997 echo "${ECHO_T}$ac_res" >&6; }
22000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22008 CPPFLAGS
="${saved_cppflags}"
22010 if test "xnbs.h" != "x" ; then
22011 if test "${ac_cv_header_nbs_h+set}" = set; then
22012 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22013 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22014 if test "${ac_cv_header_nbs_h+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22018 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22020 # Is the header compilable?
22021 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
22022 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
22023 cat >conftest.
$ac_ext <<_ACEOF
22026 cat confdefs.h
>>conftest.
$ac_ext
22027 cat >>conftest.
$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22032 rm -f conftest.
$ac_objext
22033 if { (ac_try
="$ac_compile"
22034 case "(($ac_try" in
22035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_compile") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest.$ac_objext; then
22049 ac_header_compiler=yes
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ac_header_compiler=no
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22059 echo "${ECHO_T}$ac_header_compiler" >&6; }
22061 # Is the header present?
22062 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22063 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22072 if { (ac_try="$ac_cpp conftest.$ac_ext"
22073 case "(($ac_try" in
22074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22075 *) ac_try_echo
=$ac_try;;
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1
>conftest.err
22082 cat conftest.err
>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } >/dev
/null
&& {
22085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22088 ac_header_preproc
=yes
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.
$ac_ext >&5
22093 ac_header_preproc
=no
22096 rm -f conftest.err conftest.
$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22098 echo "${ECHO_T}$ac_header_preproc" >&6; }
22100 # So? What about this header?
22101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22103 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22104 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22106 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22107 ac_header_preproc
=yes
22110 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22111 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22113 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22115 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22117 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22119 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22121 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22123 ## ------------------------------- ##
22124 ## Report this to www.asterisk.org ##
22125 ## ------------------------------- ##
22127 ) |
sed "s/^/$as_me: WARNING: /" >&2
22130 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22131 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22132 if test "${ac_cv_header_nbs_h+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 ac_cv_header_nbs_h
=$ac_header_preproc
22137 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22138 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22141 if test $ac_cv_header_nbs_h = yes; then
22150 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22151 if test -n "${NBS_MANDATORY}" ;
22153 { echo "$as_me:$LINENO: ***" >&5
22154 echo "$as_me: ***" >&6;}
22155 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22156 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22157 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22158 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22159 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22160 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22169 cat >>confdefs.h
<<_ACEOF
22174 elif test -n "${NBS_MANDATORY}";
22176 { echo "$as_me:$LINENO: ***" >&5
22177 echo "$as_me: ***" >&6;}
22178 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22179 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22180 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22181 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22182 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22183 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22190 if test "${USE_NCURSES}" != "no"; then
22192 if test "x${NCURSES_DIR}" != "x"; then
22193 if test -d ${NCURSES_DIR}/lib
; then
22194 pbxlibdir
="-L${NCURSES_DIR}/lib"
22196 pbxlibdir
="-L${NCURSES_DIR}"
22199 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22200 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22201 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 ac_check_lib_save_LIBS
=$LIBS
22205 LIBS
="-lncurses ${pbxlibdir} $LIBS"
22206 cat >conftest.
$ac_ext <<_ACEOF
22209 cat confdefs.h
>>conftest.
$ac_ext
22210 cat >>conftest.
$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22213 /* Override any GCC internal prototype to avoid an error.
22214 Use char because int might match the return type of a GCC
22215 builtin and then its argument prototype would still apply. */
22228 rm -f conftest.
$ac_objext conftest
$ac_exeext
22229 if { (ac_try
="$ac_link"
22230 case "(($ac_try" in
22231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_link") 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest$ac_exeext &&
22245 $as_test_x conftest$ac_exeext; then
22246 ac_cv_lib_ncurses_initscr=yes
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 ac_cv_lib_ncurses_initscr=no
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22258 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22259 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22260 if test $ac_cv_lib_ncurses_initscr = yes; then
22261 AST_NCURSES_FOUND=yes
22263 AST_NCURSES_FOUND=no
22267 if test "${AST_NCURSES_FOUND}" = "yes"; then
22268 NCURSES_LIB="-lncurses "
22269 NCURSES_HEADER_FOUND="1"
22270 if test "x${NCURSES_DIR}" != "x"; then
22271 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22272 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22273 saved_cppflags="${CPPFLAGS}"
22274 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22275 if test "xcurses.h" != "x" ; then
22276 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
22277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22278 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22279 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 ac_res=`eval echo '${'$as_ac_Header'}'`
22284 { echo "$as_me:$LINENO: result: $ac_res" >&5
22285 echo "${ECHO_T}$ac_res" >&6; }
22287 # Is the header compilable?
22288 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22289 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 $ac_includes_default
22297 #include <${NCURSES_DIR}/include/curses.h>
22299 rm -f conftest.$ac_objext
22300 if { (ac_try="$ac_compile"
22301 case "(($ac_try" in
22302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22303 *) ac_try_echo
=$ac_try;;
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_compile") 2>conftest.er1
22308 grep -v '^ *+' conftest.er1
>conftest.err
22310 cat conftest.err
>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && {
22313 test -z "$ac_c_werror_flag" ||
22314 test ! -s conftest.err
22315 } && test -s conftest.
$ac_objext; then
22316 ac_header_compiler
=yes
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.
$ac_ext >&5
22321 ac_header_compiler
=no
22324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22326 echo "${ECHO_T}$ac_header_compiler" >&6; }
22328 # Is the header present?
22329 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22330 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22331 cat >conftest.
$ac_ext <<_ACEOF
22334 cat confdefs.h
>>conftest.
$ac_ext
22335 cat >>conftest.
$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 #include <${NCURSES_DIR}/include/curses.h>
22339 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22340 case "(($ac_try" in
22341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22347 grep -v '^ *+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } >/dev/null && {
22352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22353 test ! -s conftest.err
22355 ac_header_preproc=yes
22357 echo "$as_me: failed program was:" >&5
22358 sed 's/^/| /' conftest.$ac_ext >&5
22360 ac_header_preproc=no
22363 rm -f conftest.err conftest.$ac_ext
22364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22365 echo "${ECHO_T}$ac_header_preproc" >&6; }
22367 # So? What about this header?
22368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22370 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22371 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22373 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22374 ac_header_preproc=yes
22377 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22378 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22379 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22380 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22381 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22382 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22383 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22384 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22386 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22388 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22390 ## ------------------------------- ##
22391 ## Report this to www.asterisk.org ##
22392 ## ------------------------------- ##
22394 ) | sed "s/^/$as_me: WARNING: /" >&2
22397 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22398 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 eval "$as_ac_Header=\$ac_header_preproc"
22404 ac_res=`eval echo '${'$as_ac_Header'}'`
22405 { echo "$as_me:$LINENO: result: $ac_res" >&5
22406 echo "${ECHO_T}$ac_res" >&6; }
22409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22410 NCURSES_HEADER_FOUND=1
22412 NCURSES_HEADER_FOUND=0
22417 CPPFLAGS="${saved_cppflags}"
22419 if test "xcurses.h" != "x" ; then
22420 if test "${ac_cv_header_curses_h+set}" = set; then
22421 { echo "$as_me:$LINENO: checking for curses.h" >&5
22422 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22423 if test "${ac_cv_header_curses_h+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22427 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22429 # Is the header compilable?
22430 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22431 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 $ac_includes_default
22439 #include <curses.h>
22441 rm -f conftest.$ac_objext
22442 if { (ac_try="$ac_compile"
22443 case "(($ac_try" in
22444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22445 *) ac_try_echo
=$ac_try;;
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_compile") 2>conftest.er1
22450 grep -v '^ *+' conftest.er1
>conftest.err
22452 cat conftest.err
>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } && {
22455 test -z "$ac_c_werror_flag" ||
22456 test ! -s conftest.err
22457 } && test -s conftest.
$ac_objext; then
22458 ac_header_compiler
=yes
22460 echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.
$ac_ext >&5
22463 ac_header_compiler
=no
22466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22468 echo "${ECHO_T}$ac_header_compiler" >&6; }
22470 # Is the header present?
22471 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22472 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22473 cat >conftest.
$ac_ext <<_ACEOF
22476 cat confdefs.h
>>conftest.
$ac_ext
22477 cat >>conftest.
$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 #include <curses.h>
22481 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22482 case "(($ac_try" in
22483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } >/dev/null && {
22494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22497 ac_header_preproc=yes
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_header_preproc=no
22505 rm -f conftest.err conftest.$ac_ext
22506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22507 echo "${ECHO_T}$ac_header_preproc" >&6; }
22509 # So? What about this header?
22510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22512 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22513 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22515 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22516 ac_header_preproc=yes
22519 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22520 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22522 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22524 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22526 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22528 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22529 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22530 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22532 ## ------------------------------- ##
22533 ## Report this to www.asterisk.org ##
22534 ## ------------------------------- ##
22536 ) | sed "s/^/$as_me: WARNING: /" >&2
22539 { echo "$as_me:$LINENO: checking for curses.h" >&5
22540 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22541 if test "${ac_cv_header_curses_h+set}" = set; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 ac_cv_header_curses_h=$ac_header_preproc
22546 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22547 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22550 if test $ac_cv_header_curses_h = yes; then
22551 NCURSES_HEADER_FOUND=1
22553 NCURSES_HEADER_FOUND=0
22559 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22560 if test -n "${NCURSES_MANDATORY}" ;
22562 { echo "$as_me:$LINENO: ***" >&5
22563 echo "$as_me: ***" >&6;}
22564 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22565 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22566 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22567 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22568 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22569 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22578 cat >>confdefs.h <<_ACEOF
22579 #define HAVE_NCURSES 1
22583 elif test -n "${NCURSES_MANDATORY}";
22585 { echo "$as_me:$LINENO: ***" >&5
22586 echo "$as_me: ***" >&6;}
22587 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22588 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22589 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22590 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22591 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22592 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22599 if test "${USE_NETSNMP}" != "no"; then
22600 if test "x${NETSNMP_DIR}" != "x"; then
22601 if test -n "$ac_tool_prefix"; then
22602 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22603 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22606 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 case $NETSNMP_CONFIG in
22611 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22615 for as_dir in ${NETSNMP_DIR}/bin
22618 test -z "$as_dir" && as_dir=.
22619 for ac_exec_ext in '' $ac_executable_extensions; do
22620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22621 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22632 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22633 if test -n "$NETSNMP_CONFIG"; then
22634 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22635 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22637 { echo "$as_me:$LINENO: result: no" >&5
22638 echo "${ECHO_T}no" >&6; }
22643 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22644 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22645 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22646 set dummy net-snmp-config; ac_word=$2
22647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22649 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 case $ac_pt_NETSNMP_CONFIG in
22654 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22658 for as_dir in ${NETSNMP_DIR}/bin
22661 test -z "$as_dir" && as_dir=.
22662 for ac_exec_ext in '' $ac_executable_extensions; do
22663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22664 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22675 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22676 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22677 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22678 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22680 { echo "$as_me:$LINENO: result: no" >&5
22681 echo "${ECHO_T}no" >&6; }
22684 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22685 NETSNMP_CONFIG="No"
22687 case $cross_compiling:$ac_tool_warned in
22689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22690 whose name does not start with the host triplet. If you think this
22691 configuration is useful to you, please write to autoconf@gnu.org." >&5
22692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22693 whose name does not start with the host triplet. If you think this
22694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22695 ac_tool_warned=yes ;;
22697 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22700 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22703 if test x"${NETSNMP_CONFIG}" = xNo; then
22704 { echo "$as_me:$LINENO: ***" >&5
22705 echo "$as_me: ***" >&6;}
22706 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22707 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22708 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22709 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22710 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22711 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22712 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22713 echo "$as_me: *** including --without-netsnmp" >&6;}
22717 if test -n "$ac_tool_prefix"; then
22718 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22719 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22722 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 case $NETSNMP_CONFIG in
22727 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22731 for as_dir in $PATH
22734 test -z "$as_dir" && as_dir=.
22735 for ac_exec_ext in '' $ac_executable_extensions; do
22736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22737 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22748 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22749 if test -n "$NETSNMP_CONFIG"; then
22750 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22751 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22753 { echo "$as_me:$LINENO: result: no" >&5
22754 echo "${ECHO_T}no" >&6; }
22759 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22760 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22761 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22762 set dummy net-snmp-config; ac_word=$2
22763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22765 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 case $ac_pt_NETSNMP_CONFIG in
22770 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22774 for as_dir in $PATH
22777 test -z "$as_dir" && as_dir=.
22778 for ac_exec_ext in '' $ac_executable_extensions; do
22779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22780 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22791 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22792 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22793 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22794 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22796 { echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6; }
22800 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22801 NETSNMP_CONFIG="No"
22803 case $cross_compiling:$ac_tool_warned in
22805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22806 whose name does not start with the host triplet. If you think this
22807 configuration is useful to you, please write to autoconf@gnu.org." >&5
22808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22809 whose name does not start with the host triplet. If you think this
22810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22811 ac_tool_warned=yes ;;
22813 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22816 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22821 if test x"${NETSNMP_CONFIG}" != xNo; then
22822 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22824 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22825 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22826 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 ac_check_lib_save_LIBS=$LIBS
22830 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22844 char snmp_register_callback ();
22848 return snmp_register_callback ();
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22857 *) ac_try_echo
=$ac_try;;
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_link") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1
>conftest.err
22864 cat conftest.err
>&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest
$ac_exeext &&
22870 $as_test_x conftest
$ac_exeext; then
22871 ac_cv_lib_netsnmp_snmp_register_callback
=yes
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.
$ac_ext >&5
22876 ac_cv_lib_netsnmp_snmp_register_callback
=no
22879 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22880 conftest
$ac_exeext conftest.
$ac_ext
22881 LIBS
=$ac_check_lib_save_LIBS
22883 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22884 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22885 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22887 cat >>confdefs.h
<<_ACEOF
22888 #define HAVE_NETSNMP 1
22894 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22895 NETSNMP_LIB
="${NETSNMP_libs}"
22897 elif test -n "${NETSNMP_MANDATORY}";
22899 { echo "$as_me:$LINENO: ***" >&5
22900 echo "$as_me: ***" >&6;}
22901 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22902 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22903 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22904 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22905 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22906 echo "$as_me: *** including --without-netsnmp" >&6;}
22909 elif test -n "${NETSNMP_MANDATORY}";
22911 { echo "$as_me:$LINENO: ***" >&5
22912 echo "$as_me: ***" >&6;}
22913 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22914 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22915 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22916 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22917 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22918 echo "$as_me: *** including --without-netsnmp" >&6;}
22923 if test "${USE_NEWT}" != "no"; then
22925 if test "x${NEWT_DIR}" != "x"; then
22926 if test -d ${NEWT_DIR}/lib
; then
22927 pbxlibdir
="-L${NEWT_DIR}/lib"
22929 pbxlibdir
="-L${NEWT_DIR}"
22932 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22933 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22934 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 ac_check_lib_save_LIBS
=$LIBS
22938 LIBS
="-lnewt ${pbxlibdir} $LIBS"
22939 cat >conftest.
$ac_ext <<_ACEOF
22942 cat confdefs.h
>>conftest.
$ac_ext
22943 cat >>conftest.
$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22946 /* Override any GCC internal prototype to avoid an error.
22947 Use char because int might match the return type of a GCC
22948 builtin and then its argument prototype would still apply. */
22956 return newtBell ();
22961 rm -f conftest.
$ac_objext conftest
$ac_exeext
22962 if { (ac_try
="$ac_link"
22963 case "(($ac_try" in
22964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_link") 2>conftest.er1
22970 grep -v '^ *+' conftest.er1 >conftest.err
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest$ac_exeext &&
22978 $as_test_x conftest$ac_exeext; then
22979 ac_cv_lib_newt_newtBell=yes
22981 echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_cv_lib_newt_newtBell=no
22987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22988 conftest$ac_exeext conftest.$ac_ext
22989 LIBS=$ac_check_lib_save_LIBS
22991 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22992 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22993 if test $ac_cv_lib_newt_newtBell = yes; then
23000 if test "${AST_NEWT_FOUND}" = "yes"; then
23002 NEWT_HEADER_FOUND="1"
23003 if test "x${NEWT_DIR}" != "x"; then
23004 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
23005 NEWT_INCLUDE="-I${NEWT_DIR}/include"
23006 saved_cppflags="${CPPFLAGS}"
23007 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
23008 if test "xnewt.h" != "x" ; then
23009 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
23010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23012 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 ac_res=`eval echo '${'$as_ac_Header'}'`
23017 { echo "$as_me:$LINENO: result: $ac_res" >&5
23018 echo "${ECHO_T}$ac_res" >&6; }
23020 # Is the header compilable?
23021 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
23022 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 #include <${NEWT_DIR}/include/newt.h>
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23036 *) ac_try_echo
=$ac_try;;
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23041 grep -v '^ *+' conftest.er1
>conftest.err
23043 cat conftest.err
>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.
$ac_objext; then
23049 ac_header_compiler
=yes
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.
$ac_ext >&5
23054 ac_header_compiler
=no
23057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23059 echo "${ECHO_T}$ac_header_compiler" >&6; }
23061 # Is the header present?
23062 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23063 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23064 cat >conftest.
$ac_ext <<_ACEOF
23067 cat confdefs.h
>>conftest.
$ac_ext
23068 cat >>conftest.
$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <${NEWT_DIR}/include/newt.h>
23072 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23073 case "(($ac_try" in
23074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 grep -v '^ *+' conftest.er1 >conftest.err
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } >/dev/null && {
23085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23088 ac_header_preproc=yes
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ac_header_preproc=no
23096 rm -f conftest.err conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23098 echo "${ECHO_T}$ac_header_preproc" >&6; }
23100 # So? What about this header?
23101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23104 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23105 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23106 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23107 ac_header_preproc=yes
23110 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23111 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23113 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23114 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23115 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23116 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23117 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23118 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23119 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23120 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23121 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23123 ## ------------------------------- ##
23124 ## Report this to www.asterisk.org ##
23125 ## ------------------------------- ##
23127 ) | sed "s/^/$as_me: WARNING: /" >&2
23130 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23131 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 eval "$as_ac_Header=\$ac_header_preproc"
23137 ac_res=`eval echo '${'$as_ac_Header'}'`
23138 { echo "$as_me:$LINENO: result: $ac_res" >&5
23139 echo "${ECHO_T}$ac_res" >&6; }
23142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23143 NEWT_HEADER_FOUND=1
23145 NEWT_HEADER_FOUND=0
23150 CPPFLAGS="${saved_cppflags}"
23152 if test "xnewt.h" != "x" ; then
23153 if test "${ac_cv_header_newt_h+set}" = set; then
23154 { echo "$as_me:$LINENO: checking for newt.h" >&5
23155 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23156 if test "${ac_cv_header_newt_h+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23160 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23162 # Is the header compilable?
23163 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23164 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23171 $ac_includes_default
23174 rm -f conftest.$ac_objext
23175 if { (ac_try="$ac_compile"
23176 case "(($ac_try" in
23177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23178 *) ac_try_echo
=$ac_try;;
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23183 grep -v '^ *+' conftest.er1
>conftest.err
23185 cat conftest.err
>&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.
$ac_objext; then
23191 ac_header_compiler
=yes
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.
$ac_ext >&5
23196 ac_header_compiler
=no
23199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23201 echo "${ECHO_T}$ac_header_compiler" >&6; }
23203 # Is the header present?
23204 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23205 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23206 cat >conftest.
$ac_ext <<_ACEOF
23209 cat confdefs.h
>>conftest.
$ac_ext
23210 cat >>conftest.
$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23214 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23215 case "(($ac_try" in
23216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23222 grep -v '^ *+' conftest.er1 >conftest.err
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } >/dev/null && {
23227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23228 test ! -s conftest.err
23230 ac_header_preproc=yes
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 ac_header_preproc=no
23238 rm -f conftest.err conftest.$ac_ext
23239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23240 echo "${ECHO_T}$ac_header_preproc" >&6; }
23242 # So? What about this header?
23243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23245 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23246 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23248 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23249 ac_header_preproc=yes
23252 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23253 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23254 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23255 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23257 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23259 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23261 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23263 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23265 ## ------------------------------- ##
23266 ## Report this to www.asterisk.org ##
23267 ## ------------------------------- ##
23269 ) | sed "s/^/$as_me: WARNING: /" >&2
23272 { echo "$as_me:$LINENO: checking for newt.h" >&5
23273 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23274 if test "${ac_cv_header_newt_h+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23277 ac_cv_header_newt_h=$ac_header_preproc
23279 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23280 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23283 if test $ac_cv_header_newt_h = yes; then
23284 NEWT_HEADER_FOUND=1
23286 NEWT_HEADER_FOUND=0
23292 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23293 if test -n "${NEWT_MANDATORY}" ;
23295 { echo "$as_me:$LINENO: ***" >&5
23296 echo "$as_me: ***" >&6;}
23297 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23298 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23299 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23300 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23301 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23302 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23311 cat >>confdefs.h <<_ACEOF
23312 #define HAVE_NEWT 1
23316 elif test -n "${NEWT_MANDATORY}";
23318 { echo "$as_me:$LINENO: ***" >&5
23319 echo "$as_me: ***" >&6;}
23320 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23321 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23322 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23323 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23324 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23325 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23332 if test "${USE_UNIXODBC}" != "no"; then
23334 if test "x${UNIXODBC_DIR}" != "x"; then
23335 if test -d ${UNIXODBC_DIR}/lib; then
23336 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23338 pbxlibdir="-L${UNIXODBC_DIR}"
23341 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23342 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23343 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 ac_check_lib_save_LIBS=$LIBS
23347 LIBS="-lodbc ${pbxlibdir} $LIBS"
23348 cat >conftest.$ac_ext <<_ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23355 /* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23361 char SQLConnect ();
23365 return SQLConnect ();
23370 rm -f conftest.$ac_objext conftest$ac_exeext
23371 if { (ac_try="$ac_link"
23372 case "(($ac_try" in
23373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23374 *) ac_try_echo
=$ac_try;;
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_link") 2>conftest.er1
23379 grep -v '^ *+' conftest.er1
>conftest.err
23381 cat conftest.err
>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest
$ac_exeext &&
23387 $as_test_x conftest
$ac_exeext; then
23388 ac_cv_lib_odbc_SQLConnect
=yes
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.
$ac_ext >&5
23393 ac_cv_lib_odbc_SQLConnect
=no
23396 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23397 conftest
$ac_exeext conftest.
$ac_ext
23398 LIBS
=$ac_check_lib_save_LIBS
23400 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23401 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23402 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23403 AST_UNIXODBC_FOUND
=yes
23405 AST_UNIXODBC_FOUND
=no
23409 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23410 UNIXODBC_LIB
="-lodbc "
23411 UNIXODBC_HEADER_FOUND
="1"
23412 if test "x${UNIXODBC_DIR}" != "x"; then
23413 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
23414 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
23415 saved_cppflags
="${CPPFLAGS}"
23416 CPPFLAGS
="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23417 if test "xsql.h" != "x" ; then
23418 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23419 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23420 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23421 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23422 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 ac_res
=`eval echo '${'$as_ac_Header'}'`
23426 { echo "$as_me:$LINENO: result: $ac_res" >&5
23427 echo "${ECHO_T}$ac_res" >&6; }
23429 # Is the header compilable?
23430 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23431 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23432 cat >conftest.
$ac_ext <<_ACEOF
23435 cat confdefs.h
>>conftest.
$ac_ext
23436 cat >>conftest.
$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23438 $ac_includes_default
23439 #include <${UNIXODBC_DIR}/include/sql.h>
23441 rm -f conftest.
$ac_objext
23442 if { (ac_try
="$ac_compile"
23443 case "(($ac_try" in
23444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_compile") 2>conftest.er1
23450 grep -v '^ *+' conftest.er1 >conftest.err
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && {
23455 test -z "$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 } && test -s conftest.$ac_objext; then
23458 ac_header_compiler=yes
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_header_compiler=no
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23468 echo "${ECHO_T}$ac_header_compiler" >&6; }
23470 # Is the header present?
23471 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23472 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23473 cat >conftest.$ac_ext <<_ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 #include <${UNIXODBC_DIR}/include/sql.h>
23481 if { (ac_try="$ac_cpp conftest.$ac_ext"
23482 case "(($ac_try" in
23483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23484 *) ac_try_echo
=$ac_try;;
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23489 grep -v '^ *+' conftest.er1
>conftest.err
23491 cat conftest.err
>&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } >/dev
/null
&& {
23494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23495 test ! -s conftest.err
23497 ac_header_preproc
=yes
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.
$ac_ext >&5
23502 ac_header_preproc
=no
23505 rm -f conftest.err conftest.
$ac_ext
23506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23507 echo "${ECHO_T}$ac_header_preproc" >&6; }
23509 # So? What about this header?
23510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23512 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23513 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23514 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23515 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23516 ac_header_preproc
=yes
23519 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23520 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23521 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23522 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23523 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23524 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23525 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23526 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23527 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23528 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23529 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23530 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23532 ## ------------------------------- ##
23533 ## Report this to www.asterisk.org ##
23534 ## ------------------------------- ##
23536 ) |
sed "s/^/$as_me: WARNING: /" >&2
23539 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23540 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23541 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 eval "$as_ac_Header=\$ac_header_preproc"
23546 ac_res
=`eval echo '${'$as_ac_Header'}'`
23547 { echo "$as_me:$LINENO: result: $ac_res" >&5
23548 echo "${ECHO_T}$ac_res" >&6; }
23551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23552 UNIXODBC_HEADER_FOUND
=1
23554 UNIXODBC_HEADER_FOUND
=0
23559 CPPFLAGS
="${saved_cppflags}"
23561 if test "xsql.h" != "x" ; then
23562 if test "${ac_cv_header_sql_h+set}" = set; then
23563 { echo "$as_me:$LINENO: checking for sql.h" >&5
23564 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23565 if test "${ac_cv_header_sql_h+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23569 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23571 # Is the header compilable?
23572 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23573 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23574 cat >conftest.
$ac_ext <<_ACEOF
23577 cat confdefs.h
>>conftest.
$ac_ext
23578 cat >>conftest.
$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 $ac_includes_default
23583 rm -f conftest.
$ac_objext
23584 if { (ac_try
="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23600 ac_header_compiler=yes
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ac_header_compiler=no
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23610 echo "${ECHO_T}$ac_header_compiler" >&6; }
23612 # Is the header present?
23613 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23614 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23623 if { (ac_try="$ac_cpp conftest.$ac_ext"
23624 case "(($ac_try" in
23625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23626 *) ac_try_echo
=$ac_try;;
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23631 grep -v '^ *+' conftest.er1
>conftest.err
23633 cat conftest.err
>&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } >/dev
/null
&& {
23636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23639 ac_header_preproc
=yes
23641 echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.
$ac_ext >&5
23644 ac_header_preproc
=no
23647 rm -f conftest.err conftest.
$ac_ext
23648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23649 echo "${ECHO_T}$ac_header_preproc" >&6; }
23651 # So? What about this header?
23652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23654 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23655 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23656 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23657 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23658 ac_header_preproc
=yes
23661 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23662 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23663 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23664 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23665 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23666 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23667 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23668 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23669 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23670 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23671 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23672 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23674 ## ------------------------------- ##
23675 ## Report this to www.asterisk.org ##
23676 ## ------------------------------- ##
23678 ) |
sed "s/^/$as_me: WARNING: /" >&2
23681 { echo "$as_me:$LINENO: checking for sql.h" >&5
23682 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23683 if test "${ac_cv_header_sql_h+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 ac_cv_header_sql_h
=$ac_header_preproc
23688 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23689 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23692 if test $ac_cv_header_sql_h = yes; then
23693 UNIXODBC_HEADER_FOUND
=1
23695 UNIXODBC_HEADER_FOUND
=0
23701 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23702 if test -n "${UNIXODBC_MANDATORY}" ;
23704 { echo "$as_me:$LINENO: ***" >&5
23705 echo "$as_me: ***" >&6;}
23706 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23707 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23708 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23709 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23710 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23711 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23715 UNIXODBC_INCLUDE
=""
23720 cat >>confdefs.h
<<_ACEOF
23721 #define HAVE_UNIXODBC 1
23725 elif test -n "${UNIXODBC_MANDATORY}";
23727 { echo "$as_me:$LINENO: ***" >&5
23728 echo "$as_me: ***" >&6;}
23729 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23730 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23731 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23732 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23733 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23734 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23741 if test "${USE_OGG}" != "no"; then
23743 if test "x${OGG_DIR}" != "x"; then
23744 if test -d ${OGG_DIR}/lib
; then
23745 pbxlibdir
="-L${OGG_DIR}/lib"
23747 pbxlibdir
="-L${OGG_DIR}"
23750 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23751 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23752 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23755 ac_check_lib_save_LIBS
=$LIBS
23756 LIBS
="-logg ${pbxlibdir} $LIBS"
23757 cat >conftest.
$ac_ext <<_ACEOF
23760 cat confdefs.h
>>conftest.
$ac_ext
23761 cat >>conftest.
$ac_ext <<_ACEOF
23762 /* end confdefs.h. */
23764 /* Override any GCC internal prototype to avoid an error.
23765 Use char because int might match the return type of a GCC
23766 builtin and then its argument prototype would still apply. */
23770 char ogg_sync_init ();
23774 return ogg_sync_init ();
23779 rm -f conftest.
$ac_objext conftest
$ac_exeext
23780 if { (ac_try
="$ac_link"
23781 case "(($ac_try" in
23782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_link") 2>conftest.er1
23788 grep -v '^ *+' conftest.er1 >conftest.err
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest$ac_exeext &&
23796 $as_test_x conftest$ac_exeext; then
23797 ac_cv_lib_ogg_ogg_sync_init=yes
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23802 ac_cv_lib_ogg_ogg_sync_init=no
23805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23806 conftest$ac_exeext conftest.$ac_ext
23807 LIBS=$ac_check_lib_save_LIBS
23809 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23810 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23811 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23818 if test "${AST_OGG_FOUND}" = "yes"; then
23820 OGG_HEADER_FOUND="1"
23821 if test "x${OGG_DIR}" != "x"; then
23822 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23823 OGG_INCLUDE="-I${OGG_DIR}/include"
23824 saved_cppflags="${CPPFLAGS}"
23825 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23826 if test "x" != "x" ; then
23827 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
23828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23829 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23830 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 ac_res=`eval echo '${'$as_ac_Header'}'`
23835 { echo "$as_me:$LINENO: result: $ac_res" >&5
23836 echo "${ECHO_T}$ac_res" >&6; }
23838 # Is the header compilable?
23839 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23840 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23841 cat >conftest.$ac_ext <<_ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 $ac_includes_default
23848 #include <${OGG_DIR}/include/>
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23854 *) ac_try_echo
=$ac_try;;
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_compile") 2>conftest.er1
23859 grep -v '^ *+' conftest.er1
>conftest.err
23861 cat conftest.err
>&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } && {
23864 test -z "$ac_c_werror_flag" ||
23865 test ! -s conftest.err
23866 } && test -s conftest.
$ac_objext; 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 core 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 ${OGG_DIR}/include/ presence" >&5
23881 echo $ECHO_N "checking ${OGG_DIR}/include/ 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 <${OGG_DIR}/include/>
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 && {
23903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23904 test ! -s conftest.err
23906 ac_header_preproc=yes
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 ac_header_preproc=no
23914 rm -f conftest.err conftest.$ac_ext
23915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23916 echo "${ECHO_T}$ac_header_preproc" >&6; }
23918 # So? What about this header?
23919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23921 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23922 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23923 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23924 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23925 ac_header_preproc=yes
23928 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23929 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23930 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23931 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23932 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23933 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23934 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23935 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23936 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23937 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23938 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23939 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23941 ## ------------------------------- ##
23942 ## Report this to www.asterisk.org ##
23943 ## ------------------------------- ##
23945 ) | sed "s/^/$as_me: WARNING: /" >&2
23948 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23949 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 eval "$as_ac_Header=\$ac_header_preproc"
23955 ac_res=`eval echo '${'$as_ac_Header'}'`
23956 { echo "$as_me:$LINENO: result: $ac_res" >&5
23957 echo "${ECHO_T}$ac_res" >&6; }
23960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23968 CPPFLAGS="${saved_cppflags}"
23970 if test "x" != "x" ; then
23971 if test "${ac_cv_header_+set}" = set; then
23972 { echo "$as_me:$LINENO: checking for " >&5
23973 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23974 if test "${ac_cv_header_+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23978 echo "${ECHO_T}$ac_cv_header_" >&6; }
23980 # Is the header compilable?
23981 { echo "$as_me:$LINENO: checking usability" >&5
23982 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23983 cat >conftest.$ac_ext <<_ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23996 *) ac_try_echo
=$ac_try;;
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24001 grep -v '^ *+' conftest.er1
>conftest.err
24003 cat conftest.err
>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.
$ac_objext; then
24009 ac_header_compiler
=yes
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.
$ac_ext >&5
24014 ac_header_compiler
=no
24017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24019 echo "${ECHO_T}$ac_header_compiler" >&6; }
24021 # Is the header present?
24022 { echo "$as_me:$LINENO: checking presence" >&5
24023 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24024 cat >conftest.
$ac_ext <<_ACEOF
24027 cat confdefs.h
>>conftest.
$ac_ext
24028 cat >>conftest.
$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24032 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24033 case "(($ac_try" in
24034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24040 grep -v '^ *+' conftest.er1 >conftest.err
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } >/dev/null && {
24045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24048 ac_header_preproc=yes
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_header_preproc=no
24056 rm -f conftest.err conftest.$ac_ext
24057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24058 echo "${ECHO_T}$ac_header_preproc" >&6; }
24060 # So? What about this header?
24061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24063 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24064 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24065 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24066 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24067 ac_header_preproc=yes
24070 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24071 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24072 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24073 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24074 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24075 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24076 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24077 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24078 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24079 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24080 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24081 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24083 ## ------------------------------- ##
24084 ## Report this to www.asterisk.org ##
24085 ## ------------------------------- ##
24087 ) | sed "s/^/$as_me: WARNING: /" >&2
24090 { echo "$as_me:$LINENO: checking for " >&5
24091 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24092 if test "${ac_cv_header_+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 ac_cv_header_=$ac_header_preproc
24097 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24098 echo "${ECHO_T}$ac_cv_header_" >&6; }
24101 if test $ac_cv_header_ = yes; then
24110 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24111 if test -n "${OGG_MANDATORY}" ;
24113 { echo "$as_me:$LINENO: ***" >&5
24114 echo "$as_me: ***" >&6;}
24115 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24116 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24117 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24118 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24119 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24120 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24129 cat >>confdefs.h <<_ACEOF
24134 elif test -n "${OGG_MANDATORY}";
24136 { echo "$as_me:$LINENO: ***" >&5
24137 echo "$as_me: ***" >&6;}
24138 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24139 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24140 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24141 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24143 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24149 if test "${USE_OSS}" != "no"; then
24151 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24152 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24153 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24154 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24158 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24160 # Is the header compilable?
24161 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24162 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 $ac_includes_default
24170 #include <linux/soundcard.h>
24172 rm -f conftest.$ac_objext
24173 if { (ac_try="$ac_compile"
24174 case "(($ac_try" in
24175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24176 *) ac_try_echo
=$ac_try;;
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179 (eval "$ac_compile") 2>conftest.er1
24181 grep -v '^ *+' conftest.er1
>conftest.err
24183 cat conftest.err
>&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } && {
24186 test -z "$ac_c_werror_flag" ||
24187 test ! -s conftest.err
24188 } && test -s conftest.
$ac_objext; then
24189 ac_header_compiler
=yes
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.
$ac_ext >&5
24194 ac_header_compiler
=no
24197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24199 echo "${ECHO_T}$ac_header_compiler" >&6; }
24201 # Is the header present?
24202 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24203 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24204 cat >conftest.
$ac_ext <<_ACEOF
24207 cat confdefs.h
>>conftest.
$ac_ext
24208 cat >>conftest.
$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24210 #include <linux/soundcard.h>
24212 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24213 case "(($ac_try" in
24214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24220 grep -v '^ *+' conftest.er1 >conftest.err
24222 cat conftest.err >&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } >/dev/null && {
24225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24226 test ! -s conftest.err
24228 ac_header_preproc=yes
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_header_preproc=no
24236 rm -f conftest.err conftest.$ac_ext
24237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24238 echo "${ECHO_T}$ac_header_preproc" >&6; }
24240 # So? What about this header?
24241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24243 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24244 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24245 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24246 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24247 ac_header_preproc=yes
24250 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24251 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24252 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24253 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24254 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24255 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24256 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24257 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24258 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24259 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24260 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24261 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24263 ## ------------------------------- ##
24264 ## Report this to www.asterisk.org ##
24265 ## ------------------------------- ##
24267 ) | sed "s/^/$as_me: WARNING: /" >&2
24270 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24271 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24272 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24277 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24278 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24281 if test $ac_cv_header_linux_soundcard_h = yes; then
24285 cat >>confdefs.h <<_ACEOF
24293 if test "$PBX_OSS" = "0"; then
24294 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24295 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24296 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24297 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24298 echo $ECHO_N "(cached) $ECHO_C" >&6
24300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24301 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24303 # Is the header compilable?
24304 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24305 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 $ac_includes_default
24313 #include <sys/soundcard.h>
24315 rm -f conftest.$ac_objext
24316 if { (ac_try="$ac_compile"
24317 case "(($ac_try" in
24318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24319 *) ac_try_echo
=$ac_try;;
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322 (eval "$ac_compile") 2>conftest.er1
24324 grep -v '^ *+' conftest.er1
>conftest.err
24326 cat conftest.err
>&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } && {
24329 test -z "$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 } && test -s conftest.
$ac_objext; then
24332 ac_header_compiler
=yes
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.
$ac_ext >&5
24337 ac_header_compiler
=no
24340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24342 echo "${ECHO_T}$ac_header_compiler" >&6; }
24344 # Is the header present?
24345 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24346 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24347 cat >conftest.
$ac_ext <<_ACEOF
24350 cat confdefs.h
>>conftest.
$ac_ext
24351 cat >>conftest.
$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <sys/soundcard.h>
24355 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24356 case "(($ac_try" in
24357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24363 grep -v '^ *+' conftest.er1 >conftest.err
24365 cat conftest.err >&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } >/dev/null && {
24368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24369 test ! -s conftest.err
24371 ac_header_preproc=yes
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_header_preproc=no
24379 rm -f conftest.err conftest.$ac_ext
24380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24381 echo "${ECHO_T}$ac_header_preproc" >&6; }
24383 # So? What about this header?
24384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24386 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24387 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24389 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24390 ac_header_preproc=yes
24393 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24394 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24395 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24396 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24397 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24398 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24400 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24402 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24404 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24406 ## ------------------------------- ##
24407 ## Report this to www.asterisk.org ##
24408 ## ------------------------------- ##
24410 ) | sed "s/^/$as_me: WARNING: /" >&2
24413 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24414 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24415 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24420 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24421 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24424 if test $ac_cv_header_sys_soundcard_h = yes; then
24428 cat >>confdefs.h <<_ACEOF
24437 if test "$PBX_OSS" = "0"; then
24439 if test "${USE_OSS}" != "no"; then
24441 if test "x${OSS_DIR}" != "x"; then
24442 if test -d ${OSS_DIR}/lib; then
24443 pbxlibdir="-L${OSS_DIR}/lib"
24445 pbxlibdir="-L${OSS_DIR}"
24448 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24449 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24450 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24451 echo $ECHO_N "(cached) $ECHO_C" >&6
24453 ac_check_lib_save_LIBS=$LIBS
24454 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24455 cat >conftest.$ac_ext <<_ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24462 /* Override any GCC internal prototype to avoid an error.
24463 Use char because int might match the return type of a GCC
24464 builtin and then its argument prototype would still apply. */
24468 char oss_ioctl_mixer ();
24472 return oss_ioctl_mixer ();
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (ac_try="$ac_link"
24479 case "(($ac_try" in
24480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24481 *) ac_try_echo
=$ac_try;;
24483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484 (eval "$ac_link") 2>conftest.er1
24486 grep -v '^ *+' conftest.er1
>conftest.err
24488 cat conftest.err
>&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } && {
24491 test -z "$ac_c_werror_flag" ||
24492 test ! -s conftest.err
24493 } && test -s conftest
$ac_exeext &&
24494 $as_test_x conftest
$ac_exeext; then
24495 ac_cv_lib_ossaudio_oss_ioctl_mixer
=yes
24497 echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.
$ac_ext >&5
24500 ac_cv_lib_ossaudio_oss_ioctl_mixer
=no
24503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24504 conftest
$ac_exeext conftest.
$ac_ext
24505 LIBS
=$ac_check_lib_save_LIBS
24507 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24508 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24509 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24516 if test "${AST_OSS_FOUND}" = "yes"; then
24517 OSS_LIB
="-lossaudio "
24518 OSS_HEADER_FOUND
="1"
24519 if test "x${OSS_DIR}" != "x"; then
24520 OSS_LIB
="${pbxlibdir} ${OSS_LIB}"
24521 OSS_INCLUDE
="-I${OSS_DIR}/include"
24522 saved_cppflags
="${CPPFLAGS}"
24523 CPPFLAGS
="${CPPFLAGS} -I${OSS_DIR}/include"
24524 if test "xsoundcard.h" != "x" ; then
24525 as_ac_Header
=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24526 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24527 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24528 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $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 ${OSS_DIR}/include/soundcard.h usability" >&5
24538 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h 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 <${OSS_DIR}/include/soundcard.h>
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 test -z "$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24564 } && test -s conftest.$ac_objext; then
24565 ac_header_compiler=yes
24567 echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24570 ac_header_compiler=no
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24575 echo "${ECHO_T}$ac_header_compiler" >&6; }
24577 # Is the header present?
24578 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24579 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24580 cat >conftest.$ac_ext <<_ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 #include <${OSS_DIR}/include/soundcard.h>
24588 if { (ac_try="$ac_cpp conftest.$ac_ext"
24589 case "(($ac_try" in
24590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24591 *) ac_try_echo
=$ac_try;;
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24596 grep -v '^ *+' conftest.er1
>conftest.err
24598 cat conftest.err
>&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } >/dev
/null
&& {
24601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24604 ac_header_preproc
=yes
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.
$ac_ext >&5
24609 ac_header_preproc
=no
24612 rm -f conftest.err conftest.
$ac_ext
24613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24614 echo "${ECHO_T}$ac_header_preproc" >&6; }
24616 # So? What about this header?
24617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24619 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24620 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24621 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24622 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24623 ac_header_preproc
=yes
24626 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24627 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24629 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24631 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24633 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24635 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24637 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24639 ## ------------------------------- ##
24640 ## Report this to www.asterisk.org ##
24641 ## ------------------------------- ##
24643 ) |
sed "s/^/$as_me: WARNING: /" >&2
24646 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24647 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24648 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 eval "$as_ac_Header=\$ac_header_preproc"
24653 ac_res
=`eval echo '${'$as_ac_Header'}'`
24654 { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24666 CPPFLAGS
="${saved_cppflags}"
24668 if test "xsoundcard.h" != "x" ; then
24669 if test "${ac_cv_header_soundcard_h+set}" = set; then
24670 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24671 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24672 if test "${ac_cv_header_soundcard_h+set}" = set; then
24673 echo $ECHO_N "(cached) $ECHO_C" >&6
24675 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24676 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24678 # Is the header compilable?
24679 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24680 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24681 cat >conftest.
$ac_ext <<_ACEOF
24684 cat confdefs.h
>>conftest.
$ac_ext
24685 cat >>conftest.
$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 $ac_includes_default
24688 #include <soundcard.h>
24690 rm -f conftest.
$ac_objext
24691 if { (ac_try
="$ac_compile"
24692 case "(($ac_try" in
24693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_compile") 2>conftest.er1
24699 grep -v '^ *+' conftest.er1 >conftest.err
24701 cat conftest.err >&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } && {
24704 test -z "$ac_c_werror_flag" ||
24705 test ! -s conftest.err
24706 } && test -s conftest.$ac_objext; then
24707 ac_header_compiler=yes
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 ac_header_compiler=no
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24717 echo "${ECHO_T}$ac_header_compiler" >&6; }
24719 # Is the header present?
24720 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24721 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24728 #include <soundcard.h>
24730 if { (ac_try="$ac_cpp conftest.$ac_ext"
24731 case "(($ac_try" in
24732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24733 *) ac_try_echo
=$ac_try;;
24735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24738 grep -v '^ *+' conftest.er1
>conftest.err
24740 cat conftest.err
>&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); } >/dev
/null
&& {
24743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24744 test ! -s conftest.err
24746 ac_header_preproc
=yes
24748 echo "$as_me: failed program was:" >&5
24749 sed 's/^/| /' conftest.
$ac_ext >&5
24751 ac_header_preproc
=no
24754 rm -f conftest.err conftest.
$ac_ext
24755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24756 echo "${ECHO_T}$ac_header_preproc" >&6; }
24758 # So? What about this header?
24759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24761 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24762 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24763 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24764 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24765 ac_header_preproc
=yes
24768 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24769 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24770 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24771 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24772 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24773 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24774 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24775 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24777 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24779 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24781 ## ------------------------------- ##
24782 ## Report this to www.asterisk.org ##
24783 ## ------------------------------- ##
24785 ) |
sed "s/^/$as_me: WARNING: /" >&2
24788 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24789 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24790 if test "${ac_cv_header_soundcard_h+set}" = set; then
24791 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 ac_cv_header_soundcard_h
=$ac_header_preproc
24795 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24796 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24799 if test $ac_cv_header_soundcard_h = yes; then
24808 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24809 if test -n "${OSS_MANDATORY}" ;
24811 { echo "$as_me:$LINENO: ***" >&5
24812 echo "$as_me: ***" >&6;}
24813 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24814 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24815 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24816 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24817 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24818 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24827 cat >>confdefs.h
<<_ACEOF
24832 elif test -n "${OSS_MANDATORY}";
24834 { echo "$as_me:$LINENO: ***" >&5
24835 echo "$as_me: ***" >&6;}
24836 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24837 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24838 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24839 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24840 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24841 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24850 if test "${USE_PGSQL}" != "no"; then
24851 if test "x${PGSQL_DIR}" != "x"; then
24852 if test -n "$ac_tool_prefix"; then
24853 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24854 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24857 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24866 for as_dir
in ${PGSQL_DIR}/bin
24869 test -z "$as_dir" && as_dir
=.
24870 for ac_exec_ext
in '' $ac_executable_extensions; do
24871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24872 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24883 PG_CONFIG
=$ac_cv_path_PG_CONFIG
24884 if test -n "$PG_CONFIG"; then
24885 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24886 echo "${ECHO_T}$PG_CONFIG" >&6; }
24888 { echo "$as_me:$LINENO: result: no" >&5
24889 echo "${ECHO_T}no" >&6; }
24894 if test -z "$ac_cv_path_PG_CONFIG"; then
24895 ac_pt_PG_CONFIG
=$PG_CONFIG
24896 # Extract the first word of "pg_config", so it can be a program name with args.
24897 set dummy pg_config
; ac_word
=$2
24898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24900 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24903 case $ac_pt_PG_CONFIG in
24905 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24909 for as_dir
in ${PGSQL_DIR}/bin
24912 test -z "$as_dir" && as_dir
=.
24913 for ac_exec_ext
in '' $ac_executable_extensions; do
24914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24915 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24926 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
24927 if test -n "$ac_pt_PG_CONFIG"; then
24928 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24929 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24931 { echo "$as_me:$LINENO: result: no" >&5
24932 echo "${ECHO_T}no" >&6; }
24935 if test "x$ac_pt_PG_CONFIG" = x
; then
24938 case $cross_compiling:$ac_tool_warned in
24940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24941 whose name does not start with the host triplet. If you think this
24942 configuration is useful to you, please write to autoconf@gnu.org." >&5
24943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24944 whose name does not start with the host triplet. If you think this
24945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24946 ac_tool_warned
=yes ;;
24948 PG_CONFIG
=$ac_pt_PG_CONFIG
24951 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
24954 if test x
"${PG_CONFIG}" = xNo
; then
24955 { echo "$as_me:$LINENO: ***" >&5
24956 echo "$as_me: ***" >&6;}
24957 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24958 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24959 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24960 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24961 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24962 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24963 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24964 echo "$as_me: *** including --without-postgres" >&6;}
24968 if test -n "$ac_tool_prefix"; then
24969 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24970 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24973 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24982 for as_dir
in $PATH
24985 test -z "$as_dir" && as_dir
=.
24986 for ac_exec_ext
in '' $ac_executable_extensions; do
24987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24988 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24999 PG_CONFIG
=$ac_cv_path_PG_CONFIG
25000 if test -n "$PG_CONFIG"; then
25001 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25002 echo "${ECHO_T}$PG_CONFIG" >&6; }
25004 { echo "$as_me:$LINENO: result: no" >&5
25005 echo "${ECHO_T}no" >&6; }
25010 if test -z "$ac_cv_path_PG_CONFIG"; then
25011 ac_pt_PG_CONFIG
=$PG_CONFIG
25012 # Extract the first word of "pg_config", so it can be a program name with args.
25013 set dummy pg_config
; ac_word
=$2
25014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25016 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 case $ac_pt_PG_CONFIG in
25021 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25025 for as_dir
in $PATH
25028 test -z "$as_dir" && as_dir
=.
25029 for ac_exec_ext
in '' $ac_executable_extensions; do
25030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25031 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25042 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
25043 if test -n "$ac_pt_PG_CONFIG"; then
25044 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25045 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25047 { echo "$as_me:$LINENO: result: no" >&5
25048 echo "${ECHO_T}no" >&6; }
25051 if test "x$ac_pt_PG_CONFIG" = x
; then
25054 case $cross_compiling:$ac_tool_warned in
25056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25057 whose name does not start with the host triplet. If you think this
25058 configuration is useful to you, please write to autoconf@gnu.org." >&5
25059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25060 whose name does not start with the host triplet. If you think this
25061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25062 ac_tool_warned
=yes ;;
25064 PG_CONFIG
=$ac_pt_PG_CONFIG
25067 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
25072 if test "${PG_CONFIG}" != No
; then
25073 PGSQL_libdir
=`${PG_CONFIG} --libdir`
25074 PGSQL_includedir
=`${PG_CONFIG} --includedir`
25076 if test "x$?" != "x0" ; then
25077 if test -n "${PGSQL_MANDATORY}" ; then
25078 { echo "$as_me:$LINENO: ***" >&5
25079 echo "$as_me: ***" >&6;}
25080 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25081 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25082 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25083 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25084 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25085 echo "$as_me: *** including --without-postgres" >&6;}
25089 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25090 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25091 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 ac_check_lib_save_LIBS
=$LIBS
25095 LIBS
="-lpq -L${PGSQL_libdir} -lz $LIBS"
25096 cat >conftest.
$ac_ext <<_ACEOF
25099 cat confdefs.h
>>conftest.
$ac_ext
25100 cat >>conftest.
$ac_ext <<_ACEOF
25101 /* end confdefs.h. */
25103 /* Override any GCC internal prototype to avoid an error.
25104 Use char because int might match the return type of a GCC
25105 builtin and then its argument prototype would still apply. */
25109 char PQescapeStringConn ();
25113 return PQescapeStringConn ();
25118 rm -f conftest.
$ac_objext conftest
$ac_exeext
25119 if { (ac_try
="$ac_link"
25120 case "(($ac_try" in
25121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_link") 2>conftest.er1
25127 grep -v '^ *+' conftest.er1 >conftest.err
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest$ac_exeext &&
25135 $as_test_x conftest$ac_exeext; then
25136 ac_cv_lib_pq_PQescapeStringConn=yes
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_lib_pq_PQescapeStringConn=no
25144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25145 conftest$ac_exeext conftest.$ac_ext
25146 LIBS=$ac_check_lib_save_LIBS
25148 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25149 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25150 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25152 cat >>confdefs.h <<_ACEOF
25153 #define HAVE_PGSQL 1
25159 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25160 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25161 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25163 elif test -n "${PGSQL_MANDATORY}";
25165 { echo "$as_me:$LINENO: ***" >&5
25166 echo "$as_me: ***" >&6;}
25167 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25168 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25169 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25170 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25171 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25172 echo "$as_me: *** including --without-postgres" >&6;}
25176 elif test -n "${PGSQL_MANDATORY}";
25178 { echo "$as_me:$LINENO: ***" >&5
25179 echo "$as_me: ***" >&6;}
25180 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25181 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25182 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25183 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25184 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25185 echo "$as_me: *** including --without-postgres" >&6;}
25190 if test "${USE_POPT}" != "no"; then
25192 if test "x${POPT_DIR}" != "x"; then
25193 if test -d ${POPT_DIR}/lib; then
25194 pbxlibdir="-L${POPT_DIR}/lib"
25196 pbxlibdir="-L${POPT_DIR}"
25199 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25200 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25201 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-lpopt ${pbxlibdir} $LIBS"
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25213 /* Override any GCC internal prototype to avoid an error.
25214 Use char because int might match the return type of a GCC
25215 builtin and then its argument prototype would still apply. */
25219 char poptStrerror ();
25223 return poptStrerror ();
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25232 *) ac_try_echo
=$ac_try;;
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235 (eval "$ac_link") 2>conftest.er1
25237 grep -v '^ *+' conftest.er1
>conftest.err
25239 cat conftest.err
>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } && {
25242 test -z "$ac_c_werror_flag" ||
25243 test ! -s conftest.err
25244 } && test -s conftest
$ac_exeext &&
25245 $as_test_x conftest
$ac_exeext; then
25246 ac_cv_lib_popt_poptStrerror
=yes
25248 echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.
$ac_ext >&5
25251 ac_cv_lib_popt_poptStrerror
=no
25254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25255 conftest
$ac_exeext conftest.
$ac_ext
25256 LIBS
=$ac_check_lib_save_LIBS
25258 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25259 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25260 if test $ac_cv_lib_popt_poptStrerror = yes; then
25267 if test "${AST_POPT_FOUND}" = "yes"; then
25269 POPT_HEADER_FOUND
="1"
25270 if test "x${POPT_DIR}" != "x"; then
25271 POPT_LIB
="${pbxlibdir} ${POPT_LIB}"
25272 POPT_INCLUDE
="-I${POPT_DIR}/include"
25273 saved_cppflags
="${CPPFLAGS}"
25274 CPPFLAGS
="${CPPFLAGS} -I${POPT_DIR}/include"
25275 if test "xpopt.h" != "x" ; then
25276 as_ac_Header
=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25277 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25278 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25279 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25280 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25283 ac_res
=`eval echo '${'$as_ac_Header'}'`
25284 { echo "$as_me:$LINENO: result: $ac_res" >&5
25285 echo "${ECHO_T}$ac_res" >&6; }
25287 # Is the header compilable?
25288 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25289 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25290 cat >conftest.
$ac_ext <<_ACEOF
25293 cat confdefs.h
>>conftest.
$ac_ext
25294 cat >>conftest.
$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 $ac_includes_default
25297 #include <${POPT_DIR}/include/popt.h>
25299 rm -f conftest.
$ac_objext
25300 if { (ac_try
="$ac_compile"
25301 case "(($ac_try" in
25302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25303 *) ac_try_echo=$ac_try;;
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306 (eval "$ac_compile") 2>conftest.er1
25308 grep -v '^ *+' conftest.er1 >conftest.err
25310 cat conftest.err >&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } && {
25313 test -z "$ac_c_werror_flag" ||
25314 test ! -s conftest.err
25315 } && test -s conftest.$ac_objext; then
25316 ac_header_compiler=yes
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 ac_header_compiler=no
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25326 echo "${ECHO_T}$ac_header_compiler" >&6; }
25328 # Is the header present?
25329 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25330 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 #include <${POPT_DIR}/include/popt.h>
25339 if { (ac_try="$ac_cpp conftest.$ac_ext"
25340 case "(($ac_try" in
25341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25342 *) ac_try_echo
=$ac_try;;
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25347 grep -v '^ *+' conftest.er1
>conftest.err
25349 cat conftest.err
>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } >/dev
/null
&& {
25352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25353 test ! -s conftest.err
25355 ac_header_preproc
=yes
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.
$ac_ext >&5
25360 ac_header_preproc
=no
25363 rm -f conftest.err conftest.
$ac_ext
25364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25365 echo "${ECHO_T}$ac_header_preproc" >&6; }
25367 # So? What about this header?
25368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25370 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25371 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25372 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25373 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25374 ac_header_preproc
=yes
25377 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25378 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25379 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25380 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25381 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25382 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25383 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25384 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25386 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25388 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25390 ## ------------------------------- ##
25391 ## Report this to www.asterisk.org ##
25392 ## ------------------------------- ##
25394 ) |
sed "s/^/$as_me: WARNING: /" >&2
25397 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25398 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 eval "$as_ac_Header=\$ac_header_preproc"
25404 ac_res
=`eval echo '${'$as_ac_Header'}'`
25405 { echo "$as_me:$LINENO: result: $ac_res" >&5
25406 echo "${ECHO_T}$ac_res" >&6; }
25409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25410 POPT_HEADER_FOUND
=1
25412 POPT_HEADER_FOUND
=0
25417 CPPFLAGS
="${saved_cppflags}"
25419 if test "xpopt.h" != "x" ; then
25420 if test "${ac_cv_header_popt_h+set}" = set; then
25421 { echo "$as_me:$LINENO: checking for popt.h" >&5
25422 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25423 if test "${ac_cv_header_popt_h+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25427 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25429 # Is the header compilable?
25430 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25431 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25432 cat >conftest.
$ac_ext <<_ACEOF
25435 cat confdefs.h
>>conftest.
$ac_ext
25436 cat >>conftest.
$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25441 rm -f conftest.
$ac_objext
25442 if { (ac_try
="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_compile") 2>conftest.er1
25450 grep -v '^ *+' conftest.er1 >conftest.err
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } && {
25455 test -z "$ac_c_werror_flag" ||
25456 test ! -s conftest.err
25457 } && test -s conftest.$ac_objext; then
25458 ac_header_compiler=yes
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_header_compiler=no
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 echo "${ECHO_T}$ac_header_compiler" >&6; }
25470 # Is the header present?
25471 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25472 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25481 if { (ac_try="$ac_cpp conftest.$ac_ext"
25482 case "(($ac_try" in
25483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25484 *) ac_try_echo
=$ac_try;;
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25489 grep -v '^ *+' conftest.er1
>conftest.err
25491 cat conftest.err
>&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } >/dev
/null
&& {
25494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25497 ac_header_preproc
=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.
$ac_ext >&5
25502 ac_header_preproc
=no
25505 rm -f conftest.err conftest.
$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6; }
25509 # So? What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25516 ac_header_preproc
=yes
25519 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25532 ## ------------------------------- ##
25533 ## Report this to www.asterisk.org ##
25534 ## ------------------------------- ##
25536 ) |
sed "s/^/$as_me: WARNING: /" >&2
25539 { echo "$as_me:$LINENO: checking for popt.h" >&5
25540 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25541 if test "${ac_cv_header_popt_h+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 ac_cv_header_popt_h
=$ac_header_preproc
25546 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25547 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25550 if test $ac_cv_header_popt_h = yes; then
25551 POPT_HEADER_FOUND
=1
25553 POPT_HEADER_FOUND
=0
25559 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25560 if test -n "${POPT_MANDATORY}" ;
25562 { echo "$as_me:$LINENO: ***" >&5
25563 echo "$as_me: ***" >&6;}
25564 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25565 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25566 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25567 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25568 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25569 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25578 cat >>confdefs.h
<<_ACEOF
25579 #define HAVE_POPT 1
25583 elif test -n "${POPT_MANDATORY}";
25585 { echo "$as_me:$LINENO: ***" >&5
25586 echo "$as_me: ***" >&6;}
25587 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25588 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25589 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25590 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25591 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25592 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25599 if test "${USE_PRI}" != "no"; then
25601 if test "x${PRI_DIR}" != "x"; then
25602 if test -d ${PRI_DIR}/lib
; then
25603 pbxlibdir
="-L${PRI_DIR}/lib"
25605 pbxlibdir
="-L${PRI_DIR}"
25608 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25609 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25610 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25611 echo $ECHO_N "(cached) $ECHO_C" >&6
25613 ac_check_lib_save_LIBS
=$LIBS
25614 LIBS
="-lpri ${pbxlibdir} $LIBS"
25615 cat >conftest.
$ac_ext <<_ACEOF
25618 cat confdefs.h
>>conftest.
$ac_ext
25619 cat >>conftest.
$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25622 /* Override any GCC internal prototype to avoid an error.
25623 Use char because int might match the return type of a GCC
25624 builtin and then its argument prototype would still apply. */
25628 char pri_keypad_facility ();
25632 return pri_keypad_facility ();
25637 rm -f conftest.
$ac_objext conftest
$ac_exeext
25638 if { (ac_try
="$ac_link"
25639 case "(($ac_try" in
25640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_link") 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest$ac_exeext &&
25654 $as_test_x conftest$ac_exeext; then
25655 ac_cv_lib_pri_pri_keypad_facility=yes
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25660 ac_cv_lib_pri_pri_keypad_facility=no
25663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25664 conftest$ac_exeext conftest.$ac_ext
25665 LIBS=$ac_check_lib_save_LIBS
25667 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25668 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25669 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25676 if test "${AST_PRI_FOUND}" = "yes"; then
25678 PRI_HEADER_FOUND="1"
25679 if test "x${PRI_DIR}" != "x"; then
25680 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25681 PRI_INCLUDE="-I${PRI_DIR}/include"
25682 saved_cppflags="${CPPFLAGS}"
25683 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25684 if test "xlibpri.h" != "x" ; then
25685 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" |
$as_tr_sh`
25686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25687 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25688 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 ac_res=`eval echo '${'$as_ac_Header'}'`
25693 { echo "$as_me:$LINENO: result: $ac_res" >&5
25694 echo "${ECHO_T}$ac_res" >&6; }
25696 # Is the header compilable?
25697 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25698 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25699 cat >conftest.$ac_ext <<_ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25705 $ac_includes_default
25706 #include <${PRI_DIR}/include/libpri.h>
25708 rm -f conftest.$ac_objext
25709 if { (ac_try="$ac_compile"
25710 case "(($ac_try" in
25711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25712 *) ac_try_echo
=$ac_try;;
25714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25715 (eval "$ac_compile") 2>conftest.er1
25717 grep -v '^ *+' conftest.er1
>conftest.err
25719 cat conftest.err
>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } && {
25722 test -z "$ac_c_werror_flag" ||
25723 test ! -s conftest.err
25724 } && test -s conftest.
$ac_objext; then
25725 ac_header_compiler
=yes
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.
$ac_ext >&5
25730 ac_header_compiler
=no
25733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25735 echo "${ECHO_T}$ac_header_compiler" >&6; }
25737 # Is the header present?
25738 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25739 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25740 cat >conftest.
$ac_ext <<_ACEOF
25743 cat confdefs.h
>>conftest.
$ac_ext
25744 cat >>conftest.
$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <${PRI_DIR}/include/libpri.h>
25748 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25749 case "(($ac_try" in
25750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } >/dev/null && {
25761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25764 ac_header_preproc=yes
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_header_preproc=no
25772 rm -f conftest.err conftest.$ac_ext
25773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25774 echo "${ECHO_T}$ac_header_preproc" >&6; }
25776 # So? What about this header?
25777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25779 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25780 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25781 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25782 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25783 ac_header_preproc=yes
25786 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25787 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25788 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25789 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25790 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25791 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25792 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25793 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25795 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25796 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25797 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25799 ## ------------------------------- ##
25800 ## Report this to www.asterisk.org ##
25801 ## ------------------------------- ##
25803 ) | sed "s/^/$as_me: WARNING: /" >&2
25806 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25807 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 eval "$as_ac_Header=\$ac_header_preproc"
25813 ac_res=`eval echo '${'$as_ac_Header'}'`
25814 { echo "$as_me:$LINENO: result: $ac_res" >&5
25815 echo "${ECHO_T}$ac_res" >&6; }
25818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25826 CPPFLAGS="${saved_cppflags}"
25828 if test "xlibpri.h" != "x" ; then
25829 if test "${ac_cv_header_libpri_h+set}" = set; then
25830 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25831 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25832 if test "${ac_cv_header_libpri_h+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25836 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25838 # Is the header compilable?
25839 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25840 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25841 cat >conftest.$ac_ext <<_ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 $ac_includes_default
25848 #include <libpri.h>
25850 rm -f conftest.$ac_objext
25851 if { (ac_try="$ac_compile"
25852 case "(($ac_try" in
25853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25854 *) ac_try_echo
=$ac_try;;
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_compile") 2>conftest.er1
25859 grep -v '^ *+' conftest.er1
>conftest.err
25861 cat conftest.err
>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest.
$ac_objext; then
25867 ac_header_compiler
=yes
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.
$ac_ext >&5
25872 ac_header_compiler
=no
25875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25877 echo "${ECHO_T}$ac_header_compiler" >&6; }
25879 # Is the header present?
25880 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25881 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25882 cat >conftest.
$ac_ext <<_ACEOF
25885 cat confdefs.h
>>conftest.
$ac_ext
25886 cat >>conftest.
$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 #include <libpri.h>
25890 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25891 case "(($ac_try" in
25892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25893 *) ac_try_echo=$ac_try;;
25895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } >/dev/null && {
25903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25904 test ! -s conftest.err
25906 ac_header_preproc=yes
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25911 ac_header_preproc=no
25914 rm -f conftest.err conftest.$ac_ext
25915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25916 echo "${ECHO_T}$ac_header_preproc" >&6; }
25918 # So? What about this header?
25919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25921 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25922 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25923 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25924 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25925 ac_header_preproc=yes
25928 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25929 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25930 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25931 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25932 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25933 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25934 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25935 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25936 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25937 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25939 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25941 ## ------------------------------- ##
25942 ## Report this to www.asterisk.org ##
25943 ## ------------------------------- ##
25945 ) | sed "s/^/$as_me: WARNING: /" >&2
25948 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25949 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25950 if test "${ac_cv_header_libpri_h+set}" = set; then
25951 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 ac_cv_header_libpri_h=$ac_header_preproc
25955 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25956 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25959 if test $ac_cv_header_libpri_h = yes; then
25968 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25969 if test -n "${PRI_MANDATORY}" ;
25971 { echo "$as_me:$LINENO: ***" >&5
25972 echo "$as_me: ***" >&6;}
25973 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25974 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25975 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25976 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25977 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25978 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25987 cat >>confdefs.h <<_ACEOF
25992 elif test -n "${PRI_MANDATORY}";
25994 { echo "$as_me:$LINENO: ***" >&5
25995 echo "$as_me: ***" >&6;}
25996 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25997 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25998 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25999 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26000 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26001 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26008 if test "${USE_PRI_VERSION}" != "no"; then
26010 if test "x${PRI_VERSION_DIR}" != "x"; then
26011 if test -d ${PRI_VERSION_DIR}/lib; then
26012 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
26014 pbxlibdir="-L${PRI_VERSION_DIR}"
26017 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
26018 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
26019 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
26020 echo $ECHO_N "(cached) $ECHO_C" >&6
26022 ac_check_lib_save_LIBS=$LIBS
26023 LIBS="-lpri ${pbxlibdir} $LIBS"
26024 cat >conftest.$ac_ext <<_ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h. */
26031 /* Override any GCC internal prototype to avoid an error.
26032 Use char because int might match the return type of a GCC
26033 builtin and then its argument prototype would still apply. */
26037 char pri_get_version ();
26041 return pri_get_version ();
26046 rm -f conftest.$ac_objext conftest$ac_exeext
26047 if { (ac_try="$ac_link"
26048 case "(($ac_try" in
26049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26050 *) ac_try_echo
=$ac_try;;
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053 (eval "$ac_link") 2>conftest.er1
26055 grep -v '^ *+' conftest.er1
>conftest.err
26057 cat conftest.err
>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } && {
26060 test -z "$ac_c_werror_flag" ||
26061 test ! -s conftest.err
26062 } && test -s conftest
$ac_exeext &&
26063 $as_test_x conftest
$ac_exeext; then
26064 ac_cv_lib_pri_pri_get_version
=yes
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.
$ac_ext >&5
26069 ac_cv_lib_pri_pri_get_version
=no
26072 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26073 conftest
$ac_exeext conftest.
$ac_ext
26074 LIBS
=$ac_check_lib_save_LIBS
26076 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
26077 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
26078 if test $ac_cv_lib_pri_pri_get_version = yes; then
26079 AST_PRI_VERSION_FOUND
=yes
26081 AST_PRI_VERSION_FOUND
=no
26085 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
26086 PRI_VERSION_LIB
="-lpri "
26087 PRI_VERSION_HEADER_FOUND
="1"
26088 if test "x${PRI_VERSION_DIR}" != "x"; then
26089 PRI_VERSION_LIB
="${pbxlibdir} ${PRI_VERSION_LIB}"
26090 PRI_VERSION_INCLUDE
="-I${PRI_VERSION_DIR}/include"
26091 saved_cppflags
="${CPPFLAGS}"
26092 CPPFLAGS
="${CPPFLAGS} -I${PRI_VERSION_DIR}/include"
26093 if test "xlibpri.h" != "x" ; then
26094 as_ac_Header
=`echo "ac_cv_header_${PRI_VERSION_DIR}/include/libpri.h" | $as_tr_sh`
26095 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26096 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26097 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26098 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26099 echo $ECHO_N "(cached) $ECHO_C" >&6
26101 ac_res
=`eval echo '${'$as_ac_Header'}'`
26102 { echo "$as_me:$LINENO: result: $ac_res" >&5
26103 echo "${ECHO_T}$ac_res" >&6; }
26105 # Is the header compilable?
26106 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h usability" >&5
26107 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
26108 cat >conftest.
$ac_ext <<_ACEOF
26111 cat confdefs.h
>>conftest.
$ac_ext
26112 cat >>conftest.
$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26114 $ac_includes_default
26115 #include <${PRI_VERSION_DIR}/include/libpri.h>
26117 rm -f conftest.
$ac_objext
26118 if { (ac_try
="$ac_compile"
26119 case "(($ac_try" in
26120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26121 *) ac_try_echo=$ac_try;;
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_compile") 2>conftest.er1
26126 grep -v '^ *+' conftest.er1 >conftest.err
26128 cat conftest.err >&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } && {
26131 test -z "$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26133 } && test -s conftest.$ac_objext; then
26134 ac_header_compiler=yes
26136 echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26139 ac_header_compiler=no
26142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26144 echo "${ECHO_T}$ac_header_compiler" >&6; }
26146 # Is the header present?
26147 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h presence" >&5
26148 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 #include <${PRI_VERSION_DIR}/include/libpri.h>
26157 if { (ac_try="$ac_cpp conftest.$ac_ext"
26158 case "(($ac_try" in
26159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26160 *) ac_try_echo
=$ac_try;;
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26165 grep -v '^ *+' conftest.er1
>conftest.err
26167 cat conftest.err
>&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } >/dev
/null
&& {
26170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26171 test ! -s conftest.err
26173 ac_header_preproc
=yes
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.
$ac_ext >&5
26178 ac_header_preproc
=no
26181 rm -f conftest.err conftest.
$ac_ext
26182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26183 echo "${ECHO_T}$ac_header_preproc" >&6; }
26185 # So? What about this header?
26186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26189 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
26191 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
26192 ac_header_preproc
=yes
26195 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&5
26196 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
26197 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
26198 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&5
26200 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26202 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26203 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
26204 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
26206 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
26208 ## ------------------------------- ##
26209 ## Report this to www.asterisk.org ##
26210 ## ------------------------------- ##
26212 ) |
sed "s/^/$as_me: WARNING: /" >&2
26215 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26216 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26217 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26220 eval "$as_ac_Header=\$ac_header_preproc"
26222 ac_res
=`eval echo '${'$as_ac_Header'}'`
26223 { echo "$as_me:$LINENO: result: $ac_res" >&5
26224 echo "${ECHO_T}$ac_res" >&6; }
26227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26228 PRI_VERSION_HEADER_FOUND
=1
26230 PRI_VERSION_HEADER_FOUND
=0
26235 CPPFLAGS
="${saved_cppflags}"
26237 if test "xlibpri.h" != "x" ; then
26238 if test "${ac_cv_header_libpri_h+set}" = set; then
26239 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26240 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26241 if test "${ac_cv_header_libpri_h+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26244 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26245 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26247 # Is the header compilable?
26248 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26249 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26250 cat >conftest.
$ac_ext <<_ACEOF
26253 cat confdefs.h
>>conftest.
$ac_ext
26254 cat >>conftest.
$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 $ac_includes_default
26257 #include <libpri.h>
26259 rm -f conftest.
$ac_objext
26260 if { (ac_try
="$ac_compile"
26261 case "(($ac_try" in
26262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26266 (eval "$ac_compile") 2>conftest.er1
26268 grep -v '^ *+' conftest.er1 >conftest.err
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } && {
26273 test -z "$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26275 } && test -s conftest.$ac_objext; then
26276 ac_header_compiler=yes
26278 echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26281 ac_header_compiler=no
26284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26286 echo "${ECHO_T}$ac_header_compiler" >&6; }
26288 # Is the header present?
26289 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26290 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26291 cat >conftest.$ac_ext <<_ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26297 #include <libpri.h>
26299 if { (ac_try="$ac_cpp conftest.$ac_ext"
26300 case "(($ac_try" in
26301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26302 *) ac_try_echo
=$ac_try;;
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26307 grep -v '^ *+' conftest.er1
>conftest.err
26309 cat conftest.err
>&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } >/dev
/null
&& {
26312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26315 ac_header_preproc
=yes
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.
$ac_ext >&5
26320 ac_header_preproc
=no
26323 rm -f conftest.err conftest.
$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26325 echo "${ECHO_T}$ac_header_preproc" >&6; }
26327 # So? What about this header?
26328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26330 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26331 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26333 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26334 ac_header_preproc
=yes
26337 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26338 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26339 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26340 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26341 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26342 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26343 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26344 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26345 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26346 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26347 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26348 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26350 ## ------------------------------- ##
26351 ## Report this to www.asterisk.org ##
26352 ## ------------------------------- ##
26354 ) |
sed "s/^/$as_me: WARNING: /" >&2
26357 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26358 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26359 if test "${ac_cv_header_libpri_h+set}" = set; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 ac_cv_header_libpri_h
=$ac_header_preproc
26364 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26365 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26368 if test $ac_cv_header_libpri_h = yes; then
26369 PRI_VERSION_HEADER_FOUND
=1
26371 PRI_VERSION_HEADER_FOUND
=0
26377 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
26378 if test -n "${PRI_VERSION_MANDATORY}" ;
26380 { echo "$as_me:$LINENO: ***" >&5
26381 echo "$as_me: ***" >&6;}
26382 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26383 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26384 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
26385 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
26386 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26387 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26391 PRI_VERSION_INCLUDE
=""
26396 cat >>confdefs.h
<<_ACEOF
26397 #define HAVE_PRI_VERSION 1
26401 elif test -n "${PRI_VERSION_MANDATORY}";
26403 { echo "$as_me:$LINENO: ***" >&5
26404 echo "$as_me: ***" >&6;}
26405 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
26406 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
26407 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26408 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26409 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26410 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26416 if test "${USE_PWLIB}" != "no"; then
26417 if test -n "${PWLIB_DIR}"; then
26418 PWLIBDIR
="${PWLIB_DIR}"
26425 ac_cpp
='$CXXCPP $CPPFLAGS'
26426 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26427 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26428 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
26430 if test "${PWLIBDIR:-unset}" != "unset" ; then
26431 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
26432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26433 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26434 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26435 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26438 ac_res
=`eval echo '${'$as_ac_Header'}'`
26439 { echo "$as_me:$LINENO: result: $ac_res" >&5
26440 echo "${ECHO_T}$ac_res" >&6; }
26442 # Is the header compilable?
26443 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26444 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26445 cat >conftest.
$ac_ext <<_ACEOF
26448 cat confdefs.h
>>conftest.
$ac_ext
26449 cat >>conftest.
$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26451 $ac_includes_default
26452 #include <${PWLIBDIR}/version.h>
26454 rm -f conftest.
$ac_objext
26455 if { (ac_try
="$ac_compile"
26456 case "(($ac_try" in
26457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26458 *) ac_try_echo=$ac_try;;
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461 (eval "$ac_compile") 2>conftest.er1
26463 grep -v '^ *+' conftest.er1 >conftest.err
26465 cat conftest.err >&5
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); } && {
26468 test -z "$ac_cxx_werror_flag" ||
26469 test ! -s conftest.err
26470 } && test -s conftest.$ac_objext; then
26471 ac_header_compiler=yes
26473 echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26476 ac_header_compiler=no
26479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26481 echo "${ECHO_T}$ac_header_compiler" >&6; }
26483 # Is the header present?
26484 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26485 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26486 cat >conftest.$ac_ext <<_ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h. */
26492 #include <${PWLIBDIR}/version.h>
26494 if { (ac_try="$ac_cpp conftest.$ac_ext"
26495 case "(($ac_try" in
26496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26497 *) ac_try_echo
=$ac_try;;
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26502 grep -v '^ *+' conftest.er1
>conftest.err
26504 cat conftest.err
>&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } >/dev
/null
&& {
26507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26508 test ! -s conftest.err
26510 ac_header_preproc
=yes
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.
$ac_ext >&5
26515 ac_header_preproc
=no
26518 rm -f conftest.err conftest.
$ac_ext
26519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26520 echo "${ECHO_T}$ac_header_preproc" >&6; }
26522 # So? What about this header?
26523 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26525 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26526 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26528 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26529 ac_header_preproc
=yes
26532 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26533 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26534 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26535 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26537 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26538 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26539 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26540 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26541 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26542 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26543 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26545 ## ------------------------------- ##
26546 ## Report this to www.asterisk.org ##
26547 ## ------------------------------- ##
26549 ) |
sed "s/^/$as_me: WARNING: /" >&2
26552 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26553 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26554 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 eval "$as_ac_Header=\$ac_header_preproc"
26559 ac_res
=`eval echo '${'$as_ac_Header'}'`
26560 { echo "$as_me:$LINENO: result: $ac_res" >&5
26561 echo "${ECHO_T}$ac_res" >&6; }
26564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26570 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26571 if test "${OPENH323DIR:-unset}" != "unset"; then
26572 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26574 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26575 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26576 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26579 ac_res
=`eval echo '${'$as_ac_Header'}'`
26580 { echo "$as_me:$LINENO: result: $ac_res" >&5
26581 echo "${ECHO_T}$ac_res" >&6; }
26583 # Is the header compilable?
26584 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26585 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26586 cat >conftest.
$ac_ext <<_ACEOF
26589 cat confdefs.h
>>conftest.
$ac_ext
26590 cat >>conftest.
$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 $ac_includes_default
26593 #include <${OPENH323DIR}/../pwlib/version.h>
26595 rm -f conftest.
$ac_objext
26596 if { (ac_try
="$ac_compile"
26597 case "(($ac_try" in
26598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_compile") 2>conftest.er1
26604 grep -v '^ *+' conftest.er1 >conftest.err
26606 cat conftest.err >&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_cxx_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest.$ac_objext; then
26612 ac_header_compiler=yes
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_header_compiler=no
26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26622 echo "${ECHO_T}$ac_header_compiler" >&6; }
26624 # Is the header present?
26625 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26626 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26627 cat >conftest.$ac_ext <<_ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 #include <${OPENH323DIR}/../pwlib/version.h>
26635 if { (ac_try="$ac_cpp conftest.$ac_ext"
26636 case "(($ac_try" in
26637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26638 *) ac_try_echo
=$ac_try;;
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26643 grep -v '^ *+' conftest.er1
>conftest.err
26645 cat conftest.err
>&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } >/dev
/null
&& {
26648 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26649 test ! -s conftest.err
26651 ac_header_preproc
=yes
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.
$ac_ext >&5
26656 ac_header_preproc
=no
26659 rm -f conftest.err conftest.
$ac_ext
26660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26661 echo "${ECHO_T}$ac_header_preproc" >&6; }
26663 # So? What about this header?
26664 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26666 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26667 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26668 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26669 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26670 ac_header_preproc
=yes
26673 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26674 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26675 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26676 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26678 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26679 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26680 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26681 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26682 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26684 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26686 ## ------------------------------- ##
26687 ## Report this to www.asterisk.org ##
26688 ## ------------------------------- ##
26690 ) |
sed "s/^/$as_me: WARNING: /" >&2
26693 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26694 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26695 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26696 echo $ECHO_N "(cached) $ECHO_C" >&6
26698 eval "$as_ac_Header=\$ac_header_preproc"
26700 ac_res
=`eval echo '${'$as_ac_Header'}'`
26701 { echo "$as_me:$LINENO: result: $ac_res" >&5
26702 echo "${ECHO_T}$ac_res" >&6; }
26705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26711 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26712 PWLIBDIR
="${OPENH323DIR}/../pwlib"
26714 as_ac_Header
=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26715 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26716 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26717 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26721 ac_res
=`eval echo '${'$as_ac_Header'}'`
26722 { echo "$as_me:$LINENO: result: $ac_res" >&5
26723 echo "${ECHO_T}$ac_res" >&6; }
26725 # Is the header compilable?
26726 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26727 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26728 cat >conftest.
$ac_ext <<_ACEOF
26731 cat confdefs.h
>>conftest.
$ac_ext
26732 cat >>conftest.
$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26734 $ac_includes_default
26735 #include <${HOME}/pwlib/include/ptlib.h>
26737 rm -f conftest.
$ac_objext
26738 if { (ac_try
="$ac_compile"
26739 case "(($ac_try" in
26740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26741 *) ac_try_echo=$ac_try;;
26743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744 (eval "$ac_compile") 2>conftest.er1
26746 grep -v '^ *+' conftest.er1 >conftest.err
26748 cat conftest.err >&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } && {
26751 test -z "$ac_cxx_werror_flag" ||
26752 test ! -s conftest.err
26753 } && test -s conftest.$ac_objext; then
26754 ac_header_compiler=yes
26756 echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26759 ac_header_compiler=no
26762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26764 echo "${ECHO_T}$ac_header_compiler" >&6; }
26766 # Is the header present?
26767 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26768 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26769 cat >conftest.$ac_ext <<_ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26775 #include <${HOME}/pwlib/include/ptlib.h>
26777 if { (ac_try="$ac_cpp conftest.$ac_ext"
26778 case "(($ac_try" in
26779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26780 *) ac_try_echo
=$ac_try;;
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26785 grep -v '^ *+' conftest.er1
>conftest.err
26787 cat conftest.err
>&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev
/null
&& {
26790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26791 test ! -s conftest.err
26793 ac_header_preproc
=yes
26795 echo "$as_me: failed program was:" >&5
26796 sed 's/^/| /' conftest.
$ac_ext >&5
26798 ac_header_preproc
=no
26801 rm -f conftest.err conftest.
$ac_ext
26802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 echo "${ECHO_T}$ac_header_preproc" >&6; }
26805 # So? What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26808 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26809 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26811 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26812 ac_header_preproc
=yes
26815 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26816 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26817 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26818 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26819 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26820 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26821 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26822 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26824 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26826 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26828 ## ------------------------------- ##
26829 ## Report this to www.asterisk.org ##
26830 ## ------------------------------- ##
26832 ) |
sed "s/^/$as_me: WARNING: /" >&2
26835 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26836 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26837 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26840 eval "$as_ac_Header=\$ac_header_preproc"
26842 ac_res
=`eval echo '${'$as_ac_Header'}'`
26843 { echo "$as_me:$LINENO: result: $ac_res" >&5
26844 echo "${ECHO_T}$ac_res" >&6; }
26847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26852 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26853 PWLIBDIR
="${HOME}/pwlib"
26855 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26856 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26857 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26858 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26862 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26864 # Is the header compilable?
26865 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26866 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26867 cat >conftest.
$ac_ext <<_ACEOF
26870 cat confdefs.h
>>conftest.
$ac_ext
26871 cat >>conftest.
$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26873 $ac_includes_default
26874 #include </usr/local/include/ptlib.h>
26876 rm -f conftest.
$ac_objext
26877 if { (ac_try
="$ac_compile"
26878 case "(($ac_try" in
26879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26880 *) ac_try_echo=$ac_try;;
26882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26883 (eval "$ac_compile") 2>conftest.er1
26885 grep -v '^ *+' conftest.er1 >conftest.err
26887 cat conftest.err >&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } && {
26890 test -z "$ac_cxx_werror_flag" ||
26891 test ! -s conftest.err
26892 } && test -s conftest.$ac_objext; then
26893 ac_header_compiler=yes
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26898 ac_header_compiler=no
26901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26903 echo "${ECHO_T}$ac_header_compiler" >&6; }
26905 # Is the header present?
26906 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26907 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26908 cat >conftest.$ac_ext <<_ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h. */
26914 #include </usr/local/include/ptlib.h>
26916 if { (ac_try="$ac_cpp conftest.$ac_ext"
26917 case "(($ac_try" in
26918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26919 *) ac_try_echo
=$ac_try;;
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26924 grep -v '^ *+' conftest.er1
>conftest.err
26926 cat conftest.err
>&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } >/dev
/null
&& {
26929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26930 test ! -s conftest.err
26932 ac_header_preproc
=yes
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.
$ac_ext >&5
26937 ac_header_preproc
=no
26940 rm -f conftest.err conftest.
$ac_ext
26941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26942 echo "${ECHO_T}$ac_header_preproc" >&6; }
26944 # So? What about this header?
26945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26947 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26948 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26949 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26950 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26951 ac_header_preproc
=yes
26954 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26955 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26956 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26957 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26959 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26961 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26963 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26965 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26967 ## ------------------------------- ##
26968 ## Report this to www.asterisk.org ##
26969 ## ------------------------------- ##
26971 ) |
sed "s/^/$as_me: WARNING: /" >&2
26974 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26975 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26976 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26979 ac_cv_header__usr_local_include_ptlib_h
=$ac_header_preproc
26981 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26982 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26985 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26990 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26991 # Extract the first word of "ptlib-config", so it can be a program name with args.
26992 set dummy ptlib-config
; ac_word
=$2
26993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26995 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 case $PTLIB_CONFIG in
27000 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27004 for as_dir
in /usr
/local
/bin
27007 test -z "$as_dir" && as_dir
=.
27008 for ac_exec_ext
in '' $ac_executable_extensions; do
27009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27010 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27021 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27022 if test -n "$PTLIB_CONFIG"; then
27023 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27024 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27026 { echo "$as_me:$LINENO: result: no" >&5
27027 echo "${ECHO_T}no" >&6; }
27031 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
27032 # Extract the first word of "ptlib-config", so it can be a program name with args.
27033 set dummy ptlib-config
; ac_word
=$2
27034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27036 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27037 echo $ECHO_N "(cached) $ECHO_C" >&6
27039 case $PTLIB_CONFIG in
27041 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27045 for as_dir
in /usr
/local
/share
/pwlib
/make
27048 test -z "$as_dir" && as_dir
=.
27049 for ac_exec_ext
in '' $ac_executable_extensions; do
27050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27051 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27062 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27063 if test -n "$PTLIB_CONFIG"; then
27064 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27065 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27067 { echo "$as_me:$LINENO: result: no" >&5
27068 echo "${ECHO_T}no" >&6; }
27073 PWLIB_INCDIR
="/usr/local/include"
27074 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
27075 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27076 if test "x$LIB64" != "x"; then
27077 PWLIB_LIBDIR
="/usr/local/lib64"
27079 PWLIB_LIBDIR
="/usr/local/lib"
27082 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
27083 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27085 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27086 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27087 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27088 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27092 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27094 # Is the header compilable?
27095 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
27096 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
27097 cat >conftest.
$ac_ext <<_ACEOF
27100 cat confdefs.h
>>conftest.
$ac_ext
27101 cat >>conftest.
$ac_ext <<_ACEOF
27102 /* end confdefs.h. */
27103 $ac_includes_default
27104 #include </usr/include/ptlib.h>
27106 rm -f conftest.
$ac_objext
27107 if { (ac_try
="$ac_compile"
27108 case "(($ac_try" in
27109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113 (eval "$ac_compile") 2>conftest.er1
27115 grep -v '^ *+' conftest.er1 >conftest.err
27117 cat conftest.err >&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } && {
27120 test -z "$ac_cxx_werror_flag" ||
27121 test ! -s conftest.err
27122 } && test -s conftest.$ac_objext; then
27123 ac_header_compiler=yes
27125 echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27128 ac_header_compiler=no
27131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27133 echo "${ECHO_T}$ac_header_compiler" >&6; }
27135 # Is the header present?
27136 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
27137 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
27138 cat >conftest.$ac_ext <<_ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h. */
27144 #include </usr/include/ptlib.h>
27146 if { (ac_try="$ac_cpp conftest.$ac_ext"
27147 case "(($ac_try" in
27148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27149 *) ac_try_echo
=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27154 grep -v '^ *+' conftest.er1
>conftest.err
27156 cat conftest.err
>&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } >/dev
/null
&& {
27159 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27160 test ! -s conftest.err
27162 ac_header_preproc
=yes
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.
$ac_ext >&5
27167 ac_header_preproc
=no
27170 rm -f conftest.err conftest.
$ac_ext
27171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27172 echo "${ECHO_T}$ac_header_preproc" >&6; }
27174 # So? What about this header?
27175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27177 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27178 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27179 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
27180 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
27181 ac_header_preproc
=yes
27184 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
27185 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
27186 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
27187 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27188 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
27189 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27191 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
27193 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
27195 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27197 ## ------------------------------- ##
27198 ## Report this to www.asterisk.org ##
27199 ## ------------------------------- ##
27201 ) |
sed "s/^/$as_me: WARNING: /" >&2
27204 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27205 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27206 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27209 ac_cv_header__usr_include_ptlib_h
=$ac_header_preproc
27211 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27212 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27215 if test $ac_cv_header__usr_include_ptlib_h = yes; then
27220 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27221 # Extract the first word of "ptlib-config", so it can be a program name with args.
27222 set dummy ptlib-config
; ac_word
=$2
27223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27225 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 case $PTLIB_CONFIG in
27230 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27234 for as_dir
in /usr
/share
/pwlib
/make
27237 test -z "$as_dir" && as_dir
=.
27238 for ac_exec_ext
in '' $ac_executable_extensions; do
27239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27240 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27251 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27252 if test -n "$PTLIB_CONFIG"; then
27253 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27254 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27256 { echo "$as_me:$LINENO: result: no" >&5
27257 echo "${ECHO_T}no" >&6; }
27261 PWLIB_INCDIR
="/usr/include"
27262 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
27263 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27264 if test "x$LIB64" != "x"; then
27265 PWLIB_LIBDIR
="/usr/lib64"
27267 PWLIB_LIBDIR
="/usr/lib"
27270 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
27271 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27278 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
27279 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
27283 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27284 if test "${PWLIBDIR:-unset}" = "unset" ; then
27285 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
27286 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
27288 echo "Cannot find ptlib-config - please install and try again"
27293 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
27294 PWLIBDIR
="/usr/share/pwlib"
27295 PWLIB_INCDIR
="/usr/include"
27296 if test "x$LIB64" != "x"; then
27297 PWLIB_LIBDIR
="/usr/lib64"
27299 PWLIB_LIBDIR
="/usr/lib"
27302 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
27303 PWLIBDIR
="/usr/local/share/pwlib"
27304 PWLIB_INCDIR
="/usr/local/include"
27305 if test "x$LIB64" != "x"; then
27306 PWLIB_LIBDIR
="/usr/local/lib64"
27308 PWLIB_LIBDIR
="/usr/local/lib"
27312 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
27313 PWLIB_INCDIR
="${PWLIBDIR}/include"
27315 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27316 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
27324 ac_cpp
='$CPP $CPPFLAGS'
27325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27331 if test "${HAS_PWLIB:-unset}" != "unset"; then
27332 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27333 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
27334 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
27335 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
27336 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
27337 let PWLIB_REQ
=1*10000+9*100+2
27339 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
27340 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27341 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
27342 { echo "$as_me:$LINENO: result: no" >&5
27343 echo "${ECHO_T}no" >&6; }
27346 { echo "$as_me:$LINENO: result: yes" >&5
27347 echo "${ECHO_T}yes" >&6; }
27352 if test "${HAS_PWLIB:-unset}" != "unset"; then
27356 linux
*) PWLIB_OSTYPE
=linux
;
27358 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
27360 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
27361 ENDLDLIBS
="-lossaudio" ;
27363 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
27364 ENDLDLIBS
="-lossaudio" ;
27366 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
27368 darwin
* ) PWLIB_OSTYPE
=Darwin
;
27370 beos
*) PWLIB_OSTYPE
=beos
;
27371 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
27373 cygwin
*) PWLIB_OSTYPE
=cygwin
;
27375 mingw
*) PWLIB_OSTYPE
=mingw
;
27376 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
27377 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
27379 * ) PWLIB_OSTYPE
="$host_os" ;
27380 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
27381 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
27386 case "$host_cpu" in
27387 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
27390 x86_64
) PWLIB_MACHTYPE
=x86_64
;
27395 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
27399 sparc
) PWLIB_MACHTYPE
=sparc
;
27402 powerpc
) PWLIB_MACHTYPE
=ppc
;
27405 ppc
) PWLIB_MACHTYPE
=ppc
;
27408 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
27413 ppc64
) PWLIB_MACHTYPE
=ppc64
;
27418 ia64
) PWLIB_MACHTYPE
=ia64
;
27422 s390x
) PWLIB_MACHTYPE
=s390x
;
27427 s390
) PWLIB_MACHTYPE
=s390
;
27430 * ) PWLIB_MACHTYPE
="$host_cpu";
27431 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
27432 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27435 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27440 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
27443 if test "${HAS_PWLIB:-unset}" != "unset"; then
27444 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27445 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27447 saved_cppflags
="${CPPFLAGS}"
27448 saved_libs
="${LIBS}"
27449 if test "${PWLIB_LIB:-unset}" != "unset"; then
27450 LIBS
="${LIBS} ${PWLIB_LIB} "
27452 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27454 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
27457 ac_cpp
='$CXXCPP $CPPFLAGS'
27458 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27459 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27460 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
27463 cat >conftest.
$ac_ext <<_ACEOF
27466 cat confdefs.h
>>conftest.
$ac_ext
27467 cat >>conftest.
$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27473 BOOL q = PTime::IsDaylightSavings();
27478 rm -f conftest.
$ac_objext conftest
$ac_exeext
27479 if { (ac_try
="$ac_link"
27480 case "(($ac_try" in
27481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_link") 2>conftest.er1
27487 grep -v '^ *+' conftest.er1 >conftest.err
27489 cat conftest.err >&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } && {
27492 test -z "$ac_cxx_werror_flag" ||
27493 test ! -s conftest.err
27494 } && test -s conftest$ac_exeext &&
27495 $as_test_x conftest$ac_exeext; then
27496 { echo "$as_me:$LINENO: result: yes" >&5
27497 echo "${ECHO_T}yes" >&6; }
27498 ac_cv_lib_PWLIB="yes"
27501 echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27504 { echo "$as_me:$LINENO: result: no" >&5
27505 echo "${ECHO_T}no" >&6; }
27506 ac_cv_lib_PWLIB="no"
27511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27512 conftest$ac_exeext conftest.$ac_ext
27515 ac_cpp='$CPP $CPPFLAGS'
27516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27521 LIBS="${saved_libs}"
27522 CPPFLAGS="${saved_cppflags}"
27524 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27525 if test "${PWLIB_LIB:-undef}" = "undef"; then
27526 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27527 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27529 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27532 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27533 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27537 cat >>confdefs.h <<\_ACEOF
27538 #define HAVE_PWLIB 1
27547 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27548 { echo "$as_me:$LINENO: ***" >&5
27549 echo "$as_me: ***" >&6;}
27550 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27551 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27552 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27553 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27554 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27555 echo "$as_me: *** including --without-pwlib" >&6;}
27559 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27560 if test -n "${OPENH323_DIR}"; then
27561 OPENH323DIR="${OPENH323_DIR}"
27567 ac_cpp='$CXXCPP $CPPFLAGS'
27568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27572 if test "${OPENH323DIR:-unset}" != "unset" ; then
27573 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" |
$as_tr_sh`
27574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27575 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27576 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27578 echo $ECHO_N "(cached) $ECHO_C" >&6
27580 ac_res=`eval echo '${'$as_ac_Header'}'`
27581 { echo "$as_me:$LINENO: result: $ac_res" >&5
27582 echo "${ECHO_T}$ac_res" >&6; }
27584 # Is the header compilable?
27585 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27586 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27587 cat >conftest.$ac_ext <<_ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h. */
27593 $ac_includes_default
27594 #include <${OPENH323DIR}/version.h>
27596 rm -f conftest.$ac_objext
27597 if { (ac_try="$ac_compile"
27598 case "(($ac_try" in
27599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27600 *) ac_try_echo
=$ac_try;;
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_compile") 2>conftest.er1
27605 grep -v '^ *+' conftest.er1
>conftest.err
27607 cat conftest.err
>&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } && {
27610 test -z "$ac_cxx_werror_flag" ||
27611 test ! -s conftest.err
27612 } && test -s conftest.
$ac_objext; then
27613 ac_header_compiler
=yes
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.
$ac_ext >&5
27618 ac_header_compiler
=no
27621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27623 echo "${ECHO_T}$ac_header_compiler" >&6; }
27625 # Is the header present?
27626 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27627 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27628 cat >conftest.
$ac_ext <<_ACEOF
27631 cat confdefs.h
>>conftest.
$ac_ext
27632 cat >>conftest.
$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634 #include <${OPENH323DIR}/version.h>
27636 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27637 case "(($ac_try" in
27638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27644 grep -v '^ *+' conftest.er1 >conftest.err
27646 cat conftest.err >&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); } >/dev/null && {
27649 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27650 test ! -s conftest.err
27652 ac_header_preproc=yes
27654 echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27657 ac_header_preproc=no
27660 rm -f conftest.err conftest.$ac_ext
27661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27662 echo "${ECHO_T}$ac_header_preproc" >&6; }
27664 # So? What about this header?
27665 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27667 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27668 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27669 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27670 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27671 ac_header_preproc=yes
27674 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27675 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27677 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27679 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27680 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27681 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27683 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27684 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27685 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27687 ## ------------------------------- ##
27688 ## Report this to www.asterisk.org ##
27689 ## ------------------------------- ##
27691 ) | sed "s/^/$as_me: WARNING: /" >&2
27694 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27695 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27697 echo $ECHO_N "(cached) $ECHO_C" >&6
27699 eval "$as_ac_Header=\$ac_header_preproc"
27701 ac_res=`eval echo '${'$as_ac_Header'}'`
27702 { echo "$as_me:$LINENO: result: $ac_res" >&5
27703 echo "${ECHO_T}$ac_res" >&6; }
27706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27712 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27713 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
27714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27715 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27716 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 ac_res=`eval echo '${'$as_ac_Header'}'`
27721 { echo "$as_me:$LINENO: result: $ac_res" >&5
27722 echo "${ECHO_T}$ac_res" >&6; }
27724 # Is the header compilable?
27725 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27726 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27727 cat >conftest.$ac_ext <<_ACEOF
27730 cat confdefs.h >>conftest.$ac_ext
27731 cat >>conftest.$ac_ext <<_ACEOF
27732 /* end confdefs.h. */
27733 $ac_includes_default
27734 #include <${PWLIBDIR}/../openh323/version.h>
27736 rm -f conftest.$ac_objext
27737 if { (ac_try="$ac_compile"
27738 case "(($ac_try" in
27739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27740 *) ac_try_echo
=$ac_try;;
27742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_compile") 2>conftest.er1
27745 grep -v '^ *+' conftest.er1
>conftest.err
27747 cat conftest.err
>&5
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } && {
27750 test -z "$ac_cxx_werror_flag" ||
27751 test ! -s conftest.err
27752 } && test -s conftest.
$ac_objext; then
27753 ac_header_compiler
=yes
27755 echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.
$ac_ext >&5
27758 ac_header_compiler
=no
27761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27763 echo "${ECHO_T}$ac_header_compiler" >&6; }
27765 # Is the header present?
27766 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27767 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27768 cat >conftest.
$ac_ext <<_ACEOF
27771 cat confdefs.h
>>conftest.
$ac_ext
27772 cat >>conftest.
$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 #include <${PWLIBDIR}/../openh323/version.h>
27776 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27777 case "(($ac_try" in
27778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27784 grep -v '^ *+' conftest.er1 >conftest.err
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } >/dev/null && {
27789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27790 test ! -s conftest.err
27792 ac_header_preproc=yes
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_header_preproc=no
27800 rm -f conftest.err conftest.$ac_ext
27801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27802 echo "${ECHO_T}$ac_header_preproc" >&6; }
27804 # So? What about this header?
27805 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27807 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27808 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27809 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27810 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27811 ac_header_preproc=yes
27814 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27815 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27816 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27817 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27819 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27821 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27822 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27823 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27824 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27825 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27827 ## ------------------------------- ##
27828 ## Report this to www.asterisk.org ##
27829 ## ------------------------------- ##
27831 ) | sed "s/^/$as_me: WARNING: /" >&2
27834 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27835 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27839 eval "$as_ac_Header=\$ac_header_preproc"
27841 ac_res=`eval echo '${'$as_ac_Header'}'`
27842 { echo "$as_me:$LINENO: result: $ac_res" >&5
27843 echo "${ECHO_T}$ac_res" >&6; }
27846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27847 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
27851 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27852 OPENH323DIR="${PWLIBDIR}/../openh323"
27853 saved_cppflags="${CPPFLAGS}"
27854 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27855 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
27856 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27857 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27859 echo $ECHO_N "(cached) $ECHO_C" >&6
27861 cat >conftest.$ac_ext <<_ACEOF
27864 cat confdefs.h >>conftest.$ac_ext
27865 cat >>conftest.$ac_ext <<_ACEOF
27866 /* end confdefs.h. */
27869 #include <${OPENH323DIR}/include/h323.h>
27871 rm -f conftest.$ac_objext
27872 if { (ac_try="$ac_compile"
27873 case "(($ac_try" in
27874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27875 *) ac_try_echo
=$ac_try;;
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_compile") 2>conftest.er1
27880 grep -v '^ *+' conftest.er1
>conftest.err
27882 cat conftest.err
>&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } && {
27885 test -z "$ac_cxx_werror_flag" ||
27886 test ! -s conftest.err
27887 } && test -s conftest.
$ac_objext; then
27888 eval "$as_ac_Header=yes"
27890 echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.
$ac_ext >&5
27893 eval "$as_ac_Header=no"
27896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27898 ac_res
=`eval echo '${'$as_ac_Header'}'`
27899 { echo "$as_me:$LINENO: result: $ac_res" >&5
27900 echo "${ECHO_T}$ac_res" >&6; }
27901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27904 OPENH323_INCDIR
="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR
="${PWLIB_LIBDIR}"
27908 CPPFLAGS
="${saved_cppflags}"
27910 saved_cppflags
="${CPPFLAGS}"
27911 CPPFLAGS
="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27912 as_ac_Header
=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
27913 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27914 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27915 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27916 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 ac_res
=`eval echo '${'$as_ac_Header'}'`
27920 { echo "$as_me:$LINENO: result: $ac_res" >&5
27921 echo "${ECHO_T}$ac_res" >&6; }
27923 # Is the header compilable?
27924 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27925 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27926 cat >conftest.
$ac_ext <<_ACEOF
27929 cat confdefs.h
>>conftest.
$ac_ext
27930 cat >>conftest.
$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27932 $ac_includes_default
27933 #include <${HOME}/openh323/include/h323.h>
27935 rm -f conftest.
$ac_objext
27936 if { (ac_try
="$ac_compile"
27937 case "(($ac_try" in
27938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
27944 grep -v '^ *+' conftest.er1 >conftest.err
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } && {
27949 test -z "$ac_cxx_werror_flag" ||
27950 test ! -s conftest.err
27951 } && test -s conftest.$ac_objext; then
27952 ac_header_compiler=yes
27954 echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957 ac_header_compiler=no
27960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27962 echo "${ECHO_T}$ac_header_compiler" >&6; }
27964 # Is the header present?
27965 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27966 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27967 cat >conftest.$ac_ext <<_ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27973 #include <${HOME}/openh323/include/h323.h>
27975 if { (ac_try="$ac_cpp conftest.$ac_ext"
27976 case "(($ac_try" in
27977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27978 *) ac_try_echo
=$ac_try;;
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27983 grep -v '^ *+' conftest.er1
>conftest.err
27985 cat conftest.err
>&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } >/dev
/null
&& {
27988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27989 test ! -s conftest.err
27991 ac_header_preproc
=yes
27993 echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.
$ac_ext >&5
27996 ac_header_preproc
=no
27999 rm -f conftest.err conftest.
$ac_ext
28000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28001 echo "${ECHO_T}$ac_header_preproc" >&6; }
28003 # So? What about this header?
28004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28006 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28007 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28008 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
28009 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
28010 ac_header_preproc
=yes
28013 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
28014 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
28015 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
28016 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
28017 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
28018 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
28019 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28020 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28021 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
28022 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
28023 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
28024 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
28026 ## ------------------------------- ##
28027 ## Report this to www.asterisk.org ##
28028 ## ------------------------------- ##
28030 ) |
sed "s/^/$as_me: WARNING: /" >&2
28033 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28034 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28035 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 eval "$as_ac_Header=\$ac_header_preproc"
28040 ac_res
=`eval echo '${'$as_ac_Header'}'`
28041 { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28050 CPPFLAGS
="${saved_cppflags}"
28051 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28052 OPENH323DIR
="${HOME}/openh323"
28054 saved_cppflags
="${CPPFLAGS}"
28055 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
28056 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28057 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28058 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28059 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28062 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28063 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28065 # Is the header compilable?
28066 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
28067 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
28068 cat >conftest.
$ac_ext <<_ACEOF
28071 cat confdefs.h
>>conftest.
$ac_ext
28072 cat >>conftest.
$ac_ext <<_ACEOF
28073 /* end confdefs.h. */
28074 $ac_includes_default
28075 #include </usr/local/include/openh323/h323.h>
28077 rm -f conftest.
$ac_objext
28078 if { (ac_try
="$ac_compile"
28079 case "(($ac_try" in
28080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_compile") 2>conftest.er1
28086 grep -v '^ *+' conftest.er1 >conftest.err
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } && {
28091 test -z "$ac_cxx_werror_flag" ||
28092 test ! -s conftest.err
28093 } && test -s conftest.$ac_objext; then
28094 ac_header_compiler=yes
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28099 ac_header_compiler=no
28102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28104 echo "${ECHO_T}$ac_header_compiler" >&6; }
28106 # Is the header present?
28107 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
28108 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
28109 cat >conftest.$ac_ext <<_ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28115 #include </usr/local/include/openh323/h323.h>
28117 if { (ac_try="$ac_cpp conftest.$ac_ext"
28118 case "(($ac_try" in
28119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28120 *) ac_try_echo
=$ac_try;;
28122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28125 grep -v '^ *+' conftest.er1
>conftest.err
28127 cat conftest.err
>&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } >/dev
/null
&& {
28130 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28131 test ! -s conftest.err
28133 ac_header_preproc
=yes
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.
$ac_ext >&5
28138 ac_header_preproc
=no
28141 rm -f conftest.err conftest.
$ac_ext
28142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28143 echo "${ECHO_T}$ac_header_preproc" >&6; }
28145 # So? What about this header?
28146 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28148 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28149 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28150 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
28151 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
28152 ac_header_preproc
=yes
28155 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
28156 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
28157 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
28158 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
28159 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
28160 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
28161 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28162 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28163 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
28164 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
28165 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
28166 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
28168 ## ------------------------------- ##
28169 ## Report this to www.asterisk.org ##
28170 ## ------------------------------- ##
28172 ) |
sed "s/^/$as_me: WARNING: /" >&2
28175 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28176 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28177 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28178 echo $ECHO_N "(cached) $ECHO_C" >&6
28180 ac_cv_header__usr_local_include_openh323_h323_h
=$ac_header_preproc
28182 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28183 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28186 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
28191 CPPFLAGS
="${saved_cppflags}"
28192 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28193 OPENH323DIR
="/usr/local/share/openh323"
28194 OPENH323_INCDIR
="/usr/local/include/openh323"
28195 if test "x$LIB64" != "x"; then
28196 OPENH323_LIBDIR
="/usr/local/lib64"
28198 OPENH323_LIBDIR
="/usr/local/lib"
28201 saved_cppflags
="${CPPFLAGS}"
28202 CPPFLAGS
="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
28203 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
28204 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
28205 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
28206 echo $ECHO_N "(cached) $ECHO_C" >&6
28208 cat >conftest.
$ac_ext <<_ACEOF
28211 cat confdefs.h
>>conftest.
$ac_ext
28212 cat >>conftest.
$ac_ext <<_ACEOF
28213 /* end confdefs.h. */
28216 #include </usr/include/openh323/h323.h>
28218 rm -f conftest.
$ac_objext
28219 if { (ac_try
="$ac_compile"
28220 case "(($ac_try" in
28221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_compile") 2>conftest.er1
28227 grep -v '^ *+' conftest.er1 >conftest.err
28229 cat conftest.err >&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); } && {
28232 test -z "$ac_cxx_werror_flag" ||
28233 test ! -s conftest.err
28234 } && test -s conftest.$ac_objext; then
28235 ac_cv_header__usr_include_openh323_h323_h=yes
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28240 ac_cv_header__usr_include_openh323_h323_h=no
28243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28245 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
28246 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
28247 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
28252 CPPFLAGS="${saved_cppflags}"
28253 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28254 OPENH323DIR="/usr/share/openh323"
28255 OPENH323_INCDIR="/usr/include/openh323"
28256 if test "x$LIB64" != "x"; then
28257 OPENH323_LIBDIR="/usr/lib64"
28259 OPENH323_LIBDIR="/usr/lib"
28267 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28268 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
28269 OPENH323_INCDIR="${OPENH323DIR}/include"
28271 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
28272 OPENH323_LIBDIR="${OPENH323DIR}/lib"
28275 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
28276 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
28277 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
28284 ac_cpp='$CPP $CPPFLAGS'
28285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28291 if test "${HAS_OPENH323:-unset}" != "unset"; then
28292 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
28293 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
28294 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
28295 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
28296 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
28297 let OPENH323_REQ=1*10000+17*100+3
28299 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
28300 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28301 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
28302 { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28306 { echo "$as_me:$LINENO: result: yes" >&5
28307 echo "${ECHO_T}yes" >&6; }
28312 if test "${HAS_OPENH323:-unset}" != "unset"; then
28313 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
28314 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
28316 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
28317 for pfx in $prefixes; do
28318 files=`ls -l ${OPENH323_LIBDIR}/lib
${pfx}*.so
* 2>/dev
/null
`
28320 if test -n "$files"; then
28321 for f in $files; do
28322 if test -f $f -a ! -L $f; then
28323 libfile=`basename $f`
28328 if test -n "$libfile"; then
28329 OPENH323_PREFIX=$pfx
28333 if test "${libfile:-unset}" != "unset"; then
28334 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
28336 case "${OPENH323_SUFFIX}" in
28338 OPENH323_BUILD="notrace";;
28340 OPENH323_BUILD="opt";;
28342 OPENH323_BUILD="debug";;
28344 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
28345 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
28346 if test "x$notrace" = "x"; then
28349 if test "$notrace" -ne 0; then
28350 OPENH323_BUILD="notrace"
28352 OPENH323_BUILD="opt"
28354 OPENH323_LIB="-l${OPENH323_PREFIX}"
28356 OPENH323_BUILD="notrace"
28360 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
28361 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
28367 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
28369 if test "${HAS_OPENH323:-unset}" != "unset"; then
28370 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
28371 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
28373 saved_cppflags="${CPPFLAGS}"
28374 saved_libs="${LIBS}"
28375 if test "${OPENH323_LIB:-unset}" != "unset"; then
28376 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
28378 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
28380 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
28383 ac_cpp='$CXXCPP $CPPFLAGS'
28384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28389 cat >conftest.$ac_ext <<_ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h. */
28397 #include "h323ep.h"
28401 H323EndPoint ep = H323EndPoint();
28406 rm -f conftest.$ac_objext conftest$ac_exeext
28407 if { (ac_try="$ac_link"
28408 case "(($ac_try" in
28409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28410 *) ac_try_echo
=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_link") 2>conftest.er1
28415 grep -v '^ *+' conftest.er1
>conftest.err
28417 cat conftest.err
>&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && {
28420 test -z "$ac_cxx_werror_flag" ||
28421 test ! -s conftest.err
28422 } && test -s conftest
$ac_exeext &&
28423 $as_test_x conftest
$ac_exeext; then
28424 { echo "$as_me:$LINENO: result: yes" >&5
28425 echo "${ECHO_T}yes" >&6; }
28426 ac_cv_lib_OPENH323
="yes"
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.
$ac_ext >&5
28432 { echo "$as_me:$LINENO: result: no" >&5
28433 echo "${ECHO_T}no" >&6; }
28434 ac_cv_lib_OPENH323
="no"
28439 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28440 conftest
$ac_exeext conftest.
$ac_ext
28443 ac_cpp
='$CPP $CPPFLAGS'
28444 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28445 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28446 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28449 LIBS
="${saved_libs}"
28450 CPPFLAGS
="${saved_cppflags}"
28452 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28453 if test "${OPENH323_LIB:-undef}" = "undef"; then
28454 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28455 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28457 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
28460 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28461 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
28465 cat >>confdefs.h
<<\_ACEOF
28466 #define HAVE_OPENH323 1
28473 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28474 { echo "$as_me:$LINENO: ***" >&5
28475 echo "$as_me: ***" >&6;}
28476 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28477 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28478 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28479 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28480 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28481 echo "$as_me: *** including --without-h323" >&6;}
28486 if test "${USE_RADIUS}" != "no"; then
28488 if test "x${RADIUS_DIR}" != "x"; then
28489 if test -d ${RADIUS_DIR}/lib
; then
28490 pbxlibdir
="-L${RADIUS_DIR}/lib"
28492 pbxlibdir
="-L${RADIUS_DIR}"
28495 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28496 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28497 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
28500 ac_check_lib_save_LIBS
=$LIBS
28501 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
28502 cat >conftest.
$ac_ext <<_ACEOF
28505 cat confdefs.h
>>conftest.
$ac_ext
28506 cat >>conftest.
$ac_ext <<_ACEOF
28507 /* end confdefs.h. */
28509 /* Override any GCC internal prototype to avoid an error.
28510 Use char because int might match the return type of a GCC
28511 builtin and then its argument prototype would still apply. */
28515 char rc_read_config ();
28519 return rc_read_config ();
28524 rm -f conftest.
$ac_objext conftest
$ac_exeext
28525 if { (ac_try
="$ac_link"
28526 case "(($ac_try" in
28527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_link") 2>conftest.er1
28533 grep -v '^ *+' conftest.er1 >conftest.err
28535 cat conftest.err >&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } && {
28538 test -z "$ac_c_werror_flag" ||
28539 test ! -s conftest.err
28540 } && test -s conftest$ac_exeext &&
28541 $as_test_x conftest$ac_exeext; then
28542 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28544 echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28547 ac_cv_lib_radiusclient_ng_rc_read_config=no
28550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28551 conftest$ac_exeext conftest.$ac_ext
28552 LIBS=$ac_check_lib_save_LIBS
28554 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28555 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28556 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28557 AST_RADIUS_FOUND=yes
28559 AST_RADIUS_FOUND=no
28563 if test "${AST_RADIUS_FOUND}" = "yes"; then
28564 RADIUS_LIB="-lradiusclient-ng "
28565 RADIUS_HEADER_FOUND="1"
28566 if test "x${RADIUS_DIR}" != "x"; then
28567 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28568 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28569 saved_cppflags="${CPPFLAGS}"
28570 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28571 if test "xradiusclient-ng.h" != "x" ; then
28572 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
28573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28574 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28575 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 ac_res=`eval echo '${'$as_ac_Header'}'`
28580 { echo "$as_me:$LINENO: result: $ac_res" >&5
28581 echo "${ECHO_T}$ac_res" >&6; }
28583 # Is the header compilable?
28584 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28585 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28586 cat >conftest.$ac_ext <<_ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28592 $ac_includes_default
28593 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
28597 case "(($ac_try" in
28598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28599 *) ac_try_echo
=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_compile") 2>conftest.er1
28604 grep -v '^ *+' conftest.er1
>conftest.err
28606 cat conftest.err
>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } && {
28609 test -z "$ac_c_werror_flag" ||
28610 test ! -s conftest.err
28611 } && test -s conftest.
$ac_objext; then
28612 ac_header_compiler
=yes
28614 echo "$as_me: failed program was:" >&5
28615 sed 's/^/| /' conftest.
$ac_ext >&5
28617 ac_header_compiler
=no
28620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28622 echo "${ECHO_T}$ac_header_compiler" >&6; }
28624 # Is the header present?
28625 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28626 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28627 cat >conftest.
$ac_ext <<_ACEOF
28630 cat confdefs.h
>>conftest.
$ac_ext
28631 cat >>conftest.
$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28633 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28635 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28636 case "(($ac_try" in
28637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28638 *) ac_try_echo=$ac_try;;
28640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28643 grep -v '^ *+' conftest.er1 >conftest.err
28645 cat conftest.err >&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } >/dev/null && {
28648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28649 test ! -s conftest.err
28651 ac_header_preproc=yes
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28656 ac_header_preproc=no
28659 rm -f conftest.err conftest.$ac_ext
28660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28661 echo "${ECHO_T}$ac_header_preproc" >&6; }
28663 # So? What about this header?
28664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28666 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28667 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28669 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28670 ac_header_preproc=yes
28673 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28674 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28675 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28676 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28677 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28678 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28679 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28680 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28682 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28684 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28686 ## ------------------------------- ##
28687 ## Report this to www.asterisk.org ##
28688 ## ------------------------------- ##
28690 ) | sed "s/^/$as_me: WARNING: /" >&2
28693 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28694 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28698 eval "$as_ac_Header=\$ac_header_preproc"
28700 ac_res=`eval echo '${'$as_ac_Header'}'`
28701 { echo "$as_me:$LINENO: result: $ac_res" >&5
28702 echo "${ECHO_T}$ac_res" >&6; }
28705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28706 RADIUS_HEADER_FOUND=1
28708 RADIUS_HEADER_FOUND=0
28713 CPPFLAGS="${saved_cppflags}"
28715 if test "xradiusclient-ng.h" != "x" ; then
28716 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28717 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28718 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28719 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28722 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28723 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28725 # Is the header compilable?
28726 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28727 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28728 cat >conftest.$ac_ext <<_ACEOF
28731 cat confdefs.h >>conftest.$ac_ext
28732 cat >>conftest.$ac_ext <<_ACEOF
28733 /* end confdefs.h. */
28734 $ac_includes_default
28735 #include <radiusclient-ng.h>
28737 rm -f conftest.$ac_objext
28738 if { (ac_try="$ac_compile"
28739 case "(($ac_try" in
28740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28741 *) ac_try_echo
=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_compile") 2>conftest.er1
28746 grep -v '^ *+' conftest.er1
>conftest.err
28748 cat conftest.err
>&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } && {
28751 test -z "$ac_c_werror_flag" ||
28752 test ! -s conftest.err
28753 } && test -s conftest.
$ac_objext; then
28754 ac_header_compiler
=yes
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.
$ac_ext >&5
28759 ac_header_compiler
=no
28762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28764 echo "${ECHO_T}$ac_header_compiler" >&6; }
28766 # Is the header present?
28767 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28768 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28769 cat >conftest.
$ac_ext <<_ACEOF
28772 cat confdefs.h
>>conftest.
$ac_ext
28773 cat >>conftest.
$ac_ext <<_ACEOF
28774 /* end confdefs.h. */
28775 #include <radiusclient-ng.h>
28777 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28778 case "(($ac_try" in
28779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28780 *) ac_try_echo=$ac_try;;
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28785 grep -v '^ *+' conftest.er1 >conftest.err
28787 cat conftest.err >&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } >/dev/null && {
28790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28791 test ! -s conftest.err
28793 ac_header_preproc=yes
28795 echo "$as_me: failed program was:" >&5
28796 sed 's/^/| /' conftest.$ac_ext >&5
28798 ac_header_preproc=no
28801 rm -f conftest.err conftest.$ac_ext
28802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28803 echo "${ECHO_T}$ac_header_preproc" >&6; }
28805 # So? What about this header?
28806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28808 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28809 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28811 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28812 ac_header_preproc=yes
28815 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
28816 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
28817 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
28818 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
28820 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
28821 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28822 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28823 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28824 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28826 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28828 ## ------------------------------- ##
28829 ## Report this to www.asterisk.org ##
28830 ## ------------------------------- ##
28832 ) | sed "s/^/$as_me: WARNING: /" >&2
28835 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28836 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28837 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28840 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28842 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28843 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28846 if test $ac_cv_header_radiusclient_ng_h = yes; then
28847 RADIUS_HEADER_FOUND=1
28849 RADIUS_HEADER_FOUND=0
28855 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
28856 if test -n "${RADIUS_MANDATORY}" ;
28858 { echo "$as_me:$LINENO: ***" >&5
28859 echo "$as_me: ***" >&6;}
28860 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
28861 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
28862 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
28863 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
28864 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28865 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28874 cat >>confdefs.h <<_ACEOF
28875 #define HAVE_RADIUS 1
28879 elif test -n "${RADIUS_MANDATORY}";
28881 { echo "$as_me:$LINENO: ***" >&5
28882 echo "$as_me: ***" >&6;}
28883 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
28884 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
28885 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28886 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28888 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28895 if test "${USE_SPEEX}" != "no"; then
28897 if test "x${SPEEX_DIR}" != "x"; then
28898 if test -d ${SPEEX_DIR}/lib; then
28899 pbxlibdir="-L${SPEEX_DIR}/lib"
28901 pbxlibdir="-L${SPEEX_DIR}"
28904 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
28905 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
28906 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28909 ac_check_lib_save_LIBS=$LIBS
28910 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28911 cat >conftest.$ac_ext <<_ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28918 /* Override any GCC internal prototype to avoid an error.
28919 Use char because int might match the return type of a GCC
28920 builtin and then its argument prototype would still apply. */
28924 char speex_encode ();
28928 return speex_encode ();
28933 rm -f conftest.$ac_objext conftest$ac_exeext
28934 if { (ac_try="$ac_link"
28935 case "(($ac_try" in
28936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28937 *) ac_try_echo
=$ac_try;;
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_link") 2>conftest.er1
28942 grep -v '^ *+' conftest.er1
>conftest.err
28944 cat conftest.err
>&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } && {
28947 test -z "$ac_c_werror_flag" ||
28948 test ! -s conftest.err
28949 } && test -s conftest
$ac_exeext &&
28950 $as_test_x conftest
$ac_exeext; then
28951 ac_cv_lib_speex_speex_encode
=yes
28953 echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.
$ac_ext >&5
28956 ac_cv_lib_speex_speex_encode
=no
28959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28960 conftest
$ac_exeext conftest.
$ac_ext
28961 LIBS
=$ac_check_lib_save_LIBS
28963 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
28964 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28965 if test $ac_cv_lib_speex_speex_encode = yes; then
28966 AST_SPEEX_FOUND
=yes
28972 if test "${AST_SPEEX_FOUND}" = "yes"; then
28973 SPEEX_LIB
="-lspeex -lm"
28974 SPEEX_HEADER_FOUND
="1"
28975 if test "x${SPEEX_DIR}" != "x"; then
28976 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
28977 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
28978 saved_cppflags
="${CPPFLAGS}"
28979 CPPFLAGS
="${CPPFLAGS} -I${SPEEX_DIR}/include"
28980 if test "xspeex/speex.h" != "x" ; then
28981 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
28982 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28983 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28984 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28985 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 ac_res
=`eval echo '${'$as_ac_Header'}'`
28989 { echo "$as_me:$LINENO: result: $ac_res" >&5
28990 echo "${ECHO_T}$ac_res" >&6; }
28992 # Is the header compilable?
28993 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
28994 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28995 cat >conftest.
$ac_ext <<_ACEOF
28998 cat confdefs.h
>>conftest.
$ac_ext
28999 cat >>conftest.
$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 $ac_includes_default
29002 #include <${SPEEX_DIR}/include/speex/speex.h>
29004 rm -f conftest.
$ac_objext
29005 if { (ac_try
="$ac_compile"
29006 case "(($ac_try" in
29007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_compile") 2>conftest.er1
29013 grep -v '^ *+' conftest.er1 >conftest.err
29015 cat conftest.err >&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } && {
29018 test -z "$ac_c_werror_flag" ||
29019 test ! -s conftest.err
29020 } && test -s conftest.$ac_objext; then
29021 ac_header_compiler=yes
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_header_compiler=no
29029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29031 echo "${ECHO_T}$ac_header_compiler" >&6; }
29033 # Is the header present?
29034 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
29035 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29036 cat >conftest.$ac_ext <<_ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042 #include <${SPEEX_DIR}/include/speex/speex.h>
29044 if { (ac_try="$ac_cpp conftest.$ac_ext"
29045 case "(($ac_try" in
29046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29047 *) ac_try_echo
=$ac_try;;
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29052 grep -v '^ *+' conftest.er1
>conftest.err
29054 cat conftest.err
>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } >/dev
/null
&& {
29057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29058 test ! -s conftest.err
29060 ac_header_preproc
=yes
29062 echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.
$ac_ext >&5
29065 ac_header_preproc
=no
29068 rm -f conftest.err conftest.
$ac_ext
29069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29070 echo "${ECHO_T}$ac_header_preproc" >&6; }
29072 # So? What about this header?
29073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29075 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29076 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29077 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29078 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29079 ac_header_preproc
=yes
29082 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29083 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29084 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29085 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29086 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29087 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29088 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29089 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29090 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29091 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29092 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29093 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29095 ## ------------------------------- ##
29096 ## Report this to www.asterisk.org ##
29097 ## ------------------------------- ##
29099 ) |
sed "s/^/$as_me: WARNING: /" >&2
29102 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29103 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29104 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 eval "$as_ac_Header=\$ac_header_preproc"
29109 ac_res
=`eval echo '${'$as_ac_Header'}'`
29110 { echo "$as_me:$LINENO: result: $ac_res" >&5
29111 echo "${ECHO_T}$ac_res" >&6; }
29114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29115 SPEEX_HEADER_FOUND
=1
29117 SPEEX_HEADER_FOUND
=0
29122 CPPFLAGS
="${saved_cppflags}"
29124 if test "xspeex/speex.h" != "x" ; then
29125 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29126 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29127 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29128 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29129 echo $ECHO_N "(cached) $ECHO_C" >&6
29131 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29132 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29134 # Is the header compilable?
29135 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29136 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29137 cat >conftest.
$ac_ext <<_ACEOF
29140 cat confdefs.h
>>conftest.
$ac_ext
29141 cat >>conftest.
$ac_ext <<_ACEOF
29142 /* end confdefs.h. */
29143 $ac_includes_default
29144 #include <speex/speex.h>
29146 rm -f conftest.
$ac_objext
29147 if { (ac_try
="$ac_compile"
29148 case "(($ac_try" in
29149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_compile") 2>conftest.er1
29155 grep -v '^ *+' conftest.er1 >conftest.err
29157 cat conftest.err >&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } && {
29160 test -z "$ac_c_werror_flag" ||
29161 test ! -s conftest.err
29162 } && test -s conftest.$ac_objext; then
29163 ac_header_compiler=yes
29165 echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29168 ac_header_compiler=no
29171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29173 echo "${ECHO_T}$ac_header_compiler" >&6; }
29175 # Is the header present?
29176 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29177 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29178 cat >conftest.$ac_ext <<_ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29184 #include <speex/speex.h>
29186 if { (ac_try="$ac_cpp conftest.$ac_ext"
29187 case "(($ac_try" in
29188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29189 *) ac_try_echo
=$ac_try;;
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29194 grep -v '^ *+' conftest.er1
>conftest.err
29196 cat conftest.err
>&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } >/dev
/null
&& {
29199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29200 test ! -s conftest.err
29202 ac_header_preproc
=yes
29204 echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.
$ac_ext >&5
29207 ac_header_preproc
=no
29210 rm -f conftest.err conftest.
$ac_ext
29211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29212 echo "${ECHO_T}$ac_header_preproc" >&6; }
29214 # So? What about this header?
29215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29217 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29218 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29220 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29221 ac_header_preproc
=yes
29224 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29225 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29226 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29227 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29228 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29229 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29230 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29231 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29233 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29235 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29237 ## ------------------------------- ##
29238 ## Report this to www.asterisk.org ##
29239 ## ------------------------------- ##
29241 ) |
sed "s/^/$as_me: WARNING: /" >&2
29244 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29245 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29246 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29249 ac_cv_header_speex_speex_h
=$ac_header_preproc
29251 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29252 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29255 if test $ac_cv_header_speex_speex_h = yes; then
29256 SPEEX_HEADER_FOUND
=1
29258 SPEEX_HEADER_FOUND
=0
29264 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
29265 if test -n "${SPEEX_MANDATORY}" ;
29267 { echo "$as_me:$LINENO: ***" >&5
29268 echo "$as_me: ***" >&6;}
29269 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29270 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29271 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
29272 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
29273 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29274 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29283 cat >>confdefs.h
<<_ACEOF
29284 #define HAVE_SPEEX 1
29288 elif test -n "${SPEEX_MANDATORY}";
29290 { echo "$as_me:$LINENO: ***" >&5
29291 echo "$as_me: ***" >&6;}
29292 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
29293 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
29294 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29295 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29296 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29297 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29304 if test "${USE_SPEEXDSP}" != "no"; then
29306 if test "x${SPEEXDSP_DIR}" != "x"; then
29307 if test -d ${SPEEXDSP_DIR}/lib
; then
29308 pbxlibdir
="-L${SPEEXDSP_DIR}/lib"
29310 pbxlibdir
="-L${SPEEXDSP_DIR}"
29313 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
29314 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
29315 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
29316 echo $ECHO_N "(cached) $ECHO_C" >&6
29318 ac_check_lib_save_LIBS
=$LIBS
29319 LIBS
="-lspeexdsp ${pbxlibdir} -lm $LIBS"
29320 cat >conftest.
$ac_ext <<_ACEOF
29323 cat confdefs.h
>>conftest.
$ac_ext
29324 cat >>conftest.
$ac_ext <<_ACEOF
29325 /* end confdefs.h. */
29327 /* Override any GCC internal prototype to avoid an error.
29328 Use char because int might match the return type of a GCC
29329 builtin and then its argument prototype would still apply. */
29333 char speex_preprocess_ctl ();
29337 return speex_preprocess_ctl ();
29342 rm -f conftest.
$ac_objext conftest
$ac_exeext
29343 if { (ac_try
="$ac_link"
29344 case "(($ac_try" in
29345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_link") 2>conftest.er1
29351 grep -v '^ *+' conftest.er1 >conftest.err
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } && {
29356 test -z "$ac_c_werror_flag" ||
29357 test ! -s conftest.err
29358 } && test -s conftest$ac_exeext &&
29359 $as_test_x conftest$ac_exeext; then
29360 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
29362 echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29365 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
29368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29369 conftest$ac_exeext conftest.$ac_ext
29370 LIBS=$ac_check_lib_save_LIBS
29372 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
29373 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
29374 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
29375 AST_SPEEXDSP_FOUND=yes
29377 AST_SPEEXDSP_FOUND=no
29381 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
29382 SPEEXDSP_LIB="-lspeexdsp -lm"
29383 SPEEXDSP_HEADER_FOUND="1"
29384 if test "x${SPEEXDSP_DIR}" != "x"; then
29385 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
29386 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
29387 saved_cppflags="${CPPFLAGS}"
29388 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
29389 if test "xspeex/speex.h" != "x" ; then
29390 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" |
$as_tr_sh`
29391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29392 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29393 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395 echo $ECHO_N "(cached) $ECHO_C" >&6
29397 ac_res=`eval echo '${'$as_ac_Header'}'`
29398 { echo "$as_me:$LINENO: result: $ac_res" >&5
29399 echo "${ECHO_T}$ac_res" >&6; }
29401 # Is the header compilable?
29402 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
29403 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29404 cat >conftest.$ac_ext <<_ACEOF
29407 cat confdefs.h >>conftest.$ac_ext
29408 cat >>conftest.$ac_ext <<_ACEOF
29409 /* end confdefs.h. */
29410 $ac_includes_default
29411 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29413 rm -f conftest.$ac_objext
29414 if { (ac_try="$ac_compile"
29415 case "(($ac_try" in
29416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29417 *) ac_try_echo
=$ac_try;;
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_compile") 2>conftest.er1
29422 grep -v '^ *+' conftest.er1
>conftest.err
29424 cat conftest.err
>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && {
29427 test -z "$ac_c_werror_flag" ||
29428 test ! -s conftest.err
29429 } && test -s conftest.
$ac_objext; then
29430 ac_header_compiler
=yes
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.
$ac_ext >&5
29435 ac_header_compiler
=no
29438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29440 echo "${ECHO_T}$ac_header_compiler" >&6; }
29442 # Is the header present?
29443 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
29444 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29445 cat >conftest.
$ac_ext <<_ACEOF
29448 cat confdefs.h
>>conftest.
$ac_ext
29449 cat >>conftest.
$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29453 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29454 case "(($ac_try" in
29455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29461 grep -v '^ *+' conftest.er1 >conftest.err
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } >/dev/null && {
29466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29467 test ! -s conftest.err
29469 ac_header_preproc=yes
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 ac_header_preproc=no
29477 rm -f conftest.err conftest.$ac_ext
29478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29479 echo "${ECHO_T}$ac_header_preproc" >&6; }
29481 # So? What about this header?
29482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29484 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29485 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29487 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29488 ac_header_preproc=yes
29491 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29492 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29493 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29494 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29495 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29496 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29498 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29500 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29502 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29504 ## ------------------------------- ##
29505 ## Report this to www.asterisk.org ##
29506 ## ------------------------------- ##
29508 ) | sed "s/^/$as_me: WARNING: /" >&2
29511 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29512 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29516 eval "$as_ac_Header=\$ac_header_preproc"
29518 ac_res=`eval echo '${'$as_ac_Header'}'`
29519 { echo "$as_me:$LINENO: result: $ac_res" >&5
29520 echo "${ECHO_T}$ac_res" >&6; }
29523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29524 SPEEXDSP_HEADER_FOUND=1
29526 SPEEXDSP_HEADER_FOUND=0
29531 CPPFLAGS="${saved_cppflags}"
29533 if test "xspeex/speex.h" != "x" ; then
29534 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29535 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29536 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29537 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29540 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29541 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29543 # Is the header compilable?
29544 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29545 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29546 cat >conftest.$ac_ext <<_ACEOF
29549 cat confdefs.h >>conftest.$ac_ext
29550 cat >>conftest.$ac_ext <<_ACEOF
29551 /* end confdefs.h. */
29552 $ac_includes_default
29553 #include <speex/speex.h>
29555 rm -f conftest.$ac_objext
29556 if { (ac_try="$ac_compile"
29557 case "(($ac_try" in
29558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29559 *) ac_try_echo
=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_compile") 2>conftest.er1
29564 grep -v '^ *+' conftest.er1
>conftest.err
29566 cat conftest.err
>&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest.
$ac_objext; then
29572 ac_header_compiler
=yes
29574 echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.
$ac_ext >&5
29577 ac_header_compiler
=no
29580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29582 echo "${ECHO_T}$ac_header_compiler" >&6; }
29584 # Is the header present?
29585 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29586 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29587 cat >conftest.
$ac_ext <<_ACEOF
29590 cat confdefs.h
>>conftest.
$ac_ext
29591 cat >>conftest.
$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29593 #include <speex/speex.h>
29595 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29596 case "(($ac_try" in
29597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29603 grep -v '^ *+' conftest.er1 >conftest.err
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } >/dev/null && {
29608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29609 test ! -s conftest.err
29611 ac_header_preproc=yes
29613 echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29616 ac_header_preproc=no
29619 rm -f conftest.err conftest.$ac_ext
29620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29621 echo "${ECHO_T}$ac_header_preproc" >&6; }
29623 # So? What about this header?
29624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29626 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29627 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29629 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29630 ac_header_preproc=yes
29633 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29634 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29635 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29636 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29637 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29638 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29639 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29640 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29641 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29642 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29644 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29646 ## ------------------------------- ##
29647 ## Report this to www.asterisk.org ##
29648 ## ------------------------------- ##
29650 ) | sed "s/^/$as_me: WARNING: /" >&2
29653 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29654 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29655 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29658 ac_cv_header_speex_speex_h=$ac_header_preproc
29660 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29661 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29664 if test $ac_cv_header_speex_speex_h = yes; then
29665 SPEEXDSP_HEADER_FOUND=1
29667 SPEEXDSP_HEADER_FOUND=0
29673 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
29674 if test -n "${SPEEXDSP_MANDATORY}" ;
29676 { echo "$as_me:$LINENO: ***" >&5
29677 echo "$as_me: ***" >&6;}
29678 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
29679 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
29680 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
29681 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
29682 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29683 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29687 SPEEXDSP_INCLUDE=""
29692 cat >>confdefs.h <<_ACEOF
29693 #define HAVE_SPEEXDSP 1
29697 elif test -n "${SPEEXDSP_MANDATORY}";
29699 { echo "$as_me:$LINENO: ***" >&5
29700 echo "$as_me: ***" >&6;}
29701 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
29702 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
29703 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29704 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29705 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29706 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29713 if test "${USE_SQLITE}" != "no"; then
29715 if test "x${SQLITE_DIR}" != "x"; then
29716 if test -d ${SQLITE_DIR}/lib; then
29717 pbxlibdir="-L${SQLITE_DIR}/lib"
29719 pbxlibdir="-L${SQLITE_DIR}"
29722 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
29723 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
29724 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lsqlite ${pbxlibdir} $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29742 char sqlite_exec ();
29746 return sqlite_exec ();
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29755 *) ac_try_echo
=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_link") 2>conftest.er1
29760 grep -v '^ *+' conftest.er1
>conftest.err
29762 cat conftest.err
>&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } && {
29765 test -z "$ac_c_werror_flag" ||
29766 test ! -s conftest.err
29767 } && test -s conftest
$ac_exeext &&
29768 $as_test_x conftest
$ac_exeext; then
29769 ac_cv_lib_sqlite_sqlite_exec
=yes
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.
$ac_ext >&5
29774 ac_cv_lib_sqlite_sqlite_exec
=no
29777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29778 conftest
$ac_exeext conftest.
$ac_ext
29779 LIBS
=$ac_check_lib_save_LIBS
29781 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
29782 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
29783 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
29784 AST_SQLITE_FOUND
=yes
29786 AST_SQLITE_FOUND
=no
29790 if test "${AST_SQLITE_FOUND}" = "yes"; then
29791 SQLITE_LIB
="-lsqlite "
29792 SQLITE_HEADER_FOUND
="1"
29793 if test "x${SQLITE_DIR}" != "x"; then
29794 SQLITE_LIB
="${pbxlibdir} ${SQLITE_LIB}"
29795 SQLITE_INCLUDE
="-I${SQLITE_DIR}/include"
29796 saved_cppflags
="${CPPFLAGS}"
29797 CPPFLAGS
="${CPPFLAGS} -I${SQLITE_DIR}/include"
29798 if test "xsqlite.h" != "x" ; then
29799 as_ac_Header
=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
29800 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29802 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29803 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 ac_res
=`eval echo '${'$as_ac_Header'}'`
29807 { echo "$as_me:$LINENO: result: $ac_res" >&5
29808 echo "${ECHO_T}$ac_res" >&6; }
29810 # Is the header compilable?
29811 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
29812 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
29813 cat >conftest.
$ac_ext <<_ACEOF
29816 cat confdefs.h
>>conftest.
$ac_ext
29817 cat >>conftest.
$ac_ext <<_ACEOF
29818 /* end confdefs.h. */
29819 $ac_includes_default
29820 #include <${SQLITE_DIR}/include/sqlite.h>
29822 rm -f conftest.
$ac_objext
29823 if { (ac_try
="$ac_compile"
29824 case "(($ac_try" in
29825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_compile") 2>conftest.er1
29831 grep -v '^ *+' conftest.er1 >conftest.err
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } && {
29836 test -z "$ac_c_werror_flag" ||
29837 test ! -s conftest.err
29838 } && test -s conftest.$ac_objext; then
29839 ac_header_compiler=yes
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29844 ac_header_compiler=no
29847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29849 echo "${ECHO_T}$ac_header_compiler" >&6; }
29851 # Is the header present?
29852 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
29853 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29860 #include <${SQLITE_DIR}/include/sqlite.h>
29862 if { (ac_try="$ac_cpp conftest.$ac_ext"
29863 case "(($ac_try" in
29864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29865 *) ac_try_echo
=$ac_try;;
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29870 grep -v '^ *+' conftest.er1
>conftest.err
29872 cat conftest.err
>&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } >/dev
/null
&& {
29875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29876 test ! -s conftest.err
29878 ac_header_preproc
=yes
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.
$ac_ext >&5
29883 ac_header_preproc
=no
29886 rm -f conftest.err conftest.
$ac_ext
29887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29888 echo "${ECHO_T}$ac_header_preproc" >&6; }
29890 # So? What about this header?
29891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29893 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
29894 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
29896 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
29897 ac_header_preproc
=yes
29900 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
29901 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
29902 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
29903 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
29904 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
29905 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
29906 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
29907 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
29908 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
29909 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
29910 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
29911 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
29913 ## ------------------------------- ##
29914 ## Report this to www.asterisk.org ##
29915 ## ------------------------------- ##
29917 ) |
sed "s/^/$as_me: WARNING: /" >&2
29920 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29921 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29922 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29923 echo $ECHO_N "(cached) $ECHO_C" >&6
29925 eval "$as_ac_Header=\$ac_header_preproc"
29927 ac_res
=`eval echo '${'$as_ac_Header'}'`
29928 { echo "$as_me:$LINENO: result: $ac_res" >&5
29929 echo "${ECHO_T}$ac_res" >&6; }
29932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29933 SQLITE_HEADER_FOUND
=1
29935 SQLITE_HEADER_FOUND
=0
29940 CPPFLAGS
="${saved_cppflags}"
29942 if test "xsqlite.h" != "x" ; then
29943 if test "${ac_cv_header_sqlite_h+set}" = set; then
29944 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
29945 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
29946 if test "${ac_cv_header_sqlite_h+set}" = set; then
29947 echo $ECHO_N "(cached) $ECHO_C" >&6
29949 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
29950 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29952 # Is the header compilable?
29953 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
29954 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
29955 cat >conftest.
$ac_ext <<_ACEOF
29958 cat confdefs.h
>>conftest.
$ac_ext
29959 cat >>conftest.
$ac_ext <<_ACEOF
29960 /* end confdefs.h. */
29961 $ac_includes_default
29962 #include <sqlite.h>
29964 rm -f conftest.
$ac_objext
29965 if { (ac_try
="$ac_compile"
29966 case "(($ac_try" in
29967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_compile") 2>conftest.er1
29973 grep -v '^ *+' conftest.er1 >conftest.err
29975 cat conftest.err >&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } && {
29978 test -z "$ac_c_werror_flag" ||
29979 test ! -s conftest.err
29980 } && test -s conftest.$ac_objext; then
29981 ac_header_compiler=yes
29983 echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29986 ac_header_compiler=no
29989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29991 echo "${ECHO_T}$ac_header_compiler" >&6; }
29993 # Is the header present?
29994 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
29995 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
29996 cat >conftest.$ac_ext <<_ACEOF
29999 cat confdefs.h >>conftest.$ac_ext
30000 cat >>conftest.$ac_ext <<_ACEOF
30001 /* end confdefs.h. */
30002 #include <sqlite.h>
30004 if { (ac_try="$ac_cpp conftest.$ac_ext"
30005 case "(($ac_try" in
30006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30007 *) ac_try_echo
=$ac_try;;
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30012 grep -v '^ *+' conftest.er1
>conftest.err
30014 cat conftest.err
>&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } >/dev
/null
&& {
30017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30018 test ! -s conftest.err
30020 ac_header_preproc
=yes
30022 echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.
$ac_ext >&5
30025 ac_header_preproc
=no
30028 rm -f conftest.err conftest.
$ac_ext
30029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30030 echo "${ECHO_T}$ac_header_preproc" >&6; }
30032 # So? What about this header?
30033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30035 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30036 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30037 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
30038 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
30039 ac_header_preproc
=yes
30042 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
30043 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
30044 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
30045 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
30046 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
30047 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
30048 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30049 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30050 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
30051 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
30052 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
30053 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
30055 ## ------------------------------- ##
30056 ## Report this to www.asterisk.org ##
30057 ## ------------------------------- ##
30059 ) |
sed "s/^/$as_me: WARNING: /" >&2
30062 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30063 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30064 if test "${ac_cv_header_sqlite_h+set}" = set; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30067 ac_cv_header_sqlite_h
=$ac_header_preproc
30069 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30070 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30073 if test $ac_cv_header_sqlite_h = yes; then
30074 SQLITE_HEADER_FOUND
=1
30076 SQLITE_HEADER_FOUND
=0
30082 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
30083 if test -n "${SQLITE_MANDATORY}" ;
30085 { echo "$as_me:$LINENO: ***" >&5
30086 echo "$as_me: ***" >&6;}
30087 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
30088 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
30089 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
30090 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
30091 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30092 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30101 cat >>confdefs.h
<<_ACEOF
30102 #define HAVE_SQLITE 1
30106 elif test -n "${SQLITE_MANDATORY}";
30108 { echo "$as_me:$LINENO: ***" >&5
30109 echo "$as_me: ***" >&6;}
30110 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
30111 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
30112 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30113 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30114 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30115 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30122 if test "${USE_OPENSSL}" != "no"; then
30124 if test "x${OPENSSL_DIR}" != "x"; then
30125 if test -d ${OPENSSL_DIR}/lib
; then
30126 pbxlibdir
="-L${OPENSSL_DIR}/lib"
30128 pbxlibdir
="-L${OPENSSL_DIR}"
30131 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
30132 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
30133 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30136 ac_check_lib_save_LIBS
=$LIBS
30137 LIBS
="-lssl ${pbxlibdir} -lcrypto $LIBS"
30138 cat >conftest.
$ac_ext <<_ACEOF
30141 cat confdefs.h
>>conftest.
$ac_ext
30142 cat >>conftest.
$ac_ext <<_ACEOF
30143 /* end confdefs.h. */
30145 /* Override any GCC internal prototype to avoid an error.
30146 Use char because int might match the return type of a GCC
30147 builtin and then its argument prototype would still apply. */
30151 char ssl2_connect ();
30155 return ssl2_connect ();
30160 rm -f conftest.
$ac_objext conftest
$ac_exeext
30161 if { (ac_try
="$ac_link"
30162 case "(($ac_try" in
30163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_link") 2>conftest.er1
30169 grep -v '^ *+' conftest.er1 >conftest.err
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } && {
30174 test -z "$ac_c_werror_flag" ||
30175 test ! -s conftest.err
30176 } && test -s conftest$ac_exeext &&
30177 $as_test_x conftest$ac_exeext; then
30178 ac_cv_lib_ssl_ssl2_connect=yes
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30183 ac_cv_lib_ssl_ssl2_connect=no
30186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30187 conftest$ac_exeext conftest.$ac_ext
30188 LIBS=$ac_check_lib_save_LIBS
30190 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
30191 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
30192 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
30193 AST_OPENSSL_FOUND=yes
30195 AST_OPENSSL_FOUND=no
30199 if test "${AST_OPENSSL_FOUND}" = "yes"; then
30200 OPENSSL_LIB="-lssl -lcrypto"
30201 OPENSSL_HEADER_FOUND="1"
30202 if test "x${OPENSSL_DIR}" != "x"; then
30203 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
30204 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
30205 saved_cppflags="${CPPFLAGS}"
30206 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
30207 if test "xopenssl/ssl.h" != "x" ; then
30208 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" |
$as_tr_sh`
30209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30210 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30211 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30215 ac_res=`eval echo '${'$as_ac_Header'}'`
30216 { echo "$as_me:$LINENO: result: $ac_res" >&5
30217 echo "${ECHO_T}$ac_res" >&6; }
30219 # Is the header compilable?
30220 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
30221 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
30222 cat >conftest.$ac_ext <<_ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h. */
30228 $ac_includes_default
30229 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30231 rm -f conftest.$ac_objext
30232 if { (ac_try="$ac_compile"
30233 case "(($ac_try" in
30234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30235 *) ac_try_echo
=$ac_try;;
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_compile") 2>conftest.er1
30240 grep -v '^ *+' conftest.er1
>conftest.err
30242 cat conftest.err
>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } && {
30245 test -z "$ac_c_werror_flag" ||
30246 test ! -s conftest.err
30247 } && test -s conftest.
$ac_objext; then
30248 ac_header_compiler
=yes
30250 echo "$as_me: failed program was:" >&5
30251 sed 's/^/| /' conftest.
$ac_ext >&5
30253 ac_header_compiler
=no
30256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30258 echo "${ECHO_T}$ac_header_compiler" >&6; }
30260 # Is the header present?
30261 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
30262 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
30263 cat >conftest.
$ac_ext <<_ACEOF
30266 cat confdefs.h
>>conftest.
$ac_ext
30267 cat >>conftest.
$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30271 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30272 case "(($ac_try" in
30273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30274 *) ac_try_echo=$ac_try;;
30276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30279 grep -v '^ *+' conftest.er1 >conftest.err
30281 cat conftest.err >&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } >/dev/null && {
30284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30285 test ! -s conftest.err
30287 ac_header_preproc=yes
30289 echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30292 ac_header_preproc=no
30295 rm -f conftest.err conftest.$ac_ext
30296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30297 echo "${ECHO_T}$ac_header_preproc" >&6; }
30299 # So? What about this header?
30300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30302 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30303 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30304 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
30305 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
30306 ac_header_preproc=yes
30309 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
30310 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
30312 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30313 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
30314 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
30315 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30316 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30317 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
30318 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30319 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
30320 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30322 ## ------------------------------- ##
30323 ## Report this to www.asterisk.org ##
30324 ## ------------------------------- ##
30326 ) | sed "s/^/$as_me: WARNING: /" >&2
30329 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30330 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30334 eval "$as_ac_Header=\$ac_header_preproc"
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30342 OPENSSL_HEADER_FOUND=1
30344 OPENSSL_HEADER_FOUND=0
30349 CPPFLAGS="${saved_cppflags}"
30351 if test "xopenssl/ssl.h" != "x" ; then
30352 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30353 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30354 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30355 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30356 echo $ECHO_N "(cached) $ECHO_C" >&6
30358 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30359 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30361 # Is the header compilable?
30362 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
30363 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
30364 cat >conftest.$ac_ext <<_ACEOF
30367 cat confdefs.h >>conftest.$ac_ext
30368 cat >>conftest.$ac_ext <<_ACEOF
30369 /* end confdefs.h. */
30370 $ac_includes_default
30371 #include <openssl/ssl.h>
30373 rm -f conftest.$ac_objext
30374 if { (ac_try="$ac_compile"
30375 case "(($ac_try" in
30376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30377 *) ac_try_echo
=$ac_try;;
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_compile") 2>conftest.er1
30382 grep -v '^ *+' conftest.er1
>conftest.err
30384 cat conftest.err
>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } && {
30387 test -z "$ac_c_werror_flag" ||
30388 test ! -s conftest.err
30389 } && test -s conftest.
$ac_objext; then
30390 ac_header_compiler
=yes
30392 echo "$as_me: failed program was:" >&5
30393 sed 's/^/| /' conftest.
$ac_ext >&5
30395 ac_header_compiler
=no
30398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30400 echo "${ECHO_T}$ac_header_compiler" >&6; }
30402 # Is the header present?
30403 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
30404 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
30405 cat >conftest.
$ac_ext <<_ACEOF
30408 cat confdefs.h
>>conftest.
$ac_ext
30409 cat >>conftest.
$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30411 #include <openssl/ssl.h>
30413 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30414 case "(($ac_try" in
30415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30421 grep -v '^ *+' conftest.er1 >conftest.err
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } >/dev/null && {
30426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30427 test ! -s conftest.err
30429 ac_header_preproc=yes
30431 echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30434 ac_header_preproc=no
30437 rm -f conftest.err conftest.$ac_ext
30438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30439 echo "${ECHO_T}$ac_header_preproc" >&6; }
30441 # So? What about this header?
30442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30444 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30445 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
30447 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
30448 ac_header_preproc=yes
30451 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
30452 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
30453 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
30454 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30455 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
30456 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
30457 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30458 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
30460 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
30462 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30464 ## ------------------------------- ##
30465 ## Report this to www.asterisk.org ##
30466 ## ------------------------------- ##
30468 ) | sed "s/^/$as_me: WARNING: /" >&2
30471 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30472 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30473 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30478 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30479 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30482 if test $ac_cv_header_openssl_ssl_h = yes; then
30483 OPENSSL_HEADER_FOUND=1
30485 OPENSSL_HEADER_FOUND=0
30491 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
30492 if test -n "${OPENSSL_MANDATORY}" ;
30494 { echo "$as_me:$LINENO: ***" >&5
30495 echo "$as_me: ***" >&6;}
30496 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
30497 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
30498 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
30499 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
30500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30501 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30510 cat >>confdefs.h <<_ACEOF
30511 #define HAVE_OPENSSL 1
30515 elif test -n "${OPENSSL_MANDATORY}";
30517 { echo "$as_me:$LINENO: ***" >&5
30518 echo "$as_me: ***" >&6;}
30519 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
30520 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
30521 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30522 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30523 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30524 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30529 if test "$PBX_OPENSSL" = "1";
30532 if test "${USE_OSPTK}" != "no"; then
30534 if test "x${OSPTK_DIR}" != "x"; then
30535 if test -d ${OSPTK_DIR}/lib; then
30536 pbxlibdir="-L${OSPTK_DIR}/lib"
30538 pbxlibdir="-L${OSPTK_DIR}"
30541 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
30542 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
30543 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30546 ac_check_lib_save_LIBS=$LIBS
30547 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30555 /* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30561 char OSPPCryptoDecrypt ();
30565 return OSPPCryptoDecrypt ();
30570 rm -f conftest.$ac_objext conftest$ac_exeext
30571 if { (ac_try="$ac_link"
30572 case "(($ac_try" in
30573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30574 *) ac_try_echo
=$ac_try;;
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_link") 2>conftest.er1
30579 grep -v '^ *+' conftest.er1
>conftest.err
30581 cat conftest.err
>&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest
$ac_exeext &&
30587 $as_test_x conftest
$ac_exeext; then
30588 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.
$ac_ext >&5
30593 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
30596 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30597 conftest
$ac_exeext conftest.
$ac_ext
30598 LIBS
=$ac_check_lib_save_LIBS
30600 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
30601 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
30602 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
30603 AST_OSPTK_FOUND
=yes
30609 if test "${AST_OSPTK_FOUND}" = "yes"; then
30610 OSPTK_LIB
="-losptk -lcrypto -lssl"
30611 OSPTK_HEADER_FOUND
="1"
30612 if test "x${OSPTK_DIR}" != "x"; then
30613 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
30614 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
30615 saved_cppflags
="${CPPFLAGS}"
30616 CPPFLAGS
="${CPPFLAGS} -I${OSPTK_DIR}/include"
30617 if test "xosp/osp.h" != "x" ; then
30618 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
30619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30620 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30621 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30623 echo $ECHO_N "(cached) $ECHO_C" >&6
30625 ac_res
=`eval echo '${'$as_ac_Header'}'`
30626 { echo "$as_me:$LINENO: result: $ac_res" >&5
30627 echo "${ECHO_T}$ac_res" >&6; }
30629 # Is the header compilable?
30630 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
30631 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
30632 cat >conftest.
$ac_ext <<_ACEOF
30635 cat confdefs.h
>>conftest.
$ac_ext
30636 cat >>conftest.
$ac_ext <<_ACEOF
30637 /* end confdefs.h. */
30638 $ac_includes_default
30639 #include <${OSPTK_DIR}/include/osp/osp.h>
30641 rm -f conftest.
$ac_objext
30642 if { (ac_try
="$ac_compile"
30643 case "(($ac_try" in
30644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30645 *) ac_try_echo=$ac_try;;
30647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648 (eval "$ac_compile") 2>conftest.er1
30650 grep -v '^ *+' conftest.er1 >conftest.err
30652 cat conftest.err >&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); } && {
30655 test -z "$ac_c_werror_flag" ||
30656 test ! -s conftest.err
30657 } && test -s conftest.$ac_objext; then
30658 ac_header_compiler=yes
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30663 ac_header_compiler=no
30666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30668 echo "${ECHO_T}$ac_header_compiler" >&6; }
30670 # Is the header present?
30671 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
30672 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
30673 cat >conftest.$ac_ext <<_ACEOF
30676 cat confdefs.h >>conftest.$ac_ext
30677 cat >>conftest.$ac_ext <<_ACEOF
30678 /* end confdefs.h. */
30679 #include <${OSPTK_DIR}/include/osp/osp.h>
30681 if { (ac_try="$ac_cpp conftest.$ac_ext"
30682 case "(($ac_try" in
30683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30684 *) ac_try_echo
=$ac_try;;
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30689 grep -v '^ *+' conftest.er1
>conftest.err
30691 cat conftest.err
>&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } >/dev
/null
&& {
30694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30695 test ! -s conftest.err
30697 ac_header_preproc
=yes
30699 echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.
$ac_ext >&5
30702 ac_header_preproc
=no
30705 rm -f conftest.err conftest.
$ac_ext
30706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30707 echo "${ECHO_T}$ac_header_preproc" >&6; }
30709 # So? What about this header?
30710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30712 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30713 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
30715 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
30716 ac_header_preproc
=yes
30719 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
30720 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
30721 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
30722 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
30724 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
30725 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30726 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30727 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
30728 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
30729 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
30730 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
30732 ## ------------------------------- ##
30733 ## Report this to www.asterisk.org ##
30734 ## ------------------------------- ##
30736 ) |
sed "s/^/$as_me: WARNING: /" >&2
30739 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30740 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30741 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30744 eval "$as_ac_Header=\$ac_header_preproc"
30746 ac_res
=`eval echo '${'$as_ac_Header'}'`
30747 { echo "$as_me:$LINENO: result: $ac_res" >&5
30748 echo "${ECHO_T}$ac_res" >&6; }
30751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30752 OSPTK_HEADER_FOUND
=1
30754 OSPTK_HEADER_FOUND
=0
30759 CPPFLAGS
="${saved_cppflags}"
30761 if test "xosp/osp.h" != "x" ; then
30762 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30763 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30764 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30765 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30766 echo $ECHO_N "(cached) $ECHO_C" >&6
30768 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30769 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30771 # Is the header compilable?
30772 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
30773 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
30774 cat >conftest.
$ac_ext <<_ACEOF
30777 cat confdefs.h
>>conftest.
$ac_ext
30778 cat >>conftest.
$ac_ext <<_ACEOF
30779 /* end confdefs.h. */
30780 $ac_includes_default
30781 #include <osp/osp.h>
30783 rm -f conftest.
$ac_objext
30784 if { (ac_try
="$ac_compile"
30785 case "(($ac_try" in
30786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_compile") 2>conftest.er1
30792 grep -v '^ *+' conftest.er1 >conftest.err
30794 cat conftest.err >&5
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); } && {
30797 test -z "$ac_c_werror_flag" ||
30798 test ! -s conftest.err
30799 } && test -s conftest.$ac_objext; then
30800 ac_header_compiler=yes
30802 echo "$as_me: failed program was:" >&5
30803 sed 's/^/| /' conftest.$ac_ext >&5
30805 ac_header_compiler=no
30808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30810 echo "${ECHO_T}$ac_header_compiler" >&6; }
30812 # Is the header present?
30813 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
30814 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
30815 cat >conftest.$ac_ext <<_ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h. */
30821 #include <osp/osp.h>
30823 if { (ac_try="$ac_cpp conftest.$ac_ext"
30824 case "(($ac_try" in
30825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30826 *) ac_try_echo
=$ac_try;;
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30831 grep -v '^ *+' conftest.er1
>conftest.err
30833 cat conftest.err
>&5
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } >/dev
/null
&& {
30836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30837 test ! -s conftest.err
30839 ac_header_preproc
=yes
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.
$ac_ext >&5
30844 ac_header_preproc
=no
30847 rm -f conftest.err conftest.
$ac_ext
30848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30849 echo "${ECHO_T}$ac_header_preproc" >&6; }
30851 # So? What about this header?
30852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30854 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30855 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
30857 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
30858 ac_header_preproc
=yes
30861 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
30862 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
30863 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
30864 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
30865 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
30866 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
30867 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30868 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30869 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
30870 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
30871 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
30872 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
30874 ## ------------------------------- ##
30875 ## Report this to www.asterisk.org ##
30876 ## ------------------------------- ##
30878 ) |
sed "s/^/$as_me: WARNING: /" >&2
30881 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30882 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30883 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30886 ac_cv_header_osp_osp_h
=$ac_header_preproc
30888 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30889 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30892 if test $ac_cv_header_osp_osp_h = yes; then
30893 OSPTK_HEADER_FOUND
=1
30895 OSPTK_HEADER_FOUND
=0
30901 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
30902 if test -n "${OSPTK_MANDATORY}" ;
30904 { echo "$as_me:$LINENO: ***" >&5
30905 echo "$as_me: ***" >&6;}
30906 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
30907 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
30908 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
30909 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
30910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30911 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30920 cat >>confdefs.h
<<_ACEOF
30921 #define HAVE_OSPTK 1
30925 elif test -n "${OSPTK_MANDATORY}";
30927 { echo "$as_me:$LINENO: ***" >&5
30928 echo "$as_me: ***" >&6;}
30929 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
30930 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
30931 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30932 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30933 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30934 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30942 if test "${USE_FREETDS}" != "no"; then
30944 if test "x${FREETDS_DIR}" != "x"; then
30945 if test -d ${FREETDS_DIR}/lib
; then
30946 pbxlibdir
="-L${FREETDS_DIR}/lib"
30948 pbxlibdir
="-L${FREETDS_DIR}"
30951 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
30952 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
30953 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30956 ac_check_lib_save_LIBS
=$LIBS
30957 LIBS
="-ltds ${pbxlibdir} $LIBS"
30958 cat >conftest.
$ac_ext <<_ACEOF
30961 cat confdefs.h
>>conftest.
$ac_ext
30962 cat >>conftest.
$ac_ext <<_ACEOF
30963 /* end confdefs.h. */
30965 /* Override any GCC internal prototype to avoid an error.
30966 Use char because int might match the return type of a GCC
30967 builtin and then its argument prototype would still apply. */
30971 char tds_version ();
30975 return tds_version ();
30980 rm -f conftest.
$ac_objext conftest
$ac_exeext
30981 if { (ac_try
="$ac_link"
30982 case "(($ac_try" in
30983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_link") 2>conftest.er1
30989 grep -v '^ *+' conftest.er1 >conftest.err
30991 cat conftest.err >&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } && {
30994 test -z "$ac_c_werror_flag" ||
30995 test ! -s conftest.err
30996 } && test -s conftest$ac_exeext &&
30997 $as_test_x conftest$ac_exeext; then
30998 ac_cv_lib_tds_tds_version=yes
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 ac_cv_lib_tds_tds_version=no
31006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31007 conftest$ac_exeext conftest.$ac_ext
31008 LIBS=$ac_check_lib_save_LIBS
31010 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
31011 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
31012 if test $ac_cv_lib_tds_tds_version = yes; then
31013 AST_FREETDS_FOUND=yes
31015 AST_FREETDS_FOUND=no
31019 if test "${AST_FREETDS_FOUND}" = "yes"; then
31020 FREETDS_LIB="-ltds "
31021 FREETDS_HEADER_FOUND="1"
31022 if test "x${FREETDS_DIR}" != "x"; then
31023 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
31024 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
31025 saved_cppflags="${CPPFLAGS}"
31026 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
31027 if test "xtds.h" != "x" ; then
31028 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" |
$as_tr_sh`
31029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31030 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31031 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31035 ac_res=`eval echo '${'$as_ac_Header'}'`
31036 { echo "$as_me:$LINENO: result: $ac_res" >&5
31037 echo "${ECHO_T}$ac_res" >&6; }
31039 # Is the header compilable?
31040 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
31041 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
31042 cat >conftest.$ac_ext <<_ACEOF
31045 cat confdefs.h >>conftest.$ac_ext
31046 cat >>conftest.$ac_ext <<_ACEOF
31047 /* end confdefs.h. */
31048 $ac_includes_default
31049 #include <${FREETDS_DIR}/include/tds.h>
31051 rm -f conftest.$ac_objext
31052 if { (ac_try="$ac_compile"
31053 case "(($ac_try" in
31054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31055 *) ac_try_echo
=$ac_try;;
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_compile") 2>conftest.er1
31060 grep -v '^ *+' conftest.er1
>conftest.err
31062 cat conftest.err
>&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } && {
31065 test -z "$ac_c_werror_flag" ||
31066 test ! -s conftest.err
31067 } && test -s conftest.
$ac_objext; then
31068 ac_header_compiler
=yes
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.
$ac_ext >&5
31073 ac_header_compiler
=no
31076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31078 echo "${ECHO_T}$ac_header_compiler" >&6; }
31080 # Is the header present?
31081 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
31082 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
31083 cat >conftest.
$ac_ext <<_ACEOF
31086 cat confdefs.h
>>conftest.
$ac_ext
31087 cat >>conftest.
$ac_ext <<_ACEOF
31088 /* end confdefs.h. */
31089 #include <${FREETDS_DIR}/include/tds.h>
31091 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31092 case "(($ac_try" in
31093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31094 *) ac_try_echo=$ac_try;;
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31099 grep -v '^ *+' conftest.er1 >conftest.err
31101 cat conftest.err >&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); } >/dev/null && {
31104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31105 test ! -s conftest.err
31107 ac_header_preproc=yes
31109 echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31112 ac_header_preproc=no
31115 rm -f conftest.err conftest.$ac_ext
31116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31117 echo "${ECHO_T}$ac_header_preproc" >&6; }
31119 # So? What about this header?
31120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31122 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31123 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31124 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
31125 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
31126 ac_header_preproc=yes
31129 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
31130 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
31131 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
31132 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
31133 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
31134 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
31135 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
31136 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31137 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
31138 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
31139 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
31140 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
31142 ## ------------------------------- ##
31143 ## Report this to www.asterisk.org ##
31144 ## ------------------------------- ##
31146 ) | sed "s/^/$as_me: WARNING: /" >&2
31149 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31150 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31154 eval "$as_ac_Header=\$ac_header_preproc"
31156 ac_res=`eval echo '${'$as_ac_Header'}'`
31157 { echo "$as_me:$LINENO: result: $ac_res" >&5
31158 echo "${ECHO_T}$ac_res" >&6; }
31161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31162 FREETDS_HEADER_FOUND=1
31164 FREETDS_HEADER_FOUND=0
31169 CPPFLAGS="${saved_cppflags}"
31171 if test "xtds.h" != "x" ; then
31172 if test "${ac_cv_header_tds_h+set}" = set; then
31173 { echo "$as_me:$LINENO: checking for tds.h" >&5
31174 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31175 if test "${ac_cv_header_tds_h+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31179 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31181 # Is the header compilable?
31182 { echo "$as_me:$LINENO: checking tds.h usability" >&5
31183 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
31184 cat >conftest.$ac_ext <<_ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h. */
31190 $ac_includes_default
31193 rm -f conftest.$ac_objext
31194 if { (ac_try="$ac_compile"
31195 case "(($ac_try" in
31196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31197 *) ac_try_echo
=$ac_try;;
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_compile") 2>conftest.er1
31202 grep -v '^ *+' conftest.er1
>conftest.err
31204 cat conftest.err
>&5
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); } && {
31207 test -z "$ac_c_werror_flag" ||
31208 test ! -s conftest.err
31209 } && test -s conftest.
$ac_objext; then
31210 ac_header_compiler
=yes
31212 echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.
$ac_ext >&5
31215 ac_header_compiler
=no
31218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31220 echo "${ECHO_T}$ac_header_compiler" >&6; }
31222 # Is the header present?
31223 { echo "$as_me:$LINENO: checking tds.h presence" >&5
31224 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
31225 cat >conftest.
$ac_ext <<_ACEOF
31228 cat confdefs.h
>>conftest.
$ac_ext
31229 cat >>conftest.
$ac_ext <<_ACEOF
31230 /* end confdefs.h. */
31233 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31234 case "(($ac_try" in
31235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31241 grep -v '^ *+' conftest.er1 >conftest.err
31243 cat conftest.err >&5
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); } >/dev/null && {
31246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31247 test ! -s conftest.err
31249 ac_header_preproc=yes
31251 echo "$as_me: failed program was:" >&5
31252 sed 's/^/| /' conftest.$ac_ext >&5
31254 ac_header_preproc=no
31257 rm -f conftest.err conftest.$ac_ext
31258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31259 echo "${ECHO_T}$ac_header_preproc" >&6; }
31261 # So? What about this header?
31262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31264 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31265 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31266 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
31267 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
31268 ac_header_preproc=yes
31271 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
31272 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
31273 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
31274 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
31276 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
31277 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
31278 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31279 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
31280 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
31281 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
31282 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
31284 ## ------------------------------- ##
31285 ## Report this to www.asterisk.org ##
31286 ## ------------------------------- ##
31288 ) | sed "s/^/$as_me: WARNING: /" >&2
31291 { echo "$as_me:$LINENO: checking for tds.h" >&5
31292 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31293 if test "${ac_cv_header_tds_h+set}" = set; then
31294 echo $ECHO_N "(cached) $ECHO_C" >&6
31296 ac_cv_header_tds_h=$ac_header_preproc
31298 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31299 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31302 if test $ac_cv_header_tds_h = yes; then
31303 FREETDS_HEADER_FOUND=1
31305 FREETDS_HEADER_FOUND=0
31311 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
31312 if test -n "${FREETDS_MANDATORY}" ;
31314 { echo "$as_me:$LINENO: ***" >&5
31315 echo "$as_me: ***" >&6;}
31316 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
31317 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
31318 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
31319 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
31320 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31321 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31330 cat >>confdefs.h <<_ACEOF
31331 #define HAVE_FREETDS 1
31335 elif test -n "${FREETDS_MANDATORY}";
31337 { echo "$as_me:$LINENO: ***" >&5
31338 echo "$as_me: ***" >&6;}
31339 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
31340 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
31341 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31342 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31343 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31344 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31349 if test "${PBX_FREETDS}" != "0";
31351 if test "${FREETDS_DIR}x" = "x";
31353 for tds_dir in /usr /usr/local;
31355 if test -f "${tds_dir}/include/tdsver.h";
31357 FREETDS_DIR="${tds_dir}"
31361 case `${GREP} TDS_VERSION_NO
${FREETDS_DIR:-/usr}/include
/tdsver.h
` in
31363 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
31366 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
31369 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
31372 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
31378 if test "${USE_TERMCAP}" != "no"; then
31380 if test "x${TERMCAP_DIR}" != "x"; then
31381 if test -d ${TERMCAP_DIR}/lib; then
31382 pbxlibdir="-L${TERMCAP_DIR}/lib"
31384 pbxlibdir="-L${TERMCAP_DIR}"
31387 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31388 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31389 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31390 echo $ECHO_N "(cached) $ECHO_C" >&6
31392 ac_check_lib_save_LIBS=$LIBS
31393 LIBS="-ltermcap ${pbxlibdir} $LIBS"
31394 cat >conftest.$ac_ext <<_ACEOF
31397 cat confdefs.h >>conftest.$ac_ext
31398 cat >>conftest.$ac_ext <<_ACEOF
31399 /* end confdefs.h. */
31401 /* Override any GCC internal prototype to avoid an error.
31402 Use char because int might match the return type of a GCC
31403 builtin and then its argument prototype would still apply. */
31416 rm -f conftest.$ac_objext conftest$ac_exeext
31417 if { (ac_try="$ac_link"
31418 case "(($ac_try" in
31419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31420 *) ac_try_echo
=$ac_try;;
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_link") 2>conftest.er1
31425 grep -v '^ *+' conftest.er1
>conftest.err
31427 cat conftest.err
>&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } && {
31430 test -z "$ac_c_werror_flag" ||
31431 test ! -s conftest.err
31432 } && test -s conftest
$ac_exeext &&
31433 $as_test_x conftest
$ac_exeext; then
31434 ac_cv_lib_termcap_tgetent
=yes
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.
$ac_ext >&5
31439 ac_cv_lib_termcap_tgetent
=no
31442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31443 conftest
$ac_exeext conftest.
$ac_ext
31444 LIBS
=$ac_check_lib_save_LIBS
31446 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31447 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31448 if test $ac_cv_lib_termcap_tgetent = yes; then
31449 AST_TERMCAP_FOUND
=yes
31451 AST_TERMCAP_FOUND
=no
31455 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31456 TERMCAP_LIB
="-ltermcap "
31457 TERMCAP_HEADER_FOUND
="1"
31458 if test "x${TERMCAP_DIR}" != "x"; then
31459 TERMCAP_LIB
="${pbxlibdir} ${TERMCAP_LIB}"
31460 TERMCAP_INCLUDE
="-I${TERMCAP_DIR}/include"
31461 saved_cppflags
="${CPPFLAGS}"
31462 CPPFLAGS
="${CPPFLAGS} -I${TERMCAP_DIR}/include"
31463 if test "x" != "x" ; then
31464 as_ac_Header
=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
31465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31466 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31467 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 ac_res
=`eval echo '${'$as_ac_Header'}'`
31472 { echo "$as_me:$LINENO: result: $ac_res" >&5
31473 echo "${ECHO_T}$ac_res" >&6; }
31475 # Is the header compilable?
31476 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
31477 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
31478 cat >conftest.
$ac_ext <<_ACEOF
31481 cat confdefs.h
>>conftest.
$ac_ext
31482 cat >>conftest.
$ac_ext <<_ACEOF
31483 /* end confdefs.h. */
31484 $ac_includes_default
31485 #include <${TERMCAP_DIR}/include/>
31487 rm -f conftest.
$ac_objext
31488 if { (ac_try
="$ac_compile"
31489 case "(($ac_try" in
31490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31491 *) ac_try_echo=$ac_try;;
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494 (eval "$ac_compile") 2>conftest.er1
31496 grep -v '^ *+' conftest.er1 >conftest.err
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && {
31501 test -z "$ac_c_werror_flag" ||
31502 test ! -s conftest.err
31503 } && test -s conftest.$ac_objext; then
31504 ac_header_compiler=yes
31506 echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31509 ac_header_compiler=no
31512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31514 echo "${ECHO_T}$ac_header_compiler" >&6; }
31516 # Is the header present?
31517 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
31518 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
31519 cat >conftest.$ac_ext <<_ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h. */
31525 #include <${TERMCAP_DIR}/include/>
31527 if { (ac_try="$ac_cpp conftest.$ac_ext"
31528 case "(($ac_try" in
31529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31530 *) ac_try_echo
=$ac_try;;
31532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31535 grep -v '^ *+' conftest.er1
>conftest.err
31537 cat conftest.err
>&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); } >/dev
/null
&& {
31540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31541 test ! -s conftest.err
31543 ac_header_preproc
=yes
31545 echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.
$ac_ext >&5
31548 ac_header_preproc
=no
31551 rm -f conftest.err conftest.
$ac_ext
31552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31553 echo "${ECHO_T}$ac_header_preproc" >&6; }
31555 # So? What about this header?
31556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31558 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31559 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31560 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
31561 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
31562 ac_header_preproc
=yes
31565 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
31566 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
31567 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
31568 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
31570 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
31571 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31572 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31573 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
31574 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31575 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
31576 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31578 ## ------------------------------- ##
31579 ## Report this to www.asterisk.org ##
31580 ## ------------------------------- ##
31582 ) |
sed "s/^/$as_me: WARNING: /" >&2
31585 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31586 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31587 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
31590 eval "$as_ac_Header=\$ac_header_preproc"
31592 ac_res
=`eval echo '${'$as_ac_Header'}'`
31593 { echo "$as_me:$LINENO: result: $ac_res" >&5
31594 echo "${ECHO_T}$ac_res" >&6; }
31597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31598 TERMCAP_HEADER_FOUND
=1
31600 TERMCAP_HEADER_FOUND
=0
31605 CPPFLAGS
="${saved_cppflags}"
31607 if test "x" != "x" ; then
31608 if test "${ac_cv_header_+set}" = set; then
31609 { echo "$as_me:$LINENO: checking for " >&5
31610 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31611 if test "${ac_cv_header_+set}" = set; then
31612 echo $ECHO_N "(cached) $ECHO_C" >&6
31614 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31615 echo "${ECHO_T}$ac_cv_header_" >&6; }
31617 # Is the header compilable?
31618 { echo "$as_me:$LINENO: checking usability" >&5
31619 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31620 cat >conftest.
$ac_ext <<_ACEOF
31623 cat confdefs.h
>>conftest.
$ac_ext
31624 cat >>conftest.
$ac_ext <<_ACEOF
31625 /* end confdefs.h. */
31626 $ac_includes_default
31629 rm -f conftest.
$ac_objext
31630 if { (ac_try
="$ac_compile"
31631 case "(($ac_try" in
31632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31633 *) ac_try_echo=$ac_try;;
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636 (eval "$ac_compile") 2>conftest.er1
31638 grep -v '^ *+' conftest.er1 >conftest.err
31640 cat conftest.err >&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); } && {
31643 test -z "$ac_c_werror_flag" ||
31644 test ! -s conftest.err
31645 } && test -s conftest.$ac_objext; then
31646 ac_header_compiler=yes
31648 echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31651 ac_header_compiler=no
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31656 echo "${ECHO_T}$ac_header_compiler" >&6; }
31658 # Is the header present?
31659 { echo "$as_me:$LINENO: checking presence" >&5
31660 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31661 cat >conftest.$ac_ext <<_ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31669 if { (ac_try="$ac_cpp conftest.$ac_ext"
31670 case "(($ac_try" in
31671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31672 *) ac_try_echo
=$ac_try;;
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31677 grep -v '^ *+' conftest.er1
>conftest.err
31679 cat conftest.err
>&5
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); } >/dev
/null
&& {
31682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31683 test ! -s conftest.err
31685 ac_header_preproc
=yes
31687 echo "$as_me: failed program was:" >&5
31688 sed 's/^/| /' conftest.
$ac_ext >&5
31690 ac_header_preproc
=no
31693 rm -f conftest.err conftest.
$ac_ext
31694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31695 echo "${ECHO_T}$ac_header_preproc" >&6; }
31697 # So? What about this header?
31698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31700 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31701 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31702 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31703 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31704 ac_header_preproc
=yes
31707 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31708 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31709 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31710 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31711 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31712 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31713 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31714 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31715 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31716 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31717 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31718 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31720 ## ------------------------------- ##
31721 ## Report this to www.asterisk.org ##
31722 ## ------------------------------- ##
31724 ) |
sed "s/^/$as_me: WARNING: /" >&2
31727 { echo "$as_me:$LINENO: checking for " >&5
31728 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31729 if test "${ac_cv_header_+set}" = set; then
31730 echo $ECHO_N "(cached) $ECHO_C" >&6
31732 ac_cv_header_
=$ac_header_preproc
31734 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31735 echo "${ECHO_T}$ac_cv_header_" >&6; }
31738 if test $ac_cv_header_ = yes; then
31739 TERMCAP_HEADER_FOUND
=1
31741 TERMCAP_HEADER_FOUND
=0
31747 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
31748 if test -n "${TERMCAP_MANDATORY}" ;
31750 { echo "$as_me:$LINENO: ***" >&5
31751 echo "$as_me: ***" >&6;}
31752 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
31753 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
31754 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
31755 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
31756 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31757 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31766 cat >>confdefs.h
<<_ACEOF
31767 #define HAVE_TERMCAP 1
31771 elif test -n "${TERMCAP_MANDATORY}";
31773 { echo "$as_me:$LINENO: ***" >&5
31774 echo "$as_me: ***" >&6;}
31775 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
31776 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
31777 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31778 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31779 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31780 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31787 if test "${USE_TINFO}" != "no"; then
31789 if test "x${TINFO_DIR}" != "x"; then
31790 if test -d ${TINFO_DIR}/lib
; then
31791 pbxlibdir
="-L${TINFO_DIR}/lib"
31793 pbxlibdir
="-L${TINFO_DIR}"
31796 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31797 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
31798 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31799 echo $ECHO_N "(cached) $ECHO_C" >&6
31801 ac_check_lib_save_LIBS
=$LIBS
31802 LIBS
="-ltinfo ${pbxlibdir} $LIBS"
31803 cat >conftest.
$ac_ext <<_ACEOF
31806 cat confdefs.h
>>conftest.
$ac_ext
31807 cat >>conftest.
$ac_ext <<_ACEOF
31808 /* end confdefs.h. */
31810 /* Override any GCC internal prototype to avoid an error.
31811 Use char because int might match the return type of a GCC
31812 builtin and then its argument prototype would still apply. */
31825 rm -f conftest.
$ac_objext conftest
$ac_exeext
31826 if { (ac_try
="$ac_link"
31827 case "(($ac_try" in
31828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31829 *) ac_try_echo=$ac_try;;
31831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31832 (eval "$ac_link") 2>conftest.er1
31834 grep -v '^ *+' conftest.er1 >conftest.err
31836 cat conftest.err >&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } && {
31839 test -z "$ac_c_werror_flag" ||
31840 test ! -s conftest.err
31841 } && test -s conftest$ac_exeext &&
31842 $as_test_x conftest$ac_exeext; then
31843 ac_cv_lib_tinfo_tgetent=yes
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ac_cv_lib_tinfo_tgetent=no
31851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31852 conftest$ac_exeext conftest.$ac_ext
31853 LIBS=$ac_check_lib_save_LIBS
31855 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31856 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31857 if test $ac_cv_lib_tinfo_tgetent = yes; then
31858 AST_TINFO_FOUND=yes
31864 if test "${AST_TINFO_FOUND}" = "yes"; then
31865 TINFO_LIB="-ltinfo "
31866 TINFO_HEADER_FOUND="1"
31867 if test "x${TINFO_DIR}" != "x"; then
31868 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
31869 TINFO_INCLUDE="-I${TINFO_DIR}/include"
31870 saved_cppflags="${CPPFLAGS}"
31871 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
31872 if test "x" != "x" ; then
31873 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" |
$as_tr_sh`
31874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31875 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31876 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31878 echo $ECHO_N "(cached) $ECHO_C" >&6
31880 ac_res=`eval echo '${'$as_ac_Header'}'`
31881 { echo "$as_me:$LINENO: result: $ac_res" >&5
31882 echo "${ECHO_T}$ac_res" >&6; }
31884 # Is the header compilable?
31885 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
31886 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
31887 cat >conftest.$ac_ext <<_ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31893 $ac_includes_default
31894 #include <${TINFO_DIR}/include/>
31896 rm -f conftest.$ac_objext
31897 if { (ac_try="$ac_compile"
31898 case "(($ac_try" in
31899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31900 *) ac_try_echo
=$ac_try;;
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_compile") 2>conftest.er1
31905 grep -v '^ *+' conftest.er1
>conftest.err
31907 cat conftest.err
>&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); } && {
31910 test -z "$ac_c_werror_flag" ||
31911 test ! -s conftest.err
31912 } && test -s conftest.
$ac_objext; then
31913 ac_header_compiler
=yes
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.
$ac_ext >&5
31918 ac_header_compiler
=no
31921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31923 echo "${ECHO_T}$ac_header_compiler" >&6; }
31925 # Is the header present?
31926 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
31927 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
31928 cat >conftest.
$ac_ext <<_ACEOF
31931 cat confdefs.h
>>conftest.
$ac_ext
31932 cat >>conftest.
$ac_ext <<_ACEOF
31933 /* end confdefs.h. */
31934 #include <${TINFO_DIR}/include/>
31936 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31937 case "(($ac_try" in
31938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31944 grep -v '^ *+' conftest.er1 >conftest.err
31946 cat conftest.err >&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } >/dev/null && {
31949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31950 test ! -s conftest.err
31952 ac_header_preproc=yes
31954 echo "$as_me: failed program was:" >&5
31955 sed 's/^/| /' conftest.$ac_ext >&5
31957 ac_header_preproc=no
31960 rm -f conftest.err conftest.$ac_ext
31961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31962 echo "${ECHO_T}$ac_header_preproc" >&6; }
31964 # So? What about this header?
31965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31967 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31968 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31969 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
31970 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
31971 ac_header_preproc=yes
31974 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
31975 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
31976 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
31977 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
31978 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
31979 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
31980 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31981 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31982 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
31983 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31984 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
31985 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31987 ## ------------------------------- ##
31988 ## Report this to www.asterisk.org ##
31989 ## ------------------------------- ##
31991 ) | sed "s/^/$as_me: WARNING: /" >&2
31994 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31995 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31997 echo $ECHO_N "(cached) $ECHO_C" >&6
31999 eval "$as_ac_Header=\$ac_header_preproc"
32001 ac_res=`eval echo '${'$as_ac_Header'}'`
32002 { echo "$as_me:$LINENO: result: $ac_res" >&5
32003 echo "${ECHO_T}$ac_res" >&6; }
32006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32007 TINFO_HEADER_FOUND=1
32009 TINFO_HEADER_FOUND=0
32014 CPPFLAGS="${saved_cppflags}"
32016 if test "x" != "x" ; then
32017 if test "${ac_cv_header_+set}" = set; then
32018 { echo "$as_me:$LINENO: checking for " >&5
32019 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32020 if test "${ac_cv_header_+set}" = set; then
32021 echo $ECHO_N "(cached) $ECHO_C" >&6
32023 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32024 echo "${ECHO_T}$ac_cv_header_" >&6; }
32026 # Is the header compilable?
32027 { echo "$as_me:$LINENO: checking usability" >&5
32028 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32029 cat >conftest.$ac_ext <<_ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 $ac_includes_default
32038 rm -f conftest.$ac_objext
32039 if { (ac_try="$ac_compile"
32040 case "(($ac_try" in
32041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32042 *) ac_try_echo
=$ac_try;;
32044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045 (eval "$ac_compile") 2>conftest.er1
32047 grep -v '^ *+' conftest.er1
>conftest.err
32049 cat conftest.err
>&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } && {
32052 test -z "$ac_c_werror_flag" ||
32053 test ! -s conftest.err
32054 } && test -s conftest.
$ac_objext; then
32055 ac_header_compiler
=yes
32057 echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.
$ac_ext >&5
32060 ac_header_compiler
=no
32063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32065 echo "${ECHO_T}$ac_header_compiler" >&6; }
32067 # Is the header present?
32068 { echo "$as_me:$LINENO: checking presence" >&5
32069 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32070 cat >conftest.
$ac_ext <<_ACEOF
32073 cat confdefs.h
>>conftest.
$ac_ext
32074 cat >>conftest.
$ac_ext <<_ACEOF
32075 /* end confdefs.h. */
32078 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32079 case "(($ac_try" in
32080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32086 grep -v '^ *+' conftest.er1 >conftest.err
32088 cat conftest.err >&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } >/dev/null && {
32091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32092 test ! -s conftest.err
32094 ac_header_preproc=yes
32096 echo "$as_me: failed program was:" >&5
32097 sed 's/^/| /' conftest.$ac_ext >&5
32099 ac_header_preproc=no
32102 rm -f conftest.err conftest.$ac_ext
32103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32104 echo "${ECHO_T}$ac_header_preproc" >&6; }
32106 # So? What about this header?
32107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32109 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32110 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32111 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32112 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32113 ac_header_preproc=yes
32116 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32117 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32118 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32119 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32120 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32121 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32122 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32123 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32124 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32125 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32126 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32127 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32129 ## ------------------------------- ##
32130 ## Report this to www.asterisk.org ##
32131 ## ------------------------------- ##
32133 ) | sed "s/^/$as_me: WARNING: /" >&2
32136 { echo "$as_me:$LINENO: checking for " >&5
32137 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32138 if test "${ac_cv_header_+set}" = set; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32141 ac_cv_header_=$ac_header_preproc
32143 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32144 echo "${ECHO_T}$ac_cv_header_" >&6; }
32147 if test $ac_cv_header_ = yes; then
32148 TINFO_HEADER_FOUND=1
32150 TINFO_HEADER_FOUND=0
32156 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
32157 if test -n "${TINFO_MANDATORY}" ;
32159 { echo "$as_me:$LINENO: ***" >&5
32160 echo "$as_me: ***" >&6;}
32161 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
32162 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
32163 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
32164 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
32165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32166 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32175 cat >>confdefs.h <<_ACEOF
32176 #define HAVE_TINFO 1
32180 elif test -n "${TINFO_MANDATORY}";
32182 { echo "$as_me:$LINENO: ***" >&5
32183 echo "$as_me: ***" >&6;}
32184 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
32185 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
32186 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32187 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32188 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32189 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32195 if test "${host_os}" != "linux-gnu" ; then
32196 tonezone_extra="-lm"
32200 if test "${USE_TONEZONE}" != "no"; then
32202 if test "x${TONEZONE_DIR}" != "x"; then
32203 if test -d ${TONEZONE_DIR}/lib; then
32204 pbxlibdir="-L${TONEZONE_DIR}/lib"
32206 pbxlibdir="-L${TONEZONE_DIR}"
32209 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
32210 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
32211 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
32214 ac_check_lib_save_LIBS=$LIBS
32215 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
32216 cat >conftest.$ac_ext <<_ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32223 /* Override any GCC internal prototype to avoid an error.
32224 Use char because int might match the return type of a GCC
32225 builtin and then its argument prototype would still apply. */
32229 char tone_zone_find ();
32233 return tone_zone_find ();
32238 rm -f conftest.$ac_objext conftest$ac_exeext
32239 if { (ac_try="$ac_link"
32240 case "(($ac_try" in
32241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32242 *) ac_try_echo
=$ac_try;;
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_link") 2>conftest.er1
32247 grep -v '^ *+' conftest.er1
>conftest.err
32249 cat conftest.err
>&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } && {
32252 test -z "$ac_c_werror_flag" ||
32253 test ! -s conftest.err
32254 } && test -s conftest
$ac_exeext &&
32255 $as_test_x conftest
$ac_exeext; then
32256 ac_cv_lib_tonezone_tone_zone_find
=yes
32258 echo "$as_me: failed program was:" >&5
32259 sed 's/^/| /' conftest.
$ac_ext >&5
32261 ac_cv_lib_tonezone_tone_zone_find
=no
32264 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32265 conftest
$ac_exeext conftest.
$ac_ext
32266 LIBS
=$ac_check_lib_save_LIBS
32268 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
32269 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
32270 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
32271 AST_TONEZONE_FOUND
=yes
32273 AST_TONEZONE_FOUND
=no
32277 if test "${AST_TONEZONE_FOUND}" = "yes"; then
32278 TONEZONE_LIB
="-ltonezone ${tonezone_extra}"
32279 TONEZONE_HEADER_FOUND
="1"
32280 if test "x${TONEZONE_DIR}" != "x"; then
32281 TONEZONE_LIB
="${pbxlibdir} ${TONEZONE_LIB}"
32282 TONEZONE_INCLUDE
="-I${TONEZONE_DIR}/include"
32283 saved_cppflags
="${CPPFLAGS}"
32284 CPPFLAGS
="${CPPFLAGS} -I${TONEZONE_DIR}/include"
32285 if test "xzaptel/tonezone.h" != "x" ; then
32286 as_ac_Header
=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
32287 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32288 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32289 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32290 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32293 ac_res
=`eval echo '${'$as_ac_Header'}'`
32294 { echo "$as_me:$LINENO: result: $ac_res" >&5
32295 echo "${ECHO_T}$ac_res" >&6; }
32297 # Is the header compilable?
32298 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
32299 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
32300 cat >conftest.
$ac_ext <<_ACEOF
32303 cat confdefs.h
>>conftest.
$ac_ext
32304 cat >>conftest.
$ac_ext <<_ACEOF
32305 /* end confdefs.h. */
32306 $ac_includes_default
32307 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32309 rm -f conftest.
$ac_objext
32310 if { (ac_try
="$ac_compile"
32311 case "(($ac_try" in
32312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32313 *) ac_try_echo=$ac_try;;
32315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316 (eval "$ac_compile") 2>conftest.er1
32318 grep -v '^ *+' conftest.er1 >conftest.err
32320 cat conftest.err >&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); } && {
32323 test -z "$ac_c_werror_flag" ||
32324 test ! -s conftest.err
32325 } && test -s conftest.$ac_objext; then
32326 ac_header_compiler=yes
32328 echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32331 ac_header_compiler=no
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32336 echo "${ECHO_T}$ac_header_compiler" >&6; }
32338 # Is the header present?
32339 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
32340 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
32341 cat >conftest.$ac_ext <<_ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h. */
32347 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32349 if { (ac_try="$ac_cpp conftest.$ac_ext"
32350 case "(($ac_try" in
32351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32352 *) ac_try_echo
=$ac_try;;
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32357 grep -v '^ *+' conftest.er1
>conftest.err
32359 cat conftest.err
>&5
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); } >/dev
/null
&& {
32362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32363 test ! -s conftest.err
32365 ac_header_preproc
=yes
32367 echo "$as_me: failed program was:" >&5
32368 sed 's/^/| /' conftest.
$ac_ext >&5
32370 ac_header_preproc
=no
32373 rm -f conftest.err conftest.
$ac_ext
32374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32375 echo "${ECHO_T}$ac_header_preproc" >&6; }
32377 # So? What about this header?
32378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32380 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32381 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32382 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
32383 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32384 ac_header_preproc
=yes
32387 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
32388 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
32389 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32390 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32391 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
32392 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32393 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32394 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32396 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32397 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32398 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32400 ## ------------------------------- ##
32401 ## Report this to www.asterisk.org ##
32402 ## ------------------------------- ##
32404 ) |
sed "s/^/$as_me: WARNING: /" >&2
32407 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32408 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32409 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32412 eval "$as_ac_Header=\$ac_header_preproc"
32414 ac_res
=`eval echo '${'$as_ac_Header'}'`
32415 { echo "$as_me:$LINENO: result: $ac_res" >&5
32416 echo "${ECHO_T}$ac_res" >&6; }
32419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32420 TONEZONE_HEADER_FOUND
=1
32422 TONEZONE_HEADER_FOUND
=0
32427 CPPFLAGS
="${saved_cppflags}"
32429 if test "xzaptel/tonezone.h" != "x" ; then
32430 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32431 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32432 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32433 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32436 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32437 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32439 # Is the header compilable?
32440 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
32441 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
32442 cat >conftest.
$ac_ext <<_ACEOF
32445 cat confdefs.h
>>conftest.
$ac_ext
32446 cat >>conftest.
$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32448 $ac_includes_default
32449 #include <zaptel/tonezone.h>
32451 rm -f conftest.
$ac_objext
32452 if { (ac_try
="$ac_compile"
32453 case "(($ac_try" in
32454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_compile") 2>conftest.er1
32460 grep -v '^ *+' conftest.er1 >conftest.err
32462 cat conftest.err >&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } && {
32465 test -z "$ac_c_werror_flag" ||
32466 test ! -s conftest.err
32467 } && test -s conftest.$ac_objext; then
32468 ac_header_compiler=yes
32470 echo "$as_me: failed program was:" >&5
32471 sed 's/^/| /' conftest.$ac_ext >&5
32473 ac_header_compiler=no
32476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32478 echo "${ECHO_T}$ac_header_compiler" >&6; }
32480 # Is the header present?
32481 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
32482 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
32483 cat >conftest.$ac_ext <<_ACEOF
32486 cat confdefs.h >>conftest.$ac_ext
32487 cat >>conftest.$ac_ext <<_ACEOF
32488 /* end confdefs.h. */
32489 #include <zaptel/tonezone.h>
32491 if { (ac_try="$ac_cpp conftest.$ac_ext"
32492 case "(($ac_try" in
32493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32494 *) ac_try_echo
=$ac_try;;
32496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32499 grep -v '^ *+' conftest.er1
>conftest.err
32501 cat conftest.err
>&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } >/dev
/null
&& {
32504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32505 test ! -s conftest.err
32507 ac_header_preproc
=yes
32509 echo "$as_me: failed program was:" >&5
32510 sed 's/^/| /' conftest.
$ac_ext >&5
32512 ac_header_preproc
=no
32515 rm -f conftest.err conftest.
$ac_ext
32516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32517 echo "${ECHO_T}$ac_header_preproc" >&6; }
32519 # So? What about this header?
32520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32522 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32523 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32524 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
32525 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32526 ac_header_preproc
=yes
32529 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
32530 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
32531 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32532 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32533 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
32534 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32535 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32536 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32537 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32538 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32539 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32540 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32542 ## ------------------------------- ##
32543 ## Report this to www.asterisk.org ##
32544 ## ------------------------------- ##
32546 ) |
sed "s/^/$as_me: WARNING: /" >&2
32549 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32550 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32551 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32552 echo $ECHO_N "(cached) $ECHO_C" >&6
32554 ac_cv_header_zaptel_tonezone_h
=$ac_header_preproc
32556 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32557 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32560 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32561 TONEZONE_HEADER_FOUND
=1
32563 TONEZONE_HEADER_FOUND
=0
32569 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
32570 if test -n "${TONEZONE_MANDATORY}" ;
32572 { echo "$as_me:$LINENO: ***" >&5
32573 echo "$as_me: ***" >&6;}
32574 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
32575 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
32576 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
32577 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
32578 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32579 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32583 TONEZONE_INCLUDE
=""
32588 cat >>confdefs.h
<<_ACEOF
32589 #define HAVE_TONEZONE 1
32593 elif test -n "${TONEZONE_MANDATORY}";
32595 { echo "$as_me:$LINENO: ***" >&5
32596 echo "$as_me: ***" >&6;}
32597 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
32598 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
32599 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32600 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32601 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32602 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32609 if test "${USE_USB}" != "no"; then
32611 if test "x${USB_DIR}" != "x"; then
32612 if test -d ${USB_DIR}/lib
; then
32613 pbxlibdir
="-L${USB_DIR}/lib"
32615 pbxlibdir
="-L${USB_DIR}"
32618 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
32619 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
32620 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32623 ac_check_lib_save_LIBS
=$LIBS
32624 LIBS
="-lusb ${pbxlibdir} $LIBS"
32625 cat >conftest.
$ac_ext <<_ACEOF
32628 cat confdefs.h
>>conftest.
$ac_ext
32629 cat >>conftest.
$ac_ext <<_ACEOF
32630 /* end confdefs.h. */
32632 /* Override any GCC internal prototype to avoid an error.
32633 Use char because int might match the return type of a GCC
32634 builtin and then its argument prototype would still apply. */
32642 return usb_init ();
32647 rm -f conftest.
$ac_objext conftest
$ac_exeext
32648 if { (ac_try
="$ac_link"
32649 case "(($ac_try" in
32650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_link") 2>conftest.er1
32656 grep -v '^ *+' conftest.er1 >conftest.err
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } && {
32661 test -z "$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32663 } && test -s conftest$ac_exeext &&
32664 $as_test_x conftest$ac_exeext; then
32665 ac_cv_lib_usb_usb_init=yes
32667 echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32670 ac_cv_lib_usb_usb_init=no
32673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32674 conftest$ac_exeext conftest.$ac_ext
32675 LIBS=$ac_check_lib_save_LIBS
32677 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
32678 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
32679 if test $ac_cv_lib_usb_usb_init = yes; then
32686 if test "${AST_USB_FOUND}" = "yes"; then
32688 USB_HEADER_FOUND="1"
32689 if test "x${USB_DIR}" != "x"; then
32690 USB_LIB="${pbxlibdir} ${USB_LIB}"
32691 USB_INCLUDE="-I${USB_DIR}/include"
32692 saved_cppflags="${CPPFLAGS}"
32693 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
32694 if test "xusb.h" != "x" ; then
32695 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" |
$as_tr_sh`
32696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32697 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32698 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32700 echo $ECHO_N "(cached) $ECHO_C" >&6
32702 ac_res=`eval echo '${'$as_ac_Header'}'`
32703 { echo "$as_me:$LINENO: result: $ac_res" >&5
32704 echo "${ECHO_T}$ac_res" >&6; }
32706 # Is the header compilable?
32707 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
32708 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
32709 cat >conftest.$ac_ext <<_ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h. */
32715 $ac_includes_default
32716 #include <${USB_DIR}/include/usb.h>
32718 rm -f conftest.$ac_objext
32719 if { (ac_try="$ac_compile"
32720 case "(($ac_try" in
32721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32722 *) ac_try_echo
=$ac_try;;
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_compile") 2>conftest.er1
32727 grep -v '^ *+' conftest.er1
>conftest.err
32729 cat conftest.err
>&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } && {
32732 test -z "$ac_c_werror_flag" ||
32733 test ! -s conftest.err
32734 } && test -s conftest.
$ac_objext; then
32735 ac_header_compiler
=yes
32737 echo "$as_me: failed program was:" >&5
32738 sed 's/^/| /' conftest.
$ac_ext >&5
32740 ac_header_compiler
=no
32743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32745 echo "${ECHO_T}$ac_header_compiler" >&6; }
32747 # Is the header present?
32748 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
32749 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
32750 cat >conftest.
$ac_ext <<_ACEOF
32753 cat confdefs.h
>>conftest.
$ac_ext
32754 cat >>conftest.
$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32756 #include <${USB_DIR}/include/usb.h>
32758 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32759 case "(($ac_try" in
32760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32761 *) ac_try_echo=$ac_try;;
32763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32766 grep -v '^ *+' conftest.er1 >conftest.err
32768 cat conftest.err >&5
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); } >/dev/null && {
32771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32772 test ! -s conftest.err
32774 ac_header_preproc=yes
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32779 ac_header_preproc=no
32782 rm -f conftest.err conftest.$ac_ext
32783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32784 echo "${ECHO_T}$ac_header_preproc" >&6; }
32786 # So? What about this header?
32787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32789 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32790 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32791 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
32792 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
32793 ac_header_preproc=yes
32796 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
32797 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
32798 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
32799 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
32800 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
32801 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
32802 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
32803 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32804 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
32805 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
32806 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
32807 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
32809 ## ------------------------------- ##
32810 ## Report this to www.asterisk.org ##
32811 ## ------------------------------- ##
32813 ) | sed "s/^/$as_me: WARNING: /" >&2
32816 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32817 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32819 echo $ECHO_N "(cached) $ECHO_C" >&6
32821 eval "$as_ac_Header=\$ac_header_preproc"
32823 ac_res=`eval echo '${'$as_ac_Header'}'`
32824 { echo "$as_me:$LINENO: result: $ac_res" >&5
32825 echo "${ECHO_T}$ac_res" >&6; }
32828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32836 CPPFLAGS="${saved_cppflags}"
32838 if test "xusb.h" != "x" ; then
32839 if test "${ac_cv_header_usb_h+set}" = set; then
32840 { echo "$as_me:$LINENO: checking for usb.h" >&5
32841 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32842 if test "${ac_cv_header_usb_h+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32846 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32848 # Is the header compilable?
32849 { echo "$as_me:$LINENO: checking usb.h usability" >&5
32850 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
32851 cat >conftest.$ac_ext <<_ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32857 $ac_includes_default
32860 rm -f conftest.$ac_objext
32861 if { (ac_try="$ac_compile"
32862 case "(($ac_try" in
32863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32864 *) ac_try_echo
=$ac_try;;
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867 (eval "$ac_compile") 2>conftest.er1
32869 grep -v '^ *+' conftest.er1
>conftest.err
32871 cat conftest.err
>&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } && {
32874 test -z "$ac_c_werror_flag" ||
32875 test ! -s conftest.err
32876 } && test -s conftest.
$ac_objext; then
32877 ac_header_compiler
=yes
32879 echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.
$ac_ext >&5
32882 ac_header_compiler
=no
32885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32887 echo "${ECHO_T}$ac_header_compiler" >&6; }
32889 # Is the header present?
32890 { echo "$as_me:$LINENO: checking usb.h presence" >&5
32891 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
32892 cat >conftest.
$ac_ext <<_ACEOF
32895 cat confdefs.h
>>conftest.
$ac_ext
32896 cat >>conftest.
$ac_ext <<_ACEOF
32897 /* end confdefs.h. */
32900 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32901 case "(($ac_try" in
32902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32903 *) ac_try_echo=$ac_try;;
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32908 grep -v '^ *+' conftest.er1 >conftest.err
32910 cat conftest.err >&5
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); } >/dev/null && {
32913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32914 test ! -s conftest.err
32916 ac_header_preproc=yes
32918 echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32921 ac_header_preproc=no
32924 rm -f conftest.err conftest.$ac_ext
32925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32926 echo "${ECHO_T}$ac_header_preproc" >&6; }
32928 # So? What about this header?
32929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32931 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32932 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32933 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
32934 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
32935 ac_header_preproc=yes
32938 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
32939 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
32940 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
32941 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
32942 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
32943 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
32944 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
32945 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32946 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
32947 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
32948 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
32949 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
32951 ## ------------------------------- ##
32952 ## Report this to www.asterisk.org ##
32953 ## ------------------------------- ##
32955 ) | sed "s/^/$as_me: WARNING: /" >&2
32958 { echo "$as_me:$LINENO: checking for usb.h" >&5
32959 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32960 if test "${ac_cv_header_usb_h+set}" = set; then
32961 echo $ECHO_N "(cached) $ECHO_C" >&6
32963 ac_cv_header_usb_h=$ac_header_preproc
32965 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32966 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32969 if test $ac_cv_header_usb_h = yes; then
32978 if test "x${USB_HEADER_FOUND}" = "x0" ; then
32979 if test -n "${USB_MANDATORY}" ;
32981 { echo "$as_me:$LINENO: ***" >&5
32982 echo "$as_me: ***" >&6;}
32983 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
32984 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
32985 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
32986 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
32987 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
32988 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
32997 cat >>confdefs.h <<_ACEOF
33002 elif test -n "${USB_MANDATORY}";
33004 { echo "$as_me:$LINENO: ***" >&5
33005 echo "$as_me: ***" >&6;}
33006 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
33007 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
33008 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33009 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33010 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33011 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33018 if test "${USE_VORBIS}" != "no"; then
33020 if test "x${VORBIS_DIR}" != "x"; then
33021 if test -d ${VORBIS_DIR}/lib; then
33022 pbxlibdir="-L${VORBIS_DIR}/lib"
33024 pbxlibdir="-L${VORBIS_DIR}"
33027 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
33028 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
33029 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
33030 echo $ECHO_N "(cached) $ECHO_C" >&6
33032 ac_check_lib_save_LIBS=$LIBS
33033 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
33034 cat >conftest.$ac_ext <<_ACEOF
33037 cat confdefs.h >>conftest.$ac_ext
33038 cat >>conftest.$ac_ext <<_ACEOF
33039 /* end confdefs.h. */
33041 /* Override any GCC internal prototype to avoid an error.
33042 Use char because int might match the return type of a GCC
33043 builtin and then its argument prototype would still apply. */
33047 char vorbis_info_init ();
33051 return vorbis_info_init ();
33056 rm -f conftest.$ac_objext conftest$ac_exeext
33057 if { (ac_try="$ac_link"
33058 case "(($ac_try" in
33059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33060 *) ac_try_echo
=$ac_try;;
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_link") 2>conftest.er1
33065 grep -v '^ *+' conftest.er1
>conftest.err
33067 cat conftest.err
>&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } && {
33070 test -z "$ac_c_werror_flag" ||
33071 test ! -s conftest.err
33072 } && test -s conftest
$ac_exeext &&
33073 $as_test_x conftest
$ac_exeext; then
33074 ac_cv_lib_vorbis_vorbis_info_init
=yes
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.
$ac_ext >&5
33079 ac_cv_lib_vorbis_vorbis_info_init
=no
33082 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33083 conftest
$ac_exeext conftest.
$ac_ext
33084 LIBS
=$ac_check_lib_save_LIBS
33086 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
33087 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
33088 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
33089 AST_VORBIS_FOUND
=yes
33091 AST_VORBIS_FOUND
=no
33095 if test "${AST_VORBIS_FOUND}" = "yes"; then
33096 VORBIS_LIB
="-lvorbis -lm -lvorbisenc"
33097 VORBIS_HEADER_FOUND
="1"
33098 if test "x${VORBIS_DIR}" != "x"; then
33099 VORBIS_LIB
="${pbxlibdir} ${VORBIS_LIB}"
33100 VORBIS_INCLUDE
="-I${VORBIS_DIR}/include"
33101 saved_cppflags
="${CPPFLAGS}"
33102 CPPFLAGS
="${CPPFLAGS} -I${VORBIS_DIR}/include"
33103 if test "xvorbis/codec.h" != "x" ; then
33104 as_ac_Header
=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
33105 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33106 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33107 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33108 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33111 ac_res
=`eval echo '${'$as_ac_Header'}'`
33112 { echo "$as_me:$LINENO: result: $ac_res" >&5
33113 echo "${ECHO_T}$ac_res" >&6; }
33115 # Is the header compilable?
33116 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
33117 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
33118 cat >conftest.
$ac_ext <<_ACEOF
33121 cat confdefs.h
>>conftest.
$ac_ext
33122 cat >>conftest.
$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33124 $ac_includes_default
33125 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33127 rm -f conftest.
$ac_objext
33128 if { (ac_try
="$ac_compile"
33129 case "(($ac_try" in
33130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_compile") 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } && {
33141 test -z "$ac_c_werror_flag" ||
33142 test ! -s conftest.err
33143 } && test -s conftest.$ac_objext; then
33144 ac_header_compiler=yes
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33149 ac_header_compiler=no
33152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33154 echo "${ECHO_T}$ac_header_compiler" >&6; }
33156 # Is the header present?
33157 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
33158 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
33159 cat >conftest.$ac_ext <<_ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h. */
33165 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33167 if { (ac_try="$ac_cpp conftest.$ac_ext"
33168 case "(($ac_try" in
33169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33170 *) ac_try_echo
=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33175 grep -v '^ *+' conftest.er1
>conftest.err
33177 cat conftest.err
>&5
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } >/dev
/null
&& {
33180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33181 test ! -s conftest.err
33183 ac_header_preproc
=yes
33185 echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.
$ac_ext >&5
33188 ac_header_preproc
=no
33191 rm -f conftest.err conftest.
$ac_ext
33192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33193 echo "${ECHO_T}$ac_header_preproc" >&6; }
33195 # So? What about this header?
33196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33198 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33199 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33200 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
33201 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
33202 ac_header_preproc
=yes
33205 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
33206 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
33207 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
33208 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33209 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
33210 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
33211 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33212 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33213 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
33214 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33215 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
33216 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33218 ## ------------------------------- ##
33219 ## Report this to www.asterisk.org ##
33220 ## ------------------------------- ##
33222 ) |
sed "s/^/$as_me: WARNING: /" >&2
33225 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33226 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33227 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33228 echo $ECHO_N "(cached) $ECHO_C" >&6
33230 eval "$as_ac_Header=\$ac_header_preproc"
33232 ac_res
=`eval echo '${'$as_ac_Header'}'`
33233 { echo "$as_me:$LINENO: result: $ac_res" >&5
33234 echo "${ECHO_T}$ac_res" >&6; }
33237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33238 VORBIS_HEADER_FOUND
=1
33240 VORBIS_HEADER_FOUND
=0
33245 CPPFLAGS
="${saved_cppflags}"
33247 if test "xvorbis/codec.h" != "x" ; then
33248 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33249 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33250 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33251 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33254 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33255 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33257 # Is the header compilable?
33258 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
33259 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
33260 cat >conftest.
$ac_ext <<_ACEOF
33263 cat confdefs.h
>>conftest.
$ac_ext
33264 cat >>conftest.
$ac_ext <<_ACEOF
33265 /* end confdefs.h. */
33266 $ac_includes_default
33267 #include <vorbis/codec.h>
33269 rm -f conftest.
$ac_objext
33270 if { (ac_try
="$ac_compile"
33271 case "(($ac_try" in
33272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33273 *) ac_try_echo=$ac_try;;
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276 (eval "$ac_compile") 2>conftest.er1
33278 grep -v '^ *+' conftest.er1 >conftest.err
33280 cat conftest.err >&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); } && {
33283 test -z "$ac_c_werror_flag" ||
33284 test ! -s conftest.err
33285 } && test -s conftest.$ac_objext; then
33286 ac_header_compiler=yes
33288 echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33291 ac_header_compiler=no
33294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33296 echo "${ECHO_T}$ac_header_compiler" >&6; }
33298 # Is the header present?
33299 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
33300 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
33301 cat >conftest.$ac_ext <<_ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33307 #include <vorbis/codec.h>
33309 if { (ac_try="$ac_cpp conftest.$ac_ext"
33310 case "(($ac_try" in
33311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33312 *) ac_try_echo
=$ac_try;;
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33317 grep -v '^ *+' conftest.er1
>conftest.err
33319 cat conftest.err
>&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } >/dev
/null
&& {
33322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33323 test ! -s conftest.err
33325 ac_header_preproc
=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.
$ac_ext >&5
33330 ac_header_preproc
=no
33333 rm -f conftest.err conftest.
$ac_ext
33334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33335 echo "${ECHO_T}$ac_header_preproc" >&6; }
33337 # So? What about this header?
33338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33340 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33341 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33342 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
33343 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
33344 ac_header_preproc
=yes
33347 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
33348 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
33349 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
33350 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33351 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
33352 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
33353 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33354 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33355 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
33356 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33357 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
33358 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33360 ## ------------------------------- ##
33361 ## Report this to www.asterisk.org ##
33362 ## ------------------------------- ##
33364 ) |
sed "s/^/$as_me: WARNING: /" >&2
33367 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33368 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33369 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33370 echo $ECHO_N "(cached) $ECHO_C" >&6
33372 ac_cv_header_vorbis_codec_h
=$ac_header_preproc
33374 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33375 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33378 if test $ac_cv_header_vorbis_codec_h = yes; then
33379 VORBIS_HEADER_FOUND
=1
33381 VORBIS_HEADER_FOUND
=0
33387 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
33388 if test -n "${VORBIS_MANDATORY}" ;
33390 { echo "$as_me:$LINENO: ***" >&5
33391 echo "$as_me: ***" >&6;}
33392 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
33393 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
33394 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
33395 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
33396 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33397 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33406 cat >>confdefs.h
<<_ACEOF
33407 #define HAVE_VORBIS 1
33411 elif test -n "${VORBIS_MANDATORY}";
33413 { echo "$as_me:$LINENO: ***" >&5
33414 echo "$as_me: ***" >&6;}
33415 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
33416 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
33417 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33418 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33419 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33420 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33427 ac_cpp
='$CXXCPP $CPPFLAGS'
33428 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33429 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33430 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33433 if test "${USE_VPB}" != "no"; then
33434 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
33435 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
33436 saved_libs
="${LIBS}"
33437 saved_cppflags
="${CPPFLAGS}"
33438 if test "x${VPB_DIR}" != "x"; then
33439 if test -d ${VPB_DIR}/lib
; then
33440 vpblibdir
=${VPB_DIR}/lib
33442 vpblibdir
=${VPB_DIR}
33444 LIBS
="${LIBS} -L${vpblibdir}"
33445 CPPFLAGS
="${CPPFLAGS} -I${VPB_DIR}/include"
33447 LIBS
="${LIBS} -lvpb -lpthread"
33448 cat >conftest.
$ac_ext <<_ACEOF
33452 cat confdefs.h
>>conftest.
$ac_ext
33453 cat >>conftest.
$ac_ext <<_ACEOF
33454 /* end confdefs.h. */
33455 #include <vpbapi.h>
33459 int q = vpb_open(0,0);
33465 rm -f conftest.
$ac_objext conftest
$ac_exeext
33466 if { (ac_try
="$ac_link"
33467 case "(($ac_try" in
33468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33469 *) ac_try_echo=$ac_try;;
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472 (eval "$ac_link") 2>conftest.er1
33474 grep -v '^ *+' conftest.er1 >conftest.err
33476 cat conftest.err >&5
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); } && {
33479 test -z "$ac_cxx_werror_flag" ||
33480 test ! -s conftest.err
33481 } && test -s conftest$ac_exeext &&
33482 $as_test_x conftest$ac_exeext; then
33483 { echo "$as_me:$LINENO: result: yes" >&5
33484 echo "${ECHO_T}yes" >&6; }
33485 ac_cv_lib_vpb_vpb_open="yes"
33488 echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 { echo "$as_me:$LINENO: result: no" >&5
33492 echo "${ECHO_T}no" >&6; }
33493 ac_cv_lib_vpb_vpb_open="no"
33498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33499 conftest$ac_exeext conftest.$ac_ext
33500 LIBS="${saved_libs}"
33501 CPPFLAGS="${saved_cppflags}"
33502 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33504 if test "${VPB_DIR}" != ""; then
33505 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33506 VPB_INCLUDE="-I${VPB_DIR}/include"
33510 cat >>confdefs.h <<\_ACEOF
33514 elif test -n "${VPB_MANDATORY}"; then
33515 { echo "$as_me:$LINENO: ***" >&5
33516 echo "$as_me: ***" >&6;}
33517 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
33518 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
33519 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33520 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33521 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
33522 echo "$as_me: *** including --without-vpb." >&6;}
33528 ac_cpp='$CPP $CPPFLAGS'
33529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33535 if test "${USE_ZLIB}" != "no"; then
33537 if test "x${ZLIB_DIR}" != "x"; then
33538 if test -d ${ZLIB_DIR}/lib; then
33539 pbxlibdir="-L${ZLIB_DIR}/lib"
33541 pbxlibdir="-L${ZLIB_DIR}"
33544 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
33545 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
33546 if test "${ac_cv_lib_z_compress+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 ac_check_lib_save_LIBS=$LIBS
33550 LIBS="-lz ${pbxlibdir} $LIBS"
33551 cat >conftest.$ac_ext <<_ACEOF
33554 cat confdefs.h >>conftest.$ac_ext
33555 cat >>conftest.$ac_ext <<_ACEOF
33556 /* end confdefs.h. */
33558 /* Override any GCC internal prototype to avoid an error.
33559 Use char because int might match the return type of a GCC
33560 builtin and then its argument prototype would still apply. */
33568 return compress ();
33573 rm -f conftest.$ac_objext conftest$ac_exeext
33574 if { (ac_try="$ac_link"
33575 case "(($ac_try" in
33576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33577 *) ac_try_echo
=$ac_try;;
33579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33580 (eval "$ac_link") 2>conftest.er1
33582 grep -v '^ *+' conftest.er1
>conftest.err
33584 cat conftest.err
>&5
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); } && {
33587 test -z "$ac_c_werror_flag" ||
33588 test ! -s conftest.err
33589 } && test -s conftest
$ac_exeext &&
33590 $as_test_x conftest
$ac_exeext; then
33591 ac_cv_lib_z_compress
=yes
33593 echo "$as_me: failed program was:" >&5
33594 sed 's/^/| /' conftest.
$ac_ext >&5
33596 ac_cv_lib_z_compress
=no
33599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33600 conftest
$ac_exeext conftest.
$ac_ext
33601 LIBS
=$ac_check_lib_save_LIBS
33603 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
33604 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
33605 if test $ac_cv_lib_z_compress = yes; then
33612 if test "${AST_ZLIB_FOUND}" = "yes"; then
33614 ZLIB_HEADER_FOUND
="1"
33615 if test "x${ZLIB_DIR}" != "x"; then
33616 ZLIB_LIB
="${pbxlibdir} ${ZLIB_LIB}"
33617 ZLIB_INCLUDE
="-I${ZLIB_DIR}/include"
33618 saved_cppflags
="${CPPFLAGS}"
33619 CPPFLAGS
="${CPPFLAGS} -I${ZLIB_DIR}/include"
33620 if test "xzlib.h" != "x" ; then
33621 as_ac_Header
=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
33622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33623 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33624 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33628 ac_res
=`eval echo '${'$as_ac_Header'}'`
33629 { echo "$as_me:$LINENO: result: $ac_res" >&5
33630 echo "${ECHO_T}$ac_res" >&6; }
33632 # Is the header compilable?
33633 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
33634 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
33635 cat >conftest.
$ac_ext <<_ACEOF
33638 cat confdefs.h
>>conftest.
$ac_ext
33639 cat >>conftest.
$ac_ext <<_ACEOF
33640 /* end confdefs.h. */
33641 $ac_includes_default
33642 #include <${ZLIB_DIR}/include/zlib.h>
33644 rm -f conftest.
$ac_objext
33645 if { (ac_try
="$ac_compile"
33646 case "(($ac_try" in
33647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33648 *) ac_try_echo=$ac_try;;
33650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33651 (eval "$ac_compile") 2>conftest.er1
33653 grep -v '^ *+' conftest.er1 >conftest.err
33655 cat conftest.err >&5
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); } && {
33658 test -z "$ac_c_werror_flag" ||
33659 test ! -s conftest.err
33660 } && test -s conftest.$ac_objext; then
33661 ac_header_compiler=yes
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33666 ac_header_compiler=no
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33671 echo "${ECHO_T}$ac_header_compiler" >&6; }
33673 # Is the header present?
33674 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
33675 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
33676 cat >conftest.$ac_ext <<_ACEOF
33679 cat confdefs.h >>conftest.$ac_ext
33680 cat >>conftest.$ac_ext <<_ACEOF
33681 /* end confdefs.h. */
33682 #include <${ZLIB_DIR}/include/zlib.h>
33684 if { (ac_try="$ac_cpp conftest.$ac_ext"
33685 case "(($ac_try" in
33686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33687 *) ac_try_echo
=$ac_try;;
33689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33692 grep -v '^ *+' conftest.er1
>conftest.err
33694 cat conftest.err
>&5
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); } >/dev
/null
&& {
33697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33698 test ! -s conftest.err
33700 ac_header_preproc
=yes
33702 echo "$as_me: failed program was:" >&5
33703 sed 's/^/| /' conftest.
$ac_ext >&5
33705 ac_header_preproc
=no
33708 rm -f conftest.err conftest.
$ac_ext
33709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33710 echo "${ECHO_T}$ac_header_preproc" >&6; }
33712 # So? What about this header?
33713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33715 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33716 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33717 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
33718 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
33719 ac_header_preproc
=yes
33722 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
33723 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
33724 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
33725 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
33726 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
33727 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
33728 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33729 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33730 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
33731 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
33732 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
33733 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
33735 ## ------------------------------- ##
33736 ## Report this to www.asterisk.org ##
33737 ## ------------------------------- ##
33739 ) |
sed "s/^/$as_me: WARNING: /" >&2
33742 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33743 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33744 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33745 echo $ECHO_N "(cached) $ECHO_C" >&6
33747 eval "$as_ac_Header=\$ac_header_preproc"
33749 ac_res
=`eval echo '${'$as_ac_Header'}'`
33750 { echo "$as_me:$LINENO: result: $ac_res" >&5
33751 echo "${ECHO_T}$ac_res" >&6; }
33754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33755 ZLIB_HEADER_FOUND
=1
33757 ZLIB_HEADER_FOUND
=0
33762 CPPFLAGS
="${saved_cppflags}"
33764 if test "xzlib.h" != "x" ; then
33765 if test "${ac_cv_header_zlib_h+set}" = set; then
33766 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33767 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33768 if test "${ac_cv_header_zlib_h+set}" = set; then
33769 echo $ECHO_N "(cached) $ECHO_C" >&6
33771 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33772 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33774 # Is the header compilable?
33775 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33776 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33777 cat >conftest.
$ac_ext <<_ACEOF
33780 cat confdefs.h
>>conftest.
$ac_ext
33781 cat >>conftest.
$ac_ext <<_ACEOF
33782 /* end confdefs.h. */
33783 $ac_includes_default
33786 rm -f conftest.
$ac_objext
33787 if { (ac_try
="$ac_compile"
33788 case "(($ac_try" in
33789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33790 *) ac_try_echo=$ac_try;;
33792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793 (eval "$ac_compile") 2>conftest.er1
33795 grep -v '^ *+' conftest.er1 >conftest.err
33797 cat conftest.err >&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } && {
33800 test -z "$ac_c_werror_flag" ||
33801 test ! -s conftest.err
33802 } && test -s conftest.$ac_objext; then
33803 ac_header_compiler=yes
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33808 ac_header_compiler=no
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33813 echo "${ECHO_T}$ac_header_compiler" >&6; }
33815 # Is the header present?
33816 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33817 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33818 cat >conftest.$ac_ext <<_ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h. */
33826 if { (ac_try="$ac_cpp conftest.$ac_ext"
33827 case "(($ac_try" in
33828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33829 *) ac_try_echo
=$ac_try;;
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33834 grep -v '^ *+' conftest.er1
>conftest.err
33836 cat conftest.err
>&5
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); } >/dev
/null
&& {
33839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33840 test ! -s conftest.err
33842 ac_header_preproc
=yes
33844 echo "$as_me: failed program was:" >&5
33845 sed 's/^/| /' conftest.
$ac_ext >&5
33847 ac_header_preproc
=no
33850 rm -f conftest.err conftest.
$ac_ext
33851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33852 echo "${ECHO_T}$ac_header_preproc" >&6; }
33854 # So? What about this header?
33855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33857 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33858 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33860 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33861 ac_header_preproc
=yes
33864 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33865 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33866 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33867 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33868 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33869 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33870 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33871 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33872 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33873 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33874 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33875 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33877 ## ------------------------------- ##
33878 ## Report this to www.asterisk.org ##
33879 ## ------------------------------- ##
33881 ) |
sed "s/^/$as_me: WARNING: /" >&2
33884 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33885 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33886 if test "${ac_cv_header_zlib_h+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33889 ac_cv_header_zlib_h
=$ac_header_preproc
33891 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33892 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33895 if test $ac_cv_header_zlib_h = yes; then
33896 ZLIB_HEADER_FOUND
=1
33898 ZLIB_HEADER_FOUND
=0
33904 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
33905 if test -n "${ZLIB_MANDATORY}" ;
33907 { echo "$as_me:$LINENO: ***" >&5
33908 echo "$as_me: ***" >&6;}
33909 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
33910 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
33911 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
33912 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
33913 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33914 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33923 cat >>confdefs.h
<<_ACEOF
33924 #define HAVE_ZLIB 1
33928 elif test -n "${ZLIB_MANDATORY}";
33930 { echo "$as_me:$LINENO: ***" >&5
33931 echo "$as_me: ***" >&6;}
33932 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
33933 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
33934 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33935 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33936 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33937 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33943 if test "${USE_ZAPTEL}" != "no"; then
33944 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
33945 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
33946 saved_cppflags
="${CPPFLAGS}"
33947 if test "x${ZAPTEL_DIR}" != "x"; then
33948 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33950 cat >conftest.
$ac_ext <<_ACEOF
33954 cat confdefs.h
>>conftest.
$ac_ext
33955 cat >>conftest.
$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33957 #include <zaptel/zaptel.h>
33961 int foo = ZT_DIAL_OP_CANCEL;
33967 rm -f conftest.
$ac_objext
33968 if { (ac_try
="$ac_compile"
33969 case "(($ac_try" in
33970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33971 *) ac_try_echo=$ac_try;;
33973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33974 (eval "$ac_compile") 2>conftest.er1
33976 grep -v '^ *+' conftest.er1 >conftest.err
33978 cat conftest.err >&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); } && {
33981 test -z "$ac_c_werror_flag" ||
33982 test ! -s conftest.err
33983 } && test -s conftest.$ac_objext; then
33984 { echo "$as_me:$LINENO: result: yes" >&5
33985 echo "${ECHO_T}yes" >&6; }
33986 ac_cv_zaptel_h="yes"
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33992 { echo "$as_me:$LINENO: result: no" >&5
33993 echo "${ECHO_T}no" >&6; }
33994 ac_cv_zaptel_h="no"
33999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34000 CPPFLAGS="${saved_cppflags}"
34001 if test "${ac_cv_zaptel_h}" = "yes"; then
34002 if test "${ZAPTEL_DIR}" != ""; then
34003 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
34007 cat >>confdefs.h <<\_ACEOF
34008 #define HAVE_ZAPTEL 1
34011 elif test -n "${ZAPTEL_MANDATORY}";
34013 { echo "$as_me:$LINENO: ***" >&5
34014 echo "$as_me: ***" >&6;}
34015 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
34016 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
34017 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34018 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34019 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
34020 echo "$as_me: *** including --without-zaptel." >&6;}
34025 if test "${PBX_ZAPTEL}" = 1; then
34026 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
34027 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
34028 saved_cppflags="${CPPFLAGS}"
34029 if test "x${ZAPTEL_DIR}" != "x"; then
34030 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34032 cat >conftest.$ac_ext <<_ACEOF
34036 cat confdefs.h >>conftest.$ac_ext
34037 cat >>conftest.$ac_ext <<_ACEOF
34038 /* end confdefs.h. */
34039 #include <zaptel/zaptel.h>
34043 int foo = ZT_EVENT_REMOVED;
34049 rm -f conftest.$ac_objext
34050 if { (ac_try="$ac_compile"
34051 case "(($ac_try" in
34052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34053 *) ac_try_echo
=$ac_try;;
34055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34056 (eval "$ac_compile") 2>conftest.er1
34058 grep -v '^ *+' conftest.er1
>conftest.err
34060 cat conftest.err
>&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); } && {
34063 test -z "$ac_c_werror_flag" ||
34064 test ! -s conftest.err
34065 } && test -s conftest.
$ac_objext; then
34066 { echo "$as_me:$LINENO: result: yes" >&5
34067 echo "${ECHO_T}yes" >&6; }
34068 ac_cv_zaptel_vldtmf
="yes"
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.
$ac_ext >&5
34074 { echo "$as_me:$LINENO: result: no" >&5
34075 echo "${ECHO_T}no" >&6; }
34076 ac_cv_zaptel_vldtmf
="no"
34081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34082 CPPFLAGS
="${saved_cppflags}"
34083 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
34084 PBX_ZAPTEL_VLDTMF
=1
34086 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
34087 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
34088 saved_cppflags
="${CPPFLAGS}"
34089 if test "x${ZAPTEL_DIR}" != "x"; then
34090 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34092 cat >conftest.
$ac_ext <<_ACEOF
34096 cat confdefs.h
>>conftest.
$ac_ext
34097 cat >>conftest.
$ac_ext <<_ACEOF
34098 /* end confdefs.h. */
34099 #include <zaptel/zaptel.h>
34103 int foo = ZT_TCOP_ALLOCATE;
34109 rm -f conftest.
$ac_objext
34110 if { (ac_try
="$ac_compile"
34111 case "(($ac_try" in
34112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116 (eval "$ac_compile") 2>conftest.er1
34118 grep -v '^ *+' conftest.er1 >conftest.err
34120 cat conftest.err >&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); } && {
34123 test -z "$ac_c_werror_flag" ||
34124 test ! -s conftest.err
34125 } && test -s conftest.$ac_objext; then
34126 { echo "$as_me:$LINENO: result: yes" >&5
34127 echo "${ECHO_T}yes" >&6; }
34128 ac_cv_zaptel_transcode="yes"
34131 echo "$as_me: failed program was:" >&5
34132 sed 's/^/| /' conftest.$ac_ext >&5
34134 { echo "$as_me:$LINENO: result: no" >&5
34135 echo "${ECHO_T}no" >&6; }
34136 ac_cv_zaptel_transcode="no"
34141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34142 CPPFLAGS="${saved_cppflags}"
34143 if test "${ac_cv_zaptel_transcode}" = "yes"; then
34144 PBX_ZAPTEL_TRANSCODE=1
34151 if test "x$TERMCAP_LIB" != "x" ; then
34152 EDITLINE_LIB="$TERMCAP_LIB"
34153 elif test "x$TINFO_LIB" != "x" ; then
34154 EDITLINE_LIB="$TINFO_LIB"
34155 elif test "x$CURSES_LIB" != "x" ; then
34156 EDITLINE_LIB="$CURSES_LIB"
34157 elif test "x$NCURSES_LIB" != "x" ; then
34158 EDITLINE_LIB="$NCURSES_LIB"
34160 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
34161 echo "$as_me: error: *** termcap support not found" >&2;}
34162 { (exit 1); exit 1; }; }
34166 if test "${ac_cv_header_h323_h+set}" = set; then
34167 { echo "$as_me:$LINENO: checking for h323.h" >&5
34168 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34169 if test "${ac_cv_header_h323_h+set}" = set; then
34170 echo $ECHO_N "(cached) $ECHO_C" >&6
34172 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34173 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34175 # Is the header compilable?
34176 { echo "$as_me:$LINENO: checking h323.h usability" >&5
34177 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
34178 cat >conftest.$ac_ext <<_ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h. */
34184 $ac_includes_default
34187 rm -f conftest.$ac_objext
34188 if { (ac_try="$ac_compile"
34189 case "(($ac_try" in
34190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34191 *) ac_try_echo
=$ac_try;;
34193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_compile") 2>conftest.er1
34196 grep -v '^ *+' conftest.er1
>conftest.err
34198 cat conftest.err
>&5
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); } && {
34201 test -z "$ac_c_werror_flag" ||
34202 test ! -s conftest.err
34203 } && test -s conftest.
$ac_objext; then
34204 ac_header_compiler
=yes
34206 echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.
$ac_ext >&5
34209 ac_header_compiler
=no
34212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34214 echo "${ECHO_T}$ac_header_compiler" >&6; }
34216 # Is the header present?
34217 { echo "$as_me:$LINENO: checking h323.h presence" >&5
34218 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
34219 cat >conftest.
$ac_ext <<_ACEOF
34222 cat confdefs.h
>>conftest.
$ac_ext
34223 cat >>conftest.
$ac_ext <<_ACEOF
34224 /* end confdefs.h. */
34227 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34228 case "(($ac_try" in
34229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34230 *) ac_try_echo=$ac_try;;
34232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34235 grep -v '^ *+' conftest.er1 >conftest.err
34237 cat conftest.err >&5
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); } >/dev/null && {
34240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34241 test ! -s conftest.err
34243 ac_header_preproc=yes
34245 echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34248 ac_header_preproc=no
34251 rm -f conftest.err conftest.$ac_ext
34252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34253 echo "${ECHO_T}$ac_header_preproc" >&6; }
34255 # So? What about this header?
34256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34258 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
34259 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34260 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
34261 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
34262 ac_header_preproc=yes
34265 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
34266 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
34267 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
34268 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
34269 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
34270 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
34272 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
34273 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
34274 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
34275 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
34276 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
34278 ## ------------------------------- ##
34279 ## Report this to www.asterisk.org ##
34280 ## ------------------------------- ##
34282 ) | sed "s/^/$as_me: WARNING: /" >&2
34285 { echo "$as_me:$LINENO: checking for h323.h" >&5
34286 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34287 if test "${ac_cv_header_h323_h+set}" = set; then
34288 echo $ECHO_N "(cached) $ECHO_C" >&6
34290 ac_cv_header_h323_h=$ac_header_preproc
34292 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34293 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34296 if test $ac_cv_header_h323_h = yes; then
34305 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34306 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34307 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34308 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34309 echo $ECHO_N "(cached) $ECHO_C" >&6
34311 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34312 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34314 # Is the header compilable?
34315 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
34316 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
34317 cat >conftest.$ac_ext <<_ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h. */
34323 $ac_includes_default
34324 #include <linux/compiler.h>
34326 rm -f conftest.$ac_objext
34327 if { (ac_try="$ac_compile"
34328 case "(($ac_try" in
34329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34330 *) ac_try_echo
=$ac_try;;
34332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34333 (eval "$ac_compile") 2>conftest.er1
34335 grep -v '^ *+' conftest.er1
>conftest.err
34337 cat conftest.err
>&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); } && {
34340 test -z "$ac_c_werror_flag" ||
34341 test ! -s conftest.err
34342 } && test -s conftest.
$ac_objext; then
34343 ac_header_compiler
=yes
34345 echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.
$ac_ext >&5
34348 ac_header_compiler
=no
34351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34353 echo "${ECHO_T}$ac_header_compiler" >&6; }
34355 # Is the header present?
34356 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
34357 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
34358 cat >conftest.
$ac_ext <<_ACEOF
34361 cat confdefs.h
>>conftest.
$ac_ext
34362 cat >>conftest.
$ac_ext <<_ACEOF
34363 /* end confdefs.h. */
34364 #include <linux/compiler.h>
34366 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34367 case "(($ac_try" in
34368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34369 *) ac_try_echo=$ac_try;;
34371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34374 grep -v '^ *+' conftest.er1 >conftest.err
34376 cat conftest.err >&5
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } >/dev/null && {
34379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34380 test ! -s conftest.err
34382 ac_header_preproc=yes
34384 echo "$as_me: failed program was:" >&5
34385 sed 's/^/| /' conftest.$ac_ext >&5
34387 ac_header_preproc=no
34390 rm -f conftest.err conftest.$ac_ext
34391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34392 echo "${ECHO_T}$ac_header_preproc" >&6; }
34394 # So? What about this header?
34395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34397 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
34398 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34399 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
34400 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
34401 ac_header_preproc=yes
34404 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
34405 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
34406 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
34407 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
34408 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
34409 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
34410 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
34411 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
34412 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
34413 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
34414 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
34415 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
34417 ## ------------------------------- ##
34418 ## Report this to www.asterisk.org ##
34419 ## ------------------------------- ##
34421 ) | sed "s/^/$as_me: WARNING: /" >&2
34424 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34425 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34426 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34429 ac_cv_header_linux_compiler_h=$ac_header_preproc
34431 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34432 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34435 if test $ac_cv_header_linux_compiler_h = yes; then
34437 cat >>confdefs.h <<_ACEOF
34438 #define HAVE_LINUX_COMPILER_H 1
34445 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
34446 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
34447 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34448 echo $ECHO_N "(cached) $ECHO_C" >&6
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34457 #include <linux/version.h>
34458 #ifdef HAVE_LINUX_COMPILER_H
34459 #include <linux/compiler.h>
34463 #include <linux/ixjuser.h>
34465 rm -f conftest.$ac_objext
34466 if { (ac_try="$ac_compile"
34467 case "(($ac_try" in
34468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34469 *) ac_try_echo
=$ac_try;;
34471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472 (eval "$ac_compile") 2>conftest.er1
34474 grep -v '^ *+' conftest.er1
>conftest.err
34476 cat conftest.err
>&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } && {
34479 test -z "$ac_c_werror_flag" ||
34480 test ! -s conftest.err
34481 } && test -s conftest.
$ac_objext; then
34482 ac_cv_header_linux_ixjuser_h
=yes
34484 echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.
$ac_ext >&5
34487 ac_cv_header_linux_ixjuser_h
=no
34490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34492 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
34493 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34494 if test $ac_cv_header_linux_ixjuser_h = yes; then
34503 if test "${cross_compiling}" = "no";
34505 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
34506 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
34507 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34508 echo $ECHO_N "(cached) $ECHO_C" >&6
34510 test "$cross_compiling" = yes &&
34511 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34512 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34513 { (exit 1); exit 1; }; }
34514 if test -r "/sbin/launchd"; then
34515 ac_cv_file__sbin_launchd
=yes
34517 ac_cv_file__sbin_launchd
=no
34520 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
34521 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34522 if test $ac_cv_file__sbin_launchd = yes; then
34524 cat >>confdefs.h
<<\_ACEOF
34525 #define HAVE_SBIN_LAUNCHD 1
34533 if test -n "$ac_tool_prefix"; then
34534 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
34535 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
34536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34538 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34539 echo $ECHO_N "(cached) $ECHO_C" >&6
34541 if test -n "$GTKCONFIG"; then
34542 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
34544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34545 for as_dir
in $PATH
34548 test -z "$as_dir" && as_dir
=.
34549 for ac_exec_ext
in '' $ac_executable_extensions; do
34550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34551 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
34552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34561 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
34562 if test -n "$GTKCONFIG"; then
34563 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
34564 echo "${ECHO_T}$GTKCONFIG" >&6; }
34566 { echo "$as_me:$LINENO: result: no" >&5
34567 echo "${ECHO_T}no" >&6; }
34572 if test -z "$ac_cv_prog_GTKCONFIG"; then
34573 ac_ct_GTKCONFIG
=$GTKCONFIG
34574 # Extract the first word of "gtk-config", so it can be a program name with args.
34575 set dummy gtk-config
; ac_word
=$2
34576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34578 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34579 echo $ECHO_N "(cached) $ECHO_C" >&6
34581 if test -n "$ac_ct_GTKCONFIG"; then
34582 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
34584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34585 for as_dir
in $PATH
34588 test -z "$as_dir" && as_dir
=.
34589 for ac_exec_ext
in '' $ac_executable_extensions; do
34590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34591 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
34592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34601 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
34602 if test -n "$ac_ct_GTKCONFIG"; then
34603 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
34604 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
34606 { echo "$as_me:$LINENO: result: no" >&5
34607 echo "${ECHO_T}no" >&6; }
34610 if test "x$ac_ct_GTKCONFIG" = x
; then
34613 case $cross_compiling:$ac_tool_warned in
34615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34616 whose name does not start with the host triplet. If you think this
34617 configuration is useful to you, please write to autoconf@gnu.org." >&5
34618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34619 whose name does not start with the host triplet. If you think this
34620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34621 ac_tool_warned
=yes ;;
34623 GTKCONFIG
=$ac_ct_GTKCONFIG
34626 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
34629 if test ! "x${GTKCONFIG}" = xNo
; then
34630 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
34631 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
34634 cat >>confdefs.h
<<\_ACEOF
34644 if test -n "$ac_tool_prefix"; then
34645 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34646 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
34647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34649 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
34650 echo $ECHO_N "(cached) $ECHO_C" >&6
34652 if test -n "$PKGCONFIG"; then
34653 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
34655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34656 for as_dir
in $PATH
34659 test -z "$as_dir" && as_dir
=.
34660 for ac_exec_ext
in '' $ac_executable_extensions; do
34661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34662 ac_cv_prog_PKGCONFIG
="${ac_tool_prefix}pkg-config"
34663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34672 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
34673 if test -n "$PKGCONFIG"; then
34674 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
34675 echo "${ECHO_T}$PKGCONFIG" >&6; }
34677 { echo "$as_me:$LINENO: result: no" >&5
34678 echo "${ECHO_T}no" >&6; }
34683 if test -z "$ac_cv_prog_PKGCONFIG"; then
34684 ac_ct_PKGCONFIG
=$PKGCONFIG
34685 # Extract the first word of "pkg-config", so it can be a program name with args.
34686 set dummy pkg-config
; ac_word
=$2
34687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34689 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34692 if test -n "$ac_ct_PKGCONFIG"; then
34693 ac_cv_prog_ac_ct_PKGCONFIG
="$ac_ct_PKGCONFIG" # Let the user override the test.
34695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34696 for as_dir
in $PATH
34699 test -z "$as_dir" && as_dir
=.
34700 for ac_exec_ext
in '' $ac_executable_extensions; do
34701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34702 ac_cv_prog_ac_ct_PKGCONFIG
="pkg-config"
34703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34712 ac_ct_PKGCONFIG
=$ac_cv_prog_ac_ct_PKGCONFIG
34713 if test -n "$ac_ct_PKGCONFIG"; then
34714 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
34715 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
34717 { echo "$as_me:$LINENO: result: no" >&5
34718 echo "${ECHO_T}no" >&6; }
34721 if test "x$ac_ct_PKGCONFIG" = x
; then
34724 case $cross_compiling:$ac_tool_warned in
34726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34727 whose name does not start with the host triplet. If you think this
34728 configuration is useful to you, please write to autoconf@gnu.org." >&5
34729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34730 whose name does not start with the host triplet. If you think this
34731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34732 ac_tool_warned
=yes ;;
34734 PKGCONFIG
=$ac_ct_PKGCONFIG
34737 PKGCONFIG
="$ac_cv_prog_PKGCONFIG"
34740 if test ! "x${PKGCONFIG}" = xNo
; then
34741 GTK2_INCLUDE
=$
(${PKGCONFIG} gtk
+-2.0
--cflags 2>/dev
/null
)
34742 GTK2_LIB
=$
(${PKGCONFIG} gtk
+-2.0
--libs)
34745 cat >>confdefs.h
<<\_ACEOF
34746 #define HAVE_GTK2 1
34754 if test "${USE_CURL}" != "no"; then
34755 if test -n "$ac_tool_prefix"; then
34756 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
34757 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
34758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34760 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
34761 echo $ECHO_N "(cached) $ECHO_C" >&6
34763 case $CURL_CONFIG in
34765 ac_cv_path_CURL_CONFIG
="$CURL_CONFIG" # Let the user override the test with a path.
34768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34769 for as_dir
in $PATH
34772 test -z "$as_dir" && as_dir
=.
34773 for ac_exec_ext
in '' $ac_executable_extensions; do
34774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34775 ac_cv_path_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
34776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34786 CURL_CONFIG
=$ac_cv_path_CURL_CONFIG
34787 if test -n "$CURL_CONFIG"; then
34788 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
34789 echo "${ECHO_T}$CURL_CONFIG" >&6; }
34791 { echo "$as_me:$LINENO: result: no" >&5
34792 echo "${ECHO_T}no" >&6; }
34797 if test -z "$ac_cv_path_CURL_CONFIG"; then
34798 ac_pt_CURL_CONFIG
=$CURL_CONFIG
34799 # Extract the first word of "curl-config", so it can be a program name with args.
34800 set dummy curl-config
; ac_word
=$2
34801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34803 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
34804 echo $ECHO_N "(cached) $ECHO_C" >&6
34806 case $ac_pt_CURL_CONFIG in
34808 ac_cv_path_ac_pt_CURL_CONFIG
="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
34811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34812 for as_dir
in $PATH
34815 test -z "$as_dir" && as_dir
=.
34816 for ac_exec_ext
in '' $ac_executable_extensions; do
34817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34818 ac_cv_path_ac_pt_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
34819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34829 ac_pt_CURL_CONFIG
=$ac_cv_path_ac_pt_CURL_CONFIG
34830 if test -n "$ac_pt_CURL_CONFIG"; then
34831 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
34832 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
34834 { echo "$as_me:$LINENO: result: no" >&5
34835 echo "${ECHO_T}no" >&6; }
34838 if test "x$ac_pt_CURL_CONFIG" = x
; then
34841 case $cross_compiling:$ac_tool_warned in
34843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34844 whose name does not start with the host triplet. If you think this
34845 configuration is useful to you, please write to autoconf@gnu.org." >&5
34846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34847 whose name does not start with the host triplet. If you think this
34848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34849 ac_tool_warned
=yes ;;
34851 CURL_CONFIG
=$ac_pt_CURL_CONFIG
34854 CURL_CONFIG
="$ac_cv_path_CURL_CONFIG"
34857 if test ! x
"${CURL_CONFIG}" = xNo
; then
34858 # check for version
34859 if test $
(printf "%d" 0x$
(${CURL_CONFIG} --vernum)) -ge $
(printf "%d" 0x070907); then
34860 CURL_INCLUDE
=$
(${CURL_CONFIG} --cflags)
34861 CURL_LIB
=$
(${CURL_CONFIG} --libs)
34863 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
34864 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
34865 saved_cppflags
="${CPPFLAGS}"
34866 CPPFLAGS
="${CPPFLAGS} ${CURL_INCLUDE}"
34867 cat >conftest.
$ac_ext <<_ACEOF
34870 cat confdefs.h
>>conftest.
$ac_ext
34871 cat >>conftest.
$ac_ext <<_ACEOF
34872 /* end confdefs.h. */
34873 #include <curl/curl.h>
34883 rm -f conftest.
$ac_objext
34884 if { (ac_try
="$ac_compile"
34885 case "(($ac_try" in
34886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34887 *) ac_try_echo=$ac_try;;
34889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34890 (eval "$ac_compile") 2>conftest.er1
34892 grep -v '^ *+' conftest.er1 >conftest.err
34894 cat conftest.err >&5
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); } && {
34897 test -z "$ac_c_werror_flag" ||
34898 test ! -s conftest.err
34899 } && test -s conftest.$ac_objext; then
34901 { echo "$as_me:$LINENO: result: yes" >&5
34902 echo "${ECHO_T}yes" >&6; }
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34910 { echo "$as_me:$LINENO: result: no" >&5
34911 echo "${ECHO_T}no" >&6; }
34917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34918 CPPFLAGS="${saved_cppflags}"
34919 if test "${ac_cv_curl_h}" = "yes"; then
34922 cat >>confdefs.h <<\_ACEOF
34923 #define HAVE_CURL 1
34931 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
34933 cat >confcache <<\_ACEOF
34934 # This file is a shell script that caches the results of configure
34935 # tests run on this system so they can be shared between configure
34936 # scripts and configure runs, see configure's option --config-cache.
34937 # It is not useful on other systems. If it contains results you don't
34938 # want to keep, you may remove or edit it.
34940 # config.status only pays attention to the cache file if you give it
34941 # the --recheck option to rerun configure.
34943 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
34944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34945 # following values.
34949 # The following way of writing the cache mishandles newlines in values,
34950 # but we know of no workaround that is simple, portable, and efficient.
34951 # So, we kill variables containing newlines.
34952 # Ultrix sh set writes to stderr and can't be redirected directly,
34953 # and sets the high bit in the cache file unless we assign to the vars.
34955 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34956 eval ac_val
=\$
$ac_var
34960 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34961 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34964 _ | IFS | as_nl
) ;; #(
34965 *) $as_unset $ac_var ;;
34971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34972 *${as_nl}ac_space
=\
*)
34973 # `set' does not quote correctly, so add quotes (double-quote
34974 # substitution turns \\\\ into \\, and sed turns \\ into \).
34977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34980 # `set' quotes correctly as required by POSIX, so do not add quotes.
34981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34994 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
34995 if test -w "$cache_file"; then
34996 test "x$cache_file" != "x/dev/null" &&
34997 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34998 echo "$as_me: updating cache $cache_file" >&6;}
34999 cat confcache
>$cache_file
35001 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35002 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35007 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35008 # Let make expand exec_prefix.
35009 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35011 DEFS
=-DHAVE_CONFIG_H
35015 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35016 # 1. Remove the extension, and $U if already installed.
35017 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35018 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35020 # will be set to the directory where LIBOBJS objects are built.
35021 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35022 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35024 LIBOBJS
=$ac_libobjs
35026 LTLIBOBJS
=$ac_ltlibobjs
35030 : ${CONFIG_STATUS=./config.status}
35031 ac_clean_files_save
=$ac_clean_files
35032 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35033 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35034 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35035 cat >$CONFIG_STATUS <<_ACEOF
35037 # Generated by $as_me.
35038 # Run this file to recreate the current configuration.
35039 # Compiler output produced by configure, useful for debugging
35040 # configure, is in config.log if it exists.
35043 ac_cs_recheck=false
35045 SHELL=\${CONFIG_SHELL-$SHELL}
35048 cat >>$CONFIG_STATUS <<\_ACEOF
35049 ## --------------------- ##
35050 ## M4sh Initialization. ##
35051 ## --------------------- ##
35053 # Be more Bourne compatible
35054 DUALCASE
=1; export DUALCASE
# for MKS sh
35055 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35059 # is contrary to our usage. Disable this feature.
35060 alias -g '${1+"$@"}'='"$@"'
35061 setopt NO_GLOB_SUBST
35063 case `(set -o) 2>/dev/null` in
35064 *posix
*) set -o posix
;;
35073 # Avoid depending upon Character Ranges.
35074 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35075 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35076 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35077 as_cr_digits
='0123456789'
35078 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35080 # The user is always right.
35081 if test "${PATH_SEPARATOR+set}" != set; then
35082 echo "#! /bin/sh" >conf$$.sh
35083 echo "exit 0" >>conf$$.sh
35085 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35093 # Support unset when possible.
35094 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35102 # We need space, tab and new line, in precisely that order. Quoting is
35103 # there to prevent editors from complaining about space-tab.
35104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35105 # splitting by setting IFS to empty value.)
35110 # Find who we are. Look in the path if we contain no directory separator.
35112 *[\\/]* ) as_myself
=$0 ;;
35113 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35114 for as_dir
in $PATH
35117 test -z "$as_dir" && as_dir
=.
35118 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35124 # We did not find ourselves, most probably we were run as `sh COMMAND'
35125 # in which case we are not to be found in the path.
35126 if test "x$as_myself" = x
; then
35129 if test ! -f "$as_myself"; then
35130 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35131 { (exit 1); exit 1; }
35134 # Work around bugs in pre-3.0 UWIN ksh.
35135 for as_var
in ENV MAIL MAILPATH
35136 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35144 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35145 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35146 LC_TELEPHONE LC_TIME
35148 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35149 eval $as_var=C
; export $as_var
35151 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35155 # Required to use basename.
35156 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35157 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35163 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35164 as_basename
=basename
35170 # Name of the executable.
35171 as_me
=`$as_basename -- "$0" ||
35172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35173 X"$0" : 'X\(//\)$' \| \
35174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35176 sed '/^.*\/\([^/][^/]*\)\/*$/{
35195 as_lineno_1
=$LINENO
35196 as_lineno_2
=$LINENO
35197 test "x$as_lineno_1" != "x$as_lineno_2" &&
35198 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35200 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35201 # uniformly replaced by the line number. The first 'sed' inserts a
35202 # line-number line after each line using $LINENO; the second 'sed'
35203 # does the real work. The second script uses 'N' to pair each
35204 # line-number line with the line containing $LINENO, and appends
35205 # trailing '-' during substitution so that $LINENO is not a special
35206 # case at line end.
35207 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35208 # scripts with optimization help from Paolo Bonzini. Blame Lee
35209 # E. McMahon (1931-1989) for sed's syntax. :-)
35221 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35224 ' >$as_me.lineno
&&
35225 chmod +x
"$as_me.lineno" ||
35226 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35227 { (exit 1); exit 1; }; }
35229 # Don't try to exec as it changes $[0], causing all sort of problems
35230 # (the dirname of $[0] is not the place where we might find the
35231 # original and so on. Autoconf is especially sensitive to this).
35232 .
"./$as_me.lineno"
35233 # Exit status is that of the last command.
35238 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35244 ECHO_C
= ECHO_N
= ECHO_T
=
35245 case `echo -n x` in
35247 case `echo 'x\c'` in
35248 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35255 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35256 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35262 rm -f conf$$ conf$$.exe conf$$.
file
35263 if test -d conf$$.dir
; then
35264 rm -f conf$$.dir
/conf$$.
file
35270 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35272 # ... but there are two gotchas:
35273 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35274 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35275 # In both cases, we have to default to `cp -p'.
35276 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35278 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35283 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35284 rmdir conf$$.dir
2>/dev
/null
35286 if mkdir
-p .
2>/dev
/null
; then
35289 test -d .
/-p && rmdir .
/-p
35293 if test -x / >/dev
/null
2>&1; then
35294 as_test_x
='test -x'
35296 if ls -dL / >/dev
/null
2>&1; then
35303 if test -d "$1"; then
35309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35310 ???[sx]*):;;*)false;;esac;fi
35314 as_executable_p
=$as_test_x
35316 # Sed expression to map a string onto a valid CPP name.
35317 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35319 # Sed expression to map a string onto a valid variable name.
35320 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35325 # Save the log message, to keep $[0] and so on meaningful, and to
35326 # report actual input values of CONFIG_FILES etc. instead of their
35327 # values after options handling.
35329 This file was extended by asterisk $as_me 1.4, which was
35330 generated by GNU Autoconf 2.61. Invocation command line was
35332 CONFIG_FILES = $CONFIG_FILES
35333 CONFIG_HEADERS = $CONFIG_HEADERS
35334 CONFIG_LINKS = $CONFIG_LINKS
35335 CONFIG_COMMANDS = $CONFIG_COMMANDS
35338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35343 cat >>$CONFIG_STATUS <<_ACEOF
35344 # Files that config.status was made for.
35345 config_files="$ac_config_files"
35346 config_headers="$ac_config_headers"
35350 cat >>$CONFIG_STATUS <<\_ACEOF
35352 \`$as_me' instantiates files from templates according to the
35353 current configuration.
35355 Usage: $0 [OPTIONS] [FILE]...
35357 -h, --help print this help, then exit
35358 -V, --version print version number and configuration settings, then exit
35359 -q, --quiet do not print progress messages
35360 -d, --debug don't remove temporary files
35361 --recheck update $as_me by reconfiguring in the same conditions
35362 --file=FILE[:TEMPLATE]
35363 instantiate the configuration file FILE
35364 --header=FILE[:TEMPLATE]
35365 instantiate the configuration header FILE
35367 Configuration files:
35370 Configuration headers:
35373 Report bugs to <bug-autoconf@gnu.org>."
35376 cat >>$CONFIG_STATUS <<_ACEOF
35378 asterisk config.status 1.4
35379 configured by $0, generated by GNU Autoconf 2.61,
35380 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35382 Copyright (C) 2006 Free Software Foundation, Inc.
35383 This config.status script is free software; the Free Software Foundation
35384 gives unlimited permission to copy, distribute and modify it."
35391 cat >>$CONFIG_STATUS <<\_ACEOF
35392 # If no file are specified by the user, then we need to provide default
35393 # value. By we need to know if files were specified by the user.
35399 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35400 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35411 # Handling of the options.
35412 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35414 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35415 echo "$ac_cs_version"; exit ;;
35416 --debug |
--debu |
--deb |
--de |
--d |
-d )
35418 --file |
--fil |
--fi |
--f )
35420 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35421 ac_need_defaults
=false
;;
35422 --header |
--heade |
--head |
--hea )
35424 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35425 ac_need_defaults
=false
;;
35427 # Conflict between --help and --header
35428 { echo "$as_me: error: ambiguous option: $1
35429 Try \`$0 --help' for more information." >&2
35430 { (exit 1); exit 1; }; };;
35431 --help |
--hel |
-h )
35432 echo "$ac_cs_usage"; exit ;;
35433 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35434 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35437 # This is an error.
35438 -*) { echo "$as_me: error: unrecognized option: $1
35439 Try \`$0 --help' for more information." >&2
35440 { (exit 1); exit 1; }; } ;;
35442 *) ac_config_targets
="$ac_config_targets $1"
35443 ac_need_defaults
=false
;;
35449 ac_configure_extra_args
=
35451 if $ac_cs_silent; then
35453 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35457 cat >>$CONFIG_STATUS <<_ACEOF
35458 if \$ac_cs_recheck; then
35459 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35460 CONFIG_SHELL=$SHELL
35461 export CONFIG_SHELL
35462 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35466 cat >>$CONFIG_STATUS <<\_ACEOF
35470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35471 ## Running $as_me. ##
35477 cat >>$CONFIG_STATUS <<_ACEOF
35480 cat >>$CONFIG_STATUS <<\_ACEOF
35482 # Handling of arguments.
35483 for ac_config_target
in $ac_config_targets
35485 case $ac_config_target in
35486 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35487 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
35488 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
35489 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
35491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35493 { (exit 1); exit 1; }; };;
35498 # If the user did not use the arguments to specify the items to instantiate,
35499 # then the envvar interface is used. Set only those that are not.
35500 # We use the long form for the default assignment because of an extremely
35501 # bizarre bug on SunOS 4.1.3.
35502 if $ac_need_defaults; then
35503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35507 # Have a temporary directory for convenience. Make it in the build tree
35508 # simply because there is no reason against having it here, and in addition,
35509 # creating and moving files from /tmp can sometimes cause problems.
35510 # Hook for its removal unless debugging.
35511 # Note that there is a small window in which the directory will not be cleaned:
35512 # after its creation but before its name has been assigned to `$tmp'.
35516 trap 'exit_status=$?
35517 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35519 trap '{ (exit 1); exit 1; }' 1 2 13 15
35521 # Create a (secure) tmp directory for tmp files.
35524 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35525 test -n "$tmp" && test -d "$tmp"
35528 tmp
=.
/conf$$
-$RANDOM
35529 (umask 077 && mkdir
"$tmp")
35532 echo "$me: cannot create a temporary directory in ." >&2
35533 { (exit 1); exit 1; }
35537 # Set up the sed scripts for CONFIG_FILES section.
35540 # No need to generate the scripts if there are no CONFIG_FILES.
35541 # This happens for instance when ./config.status config.h
35542 if test -n "$CONFIG_FILES"; then
35549 for ac_last_try
in false false false false false
:; do
35550 cat >conf$
$subs.
sed <<_ACEOF
35551 SHELL!$SHELL$ac_delim
35552 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35553 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35554 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35555 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35556 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35557 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35558 exec_prefix!$exec_prefix$ac_delim
35559 prefix!$prefix$ac_delim
35560 program_transform_name!$program_transform_name$ac_delim
35561 bindir!$bindir$ac_delim
35562 sbindir!$sbindir$ac_delim
35563 libexecdir!$libexecdir$ac_delim
35564 datarootdir!$datarootdir$ac_delim
35565 datadir!$datadir$ac_delim
35566 sysconfdir!$sysconfdir$ac_delim
35567 sharedstatedir!$sharedstatedir$ac_delim
35568 localstatedir!$localstatedir$ac_delim
35569 includedir!$includedir$ac_delim
35570 oldincludedir!$oldincludedir$ac_delim
35571 docdir!$docdir$ac_delim
35572 infodir!$infodir$ac_delim
35573 htmldir!$htmldir$ac_delim
35574 dvidir!$dvidir$ac_delim
35575 pdfdir!$pdfdir$ac_delim
35576 psdir!$psdir$ac_delim
35577 libdir!$libdir$ac_delim
35578 localedir!$localedir$ac_delim
35579 mandir!$mandir$ac_delim
35580 DEFS!$DEFS$ac_delim
35581 ECHO_C!$ECHO_C$ac_delim
35582 ECHO_N!$ECHO_N$ac_delim
35583 ECHO_T!$ECHO_T$ac_delim
35584 LIBS!$LIBS$ac_delim
35585 build_alias!$build_alias$ac_delim
35586 host_alias!$host_alias$ac_delim
35587 target_alias!$target_alias$ac_delim
35588 build!$build$ac_delim
35589 build_cpu!$build_cpu$ac_delim
35590 build_vendor!$build_vendor$ac_delim
35591 build_os!$build_os$ac_delim
35592 host!$host$ac_delim
35593 host_cpu!$host_cpu$ac_delim
35594 host_vendor!$host_vendor$ac_delim
35595 host_os!$host_os$ac_delim
35597 CFLAGS!$CFLAGS$ac_delim
35598 LDFLAGS!$LDFLAGS$ac_delim
35599 CPPFLAGS!$CPPFLAGS$ac_delim
35600 ac_ct_CC!$ac_ct_CC$ac_delim
35601 EXEEXT!$EXEEXT$ac_delim
35602 OBJEXT!$OBJEXT$ac_delim
35604 GREP!$GREP$ac_delim
35605 EGREP!$EGREP$ac_delim
35606 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
35607 BUILD_CPU!$BUILD_CPU$ac_delim
35608 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
35609 BUILD_OS!$BUILD_OS$ac_delim
35610 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
35611 HOST_CPU!$HOST_CPU$ac_delim
35612 HOST_VENDOR!$HOST_VENDOR$ac_delim
35613 HOST_OS!$HOST_OS$ac_delim
35614 OSARCH!$OSARCH$ac_delim
35615 UNAME!$UNAME$ac_delim
35616 PBX_OSREV!$PBX_OSREV$ac_delim
35619 RANLIB!$RANLIB$ac_delim
35620 CXXFLAGS!$CXXFLAGS$ac_delim
35621 ac_ct_CXX!$ac_ct_CXX$ac_delim
35622 CXXCPP!$CXXCPP$ac_delim
35625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35627 INSTALL_DATA!$INSTALL_DATA$ac_delim
35628 LN_S!$LN_S$ac_delim
35629 GNU_MAKE!$GNU_MAKE$ac_delim
35630 STRIP!$STRIP$ac_delim
35632 GNU_LD!$GNU_LD$ac_delim
35633 FIND!$FIND$ac_delim
35634 COMPRESS!$COMPRESS$ac_delim
35635 BASENAME!$BASENAME$ac_delim
35637 DIRNAME!$DIRNAME$ac_delim
35640 WGET!$WGET$ac_delim
35641 FETCH!$FETCH$ac_delim
35642 DOWNLOAD!$DOWNLOAD$ac_delim
35643 SOXMIX!$SOXMIX$ac_delim
35644 acx_pthread_config!$acx_pthread_config$ac_delim
35645 PTHREAD_CC!$PTHREAD_CC$ac_delim
35646 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35647 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35652 elif $ac_last_try; then
35653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35655 { (exit 1); exit 1; }; }
35657 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35661 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35662 if test -n "$ac_eof"; then
35663 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35664 ac_eof
=`expr $ac_eof + 1`
35667 cat >>$CONFIG_STATUS <<_ACEOF
35668 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35673 s/^/s,@/; s/!/@,|#_!!_#|/
35676 s/'"$ac_delim"'$/,g/; t
35678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35679 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35680 rm -f conf$
$subs.
sed
35681 cat >>$CONFIG_STATUS <<_ACEOF
35687 for ac_last_try
in false false false false false
:; do
35688 cat >conf$
$subs.
sed <<_ACEOF
35689 AST_DEVMODE!$AST_DEVMODE$ac_delim
35690 ALSA_LIB!$ALSA_LIB$ac_delim
35691 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
35692 ALSA_DIR!$ALSA_DIR$ac_delim
35693 PBX_ALSA!$PBX_ALSA$ac_delim
35694 CURL_LIB!$CURL_LIB$ac_delim
35695 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
35696 CURL_DIR!$CURL_DIR$ac_delim
35697 PBX_CURL!$PBX_CURL$ac_delim
35698 CAP_LIB!$CAP_LIB$ac_delim
35699 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
35700 CAP_DIR!$CAP_DIR$ac_delim
35701 PBX_CAP!$PBX_CAP$ac_delim
35702 CURSES_LIB!$CURSES_LIB$ac_delim
35703 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
35704 CURSES_DIR!$CURSES_DIR$ac_delim
35705 PBX_CURSES!$PBX_CURSES$ac_delim
35706 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
35707 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
35708 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
35709 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
35710 GSM_LIB!$GSM_LIB$ac_delim
35711 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
35712 GSM_DIR!$GSM_DIR$ac_delim
35713 PBX_GSM!$PBX_GSM$ac_delim
35714 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
35715 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
35716 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
35717 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
35718 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
35719 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
35720 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
35721 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
35722 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
35723 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
35724 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
35725 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
35726 KDE_LIB!$KDE_LIB$ac_delim
35727 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
35728 KDE_DIR!$KDE_DIR$ac_delim
35729 PBX_KDE!$PBX_KDE$ac_delim
35730 LTDL_LIB!$LTDL_LIB$ac_delim
35731 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
35732 LTDL_DIR!$LTDL_DIR$ac_delim
35733 PBX_LTDL!$PBX_LTDL$ac_delim
35734 MISDN_LIB!$MISDN_LIB$ac_delim
35735 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
35736 MISDN_DIR!$MISDN_DIR$ac_delim
35737 PBX_MISDN!$PBX_MISDN$ac_delim
35738 NBS_LIB!$NBS_LIB$ac_delim
35739 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
35740 NBS_DIR!$NBS_DIR$ac_delim
35741 PBX_NBS!$PBX_NBS$ac_delim
35742 NCURSES_LIB!$NCURSES_LIB$ac_delim
35743 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
35744 NCURSES_DIR!$NCURSES_DIR$ac_delim
35745 PBX_NCURSES!$PBX_NCURSES$ac_delim
35746 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
35747 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
35748 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
35749 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
35750 NEWT_LIB!$NEWT_LIB$ac_delim
35751 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
35752 NEWT_DIR!$NEWT_DIR$ac_delim
35753 PBX_NEWT!$PBX_NEWT$ac_delim
35754 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
35755 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
35756 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
35757 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
35758 OGG_LIB!$OGG_LIB$ac_delim
35759 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
35760 OGG_DIR!$OGG_DIR$ac_delim
35761 PBX_OGG!$PBX_OGG$ac_delim
35762 OSPTK_LIB!$OSPTK_LIB$ac_delim
35763 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
35764 OSPTK_DIR!$OSPTK_DIR$ac_delim
35765 PBX_OSPTK!$PBX_OSPTK$ac_delim
35766 OSS_LIB!$OSS_LIB$ac_delim
35767 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
35768 OSS_DIR!$OSS_DIR$ac_delim
35769 PBX_OSS!$PBX_OSS$ac_delim
35770 POPT_LIB!$POPT_LIB$ac_delim
35771 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
35772 POPT_DIR!$POPT_DIR$ac_delim
35773 PBX_POPT!$PBX_POPT$ac_delim
35774 PGSQL_LIB!$PGSQL_LIB$ac_delim
35775 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
35776 PGSQL_DIR!$PGSQL_DIR$ac_delim
35777 PBX_PGSQL!$PBX_PGSQL$ac_delim
35778 PRI_LIB!$PRI_LIB$ac_delim
35779 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
35780 PRI_DIR!$PRI_DIR$ac_delim
35781 PBX_PRI!$PBX_PRI$ac_delim
35782 PWLIB_LIB!$PWLIB_LIB$ac_delim
35783 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
35784 PWLIB_DIR!$PWLIB_DIR$ac_delim
35785 PBX_PWLIB!$PBX_PWLIB$ac_delim
35788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35790 elif $ac_last_try; then
35791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35793 { (exit 1); exit 1; }; }
35795 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35799 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35800 if test -n "$ac_eof"; then
35801 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35802 ac_eof
=`expr $ac_eof + 1`
35805 cat >>$CONFIG_STATUS <<_ACEOF
35806 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35811 s/^/s,@/; s/!/@,|#_!!_#|/
35814 s/'"$ac_delim"'$/,g/; t
35816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35817 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35818 rm -f conf$
$subs.
sed
35819 cat >>$CONFIG_STATUS <<_ACEOF
35825 for ac_last_try
in false false false false false
:; do
35826 cat >conf$
$subs.
sed <<_ACEOF
35827 OPENH323_LIB!$OPENH323_LIB$ac_delim
35828 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
35829 OPENH323_DIR!$OPENH323_DIR$ac_delim
35830 PBX_OPENH323!$PBX_OPENH323$ac_delim
35831 RADIUS_LIB!$RADIUS_LIB$ac_delim
35832 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
35833 RADIUS_DIR!$RADIUS_DIR$ac_delim
35834 PBX_RADIUS!$PBX_RADIUS$ac_delim
35835 SPEEX_LIB!$SPEEX_LIB$ac_delim
35836 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
35837 SPEEX_DIR!$SPEEX_DIR$ac_delim
35838 PBX_SPEEX!$PBX_SPEEX$ac_delim
35839 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
35840 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
35841 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
35842 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
35843 SQLITE_LIB!$SQLITE_LIB$ac_delim
35844 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
35845 SQLITE_DIR!$SQLITE_DIR$ac_delim
35846 PBX_SQLITE!$PBX_SQLITE$ac_delim
35847 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
35848 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
35849 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
35850 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
35851 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
35852 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
35853 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
35854 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
35855 FREETDS_LIB!$FREETDS_LIB$ac_delim
35856 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
35857 FREETDS_DIR!$FREETDS_DIR$ac_delim
35858 PBX_FREETDS!$PBX_FREETDS$ac_delim
35859 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
35860 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
35861 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
35862 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
35863 TINFO_LIB!$TINFO_LIB$ac_delim
35864 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
35865 TINFO_DIR!$TINFO_DIR$ac_delim
35866 PBX_TINFO!$PBX_TINFO$ac_delim
35867 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
35868 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
35869 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
35870 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
35871 USB_LIB!$USB_LIB$ac_delim
35872 USB_INCLUDE!$USB_INCLUDE$ac_delim
35873 USB_DIR!$USB_DIR$ac_delim
35874 PBX_USB!$PBX_USB$ac_delim
35875 VORBIS_LIB!$VORBIS_LIB$ac_delim
35876 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
35877 VORBIS_DIR!$VORBIS_DIR$ac_delim
35878 PBX_VORBIS!$PBX_VORBIS$ac_delim
35879 VPB_LIB!$VPB_LIB$ac_delim
35880 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
35881 VPB_DIR!$VPB_DIR$ac_delim
35882 PBX_VPB!$PBX_VPB$ac_delim
35883 ZLIB_LIB!$ZLIB_LIB$ac_delim
35884 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
35885 ZLIB_DIR!$ZLIB_DIR$ac_delim
35886 PBX_ZLIB!$PBX_ZLIB$ac_delim
35887 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
35888 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
35889 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
35890 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
35891 ALLOCA!$ALLOCA$ac_delim
35892 LIBOBJS!$LIBOBJS$ac_delim
35893 POW_LIB!$POW_LIB$ac_delim
35894 GC_CFLAGS!$GC_CFLAGS$ac_delim
35895 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
35896 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
35897 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
35898 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
35899 KDEINIT!$KDEINIT$ac_delim
35900 KDEDIR!$KDEDIR$ac_delim
35901 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
35902 PG_CONFIG!$PG_CONFIG$ac_delim
35903 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
35904 PWLIBDIR!$PWLIBDIR$ac_delim
35905 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
35906 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
35907 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
35908 OPENH323DIR!$OPENH323DIR$ac_delim
35909 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
35910 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
35911 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
35912 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
35913 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
35914 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
35915 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
35916 PBX_H323!$PBX_H323$ac_delim
35917 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
35918 GTKCONFIG!$GTKCONFIG$ac_delim
35919 PBX_GTK!$PBX_GTK$ac_delim
35920 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
35921 GTK_LIB!$GTK_LIB$ac_delim
35922 PKGCONFIG!$PKGCONFIG$ac_delim
35923 PBX_GTK2!$PBX_GTK2$ac_delim
35926 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35928 elif $ac_last_try; then
35929 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35930 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35931 { (exit 1); exit 1; }; }
35933 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35937 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35938 if test -n "$ac_eof"; then
35939 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35940 ac_eof
=`expr $ac_eof + 1`
35943 cat >>$CONFIG_STATUS <<_ACEOF
35944 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35948 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35949 s/^/s,@/; s/!/@,|#_!!_#|/
35952 s/'"$ac_delim"'$/,g/; t
35954 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35955 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35956 rm -f conf$
$subs.
sed
35957 cat >>$CONFIG_STATUS <<_ACEOF
35963 for ac_last_try
in false false false false false
:; do
35964 cat >conf$
$subs.
sed <<_ACEOF
35965 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
35966 GTK2_LIB!$GTK2_LIB$ac_delim
35967 CURL_CONFIG!$CURL_CONFIG$ac_delim
35968 LTLIBOBJS!$LTLIBOBJS$ac_delim
35971 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
35973 elif $ac_last_try; then
35974 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35975 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35976 { (exit 1); exit 1; }; }
35978 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35982 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35983 if test -n "$ac_eof"; then
35984 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35985 ac_eof
=`expr $ac_eof + 1`
35988 cat >>$CONFIG_STATUS <<_ACEOF
35989 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
35990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35993 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35994 s/^/s,@/; s/!/@,|#_!!_#|/
35997 s/'"$ac_delim"'$/,g/; t
35999 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36000 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36001 rm -f conf$
$subs.
sed
36002 cat >>$CONFIG_STATUS <<_ACEOF
36009 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36010 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36011 # trailing colons and then remove the whole line if VPATH becomes empty
36012 # (actually we leave an empty line to preserve line numbers).
36013 if test "x$srcdir" = x.
; then
36014 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36015 s/:*\$(srcdir):*/:/
36016 s/:*\${srcdir}:*/:/
36018 s/^\([^=]*=[ ]*\):*/\1/
36024 cat >>$CONFIG_STATUS <<\_ACEOF
36025 fi # test -n "$CONFIG_FILES"
36028 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
36031 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36033 case $ac_mode$ac_tag in
36035 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36036 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36037 { (exit 1); exit 1; }; };;
36038 :[FH
]-) ac_tag
=-:-;;
36039 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36056 -) ac_f
="$tmp/stdin";;
36057 *) # Look for the file first in the build tree, then in the source tree
36058 # (if the path is not absolute). The absolute path cannot be DOS-style,
36059 # because $ac_f cannot contain `:'.
36063 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36065 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36066 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36067 { (exit 1); exit 1; }; };;
36069 ac_file_inputs
="$ac_file_inputs $ac_f"
36072 # Let's still pretend it is `configure' which instantiates (i.e., don't
36073 # use $as_me), people would be surprised to read:
36074 # /* config.h. Generated by config.status. */
36075 configure_input
="Generated from "`IFS=:
36076 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36077 if test x
"$ac_file" != x-
; then
36078 configure_input
="$ac_file. $configure_input"
36079 { echo "$as_me:$LINENO: creating $ac_file" >&5
36080 echo "$as_me: creating $ac_file" >&6;}
36084 *:-:* |
*:-) cat >"$tmp/stdin";;
36089 ac_dir
=`$as_dirname -- "$ac_file" ||
36090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36091 X"$ac_file" : 'X\(//\)[^/]' \| \
36092 X"$ac_file" : 'X\(//\)$' \| \
36093 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36099 /^X\(\/\/\)[^/].*/{
36114 -*) as_dir
=.
/$as_dir;;
36116 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36120 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36121 *) as_qdir
=$as_dir;;
36123 as_dirs
="'$as_qdir' $as_dirs"
36124 as_dir
=`$as_dirname -- "$as_dir" ||
36125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36126 X"$as_dir" : 'X\(//\)[^/]' \| \
36127 X"$as_dir" : 'X\(//\)$' \| \
36128 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36134 /^X\(\/\/\)[^/].*/{
36147 test -d "$as_dir" && break
36149 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36150 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36151 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36152 { (exit 1); exit 1; }; }; }
36156 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36158 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36159 # A ".." for each directory in $ac_dir_suffix.
36160 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36161 case $ac_top_builddir_sub in
36162 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36163 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36166 ac_abs_top_builddir
=$ac_pwd
36167 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36168 # for backward compatibility:
36169 ac_top_builddir
=$ac_top_build_prefix
36172 .
) # We are building in place.
36174 ac_top_srcdir
=$ac_top_builddir_sub
36175 ac_abs_top_srcdir
=$ac_pwd ;;
36176 [\\/]* | ?
:[\\/]* ) # Absolute name.
36177 ac_srcdir
=$srcdir$ac_dir_suffix;
36178 ac_top_srcdir
=$srcdir
36179 ac_abs_top_srcdir
=$srcdir ;;
36180 *) # Relative name.
36181 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36182 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36183 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36185 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36195 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36196 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36200 cat >>$CONFIG_STATUS <<\_ACEOF
36201 # If the template does not know about datarootdir, expand it.
36202 # FIXME: This hack should be removed a few years after 2.60.
36203 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36205 case `sed -n '/datarootdir/ {
36214 ' $ac_file_inputs` in
36215 *datarootdir
*) ac_datarootdir_seen
=yes;;
36216 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36217 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36218 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36220 cat >>$CONFIG_STATUS <<_ACEOF
36221 ac_datarootdir_hack='
36222 s&@datadir@&$datadir&g
36223 s&@docdir@&$docdir&g
36224 s&@infodir@&$infodir&g
36225 s&@localedir@&$localedir&g
36226 s&@mandir@&$mandir&g
36227 s&\\\${datarootdir}&$datarootdir&g' ;;
36231 # Neutralize VPATH when `$srcdir' = `.'.
36232 # Shell code in configure.ac might set extrasub.
36233 # FIXME: do we really want to maintain this feature?
36234 cat >>$CONFIG_STATUS <<_ACEOF
36238 cat >>$CONFIG_STATUS <<\_ACEOF
36240 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36241 s
&@configure_input@
&$configure_input&;t t
36242 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36243 s
&@srcdir@
&$ac_srcdir&;t t
36244 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36245 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36246 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36247 s
&@builddir@
&$ac_builddir&;t t
36248 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36249 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36250 s
&@INSTALL@
&$ac_INSTALL&;t t
36251 $ac_datarootdir_hack
36252 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" | sed -f "$tmp/subs-4.
sed" >$tmp/out
36254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36257 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36258 which seems to be undefined. Please make sure it is defined." >&5
36259 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36260 which seems to be undefined. Please make sure it is defined." >&2;}
36264 -) cat "$tmp/out"; rm -f "$tmp/out";;
36265 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36274 # Transform confdefs.h into a sed script `conftest.defines', that
36275 # substitutes the proper values into config.h.in to produce config.h.
36276 rm -f conftest.defines conftest.
tail
36277 # First, append a space to every undef/define line, to ease matching.
36278 echo 's/$/ /' >conftest.defines
36279 # Then, protect against being on the right side of a sed subst, or in
36280 # an unquoted here document, in config.status. If some macros were
36281 # called several times there might be several #defines for the same
36282 # symbol, which is useless. But do not sort them, since the last
36283 # AC_DEFINE must be honored.
36284 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36285 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36286 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36287 # PARAMS is the parameter list in the macro definition--in most cases, it's
36288 # just an empty string.
36289 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36290 ac_dB
='\\)[ (].*,\\1define\\2'
36298 s/^[ ]*#[ ]*define[ ][ ]*//
36303 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36304 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36305 ' >>conftest.defines
36307 # Remove the space that was appended to ease matching.
36308 # Then replace #undef with comments. This is necessary, for
36309 # example, in the case of _POSIX_SOURCE, which is predefined and required
36310 # on some systems where configure will not decide to define it.
36311 # (The regexp can be short, since the line contains either #define or #undef.)
36313 s,^[ #]*u.*,/* & */,' >>conftest.defines
36315 # Break up conftest.defines:
36316 ac_max_sed_lines
=50
36318 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36319 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36320 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36322 ac_in
='$ac_file_inputs'
36323 ac_out
='"$tmp/out1"'
36324 ac_nxt
='"$tmp/out2"'
36328 # Write a here document:
36329 cat >>$CONFIG_STATUS <<_ACEOF
36330 # First, check the format of the line:
36331 cat >"\$tmp/defines.sed" <<\\CEOF
36332 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36333 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36337 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36339 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36340 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36341 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36342 grep . conftest.
tail >/dev
/null ||
break
36343 rm -f conftest.defines
36344 mv conftest.
tail conftest.defines
36346 rm -f conftest.defines conftest.
tail
36348 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36349 cat >>$CONFIG_STATUS <<\_ACEOF
36350 if test x
"$ac_file" != x-
; then
36351 echo "/* $configure_input */" >"$tmp/config.h"
36352 cat "$ac_result" >>"$tmp/config.h"
36353 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36354 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36355 echo "$as_me: $ac_file is unchanged" >&6;}
36358 mv "$tmp/config.h" $ac_file
36361 echo "/* $configure_input */"
36373 { (exit 0); exit 0; }
36375 chmod +x
$CONFIG_STATUS
36376 ac_clean_files
=$ac_clean_files_save
36379 # configure is writing to config.log, and then calls config.status.
36380 # config.status does its own redirection, appending to config.log.
36381 # Unfortunately, on DOS this fails, as config.log is still kept open
36382 # by configure, so config.status won't be able to write to it; its
36383 # output is simply discarded. So we exec the FD to /dev/null,
36384 # effectively closing config.log, so it can be properly (re)opened and
36385 # appended to by config.status. When coming back to configure, we
36386 # need to make the FD available again.
36387 if test "$no_create" != yes; then
36389 ac_config_status_args
=
36390 test "$silent" = yes &&
36391 ac_config_status_args
="$ac_config_status_args --quiet"
36393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36396 # would make configure fail if this is the last instruction.
36397 $ac_cs_success ||
{ (exit 1); exit 1; }
36401 if test "x${silent}" != "xyes" ; then
36403 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
36404 echo " .\$7\$7.. .7\$\$7:. "
36405 echo " .\$\$:. ,\$7.7 "
36406 echo " .\$7. 7\$\$\$\$ .\$\$77 "
36407 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
36408 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
36409 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
36410 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
36411 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
36412 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
36413 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
36414 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
36415 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
36416 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
36417 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
36418 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
36419 echo " \$\$\$\$\$ \$\$\$ "
36420 echo " \$\$\$\$7. \$\$ (TM) "
36421 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
36422 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
36423 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
36427 { echo "$as_me:$LINENO: Package configured for: " >&5
36428 echo "$as_me: Package configured for: " >&6;}
36429 { echo "$as_me:$LINENO: OS type : $host_os" >&5
36430 echo "$as_me: OS type : $host_os" >&6;}
36431 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
36432 echo "$as_me: Host CPU : $host_cpu" >&6;}
36433 if test "${cross_compiling}" = "yes"; then
36434 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
36435 echo "$as_me: Cross Compilation = YES" >&6;}