2 # From configure.ac Revision: 115327 .
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
919 ac_precious_vars
='build_alias
934 # Initialize some variables set by options.
936 ac_init_version
=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name
=s
,x
,x
,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir
='${exec_prefix}/bin'
961 sbindir
='${exec_prefix}/sbin'
962 libexecdir
='${exec_prefix}/libexec'
963 datarootdir
='${prefix}/share'
964 datadir
='${datarootdir}'
965 sysconfdir
='${prefix}/etc'
966 sharedstatedir
='${prefix}/com'
967 localstatedir
='${prefix}/var'
968 includedir
='${prefix}/include'
969 oldincludedir
='/usr/include'
970 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir
='${datarootdir}/info'
976 libdir
='${exec_prefix}/lib'
977 localedir
='${datarootdir}/locale'
978 mandir
='${datarootdir}/man'
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\
$ac_option
992 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1002 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1004 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1005 bindir
=$ac_optarg ;;
1007 -build |
--build |
--buil |
--bui |
--bu)
1008 ac_prev
=build_alias
;;
1009 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1010 build_alias
=$ac_optarg ;;
1012 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1013 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1014 ac_prev
=cache_file
;;
1015 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1016 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1017 cache_file
=$ac_optarg ;;
1019 --config-cache |
-C)
1020 cache_file
=config.cache
;;
1022 -datadir |
--datadir |
--datadi |
--datad)
1024 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1025 datadir
=$ac_optarg ;;
1027 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1028 |
--dataroo |
--dataro |
--datar)
1029 ac_prev
=datarootdir
;;
1030 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1031 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1032 datarootdir
=$ac_optarg ;;
1034 -disable-* |
--disable-*)
1035 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_
$ac_feature=no
;;
1043 -docdir |
--docdir |
--docdi |
--doc |
--do)
1045 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1046 docdir
=$ac_optarg ;;
1048 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1050 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1051 dvidir
=$ac_optarg ;;
1053 -enable-* |
--enable-*)
1054 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_
$ac_feature=\
$ac_optarg ;;
1062 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1063 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1064 |
--exec |
--exe |
--ex)
1065 ac_prev
=exec_prefix
;;
1066 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1067 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1068 |
--exec=* |
--exe=* |
--ex=*)
1069 exec_prefix
=$ac_optarg ;;
1071 -gas |
--gas |
--ga |
--g)
1072 # Obsolete; use --with-gas.
1075 -help |
--help |
--hel |
--he |
-h)
1076 ac_init_help
=long
;;
1077 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1078 ac_init_help
=recursive
;;
1079 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1080 ac_init_help
=short
;;
1082 -host |
--host |
--hos |
--ho)
1083 ac_prev
=host_alias
;;
1084 -host=* |
--host=* |
--hos=* |
--ho=*)
1085 host_alias
=$ac_optarg ;;
1087 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1089 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1091 htmldir
=$ac_optarg ;;
1093 -includedir |
--includedir |
--includedi |
--included |
--include \
1094 |
--includ |
--inclu |
--incl |
--inc)
1095 ac_prev
=includedir
;;
1096 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1097 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1098 includedir
=$ac_optarg ;;
1100 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1102 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1103 infodir
=$ac_optarg ;;
1105 -libdir |
--libdir |
--libdi |
--libd)
1107 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1108 libdir
=$ac_optarg ;;
1110 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1111 |
--libexe |
--libex |
--libe)
1112 ac_prev
=libexecdir
;;
1113 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1114 |
--libexe=* |
--libex=* |
--libe=*)
1115 libexecdir
=$ac_optarg ;;
1117 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1118 ac_prev
=localedir
;;
1119 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1120 localedir
=$ac_optarg ;;
1122 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1123 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1124 ac_prev
=localstatedir
;;
1125 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1126 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1127 localstatedir
=$ac_optarg ;;
1129 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1131 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1132 mandir
=$ac_optarg ;;
1134 -nfp |
--nfp |
--nf)
1135 # Obsolete; use --without-fp.
1138 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1139 |
--no-cr |
--no-c |
-n)
1142 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1143 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1146 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1147 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1148 |
--oldin |
--oldi |
--old |
--ol |
--o)
1149 ac_prev
=oldincludedir
;;
1150 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1151 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1152 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1153 oldincludedir
=$ac_optarg ;;
1155 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1157 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1158 prefix
=$ac_optarg ;;
1160 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1161 |
--program-pre |
--program-pr |
--program-p)
1162 ac_prev
=program_prefix
;;
1163 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1164 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1165 program_prefix
=$ac_optarg ;;
1167 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1168 |
--program-suf |
--program-su |
--program-s)
1169 ac_prev
=program_suffix
;;
1170 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1171 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1172 program_suffix
=$ac_optarg ;;
1174 -program-transform-name |
--program-transform-name \
1175 |
--program-transform-nam |
--program-transform-na \
1176 |
--program-transform-n |
--program-transform- \
1177 |
--program-transform |
--program-transfor \
1178 |
--program-transfo |
--program-transf \
1179 |
--program-trans |
--program-tran \
1180 |
--progr-tra |
--program-tr |
--program-t)
1181 ac_prev
=program_transform_name
;;
1182 -program-transform-name=* |
--program-transform-name=* \
1183 |
--program-transform-nam=* |
--program-transform-na=* \
1184 |
--program-transform-n=* |
--program-transform-=* \
1185 |
--program-transform=* |
--program-transfor=* \
1186 |
--program-transfo=* |
--program-transf=* \
1187 |
--program-trans=* |
--program-tran=* \
1188 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1189 program_transform_name
=$ac_optarg ;;
1191 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1193 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1194 pdfdir
=$ac_optarg ;;
1196 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1198 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1201 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1202 |
-silent |
--silent |
--silen |
--sile |
--sil)
1205 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1207 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1209 sbindir
=$ac_optarg ;;
1211 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1212 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1213 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1215 ac_prev
=sharedstatedir
;;
1216 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1217 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1218 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1220 sharedstatedir
=$ac_optarg ;;
1222 -site |
--site |
--sit)
1224 -site=* |
--site=* |
--sit=*)
1227 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1229 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1230 srcdir
=$ac_optarg ;;
1232 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1233 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1234 ac_prev
=sysconfdir
;;
1235 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1236 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1237 sysconfdir
=$ac_optarg ;;
1239 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1240 ac_prev
=target_alias
;;
1241 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1242 target_alias
=$ac_optarg ;;
1244 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1247 -version |
--version |
--versio |
--versi |
--vers |
-V)
1248 ac_init_version
=: ;;
1251 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_
$ac_package=\
$ac_optarg ;;
1259 -without-* |
--without-*)
1260 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_
$ac_package=no
;;
1269 # Obsolete; use --with-x.
1272 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1273 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1274 ac_prev
=x_includes
;;
1275 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1276 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1277 x_includes
=$ac_optarg ;;
1279 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1280 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1281 ac_prev
=x_libraries
;;
1282 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1283 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1284 x_libraries
=$ac_optarg ;;
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\
$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311 if test -n "$ac_prev"; then
1312 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1317 # Be sure to have absolute directory names.
1318 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val
=\$
$ac_var
1325 [\\/$
]* | ?
:[\\/]* ) continue;;
1326 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1337 target
=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x
; then
1341 if test "x$build_alias" = x
; then
1342 cross_compiling
=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1351 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1353 test "$silent" = yes && exec 6>/dev
/null
1356 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di
=`ls -di .` &&
1358 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted
=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir
=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted
=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1418 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 for ac_var
in $ac_precious_vars; do
1421 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1423 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1434 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1492 --build=BUILD configure
for building on BUILD
[guessed
]
1493 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive
) echo "Configuration of asterisk 1.4:";;
1504 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1505 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1506 --enable-dev-mode Turn on developer mode
1507 --disable-largefile omit support
for large files
1510 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1511 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1512 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1513 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1514 --with-curl=PATH use cURL files
in PATH
1515 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1516 --with-curses=PATH use curses files
in PATH
1517 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1519 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1520 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1521 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1522 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1523 --with-kde=PATH use KDE files
in PATH
1524 --with-ltdl=PATH use libtool files
in PATH
1525 --with-misdn=PATH use mISDN User Library files
in PATH
1526 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1527 --with-ncurses=PATH use ncurses files
in PATH
1528 --with-netsnmp=PATH use Net-SNMP files
in PATH
1529 --with-newt=PATH use newt files
in PATH
1530 --with-odbc=PATH use unixODBC files
in PATH
1531 --with-ogg=PATH use OGG files
in PATH
1532 --with-osptk=PATH use OSP Toolkit files
in PATH
1533 --with-oss=PATH use Open Sound System files
in PATH
1534 --with-popt=PATH use popt files
in PATH
1535 --with-postgres=PATH use PostgreSQL files
in PATH
1536 --with-pri=PATH use ISDN PRI files
in PATH
1537 --with-pwlib=PATH use PWlib files
in PATH
1538 --with-h323=PATH use OpenH323 files
in PATH
1539 --with-radius=PATH use Radius Client files
in PATH
1540 --with-speex=PATH use Speex files
in PATH
1541 --with-speexdsp=PATH use Speexdsp files
in PATH
1542 --with-sqlite=PATH use SQLite files
in PATH
1543 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1544 --with-ssl=PATH use OpenSSL files
in PATH
1545 --with-tds=PATH use FreeTDS files
in PATH
1546 --with-termcap=PATH use Termcap files
in PATH
1547 --with-tinfo=PATH use Term Info files
in PATH
1548 --with-tonezone=PATH use tonezone files
in PATH
1549 --with-usb=PATH use usb files
in PATH
1550 --with-vorbis=PATH use Vorbis files
in PATH
1551 --with-vpb=PATH use Voicetronix API files
in PATH
1552 --with-z=PATH use zlib files
in PATH
1553 --with-zaptel=PATH use Zaptel files
in PATH
1555 Some influential environment variables
:
1556 CC C compiler
command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1559 nonstandard directory
<lib dir
>
1560 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1561 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1562 you have headers
in a nonstandard directory
<include dir
>
1564 CXX C
++ compiler
command
1565 CXXFLAGS C
++ compiler flags
1566 CXXCPP C
++ preprocessor
1568 Use these variables to override the choices made by
`configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <www.asterisk.org>.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1632 asterisk configure 1.4
1633 generated by GNU Autoconf 2.61
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by asterisk $as_me 1.4, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1661 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1662 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1663 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1664 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1665 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1667 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1668 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1670 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1671 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1672 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1673 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1674 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1675 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1676 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1921 ac_header_list="$ac_header_list utime.h"
1922 # Check that the precious variables saved in the cache have kept the same
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1933 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1937 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1944 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1945 echo "$as_me: former value
: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1947 echo "$as_me: current value
: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1965 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1966 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 # cross-compile macros
2005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006 if test -f "$ac_dir/install-sh"; then
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2010 elif test -f "$ac_dir/install.sh"; then
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2014 elif test -f "$ac_dir/shtool"; then
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: checking build system type" >&5
2042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052 { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 echo "${ECHO_T}$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 echo "$as_me: error: invalid value of canonical build" >&2;}
2065 { (exit 1); exit 1; }; };;
2068 ac_save_IFS=$IFS; IFS='-'
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2078 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2081 { echo "$as_me:$LINENO: checking host system type" >&5
2082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test "x$host_alias" = x; then
2087 ac_cv_host=$ac_cv_build
2089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 echo "${ECHO_T}$ac_cv_host" >&6; }
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 echo "$as_me: error: invalid value of canonical host" >&2;}
2102 { (exit 1); exit 1; }; };;
2105 ac_save_IFS=$IFS; IFS='-'
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2115 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2119 # check existence of the package
2122 # specify output header file
2123 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2130 cat >>confdefs.h <<\_ACEOF
2131 #define _GNU_SOURCE 1
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2179 if test -z "$ac_cv_prog_CC"; then
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2217 if test "x$ac_ct_CC" = x; then
2220 case $cross_compiling:$ac_tool_warned in
2222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="${ac_tool_prefix}cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 if test -n "$CC"; then
2267 { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2277 if test -z "$CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297 ac_prog_rejected=yes
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2323 if test -n "$CC"; then
2324 { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$CC"; then
2334 if test -n "$ac_tool_prefix"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$CC" && break
2377 if test -z "$CC"; then
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$ac_ct_CC" && break
2421 if test "x$ac_ct_CC" = x; then
2424 case $cross_compiling:$ac_tool_warned in
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log
' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details.
" >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2449 ac_compiler=`set X $ac_compile; echo $2`
2450 { (ac_try="$ac_compiler --version >&5"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler --version >&5") 2>&5
2458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2459 (exit $ac_status); }
2460 { (ac_try="$ac_compiler -v >&5"
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compiler -v >&5") 2>&5
2468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2469 (exit $ac_status); }
2470 { (ac_try="$ac_compiler -V >&5"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compiler -V >&5") 2>&5
2478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2479 (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2501 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2502 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505 # List of possible output files, starting from the most likely.
2506 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2507 # only as a last resort. b.out is created by i960 compilers.
2508 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2510 # The IRIX 6 linker writes into existing files which may not be
2511 # executable, retaining their permissions. Remove them first so a
2512 # subsequent execution test works.
2514 for ac_file in $ac_files
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2523 if { (ac_try="$ac_link_default"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link_default") 2>&5
2531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2538 for ac_file in $ac_files ''
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2545 # We found the default executable, but exeext='' is most
2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # We set ac_cv_exeext here because the later test for it is not
2554 # safe: cross compilers may not add the suffix if given an `-o'
2555 # argument, so we may need to know it at that point already.
2556 # Even if this section looks crufty: it has the advantage of
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2569 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6; }
2571 if test -z "$ac_file"; then
2572 echo "$as_me: failed program was
:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2576 See \
`config.log' for more details." >&5
2577 echo "$as_me: error: C compiler cannot create executables
2578 See \`config.log
' for more details." >&2;}
2579 { (exit 77); exit 77; }; }
2582 ac_exeext=$ac_cv_exeext
2584 # Check that the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591 if { ac_try='.
/$ac_file'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 if test "$cross_compiling" = maybe; then
2606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \
`config.log' for more details." >&5
2609 echo "$as_me: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details.
" >&2;}
2612 { (exit 1); exit 1; }; }
2616 { echo "$as_me:$LINENO: result
: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2624 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2625 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2626 echo "${ECHO_T}$cross_compiling" >&6; }
2628 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2629 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2630 if { (ac_try="$ac_link"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_link") 2>&5
2638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2639 (exit $ac_status); }; then
2640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2644 for ac_file in conftest.exe conftest conftest.*; do
2645 test -f "$ac_file" || continue
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2655 See \
`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log
' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2661 rm -f conftest$ac_cv_exeext
2662 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2668 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.o conftest.obj
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2708 echo "$as_me: failed program was:" >&5
2709 sed 's
/^
/|
/' conftest.$ac_ext >&5
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details.
" >&5
2713 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2714 See \
`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2720 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721 echo "${ECHO_T}$ac_cv_objext" >&6; }
2722 OBJEXT=$ac_cv_objext
2724 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2725 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2726 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2751 *) ac_try_echo
=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2756 grep -v '^ *+' conftest.er1
>conftest.err
2758 cat conftest.err
>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.
$ac_objext; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.
$ac_ext >&5
2772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2773 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2776 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2778 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS
=${CFLAGS+set}
2780 ac_save_CFLAGS
=$CFLAGS
2781 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_cc_g+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_save_c_werror_flag
=$ac_c_werror_flag
2787 ac_c_werror_flag
=yes
2790 cat >conftest.
$ac_ext <<_ACEOF
2793 cat confdefs.h
>>conftest.
$ac_ext
2794 cat >>conftest.
$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2805 rm -f conftest.
$ac_objext
2806 if { (ac_try
="$ac_compile"
2808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2847 *) ac_try_echo
=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2852 grep -v '^ *+' conftest.er1
>conftest.err
2854 cat conftest.err
>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.
$ac_objext; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.
$ac_ext >&5
2865 ac_c_werror_flag
=$ac_save_c_werror_flag
2867 cat >conftest.
$ac_ext <<_ACEOF
2870 cat confdefs.h
>>conftest.
$ac_ext
2871 cat >>conftest.
$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.
$ac_objext
2883 if { (ac_try
="$ac_compile"
2885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2927 if test "$GCC" = yes; then
2933 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2934 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 ac_cv_prog_cc_c89=no
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2964 s = g (p, va_arg (v,int));
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2970 function prototypes and stuff, but not '\xHH' hex character constants.
2971 These don't provoke an error unfortunately, instead are silently treated
2972 as 'x'. The following induces an error, until -std is added to get
2973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2974 array size at least. It's necessary to write '\x00'==0 to get something
2975 that's true only with -std. */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979 inside strings and character constants. */
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3000 CC="$ac_save_CC $ac_arg"
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3005 *) ac_try_echo
=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1
>conftest.err
3012 cat conftest.err
>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.
$ac_objext; then
3018 ac_cv_prog_cc_c89
=$ac_arg
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.
$ac_ext >&5
3026 rm -f core conftest.err conftest.
$ac_objext
3027 test "x$ac_cv_prog_cc_c89" != "xno" && break
3029 rm -f conftest.
$ac_ext
3034 case "x$ac_cv_prog_cc_c89" in
3036 { echo "$as_me:$LINENO: result: none needed" >&5
3037 echo "${ECHO_T}none needed" >&6; } ;;
3039 { echo "$as_me:$LINENO: result: unsupported" >&5
3040 echo "${ECHO_T}unsupported" >&6; } ;;
3042 CC
="$CC $ac_cv_prog_cc_c89"
3043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3049 ac_cpp
='$CPP $CPPFLAGS'
3050 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3056 ac_cpp
='$CPP $CPPFLAGS'
3057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3060 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 # Double quotes because CPP needs to be expanded
3071 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 for ac_c_preproc_warn_flag
in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.
$ac_ext <<_ACEOF
3085 cat confdefs.h
>>conftest.
$ac_ext
3086 cat >>conftest.
$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3089 # include <limits.h>
3091 # include <assert.h>
3095 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null && {
3108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Broken: fails on valid input.
3120 rm -f conftest.err conftest.$ac_ext
3122 # OK, works on sane cases. Now check whether nonexistent headers
3123 # can be detected and how.
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3132 if { (ac_try="$ac_cpp conftest.$ac_ext"
3134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3135 *) ac_try_echo
=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1
>conftest.err
3142 cat conftest.err
>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev
/null
&& {
3145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3148 # Broken: success on invalid input.
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3154 # Passes both tests.
3159 rm -f conftest.err conftest.
$ac_ext
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.
$ac_ext
3164 if $ac_preproc_ok; then
3176 { echo "$as_me:$LINENO: result: $CPP" >&5
3177 echo "${ECHO_T}$CPP" >&6; }
3179 for ac_c_preproc_warn_flag
in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.
$ac_ext <<_ACEOF
3190 cat confdefs.h
>>conftest.
$ac_ext
3191 cat >>conftest.
$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3194 # include <limits.h>
3196 # include <assert.h>
3200 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null && {
3213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3221 # Broken: fails on valid input.
3225 rm -f conftest.err conftest.$ac_ext
3227 # OK, works on sane cases. Now check whether nonexistent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3240 *) ac_try_echo
=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1
>conftest.err
3247 cat conftest.err
>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev
/null
&& {
3250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3253 # Broken: success on invalid input.
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.
$ac_ext >&5
3259 # Passes both tests.
3264 rm -f conftest.err conftest.
$ac_ext
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.
$ac_ext
3269 if $ac_preproc_ok; then
3272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3280 ac_cpp
='$CPP $CPPFLAGS'
3281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_GREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 # Extract the first word of "grep ggrep" to use in msg output
3292 if test -z "$GREP"; then
3293 set dummy
grep ggrep
; ac_prog_name
=$2
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_path_GREP_found
=false
3298 # Loop through the user's path and test for each of PROGNAME-LIST
3299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3300 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3303 test -z "$as_dir" && as_dir
=.
3304 for ac_prog
in grep ggrep
; do
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3308 # Check for GNU ac_path_GREP and select it if it is found.
3309 # Check for GNU $ac_path_GREP
3310 case `"$ac_path_GREP" --version 2>&1` in
3312 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3315 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 echo 'GREP' >> "conftest.nl"
3322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3323 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3324 ac_count
=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_GREP
="$ac_path_GREP"
3328 ac_path_GREP_max
=$ac_count
3330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3333 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3337 $ac_path_GREP_found && break 3
3347 GREP
="$ac_cv_path_GREP"
3348 if test -z "$GREP"; then
3349 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3350 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3351 { (exit 1); exit 1; }; }
3355 ac_cv_path_GREP
=$GREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3362 GREP
="$ac_cv_path_GREP"
3365 { echo "$as_me:$LINENO: checking for egrep" >&5
3366 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3367 if test "${ac_cv_path_EGREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3371 then ac_cv_path_EGREP
="$GREP -E"
3373 # Extract the first word of "egrep" to use in msg output
3374 if test -z "$EGREP"; then
3375 set dummy
egrep; ac_prog_name
=$2
3376 if test "${ac_cv_path_EGREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 ac_path_EGREP_found
=false
3380 # Loop through the user's path and test for each of PROGNAME-LIST
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3385 test -z "$as_dir" && as_dir
=.
3386 for ac_prog
in egrep; do
3387 for ac_exec_ext
in '' $ac_executable_extensions; do
3388 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3390 # Check for GNU ac_path_EGREP and select it if it is found.
3391 # Check for GNU $ac_path_EGREP
3392 case `"$ac_path_EGREP" --version 2>&1` in
3394 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'EGREP' >> "conftest.nl"
3404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3405 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3406 ac_count
=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_EGREP
="$ac_path_EGREP"
3410 ac_path_EGREP_max
=$ac_count
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3415 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3419 $ac_path_EGREP_found && break 3
3429 EGREP
="$ac_cv_path_EGREP"
3430 if test -z "$EGREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3437 ac_cv_path_EGREP
=$EGREP
3443 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3444 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3445 EGREP
="$ac_cv_path_EGREP"
3449 { echo "$as_me:$LINENO: checking for AIX" >&5
3450 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3451 cat >conftest.
$ac_ext <<_ACEOF
3454 cat confdefs.h
>>conftest.
$ac_ext
3455 cat >>conftest.
$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "yes" >/dev
/null
2>&1; then
3464 { echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6; }
3466 cat >>confdefs.h
<<\_ACEOF
3467 #define _ALL_SOURCE 1
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3477 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 cat >conftest.
$ac_ext <<_ACEOF
3485 cat confdefs.h
>>conftest.
$ac_ext
3486 cat >>conftest.
$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3501 rm -f conftest.
$ac_objext
3502 if { (ac_try
="$ac_compile"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_header_stdc=yes
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_cv_header_stdc=no
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 if test $ac_cv_header_stdc = yes; then
3529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "memchr" >/dev/null 2>&1; then
3543 ac_cv_header_stdc=no
3549 if test $ac_cv_header_stdc = yes; then
3550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "free" >/dev/null 2>&1; then
3564 ac_cv_header_stdc=no
3570 if test $ac_cv_header_stdc = yes; then
3571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3572 if test "$cross_compiling" = yes; then
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3583 #if ((' ' & 0x0FF) == 0x020)
3584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587 # define ISLOWER(c) \
3588 (('a' <= (c) && (c) <= 'i') \
3589 || ('j' <= (c) && (c) <= 'r') \
3590 || ('s' <= (c) && (c) <= 'z'))
3591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3599 for (i = 0; i < 256; i++)
3600 if (XOR (islower (i), ISLOWER (i))
3601 || toupper (i) != TOUPPER (i))
3606 rm -f conftest$ac_exeext
3607 if { (ac_try="$ac_link"
3609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3610 *) ac_try_echo
=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_link") 2>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3617 { (case "(($ac_try" in
3618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_try") 2>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3628 echo "$as_me: program exited with status $ac_status" >&5
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_cv_header_stdc=no
3635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3641 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3642 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3643 if test $ac_cv_header_stdc = yes; then
3645 cat >>confdefs.h <<\_ACEOF
3646 #define STDC_HEADERS 1
3651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3662 inttypes.h stdint.h unistd.h
3664 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 $ac_includes_default
3678 #include <$ac_header>
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3684 *) ac_try_echo
=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3689 grep -v '^ *+' conftest.er1
>conftest.err
3691 cat conftest.err
>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.
$ac_objext; then
3697 eval "$as_ac_Header=yes"
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.
$ac_ext >&5
3702 eval "$as_ac_Header=no"
3705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3707 ac_res
=`eval echo '${'$as_ac_Header'}'`
3708 { echo "$as_me:$LINENO: result: $ac_res" >&5
3709 echo "${ECHO_T}$ac_res" >&6; }
3710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h
<<_ACEOF
3712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3720 if test "${ac_cv_header_minix_config_h+set}" = set; then
3721 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3722 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_minix_config_h+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3729 # Is the header compilable?
3730 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3731 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 $ac_includes_default
3739 #include <minix/config.h>
3741 rm -f conftest.
$ac_objext
3742 if { (ac_try
="$ac_compile"
3744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3750 grep -v '^ *+' conftest.er1 >conftest.err
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3758 ac_header_compiler=yes
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_header_compiler=no
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3768 echo "${ECHO_T}$ac_header_compiler" >&6; }
3770 # Is the header present?
3771 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3772 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #include <minix/config.h>
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3784 *) ac_try_echo
=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1
>conftest.err
3791 cat conftest.err
>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev
/null
&& {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3797 ac_header_preproc
=yes
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.
$ac_ext >&5
3802 ac_header_preproc
=no
3805 rm -f conftest.err conftest.
$ac_ext
3806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3807 echo "${ECHO_T}$ac_header_preproc" >&6; }
3809 # So? What about this header?
3810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3812 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3813 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3815 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3816 ac_header_preproc
=yes
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3820 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3822 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3823 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3824 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3825 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3826 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3830 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3832 ## ------------------------------- ##
3833 ## Report this to www.asterisk.org ##
3834 ## ------------------------------- ##
3836 ) |
sed "s/^/$as_me: WARNING: /" >&2
3839 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3840 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3841 if test "${ac_cv_header_minix_config_h+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_cv_header_minix_config_h
=$ac_header_preproc
3846 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3847 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3850 if test $ac_cv_header_minix_config_h = yes; then
3857 if test "$MINIX" = yes; then
3859 cat >>confdefs.h
<<\_ACEOF
3860 #define _POSIX_SOURCE 1
3864 cat >>confdefs.h
<<\_ACEOF
3865 #define _POSIX_1_SOURCE 2
3869 cat >>confdefs.h
<<\_ACEOF
3885 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3886 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3887 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 cat >conftest.
$ac_ext <<_ACEOF
3893 cat confdefs.h
>>conftest.
$ac_ext
3894 cat >>conftest.
$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # define __EXTENSIONS__ 1
3898 $ac_includes_default
3907 rm -f conftest.
$ac_objext
3908 if { (ac_try
="$ac_compile"
3910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_safe_to_define___extensions__=yes
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3935 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 cat >>confdefs.h <<\_ACEOF
3938 #define __EXTENSIONS__ 1
3941 cat >>confdefs.h <<\_ACEOF
3942 #define _POSIX_PTHREAD_SEMANTICS 1
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _TANDEM_SOURCE 1
3949 # note- does not work on FreeBSD
3951 case "${host_os}" in
3953 ac_default_prefix=/usr/local
3954 CPPFLAGS=-I/usr/local/include
3955 LDFLAGS=-L/usr/local/lib
3958 ac_default_prefix=/usr
3959 if test ${sysconfdir} = '${prefix}/etc'; then
3962 if test ${mandir} = '${prefix}/man'; then
3963 mandir=/usr/share/man
3968 if test ${localstatedir} = '${prefix}/var'; then
3972 BUILD_PLATFORM=${build}
3973 BUILD_CPU=${build_cpu}
3974 BUILD_VENDOR=${build_vendor}
3975 BUILD_OS=${build_os}
3982 HOST_PLATFORM=${host}
3983 HOST_CPU=${host_cpu}
3984 HOST_VENDOR=${host_vendor}
3992 case "${host_os}" in
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}uname; ac_word=$2
4016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4018 if test "${ac_cv_path_UNAME+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 UNAME=$ac_cv_path_UNAME
4045 if test -n "$UNAME"; then
4046 { echo "$as_me:$LINENO: result: $UNAME" >&5
4047 echo "${ECHO_T}$UNAME" >&6; }
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4055 if test -z "$ac_cv_path_UNAME"; then
4057 # Extract the first word of "uname", so it can be a program name with args.
4058 set dummy uname; ac_word=$2
4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 case $ac_pt_UNAME in
4066 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4088 if test -n "$ac_pt_UNAME"; then
4089 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4090 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4092 { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4096 if test "x$ac_pt_UNAME" = x; then
4099 case $cross_compiling:$ac_tool_warned in
4101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4102 whose name does not start with the host triplet. If you think this
4103 configuration is useful to you, please write to autoconf@gnu.org." >&5
4104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4105 whose name does not start with the host triplet. If you think this
4106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4107 ac_tool_warned=yes ;;
4112 UNAME="$ac_cv_path_UNAME"
4115 if test ! x"${UNAME}" = xNo; then
4116 PBX_OSREV=$(${UNAME} -r)
4126 # cross-compile checks
4127 if test "${cross_compiling}" = "yes";
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4134 if test "${ac_cv_prog_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 if test -n "$CC"; then
4159 { echo "$as_me:$LINENO: result: $CC" >&5
4160 echo "${ECHO_T}$CC" >&6; }
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4168 if test -z "$ac_cv_prog_CC"; then
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171 set dummy gcc; ac_word=$2
4172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_ac_ct_CC="gcc"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6; }
4202 { echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6; }
4206 if test "x$ac_ct_CC" = x; then
4209 case $cross_compiling:$ac_tool_warned in
4211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&5
4214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4215 whose name does not start with the host triplet. If you think this
4216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4217 ac_tool_warned=yes ;;
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}g++; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_CXX+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$CXX"; then
4255 { echo "$as_me:$LINENO: result: $CXX" >&5
4256 echo "${ECHO_T}$CXX" >&6; }
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4264 if test -z "$ac_cv_prog_CXX"; then
4266 # Extract the first word of "g++", so it can be a program name with args.
4267 set dummy g++; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$ac_ct_CXX"; then
4274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_ac_ct_CXX="g++"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4294 if test -n "$ac_ct_CXX"; then
4295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4302 if test "x$ac_ct_CXX" = x; then
4305 case $cross_compiling:$ac_tool_warned in
4307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet. If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4318 CXX="$ac_cv_prog_CXX"
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}ld; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_prog_LD+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 if test -n "$LD"; then
4330 ac_cv_prog_LD="$LD" # Let the user override the test.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_LD="${ac_tool_prefix}ld"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 if test -n "$LD"; then
4351 { echo "$as_me:$LINENO: result: $LD" >&5
4352 echo "${ECHO_T}$LD" >&6; }
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4360 if test -z "$ac_cv_prog_LD"; then
4362 # Extract the first word of "ld", so it can be a program name with args.
4363 set dummy ld; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test -n "$ac_ct_LD"; then
4370 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_LD="ld"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4390 if test -n "$ac_ct_LD"; then
4391 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4392 echo "${ECHO_T}$ac_ct_LD" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4398 if test "x$ac_ct_LD" = x; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4404 whose name does not start with the host triplet. If you think this
4405 configuration is useful to you, please write to autoconf@gnu.org." >&5
4406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4407 whose name does not start with the host triplet. If you think this
4408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4409 ac_tool_warned=yes ;;
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_RANLIB+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$RANLIB"; then
4426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 RANLIB=$ac_cv_prog_RANLIB
4446 if test -n "$RANLIB"; then
4447 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4448 echo "${ECHO_T}$RANLIB" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_RANLIB"; then
4457 ac_ct_RANLIB=$RANLIB
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459 set dummy ranlib; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$ac_ct_RANLIB"; then
4466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_RANLIB="ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4486 if test -n "$ac_ct_RANLIB"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4488 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_RANLIB" = x; then
4497 case $cross_compiling:$ac_tool_warned in
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4507 RANLIB=$ac_ct_RANLIB
4510 RANLIB="$ac_cv_prog_RANLIB"
4515 # Checks for programs.
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 if test -n "$CC"; then
4551 { echo "$as_me:$LINENO: result: $CC" >&5
4552 echo "${ECHO_T}$CC" >&6; }
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4560 if test -z "$ac_cv_prog_CC"; then
4562 # Extract the first word of "gcc", so it can be a program name with args.
4563 set dummy gcc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC="gcc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4592 echo "${ECHO_T}$ac_ct_CC" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4598 if test "x$ac_ct_CC" = x; then
4601 case $cross_compiling:$ac_tool_warned in
4603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet. If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&5
4606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4607 whose name does not start with the host triplet. If you think this
4608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4609 ac_tool_warned=yes ;;
4617 if test -z "$CC"; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}cc; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC="${ac_tool_prefix}cc"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4658 if test -z "$CC"; then
4659 # Extract the first word of "cc", so it can be a program name with args.
4660 set dummy cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678 ac_prog_rejected=yes
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_CC
4693 if test $# != 0; then
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set CC to just the basename; use the full file name.
4698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4704 if test -n "$CC"; then
4705 { echo "$as_me:$LINENO: result: $CC" >&5
4706 echo "${ECHO_T}$CC" >&6; }
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in cl.exe
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC="$CC" # Let the user override the test.
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 if test -n "$CC"; then
4747 { echo "$as_me:$LINENO: result: $CC" >&5
4748 echo "${ECHO_T}$CC" >&6; }
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4755 test -n "$CC" && break
4758 if test -z "$CC"; then
4760 for ac_prog in cl.exe
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$ac_ct_CC"; then
4770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_CC="$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4790 if test -n "$ac_ct_CC"; then
4791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4792 echo "${ECHO_T}$ac_ct_CC" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 test -n "$ac_ct_CC" && break
4802 if test "x$ac_ct_CC" = x; then
4805 case $cross_compiling:$ac_tool_warned in
4807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4808 whose name does not start with the host triplet. If you think this
4809 configuration is useful to you, please write to autoconf@gnu.org." >&5
4810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4811 whose name does not start with the host triplet. If you think this
4812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4813 ac_tool_warned=yes ;;
4822 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4823 See \`config.log
' for more details." >&5
4824 echo "$as_me: error: no acceptable C compiler found in \$PATH
4825 See \`config.log' for more details.
" >&2;}
4826 { (exit 1); exit 1; }; }
4828 # Provide some information about the compiler.
4829 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4830 ac_compiler=`set X $ac_compile; echo $2`
4831 { (ac_try="$ac_compiler --version >&5"
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compiler --version >&5") 2>&5
4839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4840 (exit $ac_status); }
4841 { (ac_try="$ac_compiler -v >&5"
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_compiler -v >&5") 2>&5
4849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4850 (exit $ac_status); }
4851 { (ac_try="$ac_compiler -V >&5"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_compiler -V >&5") 2>&5
4859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4860 (exit $ac_status); }
4862 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4863 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4865 echo $ECHO_N "(cached
) $ECHO_C" >&6
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4904 echo "$as_me: failed program was
:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4914 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4916 GCC=`test $ac_compiler_gnu = yes && echo yes`
4917 ac_test_CFLAGS=${CFLAGS+set}
4918 ac_save_CFLAGS=$CFLAGS
4919 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4920 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4921 if test "${ac_cv_prog_cc_g+set}" = set; then
4922 echo $ECHO_N "(cached
) $ECHO_C" >&6
4924 ac_save_c_werror_flag=$ac_c_werror_flag
4925 ac_c_werror_flag=yes
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_compile") 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4956 (exit $ac_status); } && {
4957 test -z "$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 } && test -s conftest.$ac_objext; then
4962 echo "$as_me: failed program was
:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4990 grep -v '^ *+' conftest.er1 >conftest.err
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
5000 echo "$as_me: failed program was
:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_c_werror_flag=$ac_save_c_werror_flag
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5039 echo "$as_me: failed program was
:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_c_werror_flag=$ac_save_c_werror_flag
5054 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5056 if test "$ac_test_CFLAGS" = set; then
5057 CFLAGS=$ac_save_CFLAGS
5058 elif test $ac_cv_prog_cc_g = yes; then
5059 if test "$GCC" = yes; then
5065 if test "$GCC" = yes; then
5071 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5072 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5073 if test "${ac_cv_prog_cc_c89+set}" = set; then
5074 echo $ECHO_N "(cached
) $ECHO_C" >&6
5076 ac_cv_prog_cc_c89=no
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 #include <sys/types.h>
5087 #include <sys/stat.h>
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5102 s = g (p, va_arg (v,int));
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cc_c89=$ac_arg
5158 echo "$as_me: failed program was
:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core conftest.err conftest.$ac_objext
5165 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5167 rm -f conftest.$ac_ext
5172 case "x
$ac_cv_prog_cc_c89" in
5174 { echo "$as_me:$LINENO: result
: none needed
" >&5
5175 echo "${ECHO_T}none needed
" >&6; } ;;
5177 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5178 echo "${ECHO_T}unsupported
" >&6; } ;;
5180 CC="$CC $ac_cv_prog_cc_c89"
5181 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193 ac_cpp='$CXXCPP $CPPFLAGS'
5194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197 if test -z "$CXX"; then
5198 if test -n "$CCC"; then
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5207 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5208 if test "${ac_cv_prog_CXX+set}" = set; then
5209 echo $ECHO_N "(cached
) $ECHO_C" >&6
5211 if test -n "$CXX"; then
5212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5232 if test -n "$CXX"; then
5233 { echo "$as_me:$LINENO: result
: $CXX" >&5
5234 echo "${ECHO_T}$CXX" >&6; }
5236 { echo "$as_me:$LINENO: result
: no
" >&5
5237 echo "${ECHO_T}no
" >&6; }
5241 test -n "$CXX" && break
5244 if test -z "$CXX"; then
5246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5248 # Extract the first word of "$ac_prog", so it can be a program name with args.
5249 set dummy $ac_prog; ac_word=$2
5250 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5251 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5252 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253 echo $ECHO_N "(cached
) $ECHO_C" >&6
5255 if test -n "$ac_ct_CXX"; then
5256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_CXX="$ac_prog"
5266 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276 if test -n "$ac_ct_CXX"; then
5277 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5278 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5280 { echo "$as_me:$LINENO: result
: no
" >&5
5281 echo "${ECHO_T}no
" >&6; }
5285 test -n "$ac_ct_CXX" && break
5288 if test "x
$ac_ct_CXX" = x; then
5291 case $cross_compiling:$ac_tool_warned in
5293 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5294 whose name does not start with the
host triplet. If you think this
5295 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5296 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5297 whose name does not start with the
host triplet. If you think this
5298 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5299 ac_tool_warned=yes ;;
5307 # Provide some information about the compiler.
5308 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5309 ac_compiler=`set X $ac_compile; echo $2`
5310 { (ac_try="$ac_compiler --version >&5"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler --version >&5") 2>&5
5318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5319 (exit $ac_status); }
5320 { (ac_try="$ac_compiler -v >&5"
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -v >&5") 2>&5
5328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5329 (exit $ac_status); }
5330 { (ac_try="$ac_compiler -V >&5"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler -V >&5") 2>&5
5338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5339 (exit $ac_status); }
5341 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5342 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344 echo $ECHO_N "(cached
) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_cxx_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
5383 echo "$as_me: failed program was
:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5393 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5395 GXX=`test $ac_compiler_gnu = yes && echo yes`
5396 ac_test_CXXFLAGS=${CXXFLAGS+set}
5397 ac_save_CXXFLAGS=$CXXFLAGS
5398 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5399 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5400 if test "${ac_cv_prog_cxx_g+set}" = set; then
5401 echo $ECHO_N "(cached
) $ECHO_C" >&6
5403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404 ac_cxx_werror_flag=yes
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_cxx_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_prog_cxx_g=yes
5441 echo "$as_me: failed program was
:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5479 echo "$as_me: failed program was
:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_cxx_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_cv_prog_cxx_g=yes
5518 echo "$as_me: failed program was
:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5533 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5534 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535 if test "$ac_test_CXXFLAGS" = set; then
5536 CXXFLAGS=$ac_save_CXXFLAGS
5537 elif test $ac_cv_prog_cxx_g = yes; then
5538 if test "$GXX" = yes; then
5544 if test "$GXX" = yes; then
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5562 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5563 # On Suns, sometimes $CPP names a directory.
5564 if test -n "$CPP" && test -d "$CPP"; then
5567 if test -z "$CPP"; then
5568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached
) $ECHO_C" >&6
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5575 for ac_c_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error
" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 # include <limits.h>
5592 # include <assert.h>
5596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5614 echo "$as_me: failed program was
:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Broken: fails on valid input.
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5633 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5649 # Broken: success on invalid input.
5652 echo "$as_me: failed program was
:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 # Passes both tests.
5660 rm -f conftest.err conftest.$ac_ext
5663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664 rm -f conftest.err conftest.$ac_ext
5665 if $ac_preproc_ok; then
5677 { echo "$as_me:$LINENO: result
: $CPP" >&5
5678 echo "${ECHO_T}$CPP" >&6; }
5680 for ac_c_preproc_warn_flag in '' yes
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error
" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 # include <limits.h>
5697 # include <assert.h>
5701 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5719 echo "$as_me: failed program was
:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 # Broken: fails on valid input.
5726 rm -f conftest.err conftest.$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <ac_nonexistent.h>
5738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5746 grep -v '^ *+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5754 # Broken: success on invalid input.
5757 echo "$as_me: failed program was
:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Passes both tests.
5765 rm -f conftest.err conftest.$ac_ext
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5773 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5774 See \
`config.log' for more details." >&5
5775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5776 See \`config.log
' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5783 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 ac_cpp='$CXXCPP $CPPFLAGS'
5788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5789 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5791 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5792 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5793 if test -z "$CXXCPP"; then
5794 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 # Double quotes because CXXCPP needs to be expanded
5798 for CXXCPP in "$CXX -E" "/lib/cpp"
5801 for ac_cxx_preproc_warn_flag in '' yes
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser
,
5808 # not just through cpp. "Syntax error" is here to catch this case.
5809 cat >conftest.
$ac_ext <<_ACEOF
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5816 # include <limits.h>
5818 # include <assert.h>
5822 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5836 test ! -s conftest.err
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 # Broken: fails on valid input.
5847 rm -f conftest.err conftest.$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5859 if { (ac_try="$ac_cpp conftest.$ac_ext"
5861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5862 *) ac_try_echo
=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev
/null
&& {
5872 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5873 test ! -s conftest.err
5875 # Broken: success on invalid input.
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.
$ac_ext >&5
5881 # Passes both tests.
5886 rm -f conftest.err conftest.
$ac_ext
5889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890 rm -f conftest.err conftest.
$ac_ext
5891 if $ac_preproc_ok; then
5896 ac_cv_prog_CXXCPP
=$CXXCPP
5899 CXXCPP
=$ac_cv_prog_CXXCPP
5901 ac_cv_prog_CXXCPP
=$CXXCPP
5903 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5904 echo "${ECHO_T}$CXXCPP" >&6; }
5906 for ac_cxx_preproc_warn_flag
in '' yes
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5921 # include <limits.h>
5923 # include <assert.h>
5927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1 >conftest.err
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941 test ! -s conftest.err
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 # Broken: fails on valid input.
5952 rm -f conftest.err conftest.$ac_ext
5954 # OK, works on sane cases. Now check whether nonexistent headers
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <ac_nonexistent.h>
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5967 *) ac_try_echo
=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev
/null
&& {
5977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978 test ! -s conftest.err
5980 # Broken: success on invalid input.
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 # Passes both tests.
5991 rm -f conftest.err conftest.
$ac_ext
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.
$ac_ext
5996 if $ac_preproc_ok; then
5999 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&5
6001 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6007 ac_cpp
='$CPP $CPPFLAGS'
6008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6012 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6013 # the developers regenerating the configure script don't have to install libtool.
6014 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6015 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_SED+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6020 for ac_i
in 1 2 3 4 5 6 7; do
6021 ac_script
="$ac_script$as_nl$ac_script"
6023 echo "$ac_script" |
sed 99q
>conftest.
sed
6024 $as_unset ac_script || ac_script
=
6025 # Extract the first word of "sed gsed" to use in msg output
6026 if test -z "$SED"; then
6027 set dummy
sed gsed
; ac_prog_name
=$2
6028 if test "${ac_cv_path_SED+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_path_SED_found
=false
6032 # Loop through the user's path and test for each of PROGNAME-LIST
6033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir
=.
6038 for ac_prog
in sed gsed
; do
6039 for ac_exec_ext
in '' $ac_executable_extensions; do
6040 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6041 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6042 # Check for GNU ac_path_SED and select it if it is found.
6043 # Check for GNU $ac_path_SED
6044 case `"$ac_path_SED" --version 2>&1` in
6046 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
6053 mv "conftest.tmp" "conftest.in"
6054 cp "conftest.in" "conftest.nl"
6055 echo '' >> "conftest.nl"
6056 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6057 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6058 ac_count
=`expr $ac_count + 1`
6059 if test $ac_count -gt ${ac_path_SED_max-0}; then
6060 # Best one so far, save it but keep looking for a better one
6061 ac_cv_path_SED
="$ac_path_SED"
6062 ac_path_SED_max
=$ac_count
6064 # 10*(2^10) chars as input seems more than enough
6065 test $ac_count -gt 10 && break
6067 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6071 $ac_path_SED_found && break 3
6081 SED
="$ac_cv_path_SED"
6082 if test -z "$SED"; then
6083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6084 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6085 { (exit 1); exit 1; }; }
6093 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6094 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6095 SED
="$ac_cv_path_SED"
6098 { echo "$as_me:$LINENO: checking for egrep" >&5
6099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_egrep+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6104 then ac_cv_prog_egrep
='grep -E'
6105 else ac_cv_prog_egrep
='egrep'
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6110 EGREP
=$ac_cv_prog_egrep
6114 # Check whether --with-gnu-ld was given.
6115 if test "${with_gnu_ld+set}" = set; then
6116 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6122 if test "$GCC" = yes; then
6123 # Check if gcc -print-prog-name=ld gives a path.
6124 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6128 # gcc leaves a trailing carriage return which upsets mingw
6129 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6131 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6134 # Accept absolute paths.
6136 re_direlt
='/[^/][^/]*/\.\./'
6137 # Canonicalize the pathname of ld
6138 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6139 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6140 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6142 test -z "$LD" && LD
="$ac_prog"
6145 # If it fails, then pretend we aren't using GCC.
6149 # If it is relative, then search for the first ld in PATH.
6153 elif test "$with_gnu_ld" = yes; then
6154 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6157 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6160 if test "${lt_cv_path_LD+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 if test -z "$LD"; then
6164 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6165 for ac_dir
in $PATH; do
6167 test -z "$ac_dir" && ac_dir
=.
6168 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6169 lt_cv_path_LD
="$ac_dir/$ac_prog"
6170 # Check to see if the program is GNU ld. I'd rather use --version,
6171 # but apparently some variants of GNU ld only accept -v.
6172 # Break only if it was the GNU/non-GNU ld that we prefer.
6173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6174 *GNU
* |
*'with BFD'*)
6175 test "$with_gnu_ld" != no
&& break
6178 test "$with_gnu_ld" != yes && break
6185 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6190 if test -n "$LD"; then
6191 { echo "$as_me:$LINENO: result: $LD" >&5
6192 echo "${ECHO_T}$LD" >&6; }
6194 { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6199 { (exit 1); exit 1; }; }
6200 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6206 case `$LD -v 2>&1 </dev/null` in
6207 *GNU
* |
*'with BFD'*)
6208 lt_cv_prog_gnu_ld
=yes
6211 lt_cv_prog_gnu_ld
=no
6215 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6217 with_gnu_ld
=$lt_cv_prog_gnu_ld
6219 # note - does not work on freebsd
6220 for ac_prog
in gawk mawk nawk
awk
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy
$ac_prog; ac_word
=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_AWK+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 if test -n "$AWK"; then
6230 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir
=.
6237 for ac_exec_ext
in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_AWK
="$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 if test -n "$AWK"; then
6251 { echo "$as_me:$LINENO: result: $AWK" >&5
6252 echo "${ECHO_T}$AWK" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$AWK" && break
6262 # Find a good install program. We prefer a C program (faster),
6263 # so one script is as good as another. But avoid the broken or
6264 # incompatible versions:
6265 # SysV /etc/install, /usr/sbin/install
6266 # SunOS /usr/etc/install
6267 # IRIX /sbin/install
6269 # AmigaOS /C/install, which installs bootblocks on floppy discs
6270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6273 # OS/2's system install, which has a completely different semantic
6274 # ./install, which can be erroneously created by make from ./install.sh.
6275 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6276 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6277 if test -z "$INSTALL"; then
6278 if test "${ac_cv_path_install+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir
=.
6286 # Account for people who put trailing slashes in PATH elements.
6288 .
/ | .
// |
/cC
/* | \
6289 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6290 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6293 # OSF1 and SCO ODT 3.0 have their own names for install.
6294 # Don't use installbsd from OSF since it installs stuff as root
6296 for ac_prog
in ginstall scoinst
install; do
6297 for ac_exec_ext
in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6299 if test $ac_prog = install &&
6300 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6301 # AIX install. It has an incompatible calling convention.
6303 elif test $ac_prog = install &&
6304 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6305 # program-specific install script used by HP pwplus--don't use.
6308 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6321 if test "${ac_cv_path_install+set}" = set; then
6322 INSTALL
=$ac_cv_path_install
6324 # As a last resort, use the slow shell script. Don't cache a
6325 # value for INSTALL within a source directory, because that will
6326 # break other packages using the cache if that directory is
6327 # removed, or if the value is a relative name.
6328 INSTALL
=$ac_install_sh
6331 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6332 echo "${ECHO_T}$INSTALL" >&6; }
6334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6335 # It thinks the first close brace ends the variable substitution.
6336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6340 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6342 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6343 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6345 if test "$LN_S" = "ln -s"; then
6346 { echo "$as_me:$LINENO: result: yes" >&5
6347 echo "${ECHO_T}yes" >&6; }
6349 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6350 echo "${ECHO_T}no, using $LN_S" >&6; }
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_RANLIB+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir
=.
6369 for ac_exec_ext
in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 RANLIB
=$ac_cv_prog_RANLIB
6382 if test -n "$RANLIB"; then
6383 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6384 echo "${ECHO_T}$RANLIB" >&6; }
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6392 if test -z "$ac_cv_prog_RANLIB"; then
6393 ac_ct_RANLIB
=$RANLIB
6394 # Extract the first word of "ranlib", so it can be a program name with args.
6395 set dummy ranlib
; ac_word
=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 if test -n "$ac_ct_RANLIB"; then
6402 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir
=.
6409 for ac_exec_ext
in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6422 if test -n "$ac_ct_RANLIB"; then
6423 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6424 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6430 if test "x$ac_ct_RANLIB" = x
; then
6433 case $cross_compiling:$ac_tool_warned in
6435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6436 whose name does not start with the host triplet. If you think this
6437 configuration is useful to you, please write to autoconf@gnu.org." >&5
6438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6439 whose name does not start with the host triplet. If you think this
6440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6441 ac_tool_warned
=yes ;;
6443 RANLIB
=$ac_ct_RANLIB
6446 RANLIB
="$ac_cv_prog_RANLIB"
6449 { echo "$as_me:$LINENO: checking for GNU make" >&5
6450 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6451 if test "${GNU_MAKE+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 GNU_MAKE
='Not Found' ;
6455 GNU_MAKE_VERSION_MAJOR
=0 ;
6456 GNU_MAKE_VERSION_MINOR
=0 ;
6457 for a
in make gmake gnumake
; do
6458 if test -z "$a" ; then continue ; fi ;
6459 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6461 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6462 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6468 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6469 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6470 if test "x$GNU_MAKE" = "xNot Found" ; then
6471 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6472 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6473 { (exit 1); exit 1; }; }
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_STRIP+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir
=.
6497 for ac_exec_ext
in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 STRIP
=$ac_cv_path_STRIP
6511 if test -n "$STRIP"; then
6512 { echo "$as_me:$LINENO: result: $STRIP" >&5
6513 echo "${ECHO_T}$STRIP" >&6; }
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6521 if test -z "$ac_cv_path_STRIP"; then
6523 # Extract the first word of "strip", so it can be a program name with args.
6524 set dummy strip
; ac_word
=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 case $ac_pt_STRIP in
6532 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir
=.
6540 for ac_exec_ext
in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6554 if test -n "$ac_pt_STRIP"; then
6555 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6556 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6562 if test "x$ac_pt_STRIP" = x
; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet. If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned
=yes ;;
6578 STRIP
="$ac_cv_path_STRIP"
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_AR+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir
=.
6599 for ac_exec_ext
in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$AR"; then
6614 { echo "$as_me:$LINENO: result: $AR" >&5
6615 echo "${ECHO_T}$AR" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6623 if test -z "$ac_cv_path_AR"; then
6625 # Extract the first word of "ar", so it can be a program name with args.
6626 set dummy
ar; ac_word
=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir
=.
6642 for ac_exec_ext
in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6656 if test -n "$ac_pt_AR"; then
6657 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6658 echo "${ECHO_T}$ac_pt_AR" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6664 if test "x$ac_pt_AR" = x
; then
6667 case $cross_compiling:$ac_tool_warned in
6669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet. If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&5
6672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6673 whose name does not start with the host triplet. If you think this
6674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6675 ac_tool_warned
=yes ;;
6685 if test "x$with_gnu_ld" = "xyes" ; then
6690 # Extract the first word of "awk", so it can be a program name with args.
6691 set dummy
awk; ac_word
=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_AWK+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir
=.
6707 for ac_exec_ext
in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6722 if test -n "$AWK"; then
6723 { echo "$as_me:$LINENO: result: $AWK" >&5
6724 echo "${ECHO_T}$AWK" >&6; }
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 # Extract the first word of "grep", so it can be a program name with args.
6732 set dummy
grep; ac_word
=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_GREP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir
=.
6748 for ac_exec_ext
in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6762 GREP
=$ac_cv_path_GREP
6763 if test -n "$GREP"; then
6764 { echo "$as_me:$LINENO: result: $GREP" >&5
6765 echo "${ECHO_T}$GREP" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "find", so it can be a program name with args.
6773 set dummy
find; ac_word
=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_FIND+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir
=.
6789 for ac_exec_ext
in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6803 FIND
=$ac_cv_path_FIND
6804 if test -n "$FIND"; then
6805 { echo "$as_me:$LINENO: result: $FIND" >&5
6806 echo "${ECHO_T}$FIND" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 # Extract the first word of "compress", so it can be a program name with args.
6814 set dummy
compress; ac_word
=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_COMPRESS+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir
=.
6830 for ac_exec_ext
in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6844 COMPRESS
=$ac_cv_path_COMPRESS
6845 if test -n "$COMPRESS"; then
6846 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6847 echo "${ECHO_T}$COMPRESS" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "basename", so it can be a program name with args.
6855 set dummy
basename; ac_word
=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_BASENAME+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir
=.
6871 for ac_exec_ext
in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6885 BASENAME
=$ac_cv_path_BASENAME
6886 if test -n "$BASENAME"; then
6887 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6888 echo "${ECHO_T}$BASENAME" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "id", so it can be a program name with args.
6896 set dummy id
; ac_word
=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_ID+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir
=.
6912 for ac_exec_ext
in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6927 if test -n "$ID"; then
6928 { echo "$as_me:$LINENO: result: $ID" >&5
6929 echo "${ECHO_T}$ID" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "dirname", so it can be a program name with args.
6937 set dummy
dirname; ac_word
=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_DIRNAME+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir
=.
6953 for ac_exec_ext
in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6967 DIRNAME
=$ac_cv_path_DIRNAME
6968 if test -n "$DIRNAME"; then
6969 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6970 echo "${ECHO_T}$DIRNAME" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 # Extract the first word of "sh", so it can be a program name with args.
6978 set dummy sh
; ac_word
=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_SHELL+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir
=.
6994 for ac_exec_ext
in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7008 SHELL
=$ac_cv_path_SHELL
7009 if test -n "$SHELL"; then
7010 { echo "$as_me:$LINENO: result: $SHELL" >&5
7011 echo "${ECHO_T}$SHELL" >&6; }
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 # Extract the first word of "ln", so it can be a program name with args.
7019 set dummy
ln; ac_word
=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_path_LN+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir
=.
7035 for ac_exec_ext
in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7050 if test -n "$LN"; then
7051 { echo "$as_me:$LINENO: result: $LN" >&5
7052 echo "${ECHO_T}$LN" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7059 # Extract the first word of "dot", so it can be a program name with args.
7060 set dummy dot
; ac_word
=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_DOT+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir
=.
7076 for ac_exec_ext
in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7091 if test -n "$DOT"; then
7092 { echo "$as_me:$LINENO: result: $DOT" >&5
7093 echo "${ECHO_T}$DOT" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 # Extract the first word of "wget", so it can be a program name with args.
7101 set dummy wget
; ac_word
=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_WGET+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir
=.
7117 for ac_exec_ext
in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7131 WGET
=$ac_cv_path_WGET
7132 if test -n "$WGET"; then
7133 { echo "$as_me:$LINENO: result: $WGET" >&5
7134 echo "${ECHO_T}$WGET" >&6; }
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7141 if test "${WGET}" != ":" ; then
7144 # Extract the first word of "fetch", so it can be a program name with args.
7145 set dummy fetch
; ac_word
=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_FETCH+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir
=.
7161 for ac_exec_ext
in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7175 FETCH
=$ac_cv_path_FETCH
7176 if test -n "$FETCH"; then
7177 { echo "$as_me:$LINENO: result: $FETCH" >&5
7178 echo "${ECHO_T}$FETCH" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7191 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 if test -n "$SOXMIX"; then
7198 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir
=.
7205 for ac_exec_ext
in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 SOXMIX
=$ac_cv_prog_SOXMIX
7218 if test -n "$SOXMIX"; then
7219 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7220 echo "${ECHO_T}$SOXMIX" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_SOXMIX"; then
7229 ac_ct_SOXMIX
=$SOXMIX
7230 # Extract the first word of "soxmix", so it can be a program name with args.
7231 set dummy soxmix
; ac_word
=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$ac_ct_SOXMIX"; then
7238 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir
=.
7245 for ac_exec_ext
in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7258 if test -n "$ac_ct_SOXMIX"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7260 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_SOXMIX" = x
; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned
=yes ;;
7279 SOXMIX
=$ac_ct_SOXMIX
7282 SOXMIX
="$ac_cv_prog_SOXMIX"
7285 if test "${SOXMIX}" != ":" ; then
7287 cat >>confdefs.h
<<\_ACEOF
7288 #define HAVE_SOXMIX 1
7297 ac_cpp
='$CPP $CPPFLAGS'
7298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7304 # We used to check for pthread.h first, but this fails if pthread.h
7305 # requires special compiler flags (e.g. on True64 or Sequent).
7306 # It gets checked for in the link test anyway.
7308 # First of all, check if the user has set any of the PTHREAD_LIBS,
7309 # etcetera environment variables, and if threads linking works using
7311 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7312 save_CFLAGS
="$CFLAGS"
7313 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7315 LIBS
="$PTHREAD_LIBS $LIBS"
7316 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7317 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7318 cat >conftest.
$ac_ext <<_ACEOF
7321 cat confdefs.h
>>conftest.
$ac_ext
7322 cat >>conftest.
$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7325 /* Override any GCC internal prototype to avoid an error.
7326 Use char because int might match the return type of a GCC
7327 builtin and then its argument prototype would still apply. */
7331 char pthread_join ();
7335 return pthread_join ();
7340 rm -f conftest.
$ac_objext conftest
$ac_exeext
7341 if { (ac_try
="$ac_link"
7343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7368 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7369 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7370 if test x"$acx_pthread_ok" = xno; then
7375 CFLAGS="$save_CFLAGS"
7378 # We must check for the threads library under a number of different
7379 # names; the ordering is very important because some systems
7380 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7381 # libraries is broken (non-POSIX).
7383 # Create a list of thread flags to try. Items starting with a "-" are
7384 # C compiler flags, and other items are library names, except for "none"
7385 # which indicates that we try without any flags at all, and "pthread-config"
7386 # which is a program returning the flags for the Pth emulation library.
7388 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7390 # The ordering *is* (sometimes) important. Some notes on the
7391 # individual items follow:
7393 # pthreads: AIX (must check this before -lpthread)
7394 # none: in case threads are in libc; should be tried before -Kthread and
7395 # other compiler flags to prevent continual compiler warnings
7396 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7397 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7398 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7399 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7400 # -pthreads: Solaris/gcc
7401 # -mthreads: Mingw32/gcc, Lynx/gcc
7402 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7403 # doesn't hurt to check since this sometimes defines pthreads too;
7404 # also defines -D_REENTRANT)
7405 # ... -mt is also the pthreads flag for HP/aCC
7406 # pthread: Linux, etcetera
7407 # --thread-safe: KAI C++
7408 # pthread-config: use pthread-config program (for GNU Pth library)
7410 case "${host_cpu}-${host_os}" in
7413 # On Solaris (at least, for some versions), libc contains stubbed
7414 # (non-functional) versions of the pthreads routines, so link-based
7415 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7416 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7417 # a function called by this macro, so we could check for that, but
7418 # who knows whether they'll stub that too in a future libc.) So,
7419 # we'll just look for -pthreads and -lpthread first:
7421 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7425 if test x"$acx_pthread_ok" = xno; then
7426 for flag in $acx_pthread_flags; do
7430 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7431 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7435 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7436 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7437 PTHREAD_CFLAGS="$flag"
7441 # Extract the first word of "pthread-config", so it can be a program name with args.
7442 set dummy pthread-config; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 if test -n "$acx_pthread_config"; then
7449 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_acx_pthread_config="yes"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7469 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7470 if test -n "$acx_pthread_config"; then
7471 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7472 echo "${ECHO_T}$acx_pthread_config" >&6; }
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7479 if test x"$acx_pthread_config" = xno; then continue; fi
7480 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7481 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7485 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7486 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7487 PTHREAD_LIBS="-l$flag"
7492 save_CFLAGS="$CFLAGS"
7493 LIBS="$PTHREAD_LIBS $LIBS"
7494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7496 # Check for various functions. We must include pthread.h,
7497 # since some functions may be macros. (On the Sequent, we
7498 # need a special flag -Kthread to make this header compile.)
7499 # We check for pthread_join because it is in -lpthread on IRIX
7500 # while pthread_create is in libc. We check for pthread_attr_init
7501 # due to DEC craziness with -lpthreads. We check for
7502 # pthread_cleanup_push because it is one of the few pthread
7503 # functions on Solaris that doesn't have a non-functional libc stub.
7504 # We try pthread_create on general principles.
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <pthread.h>
7515 pthread_t th; pthread_join(th, 0);
7516 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7517 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (ac_try="$ac_link"
7525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7526 *) ac_try_echo
=$ac_try;;
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_link") 2>conftest.er1
7531 grep -v '^ *+' conftest.er1
>conftest.err
7533 cat conftest.err
>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest
$ac_exeext &&
7539 $as_test_x conftest
$ac_exeext; then
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.
$ac_ext >&5
7548 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7549 conftest
$ac_exeext conftest.
$ac_ext
7552 CFLAGS
="$save_CFLAGS"
7554 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7555 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7556 if test "x$acx_pthread_ok" = xyes
; then
7565 # Various other checks:
7566 if test "x$acx_pthread_ok" = xyes
; then
7568 LIBS
="$PTHREAD_LIBS $LIBS"
7569 save_CFLAGS
="$CFLAGS"
7570 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7572 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7573 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7574 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7576 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7577 cat >conftest.
$ac_ext <<_ACEOF
7580 cat confdefs.h
>>conftest.
$ac_ext
7581 cat >>conftest.
$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <pthread.h>
7587 int attr=$attr; return attr;
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext
7593 if { (ac_try
="$ac_link"
7595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest$ac_exeext &&
7609 $as_test_x conftest$ac_exeext; then
7610 attr_name=$attr; break
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 conftest$ac_exeext conftest.$ac_ext
7621 { echo "$as_me:$LINENO: result: $attr_name" >&5
7622 echo "${ECHO_T}$attr_name" >&6; }
7623 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7625 cat >>confdefs.h <<_ACEOF
7626 #define PTHREAD_CREATE_JOINABLE $attr_name
7631 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7632 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7634 case "${host_cpu}-${host_os}" in
7635 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7636 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7638 { echo "$as_me:$LINENO: result: ${flag}" >&5
7639 echo "${ECHO_T}${flag}" >&6; }
7640 if test "x$flag" != xno; then
7641 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7645 CFLAGS="$save_CFLAGS"
7647 # More AIX lossage: must compile with xlc_r or cc_r
7648 if test x"$GCC" != xyes; then
7649 for ac_prog in xlc_r cc_r
7651 # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 if test -n "$PTHREAD_CC"; then
7659 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_PTHREAD_CC="$ac_prog"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7679 if test -n "$PTHREAD_CC"; then
7680 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7681 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7688 test -n "$PTHREAD_CC" && break
7690 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7703 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7704 if test x"$acx_pthread_ok" = xyes; then
7706 cat >>confdefs.h <<\_ACEOF
7707 #define HAVE_PTHREAD 1
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 # Check whether --enable-dev-mode was given.
7731 if test "${enable_dev_mode+set}" = set; then
7732 enableval=$enable_dev_mode; case "${enableval}" in
7733 y|ye|yes) AST_DEVMODE=yes ;;
7734 n|no) AST_DEVMODE=no ;;
7735 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7736 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7737 { (exit 1); exit 1; }; } ;;
7743 # package option names should be in alphabetical order
7744 # by the --with option name, to make things easier for the users :-)
7747 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7748 ALSA_OPTION="asound"
7750 # Check whether --with-asound was given.
7751 if test "${with_asound+set}" = set; then
7752 withval=$with_asound;
7758 ALSA_MANDATORY="yes"
7761 ALSA_DIR="${withval}"
7762 ALSA_MANDATORY="yes"
7778 # Check whether --with-curl was given.
7779 if test "${with_curl+set}" = set; then
7786 CURL_MANDATORY="yes"
7789 CURL_DIR="${withval}"
7790 CURL_MANDATORY="yes"
7803 CAP_DESCRIP="POSIX 1.e capabilities"
7806 # Check whether --with-cap was given.
7807 if test "${with_cap+set}" = set; then
7817 CAP_DIR="${withval}"
7831 CURSES_DESCRIP="curses"
7832 CURSES_OPTION="curses"
7834 # Check whether --with-curses was given.
7835 if test "${with_curses+set}" = set; then
7836 withval=$with_curses;
7842 CURSES_MANDATORY="yes"
7845 CURSES_DIR="${withval}"
7846 CURSES_MANDATORY="yes"
7859 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7860 GNUTLS_OPTION="gnutls"
7862 # Check whether --with-gnutls was given.
7863 if test "${with_gnutls+set}" = set; then
7864 withval=$with_gnutls;
7870 GNUTLS_MANDATORY="yes"
7873 GNUTLS_DIR="${withval}"
7874 GNUTLS_MANDATORY="yes"
7890 # Check whether --with-gsm was given.
7891 if test "${with_gsm+set}" = set; then
7901 GSM_DIR="${withval}"
7915 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7916 IKSEMEL_OPTION="iksemel"
7918 # Check whether --with-iksemel was given.
7919 if test "${with_iksemel+set}" = set; then
7920 withval=$with_iksemel;
7926 IKSEMEL_MANDATORY="yes"
7929 IKSEMEL_DIR="${withval}"
7930 IKSEMEL_MANDATORY="yes"
7943 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7944 IMAP_TK_OPTION="imap"
7946 # Check whether --with-imap was given.
7947 if test "${with_imap+set}" = set; then
7954 IMAP_TK_MANDATORY="yes"
7957 IMAP_TK_DIR="${withval}"
7958 IMAP_TK_MANDATORY="yes"
7971 ISDNNET_DESCRIP="ISDN4Linux Library"
7972 ISDNNET_OPTION="isdnnet"
7974 # Check whether --with-isdnnet was given.
7975 if test "${with_isdnnet+set}" = set; then
7976 withval=$with_isdnnet;
7982 ISDNNET_MANDATORY="yes"
7985 ISDNNET_DIR="${withval}"
7986 ISDNNET_MANDATORY="yes"
8002 # Check whether --with-kde was given.
8003 if test "${with_kde+set}" = set; then
8013 KDE_DIR="${withval}"
8027 LTDL_DESCRIP="libtool"
8030 # Check whether --with-ltdl was given.
8031 if test "${with_ltdl+set}" = set; then
8038 LTDL_MANDATORY="yes"
8041 LTDL_DIR="${withval}"
8042 LTDL_MANDATORY="yes"
8055 MISDN_DESCRIP="mISDN User Library"
8056 MISDN_OPTION="misdn"
8058 # Check whether --with-misdn was given.
8059 if test "${with_misdn+set}" = set; then
8060 withval=$with_misdn;
8066 MISDN_MANDATORY="yes"
8069 MISDN_DIR="${withval}"
8070 MISDN_MANDATORY="yes"
8083 NBS_DESCRIP="Network Broadcast Sound"
8086 # Check whether --with-nbs was given.
8087 if test "${with_nbs+set}" = set; then
8097 NBS_DIR="${withval}"
8111 NCURSES_DESCRIP="ncurses"
8112 NCURSES_OPTION="ncurses"
8114 # Check whether --with-ncurses was given.
8115 if test "${with_ncurses+set}" = set; then
8116 withval=$with_ncurses;
8122 NCURSES_MANDATORY="yes"
8125 NCURSES_DIR="${withval}"
8126 NCURSES_MANDATORY="yes"
8139 NETSNMP_DESCRIP="Net-SNMP"
8140 NETSNMP_OPTION="netsnmp"
8142 # Check whether --with-netsnmp was given.
8143 if test "${with_netsnmp+set}" = set; then
8144 withval=$with_netsnmp;
8150 NETSNMP_MANDATORY="yes"
8153 NETSNMP_DIR="${withval}"
8154 NETSNMP_MANDATORY="yes"
8170 # Check whether --with-newt was given.
8171 if test "${with_newt+set}" = set; then
8178 NEWT_MANDATORY="yes"
8181 NEWT_DIR="${withval}"
8182 NEWT_MANDATORY="yes"
8195 UNIXODBC_DESCRIP="unixODBC"
8196 UNIXODBC_OPTION="odbc"
8198 # Check whether --with-odbc was given.
8199 if test "${with_odbc+set}" = set; then
8206 UNIXODBC_MANDATORY="yes"
8209 UNIXODBC_DIR="${withval}"
8210 UNIXODBC_MANDATORY="yes"
8226 # Check whether --with-ogg was given.
8227 if test "${with_ogg+set}" = set; then
8237 OGG_DIR="${withval}"
8251 OSPTK_DESCRIP="OSP Toolkit"
8252 OSPTK_OPTION="osptk"
8254 # Check whether --with-osptk was given.
8255 if test "${with_osptk+set}" = set; then
8256 withval=$with_osptk;
8262 OSPTK_MANDATORY="yes"
8265 OSPTK_DIR="${withval}"
8266 OSPTK_MANDATORY="yes"
8279 OSS_DESCRIP="Open Sound System"
8282 # Check whether --with-oss was given.
8283 if test "${with_oss+set}" = set; then
8293 OSS_DIR="${withval}"
8310 # Check whether --with-popt was given.
8311 if test "${with_popt+set}" = set; then
8318 POPT_MANDATORY="yes"
8321 POPT_DIR="${withval}"
8322 POPT_MANDATORY="yes"
8335 PGSQL_DESCRIP="PostgreSQL"
8336 PGSQL_OPTION="postgres"
8338 # Check whether --with-postgres was given.
8339 if test "${with_postgres+set}" = set; then
8340 withval=$with_postgres;
8346 PGSQL_MANDATORY="yes"
8349 PGSQL_DIR="${withval}"
8350 PGSQL_MANDATORY="yes"
8363 PRI_DESCRIP="ISDN PRI"
8366 # Check whether --with-pri was given.
8367 if test "${with_pri+set}" = set; then
8377 PRI_DIR="${withval}"
8391 PWLIB_DESCRIP="PWlib"
8392 PWLIB_OPTION="pwlib"
8394 # Check whether --with-pwlib was given.
8395 if test "${with_pwlib+set}" = set; then
8396 withval=$with_pwlib;
8402 PWLIB_MANDATORY="yes"
8405 PWLIB_DIR="${withval}"
8406 PWLIB_MANDATORY="yes"
8419 OPENH323_DESCRIP="OpenH323"
8420 OPENH323_OPTION="h323"
8422 # Check whether --with-h323 was given.
8423 if test "${with_h323+set}" = set; then
8430 OPENH323_MANDATORY="yes"
8433 OPENH323_DIR="${withval}"
8434 OPENH323_MANDATORY="yes"
8447 RADIUS_DESCRIP="Radius Client"
8448 RADIUS_OPTION="radius"
8450 # Check whether --with-radius was given.
8451 if test "${with_radius+set}" = set; then
8452 withval=$with_radius;
8458 RADIUS_MANDATORY="yes"
8461 RADIUS_DIR="${withval}"
8462 RADIUS_MANDATORY="yes"
8475 SPEEX_DESCRIP="Speex"
8476 SPEEX_OPTION="speex"
8478 # Check whether --with-speex was given.
8479 if test "${with_speex+set}" = set; then
8480 withval=$with_speex;
8486 SPEEX_MANDATORY="yes"
8489 SPEEX_DIR="${withval}"
8490 SPEEX_MANDATORY="yes"
8503 SPEEXDSP_DESCRIP="Speexdsp"
8504 SPEEXDSP_OPTION="speexdsp"
8506 # Check whether --with-speexdsp was given.
8507 if test "${with_speexdsp+set}" = set; then
8508 withval=$with_speexdsp;
8514 SPEEXDSP_MANDATORY="yes"
8517 SPEEXDSP_DIR="${withval}"
8518 SPEEXDSP_MANDATORY="yes"
8531 SQLITE_DESCRIP="SQLite"
8532 SQLITE_OPTION="sqlite"
8534 # Check whether --with-sqlite was given.
8535 if test "${with_sqlite+set}" = set; then
8536 withval=$with_sqlite;
8542 SQLITE_MANDATORY="yes"
8545 SQLITE_DIR="${withval}"
8546 SQLITE_MANDATORY="yes"
8559 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8560 SUPPSERV_OPTION="suppserv"
8562 # Check whether --with-suppserv was given.
8563 if test "${with_suppserv+set}" = set; then
8564 withval=$with_suppserv;
8570 SUPPSERV_MANDATORY="yes"
8573 SUPPSERV_DIR="${withval}"
8574 SUPPSERV_MANDATORY="yes"
8587 OPENSSL_DESCRIP="OpenSSL"
8588 OPENSSL_OPTION="ssl"
8590 # Check whether --with-ssl was given.
8591 if test "${with_ssl+set}" = set; then
8598 OPENSSL_MANDATORY="yes"
8601 OPENSSL_DIR="${withval}"
8602 OPENSSL_MANDATORY="yes"
8615 FREETDS_DESCRIP="FreeTDS"
8616 FREETDS_OPTION="tds"
8618 # Check whether --with-tds was given.
8619 if test "${with_tds+set}" = set; then
8626 FREETDS_MANDATORY="yes"
8629 FREETDS_DIR="${withval}"
8630 FREETDS_MANDATORY="yes"
8643 TERMCAP_DESCRIP="Termcap"
8644 TERMCAP_OPTION="termcap"
8646 # Check whether --with-termcap was given.
8647 if test "${with_termcap+set}" = set; then
8648 withval=$with_termcap;
8654 TERMCAP_MANDATORY="yes"
8657 TERMCAP_DIR="${withval}"
8658 TERMCAP_MANDATORY="yes"
8671 TINFO_DESCRIP="Term Info"
8672 TINFO_OPTION="tinfo"
8674 # Check whether --with-tinfo was given.
8675 if test "${with_tinfo+set}" = set; then
8676 withval=$with_tinfo;
8682 TINFO_MANDATORY="yes"
8685 TINFO_DIR="${withval}"
8686 TINFO_MANDATORY="yes"
8699 TONEZONE_DESCRIP="tonezone"
8700 TONEZONE_OPTION="tonezone"
8702 # Check whether --with-tonezone was given.
8703 if test "${with_tonezone+set}" = set; then
8704 withval=$with_tonezone;
8710 TONEZONE_MANDATORY="yes"
8713 TONEZONE_DIR="${withval}"
8714 TONEZONE_MANDATORY="yes"
8730 # Check whether --with-usb was given.
8731 if test "${with_usb+set}" = set; then
8741 USB_DIR="${withval}"
8755 VORBIS_DESCRIP="Vorbis"
8756 VORBIS_OPTION="vorbis"
8758 # Check whether --with-vorbis was given.
8759 if test "${with_vorbis+set}" = set; then
8760 withval=$with_vorbis;
8766 VORBIS_MANDATORY="yes"
8769 VORBIS_DIR="${withval}"
8770 VORBIS_MANDATORY="yes"
8783 VPB_DESCRIP="Voicetronix API"
8786 # Check whether --with-vpb was given.
8787 if test "${with_vpb+set}" = set; then
8797 VPB_DIR="${withval}"
8814 # Check whether --with-z was given.
8815 if test "${with_z+set}" = set; then
8822 ZLIB_MANDATORY="yes"
8825 ZLIB_DIR="${withval}"
8826 ZLIB_MANDATORY="yes"
8839 ZAPTEL_DESCRIP="Zaptel"
8840 ZAPTEL_OPTION="zaptel"
8842 # Check whether --with-zaptel was given.
8843 if test "${with_zaptel+set}" = set; then
8844 withval=$with_zaptel;
8850 ZAPTEL_MANDATORY="yes"
8853 ZAPTEL_DIR="${withval}"
8854 ZAPTEL_MANDATORY="yes"
8867 # check for basic system features and functionality before
8868 # checking for package libraries
8870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8871 # for constant arguments. Useless!
8872 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8873 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8874 if test "${ac_cv_working_alloca_h+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8887 char *p = (char *) alloca (2 * sizeof (int));
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (ac_try="$ac_link"
8896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8897 *) ac_try_echo
=$ac_try;;
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_link") 2>conftest.er1
8902 grep -v '^ *+' conftest.er1
>conftest.err
8904 cat conftest.err
>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest
$ac_exeext &&
8910 $as_test_x conftest
$ac_exeext; then
8911 ac_cv_working_alloca_h
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 ac_cv_working_alloca_h
=no
8919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8920 conftest
$ac_exeext conftest.
$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8923 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8924 if test $ac_cv_working_alloca_h = yes; then
8926 cat >>confdefs.h
<<\_ACEOF
8927 #define HAVE_ALLOCA_H 1
8932 { echo "$as_me:$LINENO: checking for alloca" >&5
8933 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8934 if test "${ac_cv_func_alloca_works+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 cat >conftest.
$ac_ext <<_ACEOF
8940 cat confdefs.h
>>conftest.
$ac_ext
8941 cat >>conftest.
$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8944 # define alloca __builtin_alloca
8947 # include <malloc.h>
8948 # define alloca _alloca
8950 # ifdef HAVE_ALLOCA_H
8951 # include <alloca.h>
8956 # ifndef alloca /* predefined by HP cc +Olibcalls */
8967 char *p = (char *) alloca (1);
8973 rm -f conftest.
$ac_objext conftest
$ac_exeext
8974 if { (ac_try
="$ac_link"
8976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_link") 2>conftest.er1
8982 grep -v '^ *+' conftest.er1 >conftest.err
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest$ac_exeext &&
8990 $as_test_x conftest$ac_exeext; then
8991 ac_cv_func_alloca_works=yes
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_cv_func_alloca_works=no
8999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9000 conftest$ac_exeext conftest.$ac_ext
9002 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9003 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9005 if test $ac_cv_func_alloca_works = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_ALLOCA 1
9012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9013 # that cause trouble. Some versions do not even contain alloca or
9014 # contain a buggy version. If you still want to use their alloca,
9015 # use ar to extract alloca.o from them instead of compiling alloca.c.
9017 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9019 cat >>confdefs.h <<\_ACEOF
9024 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9025 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9026 if test "${ac_cv_os_cray+set}" = set; then
9027 echo $ECHO_N "(cached
) $ECHO_C" >&6
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #if defined CRAY && ! defined CRAY2
9042 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9043 $EGREP "webecray
" >/dev/null 2>&1; then
9051 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9052 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9053 if test $ac_cv_os_cray = yes; then
9054 for ac_func in _getb67 GETB67 getb67; do
9055 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9056 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9057 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9058 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9059 echo $ECHO_N "(cached
) $ECHO_C" >&6
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define $ac_func innocuous_$ac_func
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9077 # include <limits.h>
9079 # include <assert.h>
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined __stub_$ac_func || defined __stub___$ac_func
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (ac_try="$ac_link"
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_link") 2>conftest.er1
9115 grep -v '^ *+' conftest.er1 >conftest.err
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext &&
9123 $as_test_x conftest$ac_exeext; then
9124 eval "$as_ac_var=yes"
9126 echo "$as_me: failed program was
:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 eval "$as_ac_var=no
"
9132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9133 conftest$ac_exeext conftest.$ac_ext
9135 ac_res=`eval echo '${'$as_ac_var'}'`
9136 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9137 echo "${ECHO_T}$ac_res" >&6; }
9138 if test `eval echo '${'$as_ac_var'}'` = yes; then
9140 cat >>confdefs.h <<_ACEOF
9141 #define CRAY_STACKSEG_END $ac_func
9150 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9151 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9152 if test "${ac_cv_c_stack_direction+set}" = set; then
9153 echo $ECHO_N "(cached
) $ECHO_C" >&6
9155 if test "$cross_compiling" = yes; then
9156 ac_cv_c_stack_direction=0
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9166 find_stack_direction ()
9168 static char *addr = 0;
9173 return find_stack_direction ();
9176 return (&dummy > addr) ? 1 : -1;
9182 return find_stack_direction () < 0;
9185 rm -f conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>&5
9194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_c_stack_direction=1
9207 echo "$as_me: program exited with status
$ac_status" >&5
9208 echo "$as_me: failed program was
:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_cv_c_stack_direction=-1
9214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9220 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9222 cat >>confdefs.h <<_ACEOF
9223 #define STACK_DIRECTION $ac_cv_c_stack_direction
9235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9236 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9237 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9238 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9240 echo $ECHO_N "(cached
) $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <sys/types.h>
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 eval "$as_ac_Header=yes"
9279 echo "$as_me: failed program was
:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 eval "$as_ac_Header=no
"
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9289 echo "${ECHO_T}$ac_res" >&6; }
9290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291 cat >>confdefs.h <<_ACEOF
9292 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9295 ac_header_dirent=$ac_hdr; break
9299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9300 if test $ac_header_dirent = dirent.h; then
9301 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9302 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9303 if test "${ac_cv_search_opendir+set}" = set; then
9304 echo $ECHO_N "(cached
) $ECHO_C" >&6
9306 ac_func_search_save_LIBS=$LIBS
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9329 for ac_lib in '' dir; do
9330 if test -z "$ac_lib"; then
9331 ac_res="none required
"
9334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_link") 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest$ac_exeext &&
9353 $as_test_x conftest$ac_exeext; then
9354 ac_cv_search_opendir=$ac_res
9356 echo "$as_me: failed program was
:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9364 if test "${ac_cv_search_opendir+set}" = set; then
9368 if test "${ac_cv_search_opendir+set}" = set; then
9371 ac_cv_search_opendir=no
9374 LIBS=$ac_func_search_save_LIBS
9376 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9377 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9378 ac_res=$ac_cv_search_opendir
9379 if test "$ac_res" != no; then
9380 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9385 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9386 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9387 if test "${ac_cv_search_opendir+set}" = set; then
9388 echo $ECHO_N "(cached
) $ECHO_C" >&6
9390 ac_func_search_save_LIBS=$LIBS
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9413 for ac_lib in '' x; do
9414 if test -z "$ac_lib"; then
9415 ac_res="none required
"
9418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_link") 2>conftest.er1
9429 grep -v '^ *+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest$ac_exeext &&
9437 $as_test_x conftest$ac_exeext; then
9438 ac_cv_search_opendir=$ac_res
9440 echo "$as_me: failed program was
:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9448 if test "${ac_cv_search_opendir+set}" = set; then
9452 if test "${ac_cv_search_opendir+set}" = set; then
9455 ac_cv_search_opendir=no
9458 LIBS=$ac_func_search_save_LIBS
9460 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9461 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9462 ac_res=$ac_cv_search_opendir
9463 if test "$ac_res" != no; then
9464 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9470 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9471 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9472 if test "${ac_cv_header_stdc+set}" = set; then
9473 echo $ECHO_N "(cached
) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9494 rm -f conftest.$ac_objext
9495 if { (ac_try="$ac_compile"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_compile") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest.$ac_objext; then
9511 ac_cv_header_stdc=yes
9513 echo "$as_me: failed program was
:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_header_stdc=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 if test $ac_cv_header_stdc = yes; then
9522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9532 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9533 $EGREP "memchr
" >/dev/null 2>&1; then
9536 ac_cv_header_stdc=no
9542 if test $ac_cv_header_stdc = yes; then
9543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9544 cat >conftest.$ac_ext <<_ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9553 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9554 $EGREP "free
" >/dev/null 2>&1; then
9557 ac_cv_header_stdc=no
9563 if test $ac_cv_header_stdc = yes; then
9564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9565 if test "$cross_compiling" = yes; then
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9576 #if ((' ' & 0x0FF) == 0x020)
9577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9580 # define ISLOWER(c) \
9581 (('a' <= (c) && (c) <= 'i') \
9582 || ('j' <= (c) && (c) <= 'r') \
9583 || ('s' <= (c) && (c) <= 'z'))
9584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9592 for (i = 0; i < 256; i++)
9593 if (XOR (islower (i), ISLOWER (i))
9594 || toupper (i) != TOUPPER (i))
9599 rm -f conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>&5
9608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9618 (exit $ac_status); }; }; then
9621 echo "$as_me: program exited with status
$ac_status" >&5
9622 echo "$as_me: failed program was
:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_header_stdc=no
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9636 if test $ac_cv_header_stdc = yes; then
9638 cat >>confdefs.h <<\_ACEOF
9639 #define STDC_HEADERS 1
9644 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9645 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9646 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9647 echo $ECHO_N "(cached
) $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/wait.h>
9658 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9661 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9674 rm -f conftest.$ac_objext
9675 if { (ac_try="$ac_compile"
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_compile") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1 >conftest.err
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest.$ac_objext; then
9691 ac_cv_header_sys_wait_h=yes
9693 echo "$as_me: failed program was
:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_header_sys_wait_h=no
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9703 if test $ac_cv_header_sys_wait_h = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_SYS_WAIT_H 1
9734 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
9736 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9737 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9738 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9739 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9740 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9741 echo $ECHO_N "(cached
) $ECHO_C" >&6
9743 ac_res=`eval echo '${'$as_ac_Header'}'`
9744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9745 echo "${ECHO_T}$ac_res" >&6; }
9747 # Is the header compilable?
9748 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9749 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 $ac_includes_default
9757 #include <$ac_header>
9759 rm -f conftest.$ac_objext
9760 if { (ac_try="$ac_compile"
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_compile") 2>conftest.er1
9768 grep -v '^ *+' conftest.er1 >conftest.err
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest.$ac_objext; then
9776 ac_header_compiler=yes
9778 echo "$as_me: failed program was
:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_header_compiler=no
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9786 echo "${ECHO_T}$ac_header_compiler" >&6; }
9788 # Is the header present?
9789 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9790 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 #include <$ac_header>
9799 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9811 (exit $ac_status); } >/dev/null && {
9812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9815 ac_header_preproc=yes
9817 echo "$as_me: failed program was
:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_header_preproc=no
9823 rm -f conftest.err conftest.$ac_ext
9824 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9825 echo "${ECHO_T}$ac_header_preproc" >&6; }
9827 # So? What about this header?
9828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9830 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9831 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9832 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9834 ac_header_preproc=yes
9837 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9838 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9839 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9840 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9841 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9842 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9843 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9844 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9845 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9847 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9848 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9850 ## ------------------------------- ##
9851 ## Report this to www.asterisk.org ##
9852 ## ------------------------------- ##
9854 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9857 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9858 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9859 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9860 echo $ECHO_N "(cached
) $ECHO_C" >&6
9862 eval "$as_ac_Header=\
$ac_header_preproc"
9864 ac_res=`eval echo '${'$as_ac_Header'}'`
9865 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9866 echo "${ECHO_T}$ac_res" >&6; }
9869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9879 # Check whether --enable-largefile was given.
9880 if test "${enable_largefile+set}" = set; then
9881 enableval=$enable_largefile;
9884 if test "$enable_largefile" != no; then
9886 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9887 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9888 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9889 echo $ECHO_N "(cached
) $ECHO_C" >&6
9891 ac_cv_sys_largefile_CC=no
9892 if test "$GCC" != yes; then
9895 # IRIX 6.2 and later do not support large files by default,
9896 # so use the C compiler's -n32 option if that helps.
9897 cat >conftest.$ac_ext <<_ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 #include <sys/types.h>
9904 /* Check that off_t can represent 2**63 - 1 correctly.
9905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9906 since some C++ compilers masquerading as C compilers
9907 incorrectly reject 9223372036854775807. */
9908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9910 && LARGE_OFF_T % 2147483647 == 1)
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9939 echo "$as_me: failed program was
:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9945 rm -f core conftest.err conftest.$ac_objext
9947 rm -f conftest.$ac_objext
9948 if { (ac_try="$ac_compile"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9964 ac_cv_sys_largefile_CC=' -n32'; break
9966 echo "$as_me: failed program was
:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9972 rm -f core conftest.err conftest.$ac_objext
9976 rm -f conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9980 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9981 if test "$ac_cv_sys_largefile_CC" != no; then
9982 CC=$CC$ac_cv_sys_largefile_CC
9985 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9986 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9987 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9988 echo $ECHO_N "(cached
) $ECHO_C" >&6
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 #include <sys/types.h>
9998 /* Check that off_t can represent 2**63 - 1 correctly.
9999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10000 since some C++ compilers masquerading as C compilers
10001 incorrectly reject 9223372036854775807. */
10002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10004 && LARGE_OFF_T % 2147483647 == 1)
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_compile") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest.$ac_objext; then
10031 ac_cv_sys_file_offset_bits=no; break
10033 echo "$as_me: failed program was
:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #define _FILE_OFFSET_BITS 64
10047 #include <sys/types.h>
10048 /* Check that off_t can represent 2**63 - 1 correctly.
10049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10050 since some C++ compilers masquerading as C compilers
10051 incorrectly reject 9223372036854775807. */
10052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10054 && LARGE_OFF_T % 2147483647 == 1)
10064 rm -f conftest.$ac_objext
10065 if { (ac_try="$ac_compile"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_compile") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest.$ac_objext; then
10081 ac_cv_sys_file_offset_bits=64; break
10083 echo "$as_me: failed program was
:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 ac_cv_sys_file_offset_bits=unknown
10094 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10095 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10096 case $ac_cv_sys_file_offset_bits in #(
10099 cat >>confdefs.h <<_ACEOF
10100 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10105 if test $ac_cv_sys_file_offset_bits = unknown; then
10106 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10107 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10108 if test "${ac_cv_sys_large_files+set}" = set; then
10109 echo $ECHO_N "(cached
) $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <sys/types.h>
10119 /* Check that off_t can represent 2**63 - 1 correctly.
10120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121 since some C++ compilers masquerading as C compilers
10122 incorrectly reject 9223372036854775807. */
10123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125 && LARGE_OFF_T % 2147483647 == 1)
10135 rm -f conftest.$ac_objext
10136 if { (ac_try="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ac_cv_sys_large_files=no; break
10154 echo "$as_me: failed program was
:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 #define _LARGE_FILES 1
10168 #include <sys/types.h>
10169 /* Check that off_t can represent 2**63 - 1 correctly.
10170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10171 since some C++ compilers masquerading as C compilers
10172 incorrectly reject 9223372036854775807. */
10173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10175 && LARGE_OFF_T % 2147483647 == 1)
10185 rm -f conftest.$ac_objext
10186 if { (ac_try="$ac_compile"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_compile") 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest.$ac_objext; then
10202 ac_cv_sys_large_files=1; break
10204 echo "$as_me: failed program was
:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 ac_cv_sys_large_files=unknown
10215 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10216 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10217 case $ac_cv_sys_large_files in #(
10220 cat >>confdefs.h <<_ACEOF
10221 #define _LARGE_FILES $ac_cv_sys_large_files
10230 # Checks for typedefs, structures, and compiler characteristics.
10231 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10232 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10233 if test "${ac_cv_header_stdbool_h+set}" = set; then
10234 echo $ECHO_N "(cached
) $ECHO_C" >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 #include <stdbool.h>
10245 "error
: bool is not defined
"
10248 "error
: false is not defined
"
10251 "error
: false is not
0"
10254 "error
: true is not defined
"
10257 "error
: true is not
1"
10259 #ifndef __bool_true_false_are_defined
10260 "error
: __bool_true_false_are_defined is not defined
"
10263 struct s { _Bool s: 1; _Bool t; } s;
10265 char a[true == 1 ? 1 : -1];
10266 char b[false == 0 ? 1 : -1];
10267 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10268 char d[(bool) 0.5 == true ? 1 : -1];
10270 char f[(_Bool) 0.0 == false ? 1 : -1];
10272 char h[sizeof (_Bool)];
10273 char i[sizeof s.t];
10274 enum { j = false, k = true, l = false * true, m = true * 256 };
10276 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10277 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10278 # if defined __xlc__ || defined __GNUC__
10279 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10280 reported by James Lemley on 2005-10-05; see
10281 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10282 This test is not quite right, since xlc is allowed to
10283 reject this program, as the initializer for xlcbug is
10284 not one of the forms that C requires support for.
10285 However, doing the test right would require a runtime
10286 test, and that would make cross-compilation harder.
10287 Let us hope that IBM fixes the xlc bug, and also adds
10288 support for this kind of constant expression. In the
10289 meantime, this test will reject xlc, which is OK, since
10290 our stdbool.h substitute should suffice. We also test
10291 this with GCC, where it should work, to detect more
10292 quickly whether someone messes up the test in the
10294 char digs[] = "0123456789";
10295 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10297 /* Catch a bug in an HP-UX C compiler. See
10298 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10299 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10310 /* Refer to every declared value, to avoid compiler optimizations. */
10311 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10312 + !m + !n + !o + !p + !q + !pq);
10318 rm -f conftest.$ac_objext
10319 if { (ac_try="$ac_compile"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_compile") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest.$ac_objext; then
10335 ac_cv_header_stdbool_h=yes
10337 echo "$as_me: failed program was
:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_header_stdbool_h=no
10343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10346 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10347 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10348 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10349 if test "${ac_cv_type__Bool+set}" = set; then
10350 echo $ECHO_N "(cached
) $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358 $ac_includes_default
10359 typedef _Bool ac__type_new_;
10363 if ((ac__type_new_ *) 0)
10365 if (sizeof (ac__type_new_))
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.$ac_objext; then
10388 ac_cv_type__Bool=yes
10390 echo "$as_me: failed program was
:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_cv_type__Bool=no
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10399 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10400 if test $ac_cv_type__Bool = yes; then
10402 cat >>confdefs.h <<_ACEOF
10403 #define HAVE__BOOL 1
10409 if test $ac_cv_header_stdbool_h = yes; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_STDBOOL_H 1
10417 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10418 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10419 if test "${ac_cv_c_const+set}" = set; then
10420 echo $ECHO_N "(cached
) $ECHO_C" >&6
10422 cat >conftest.$ac_ext <<_ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10432 /* FIXME: Include the comments suggested by Paul. */
10433 #ifndef __cplusplus
10434 /* Ultrix mips cc rejects this. */
10435 typedef int charset[2];
10437 /* SunOS 4.1.1 cc rejects this. */
10438 char const *const *pcpcc;
10440 /* NEC SVR4.0.2 mips cc rejects this. */
10441 struct point {int x, y;};
10442 static struct point const zero = {0,0};
10443 /* AIX XL C 1.02.0.0 rejects this.
10444 It does not let you subtract one const X* pointer from another in
10445 an arm of an if-expression whose if-part is not a constant
10447 const char *g = "string
";
10448 pcpcc = &g + (g ? g-g : 0);
10449 /* HPUX 7.0 cc rejects these. */
10451 ppc = (char**) pcpcc;
10452 pcpcc = (char const *const *) ppc;
10453 { /* SCO 3.2v4 cc rejects this. */
10455 char const *s = 0 ? (char *) 0 : (char const *) 0;
10460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10461 int x[] = {25, 17};
10462 const int *foo = &x[0];
10465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10466 typedef const int *iptr;
10470 { /* AIX XL C 1.02.0.0 rejects this saying
10471 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10472 struct s { int j; const int *ap[3]; };
10473 struct s *b; b->j = 5;
10475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10476 const int foo = 10;
10477 if (!foo) return 0;
10479 return !cs[0] && !zero.x;
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_compile") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10499 (exit $ac_status); } && {
10500 test -z "$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 } && test -s conftest.$ac_objext; then
10505 echo "$as_me: failed program was
:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10514 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10515 if test $ac_cv_c_const = no; then
10517 cat >>confdefs.h <<\_ACEOF
10523 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10524 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10525 if test "${ac_cv_type_uid_t+set}" = set; then
10526 echo $ECHO_N "(cached
) $ECHO_C" >&6
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 #include <sys/types.h>
10537 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10538 $EGREP "uid_t
" >/dev/null 2>&1; then
10539 ac_cv_type_uid_t=yes
10541 ac_cv_type_uid_t=no
10546 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10547 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10548 if test $ac_cv_type_uid_t = no; then
10550 cat >>confdefs.h <<\_ACEOF
10555 cat >>confdefs.h <<\_ACEOF
10561 { echo "$as_me:$LINENO: checking
for inline
" >&5
10562 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10563 if test "${ac_cv_c_inline+set}" = set; then
10564 echo $ECHO_N "(cached
) $ECHO_C" >&6
10567 for ac_kw in inline __inline__ __inline; do
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 #ifndef __cplusplus
10576 static $ac_kw foo_t static_foo () {return 0; }
10577 $ac_kw foo_t foo () {return 0; }
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10590 grep -v '^ *+' conftest.er1 >conftest.err
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 ac_cv_c_inline=$ac_kw
10600 echo "$as_me: failed program was
:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 test "$ac_cv_c_inline" != no && break
10611 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10612 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10615 case $ac_cv_c_inline in
10618 case $ac_cv_c_inline in
10620 *) ac_val=$ac_cv_c_inline;;
10622 cat >>confdefs.h <<_ACEOF
10623 #ifndef __cplusplus
10624 #define inline $ac_val
10630 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10631 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10632 if test "${ac_cv_type_mode_t+set}" = set; then
10633 echo $ECHO_N "(cached
) $ECHO_C" >&6
10635 cat >conftest.$ac_ext <<_ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 $ac_includes_default
10642 typedef mode_t ac__type_new_;
10646 if ((ac__type_new_ *) 0)
10648 if (sizeof (ac__type_new_))
10654 rm -f conftest.$ac_objext
10655 if { (ac_try="$ac_compile"
10656 case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_compile") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest.$ac_objext; then
10671 ac_cv_type_mode_t=yes
10673 echo "$as_me: failed program was
:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_cv_type_mode_t=no
10679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10682 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10683 if test $ac_cv_type_mode_t = yes; then
10687 cat >>confdefs.h <<_ACEOF
10693 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10694 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10695 if test "${ac_cv_type_off_t+set}" = set; then
10696 echo $ECHO_N "(cached
) $ECHO_C" >&6
10698 cat >conftest.$ac_ext <<_ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 $ac_includes_default
10705 typedef off_t ac__type_new_;
10709 if ((ac__type_new_ *) 0)
10711 if (sizeof (ac__type_new_))
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest.$ac_objext; then
10734 ac_cv_type_off_t=yes
10736 echo "$as_me: failed program was
:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_type_off_t=no
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10745 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10746 if test $ac_cv_type_off_t = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define off_t long int
10756 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10757 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10758 if test "${ac_cv_type_pid_t+set}" = set; then
10759 echo $ECHO_N "(cached
) $ECHO_C" >&6
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 $ac_includes_default
10768 typedef pid_t ac__type_new_;
10772 if ((ac__type_new_ *) 0)
10774 if (sizeof (ac__type_new_))
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_compile") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest.$ac_objext; then
10797 ac_cv_type_pid_t=yes
10799 echo "$as_me: failed program was
:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_cv_type_pid_t=no
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10808 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10809 if test $ac_cv_type_pid_t = yes; then
10813 cat >>confdefs.h <<_ACEOF
10819 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10820 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10821 if test "${ac_cv_type_size_t+set}" = set; then
10822 echo $ECHO_N "(cached
) $ECHO_C" >&6
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 $ac_includes_default
10831 typedef size_t ac__type_new_;
10835 if ((ac__type_new_ *) 0)
10837 if (sizeof (ac__type_new_))
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_compile") 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10856 (exit $ac_status); } && {
10857 test -z "$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10859 } && test -s conftest.$ac_objext; then
10860 ac_cv_type_size_t=yes
10862 echo "$as_me: failed program was
:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_cv_type_size_t=no
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10871 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10872 if test $ac_cv_type_size_t = yes; then
10876 cat >>confdefs.h <<_ACEOF
10877 #define size_t unsigned int
10882 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10883 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10884 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10885 echo $ECHO_N "(cached
) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 $ac_includes_default
10897 static struct stat ac_aggr;
10898 if (ac_aggr.st_blksize)
10904 rm -f conftest.$ac_objext
10905 if { (ac_try="$ac_compile"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_compile") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest.$ac_objext; then
10921 ac_cv_member_struct_stat_st_blksize=yes
10923 echo "$as_me: failed program was
:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 $ac_includes_default
10936 static struct stat ac_aggr;
10937 if (sizeof ac_aggr.st_blksize)
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10960 ac_cv_member_struct_stat_st_blksize=yes
10962 echo "$as_me: failed program was
:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_cv_member_struct_stat_st_blksize=no
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10974 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10975 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10984 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10985 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10986 if test "${ac_cv_header_time+set}" = set; then
10987 echo $ECHO_N "(cached
) $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <sys/types.h>
10996 #include <sys/time.h>
11002 if ((struct tm *) 0)
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_cv_header_time=yes
11027 echo "$as_me: failed program was
:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_header_time=no
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11036 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11037 if test $ac_cv_header_time = yes; then
11039 cat >>confdefs.h <<\_ACEOF
11040 #define TIME_WITH_SYS_TIME 1
11045 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11046 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11047 if test "${ac_cv_struct_tm+set}" = set; then
11048 echo $ECHO_N "(cached
) $ECHO_C" >&6
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <sys/types.h>
11063 int *p = &tm.tm_sec;
11069 rm -f conftest.$ac_objext
11070 if { (ac_try="$ac_compile"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_compile") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest.$ac_objext; then
11086 ac_cv_struct_tm=time.h
11088 echo "$as_me: failed program was
:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_struct_tm=sys/time.h
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11097 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11098 if test $ac_cv_struct_tm = sys/time.h; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define TM_IN_SYS_TIME 1
11106 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11107 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11108 if test "${ac_cv_c_volatile+set}" = set; then
11109 echo $ECHO_N "(cached
) $ECHO_C" >&6
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11123 int * volatile y = (int *) 0;
11129 rm -f conftest.$ac_objext
11130 if { (ac_try="$ac_compile"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_compile") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest.$ac_objext; then
11146 ac_cv_c_volatile=yes
11148 echo "$as_me: failed program was
:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_cv_c_volatile=no
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11157 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11158 if test $ac_cv_c_volatile = no; then
11160 cat >>confdefs.h <<\_ACEOF
11166 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11167 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11168 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11169 echo $ECHO_N "(cached
) $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 $ac_includes_default
11178 typedef ptrdiff_t ac__type_new_;
11182 if ((ac__type_new_ *) 0)
11184 if (sizeof (ac__type_new_))
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11207 ac_cv_type_ptrdiff_t=yes
11209 echo "$as_me: failed program was
:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_type_ptrdiff_t=no
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11219 if test $ac_cv_type_ptrdiff_t = yes; then
11221 cat >>confdefs.h <<_ACEOF
11222 #define HAVE_PTRDIFF_T 1
11229 # Checks for library functions.
11231 for ac_header in unistd.h
11233 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11234 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11235 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11236 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached
) $ECHO_C" >&6
11240 ac_res=`eval echo '${'$as_ac_Header'}'`
11241 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11242 echo "${ECHO_T}$ac_res" >&6; }
11244 # Is the header compilable?
11245 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11246 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11247 cat >conftest.$ac_ext <<_ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 $ac_includes_default
11254 #include <$ac_header>
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_compile") 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest.$ac_objext; then
11273 ac_header_compiler=yes
11275 echo "$as_me: failed program was
:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_header_compiler=no
11281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11283 echo "${ECHO_T}$ac_header_compiler" >&6; }
11285 # Is the header present?
11286 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11287 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11288 cat >conftest.$ac_ext <<_ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <$ac_header>
11296 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11308 (exit $ac_status); } >/dev/null && {
11309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11312 ac_header_preproc=yes
11314 echo "$as_me: failed program was
:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_header_preproc=no
11320 rm -f conftest.err conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11322 echo "${ECHO_T}$ac_header_preproc" >&6; }
11324 # So? What about this header?
11325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11327 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11328 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11329 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11331 ac_header_preproc=yes
11334 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11335 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11336 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11337 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11338 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11339 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11340 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11341 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11344 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11345 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11347 ## ------------------------------- ##
11348 ## Report this to www.asterisk.org ##
11349 ## ------------------------------- ##
11351 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached
) $ECHO_C" >&6
11359 eval "$as_ac_Header=\
$ac_header_preproc"
11361 ac_res=`eval echo '${'$as_ac_Header'}'`
11362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11363 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11375 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11376 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11377 if test "${ac_cv_func_chown_works+set}" = set; then
11378 echo $ECHO_N "(cached
) $ECHO_C" >&6
11380 if test "$cross_compiling" = yes; then
11381 ac_cv_func_chown_works=no
11383 cat >conftest.$ac_ext <<_ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11395 char *f = "conftest.chown
";
11396 struct stat before, after;
11398 if (creat (f, 0600) < 0)
11400 if (stat (f, &before) < 0)
11402 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11404 if (stat (f, &after) < 0)
11406 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11412 rm -f conftest$ac_exeext
11413 if { (ac_try="$ac_link"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>&5
11421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_func_chown_works=yes
11434 echo "$as_me: program exited with status
$ac_status" >&5
11435 echo "$as_me: failed program was
:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ( exit $ac_status )
11439 ac_cv_func_chown_works=no
11441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11445 rm -f conftest.chown
11448 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11449 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11450 if test $ac_cv_func_chown_works = yes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_CHOWN 1
11458 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11459 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11460 if test "${ac_cv_func_closedir_void+set}" = set; then
11461 echo $ECHO_N "(cached
) $ECHO_C" >&6
11463 if test "$cross_compiling" = yes; then
11464 ac_cv_func_closedir_void=yes
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header_dirent>
11474 #ifndef __cplusplus
11481 return closedir (opendir (".
")) != 0;
11486 rm -f conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>&5
11495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_func_closedir_void=no
11508 echo "$as_me: program exited with status
$ac_status" >&5
11509 echo "$as_me: failed program was
:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ( exit $ac_status )
11513 ac_cv_func_closedir_void=yes
11515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11521 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11522 if test $ac_cv_func_closedir_void = yes; then
11524 cat >>confdefs.h <<\_ACEOF
11525 #define CLOSEDIR_VOID 1
11530 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11531 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11532 if test "${ac_cv_lib_error_at_line+set}" = set; then
11533 echo $ECHO_N "(cached
) $ECHO_C" >&6
11535 cat >conftest.$ac_ext <<_ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11545 error_at_line (0, 0, "", 0, "an error occurred
");
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_link") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11563 (exit $ac_status); } && {
11564 test -z "$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 } && test -s conftest$ac_exeext &&
11567 $as_test_x conftest$ac_exeext; then
11568 ac_cv_lib_error_at_line=yes
11570 echo "$as_me: failed program was
:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_lib_error_at_line=no
11576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11577 conftest$ac_exeext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11580 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11581 if test $ac_cv_lib_error_at_line = no; then
11582 case " $LIBOBJS " in
11583 *" error.
$ac_objext "* ) ;;
11584 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11591 for ac_header in vfork.h
11593 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11595 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11596 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached
) $ECHO_C" >&6
11600 ac_res=`eval echo '${'$as_ac_Header'}'`
11601 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11604 # Is the header compilable?
11605 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11606 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 $ac_includes_default
11614 #include <$ac_header>
11616 rm -f conftest.$ac_objext
11617 if { (ac_try="$ac_compile"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_compile") 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11629 (exit $ac_status); } && {
11630 test -z "$ac_c_werror_flag" ||
11631 test ! -s conftest.err
11632 } && test -s conftest.$ac_objext; then
11633 ac_header_compiler=yes
11635 echo "$as_me: failed program was
:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_header_compiler=no
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11643 echo "${ECHO_T}$ac_header_compiler" >&6; }
11645 # Is the header present?
11646 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11647 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <$ac_header>
11656 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11668 (exit $ac_status); } >/dev/null && {
11669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11672 ac_header_preproc=yes
11674 echo "$as_me: failed program was
:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_preproc=no
11680 rm -f conftest.err conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6; }
11684 # So? What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11688 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11691 ac_header_preproc=yes
11694 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11695 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11696 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11697 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11698 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11699 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11700 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11701 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11704 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11705 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11707 ## ------------------------------- ##
11708 ## Report this to www.asterisk.org ##
11709 ## ------------------------------- ##
11711 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11714 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11715 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached
) $ECHO_C" >&6
11719 eval "$as_ac_Header=\
$ac_header_preproc"
11721 ac_res=`eval echo '${'$as_ac_Header'}'`
11722 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11737 for ac_func in fork vfork
11739 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11740 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11741 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached
) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11761 # include <limits.h>
11763 # include <assert.h>
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11785 return $ac_func ();
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest$ac_exeext &&
11807 $as_test_x conftest$ac_exeext; then
11808 eval "$as_ac_var=yes"
11810 echo "$as_me: failed program was
:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 eval "$as_ac_var=no
"
11816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11817 conftest$ac_exeext conftest.$ac_ext
11819 ac_res=`eval echo '${'$as_ac_var'}'`
11820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822 if test `eval echo '${'$as_ac_var'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11830 if test "x
$ac_cv_func_fork" = xyes; then
11831 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11832 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11833 if test "${ac_cv_func_fork_works+set}" = set; then
11834 echo $ECHO_N "(cached
) $ECHO_C" >&6
11836 if test "$cross_compiling" = yes; then
11837 ac_cv_func_fork_works=cross
11839 cat >conftest.$ac_ext <<_ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11850 /* By Ruediger Kuhlmann. */
11851 return fork () < 0;
11857 rm -f conftest$ac_exeext
11858 if { (ac_try="$ac_link"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_link") 2>&5
11866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_cv_func_fork_works=yes
11879 echo "$as_me: program exited with status
$ac_status" >&5
11880 echo "$as_me: failed program was
:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ( exit $ac_status )
11884 ac_cv_func_fork_works=no
11886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11891 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11892 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11895 ac_cv_func_fork_works=$ac_cv_func_fork
11897 if test "x
$ac_cv_func_fork_works" = xcross; then
11899 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11900 # Override, as these systems have only a dummy fork() stub
11901 ac_cv_func_fork_works=no
11904 ac_cv_func_fork_works=yes
11907 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11908 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11910 ac_cv_func_vfork_works=$ac_cv_func_vfork
11911 if test "x
$ac_cv_func_vfork" = xyes; then
11912 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11913 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11914 if test "${ac_cv_func_vfork_works+set}" = set; then
11915 echo $ECHO_N "(cached
) $ECHO_C" >&6
11917 if test "$cross_compiling" = yes; then
11918 ac_cv_func_vfork_works=cross
11920 cat >conftest.$ac_ext <<_ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 /* Thanks to Paul Eggert for this test. */
11927 $ac_includes_default
11928 #include <sys/wait.h>
11929 #ifdef HAVE_VFORK_H
11930 # include <vfork.h>
11932 /* On some sparc systems, changes by the child to local and incoming
11933 argument registers are propagated back to the parent. The compiler
11934 is told about this with #include <vfork.h>, but some compilers
11935 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11936 static variable whose address is put into a register that is
11937 clobbered by the vfork. */
11940 sparc_address_test (int arg)
11942 sparc_address_test (arg) int arg;
11945 static pid_t child;
11963 pid_t parent = getpid ();
11966 sparc_address_test (0);
11971 /* Here is another test for sparc vfork register problems. This
11972 test uses lots of local variables, at least as many local
11973 variables as main has allocated so far including compiler
11974 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11975 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11976 reuse the register of parent for one of the local variables,
11977 since it will think that parent can't possibly be used any more
11978 in this routine. Assigning to the local variable will thus
11979 munge parent in the parent process. */
11981 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11982 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11983 /* Convince the compiler that p..p7 are live; otherwise, it might
11984 use the same hardware register for all 8 local variables. */
11985 if (p != p1 || p != p2 || p != p3 || p != p4
11986 || p != p5 || p != p6 || p != p7)
11989 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11990 from child file descriptors. If the child closes a descriptor
11991 before it execs or exits, this munges the parent's descriptor
11992 as well. Test for this by closing stdout in the child. */
11993 _exit(close(fileno(stdout)) != 0);
11998 while (wait(&status) != child)
12001 /* Was there some problem with vforking? */
12004 /* Did the child fail? (This shouldn't happen.) */
12007 /* Did the vfork/compiler bug occur? */
12008 || parent != getpid()
12010 /* Did the file descriptor bug occur? */
12011 || fstat(fileno(stdout), &st) != 0
12016 rm -f conftest$ac_exeext
12017 if { (ac_try="$ac_link"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_link") 2>&5
12025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_func_vfork_works=yes
12038 echo "$as_me: program exited with status
$ac_status" >&5
12039 echo "$as_me: failed program was
:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ( exit $ac_status )
12043 ac_cv_func_vfork_works=no
12045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12051 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12054 if test "x
$ac_cv_func_fork_works" = xcross; then
12055 ac_cv_func_vfork_works=$ac_cv_func_vfork
12056 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12057 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12060 if test "x
$ac_cv_func_vfork_works" = xyes; then
12062 cat >>confdefs.h <<\_ACEOF
12063 #define HAVE_WORKING_VFORK 1
12068 cat >>confdefs.h <<\_ACEOF
12073 if test "x
$ac_cv_func_fork_works" = xyes; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_WORKING_FORK 1
12081 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12082 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12083 if test "${ac_cv_sys_largefile_source+set}" = set; then
12084 echo $ECHO_N "(cached
) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 #include <sys/types.h> /* for off_t */
12098 int (*fp) (FILE *, off_t, int) = fseeko;
12099 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1 >conftest.err
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest$ac_exeext &&
12121 $as_test_x conftest$ac_exeext; then
12122 ac_cv_sys_largefile_source=no; break
12124 echo "$as_me: failed program was
:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131 conftest$ac_exeext conftest.$ac_ext
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 #define _LARGEFILE_SOURCE 1
12139 #include <sys/types.h> /* for off_t */
12144 int (*fp) (FILE *, off_t, int) = fseeko;
12145 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest$ac_exeext &&
12167 $as_test_x conftest$ac_exeext; then
12168 ac_cv_sys_largefile_source=1; break
12170 echo "$as_me: failed program was
:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177 conftest$ac_exeext conftest.$ac_ext
12178 ac_cv_sys_largefile_source=unknown
12182 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12183 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12184 case $ac_cv_sys_largefile_source in #(
12187 cat >>confdefs.h <<_ACEOF
12188 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12194 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12195 # in glibc 2.1.3, but that breaks too many other things.
12196 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12197 if test $ac_cv_sys_largefile_source != unknown; then
12199 cat >>confdefs.h <<\_ACEOF
12200 #define HAVE_FSEEKO 1
12205 if test $ac_cv_c_compiler_gnu = yes; then
12206 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12207 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12208 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12209 echo $ECHO_N "(cached
) $ECHO_C" >&6
12211 ac_pattern="Autoconf.
*'x'"
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12221 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12222 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12223 ac_cv_prog_gcc_traditional=yes
12225 ac_cv_prog_gcc_traditional=no
12230 if test $ac_cv_prog_gcc_traditional = no; then
12231 cat >conftest.$ac_ext <<_ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 #include <termio.h>
12240 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12241 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12242 ac_cv_prog_gcc_traditional=yes
12248 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12249 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12250 if test $ac_cv_prog_gcc_traditional = yes; then
12251 CC="$CC -traditional"
12255 # XXX: these are commented out until we determine whether it matters if our malloc()
12256 # acts exactly like glibc's or not
12259 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12260 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12261 if test "${ac_cv_func_memcmp_working+set}" = set; then
12262 echo $ECHO_N "(cached
) $ECHO_C" >&6
12264 if test "$cross_compiling" = yes; then
12265 ac_cv_func_memcmp_working=no
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 $ac_includes_default
12278 /* Some versions of memcmp are not 8-bit clean. */
12279 char c0 = '\100', c1 = '\200', c2 = '\201';
12280 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12283 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12284 or more and with at least one buffer not starting on a 4-byte boundary.
12285 William Lewis provided this test program. */
12290 for (i = 0; i < 4; i++)
12294 strcpy (a, "--------01111111");
12295 strcpy (b, "--------10000000");
12296 if (memcmp (a, b, 16) >= 0)
12306 rm -f conftest$ac_exeext
12307 if { (ac_try="$ac_link"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_link") 2>&5
12315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_cv_func_memcmp_working=yes
12328 echo "$as_me: program exited with status
$ac_status" >&5
12329 echo "$as_me: failed program was
:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 ( exit $ac_status )
12333 ac_cv_func_memcmp_working=no
12335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12341 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12342 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12343 *" memcmp.
$ac_objext "* ) ;;
12344 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12351 for ac_header in stdlib.h unistd.h
12353 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12354 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached
) $ECHO_C" >&6
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12364 # Is the header compilable?
12365 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12366 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374 #include <$ac_header>
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.$ac_objext; then
12393 ac_header_compiler=yes
12395 echo "$as_me: failed program was
:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 ac_header_compiler=no
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12403 echo "${ECHO_T}$ac_header_compiler" >&6; }
12405 # Is the header present?
12406 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12407 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <$ac_header>
12416 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12428 (exit $ac_status); } >/dev/null && {
12429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12432 ac_header_preproc=yes
12434 echo "$as_me: failed program was
:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ac_header_preproc=no
12440 rm -f conftest.err conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12447 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12448 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12451 ac_header_preproc=yes
12454 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12455 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12456 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12457 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12458 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12459 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12460 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12461 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12464 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12465 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12467 ## ------------------------------- ##
12468 ## Report this to www.asterisk.org ##
12469 ## ------------------------------- ##
12471 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12474 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12475 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached
) $ECHO_C" >&6
12479 eval "$as_ac_Header=\
$ac_header_preproc"
12481 ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12496 for ac_func in getpagesize
12498 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12499 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12500 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12501 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12502 echo $ECHO_N "(cached
) $ECHO_C" >&6
12504 cat >conftest.$ac_ext <<_ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12512 #define $ac_func innocuous_$ac_func
12514 /* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char $ac_func (); below.
12516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517 <limits.h> exists even on freestanding compilers. */
12520 # include <limits.h>
12522 # include <assert.h>
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12534 /* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537 #if defined __stub_$ac_func || defined __stub___$ac_func
12544 return $ac_func ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 eval "$as_ac_var=yes"
12569 echo "$as_me: failed program was
:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 eval "$as_ac_var=no
"
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12578 ac_res=`eval echo '${'$as_ac_var'}'`
12579 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12581 if test `eval echo '${'$as_ac_var'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12589 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12590 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12591 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12592 echo $ECHO_N "(cached
) $ECHO_C" >&6
12594 if test "$cross_compiling" = yes; then
12595 ac_cv_func_mmap_fixed_mapped=no
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 /* malloc might have been renamed as rpl_malloc. */
12607 /* Thanks to Mike Haertel and Jim Avera for this test.
12608 Here is a matrix of mmap possibilities:
12609 mmap private not fixed
12610 mmap private fixed at somewhere currently unmapped
12611 mmap private fixed at somewhere already mapped
12612 mmap shared not fixed
12613 mmap shared fixed at somewhere currently unmapped
12614 mmap shared fixed at somewhere already mapped
12615 For private mappings, we should verify that changes cannot be read()
12616 back from the file, nor mmap's back from the file at a different
12617 address. (There have been systems where private was not correctly
12618 implemented like the infamous i386 svr4.0, and systems where the
12619 VM page cache was not coherent with the file system buffer cache
12620 like early versions of FreeBSD and possibly contemporary NetBSD.)
12621 For shared mappings, we should conversely verify that changes get
12622 propagated back to all the places they're supposed to be.
12624 Grep wants private fixed already mapped.
12625 The main things grep needs to know about mmap are:
12626 * does it exist and is it safe to write into the mmap'd area
12627 * how to use it (BSD variants) */
12630 #include <sys/mman.h>
12632 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12636 /* This mess was copied from the GNU getpagesize.h. */
12637 #ifndef HAVE_GETPAGESIZE
12638 /* Assume that all systems that can run configure have sys/param.h. */
12639 # ifndef HAVE_SYS_PARAM_H
12640 # define HAVE_SYS_PARAM_H 1
12643 # ifdef _SC_PAGESIZE
12644 # define getpagesize() sysconf(_SC_PAGESIZE)
12645 # else /* no _SC_PAGESIZE */
12646 # ifdef HAVE_SYS_PARAM_H
12647 # include <sys/param.h>
12648 # ifdef EXEC_PAGESIZE
12649 # define getpagesize() EXEC_PAGESIZE
12650 # else /* no EXEC_PAGESIZE */
12652 # define getpagesize() NBPG * CLSIZE
12655 # endif /* no CLSIZE */
12656 # else /* no NBPG */
12658 # define getpagesize() NBPC
12659 # else /* no NBPC */
12661 # define getpagesize() PAGESIZE
12662 # endif /* PAGESIZE */
12663 # endif /* no NBPC */
12664 # endif /* no NBPG */
12665 # endif /* no EXEC_PAGESIZE */
12666 # else /* no HAVE_SYS_PARAM_H */
12667 # define getpagesize() 8192 /* punt totally */
12668 # endif /* no HAVE_SYS_PARAM_H */
12669 # endif /* no _SC_PAGESIZE */
12671 #endif /* no HAVE_GETPAGESIZE */
12676 char *data, *data2, *data3;
12680 pagesize = getpagesize ();
12682 /* First, make a file with some known garbage in it. */
12683 data = (char *) malloc (pagesize);
12686 for (i = 0; i < pagesize; ++i)
12687 *(data + i) = rand ();
12689 fd = creat ("conftest.mmap
", 0600);
12692 if (write (fd, data, pagesize) != pagesize)
12696 /* Next, try to mmap the file at a fixed address which already has
12697 something else allocated at it. If we can, also make sure that
12698 we see the same garbage. */
12699 fd = open ("conftest.mmap
", O_RDWR);
12702 data2 = (char *) malloc (2 * pagesize);
12705 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12709 for (i = 0; i < pagesize; ++i)
12710 if (*(data + i) != *(data2 + i))
12713 /* Finally, make sure that changes to the mapped area do not
12714 percolate back to the file as seen by read(). (This is a bug on
12715 some variants of i386 svr4.0.) */
12716 for (i = 0; i < pagesize; ++i)
12717 *(data2 + i) = *(data2 + i) + 1;
12718 data3 = (char *) malloc (pagesize);
12721 if (read (fd, data3, pagesize) != pagesize)
12723 for (i = 0; i < pagesize; ++i)
12724 if (*(data + i) != *(data3 + i))
12730 rm -f conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_link") 2>&5
12739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_func_mmap_fixed_mapped=yes
12752 echo "$as_me: program exited with status
$ac_status" >&5
12753 echo "$as_me: failed program was
:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ( exit $ac_status )
12757 ac_cv_func_mmap_fixed_mapped=no
12759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12764 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12765 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12766 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_MMAP 1
12773 rm -f conftest.mmap
12777 for ac_header in sys/select.h sys/socket.h
12779 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12781 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12782 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12784 echo $ECHO_N "(cached
) $ECHO_C" >&6
12786 ac_res=`eval echo '${'$as_ac_Header'}'`
12787 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12788 echo "${ECHO_T}$ac_res" >&6; }
12790 # Is the header compilable?
12791 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12792 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 #include <$ac_header>
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_compile") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest.$ac_objext; then
12819 ac_header_compiler=yes
12821 echo "$as_me: failed program was
:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_compiler=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6; }
12831 # Is the header present?
12832 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12833 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 #include <$ac_header>
12842 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12854 (exit $ac_status); } >/dev/null && {
12855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12856 test ! -s conftest.err
12858 ac_header_preproc=yes
12860 echo "$as_me: failed program was
:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_header_preproc=no
12866 rm -f conftest.err conftest.$ac_ext
12867 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12868 echo "${ECHO_T}$ac_header_preproc" >&6; }
12870 # So? What about this header?
12871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12873 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12874 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12875 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12877 ac_header_preproc=yes
12880 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12881 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12882 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12883 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12884 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12885 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12886 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12887 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12888 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12890 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12891 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12893 ## ------------------------------- ##
12894 ## Report this to www.asterisk.org ##
12895 ## ------------------------------- ##
12897 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12900 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12901 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12903 echo $ECHO_N "(cached
) $ECHO_C" >&6
12905 eval "$as_ac_Header=\
$ac_header_preproc"
12907 ac_res=`eval echo '${'$as_ac_Header'}'`
12908 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12909 echo "${ECHO_T}$ac_res" >&6; }
12912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12913 cat >>confdefs.h <<_ACEOF
12914 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12921 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12922 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12923 if test "${ac_cv_func_select_args+set}" = set; then
12924 echo $ECHO_N "(cached
) $ECHO_C" >&6
12926 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12927 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12928 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 $ac_includes_default
12936 #ifdef HAVE_SYS_SELECT_H
12937 # include <sys/select.h>
12939 #ifdef HAVE_SYS_SOCKET_H
12940 # include <sys/socket.h>
12946 extern int select ($ac_arg1,
12947 $ac_arg234, $ac_arg234, $ac_arg234,
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_compile") 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest.$ac_objext; then
12970 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12972 echo "$as_me: failed program was
:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982 # Provide a safe default value.
12983 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12986 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
12987 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12988 ac_save_IFS=$IFS; IFS=','
12989 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12993 cat >>confdefs.h <<_ACEOF
12994 #define SELECT_TYPE_ARG1 $1
12998 cat >>confdefs.h <<_ACEOF
12999 #define SELECT_TYPE_ARG234 ($2)
13003 cat >>confdefs.h <<_ACEOF
13004 #define SELECT_TYPE_ARG5 ($3)
13009 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13010 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13011 if test "$ac_cv_prog_cc_c89" != no; then
13012 { echo "$as_me:$LINENO: result
: yes" >&5
13013 echo "${ECHO_T}yes" >&6; }
13015 cat >>confdefs.h <<\_ACEOF
13016 #define PROTOTYPES 1
13020 cat >>confdefs.h <<\_ACEOF
13021 #define __PROTOTYPES 1
13025 { echo "$as_me:$LINENO: result
: no
" >&5
13026 echo "${ECHO_T}no
" >&6; }
13029 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13030 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13031 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13032 echo $ECHO_N "(cached
) $ECHO_C" >&6
13034 ac_cv_func_setvbuf_reversed=no
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13043 int (setvbuf) (FILE *, int, char *, size_t);
13048 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (ac_try="$ac_link"
13055 case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13060 (eval "$ac_link") 2>conftest.er1
13062 grep -v '^ *+' conftest.er1 >conftest.err
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13066 (exit $ac_status); } && {
13067 test -z "$ac_c_werror_flag" ||
13068 test ! -s conftest.err
13069 } && test -s conftest$ac_exeext &&
13070 $as_test_x conftest$ac_exeext; then
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13079 int (setvbuf) (FILE *, int, char *, size_t);
13084 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest$ac_exeext &&
13106 $as_test_x conftest$ac_exeext; then
13107 # It compiles and links either way, so it must not be declared
13108 # with a prototype and most likely this is a K&R C compiler.
13110 if test "$cross_compiling" = yes; then
13111 : # Assume setvbuf is not reversed when cross-compiling.
13113 cat >conftest.$ac_ext <<_ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13123 /* This call has the arguments reversed.
13124 A reversed system may check and see that the address of buf
13125 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13127 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13130 return 0; /* Non-reversed systems SEGV here. */
13135 rm -f conftest$ac_exeext
13136 if { (ac_try="$ac_link"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_link") 2>&5
13144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_func_setvbuf_reversed=yes
13157 echo "$as_me: program exited with status
$ac_status" >&5
13158 echo "$as_me: failed program was
:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13166 ac_cv_func_setvbuf_reversed=yes
13168 echo "$as_me: failed program was
:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13175 conftest$ac_exeext conftest.$ac_ext
13177 echo "$as_me: failed program was
:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13184 conftest$ac_exeext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13187 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13188 if test $ac_cv_func_setvbuf_reversed = yes; then
13190 cat >>confdefs.h <<\_ACEOF
13191 #define SETVBUF_REVERSED 1
13196 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13197 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13198 if test "${ac_cv_type_signal+set}" = set; then
13199 echo $ECHO_N "(cached
) $ECHO_C" >&6
13201 cat >conftest.$ac_ext <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 #include <sys/types.h>
13208 #include <signal.h>
13213 return *(signal (0, 0)) (0) == 1;
13218 rm -f conftest.$ac_objext
13219 if { (ac_try="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_compile") 2>conftest.er1
13227 grep -v '^ *+' conftest.er1 >conftest.err
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13231 (exit $ac_status); } && {
13232 test -z "$ac_c_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest.$ac_objext; then
13235 ac_cv_type_signal=int
13237 echo "$as_me: failed program was
:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 ac_cv_type_signal=void
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13246 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13248 cat >>confdefs.h <<_ACEOF
13249 #define RETSIGTYPE $ac_cv_type_signal
13253 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13254 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13255 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13256 echo $ECHO_N "(cached
) $ECHO_C" >&6
13258 rm -f conftest.sym conftest.file
13259 echo >conftest.file
13260 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13261 if test "$cross_compiling" = yes; then
13262 ac_cv_func_lstat_dereferences_slashed_symlink=no
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13275 /* Linux will dereference the symlink and fail.
13276 That is better in the sense that it means we will not
13277 have to compile and use the lstat wrapper. */
13278 return lstat ("conftest.sym
/", &sbuf) == 0;
13283 rm -f conftest$ac_exeext
13284 if { (ac_try="$ac_link"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_link") 2>&5
13292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13294 { (case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13305 echo "$as_me: program exited with status
$ac_status" >&5
13306 echo "$as_me: failed program was
:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ( exit $ac_status )
13310 ac_cv_func_lstat_dereferences_slashed_symlink=no
13312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13317 # If the `ln -s' command failed, then we probably don't even
13318 # have an lstat function.
13319 ac_cv_func_lstat_dereferences_slashed_symlink=no
13321 rm -f conftest.sym conftest.file
13324 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13325 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13327 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13329 cat >>confdefs.h <<_ACEOF
13330 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13334 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13335 case " $LIBOBJS " in
13336 *" lstat.
$ac_objext "* ) ;;
13337 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13343 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13344 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13345 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13346 echo $ECHO_N "(cached
) $ECHO_C" >&6
13348 if test "$cross_compiling" = yes; then
13349 ac_cv_func_stat_empty_string_bug=yes
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13362 return stat ("", &sbuf) == 0;
13367 rm -f conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>&5
13376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_func_stat_empty_string_bug=no
13389 echo "$as_me: program exited with status
$ac_status" >&5
13390 echo "$as_me: failed program was
:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ( exit $ac_status )
13394 ac_cv_func_stat_empty_string_bug=yes
13396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13401 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13402 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13403 if test $ac_cv_func_stat_empty_string_bug = yes; then
13404 case " $LIBOBJS " in
13405 *" stat.
$ac_objext "* ) ;;
13406 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_STAT_EMPTY_STRING_BUG 1
13417 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13418 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13419 if test "${ac_cv_func_strcoll_works+set}" = set; then
13420 echo $ECHO_N "(cached
) $ECHO_C" >&6
13422 if test "$cross_compiling" = yes; then
13423 ac_cv_func_strcoll_works=no
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13435 return (strcoll ("abc
", "def
") >= 0 ||
13436 strcoll ("ABC
", "DEF
") >= 0 ||
13437 strcoll ("123", "456") >= 0)
13442 rm -f conftest$ac_exeext
13443 if { (ac_try="$ac_link"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_link") 2>&5
13451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13453 { (case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_try") 2>&5
13460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_func_strcoll_works=yes
13464 echo "$as_me: program exited with status
$ac_status" >&5
13465 echo "$as_me: failed program was
:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ( exit $ac_status )
13469 ac_cv_func_strcoll_works=no
13471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13476 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13477 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13478 if test $ac_cv_func_strcoll_works = yes; then
13480 cat >>confdefs.h <<\_ACEOF
13481 #define HAVE_STRCOLL 1
13487 for ac_func in strftime
13489 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13490 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13491 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13492 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13493 echo $ECHO_N "(cached
) $ECHO_C" >&6
13495 cat >conftest.$ac_ext <<_ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13503 #define $ac_func innocuous_$ac_func
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char $ac_func (); below.
13507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508 <limits.h> exists even on freestanding compilers. */
13511 # include <limits.h>
13513 # include <assert.h>
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13525 /* The GNU C library defines this for functions which it implements
13526 to always fail with ENOSYS. Some functions are actually named
13527 something starting with __ and the normal name is an alias. */
13528 #if defined __stub_$ac_func || defined __stub___$ac_func
13535 return $ac_func ();
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest$ac_exeext &&
13557 $as_test_x conftest$ac_exeext; then
13558 eval "$as_ac_var=yes"
13560 echo "$as_me: failed program was
:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 eval "$as_ac_var=no
"
13566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13567 conftest$ac_exeext conftest.$ac_ext
13569 ac_res=`eval echo '${'$as_ac_var'}'`
13570 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13571 echo "${ECHO_T}$ac_res" >&6; }
13572 if test `eval echo '${'$as_ac_var'}'` = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13578 # strftime is in -lintl on SCO UNIX.
13579 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13580 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13581 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13582 echo $ECHO_N "(cached
) $ECHO_C" >&6
13584 ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lintl $LIBS"
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 /* Override any GCC internal prototype to avoid an error.
13594 Use char because int might match the return type of a GCC
13595 builtin and then its argument prototype would still apply. */
13603 return strftime ();
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (ac_try="$ac_link"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_link") 2>conftest.er1
13617 grep -v '^ *+' conftest.er1 >conftest.err
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13621 (exit $ac_status); } && {
13622 test -z "$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13624 } && test -s conftest$ac_exeext &&
13625 $as_test_x conftest$ac_exeext; then
13626 ac_cv_lib_intl_strftime=yes
13628 echo "$as_me: failed program was
:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_cv_lib_intl_strftime=no
13634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS=$ac_check_lib_save_LIBS
13638 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13639 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13640 if test $ac_cv_lib_intl_strftime = yes; then
13641 cat >>confdefs.h <<\_ACEOF
13642 #define HAVE_STRFTIME 1
13645 LIBS="-lintl $LIBS"
13651 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13652 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13653 if test "${ac_cv_func_strnlen_working+set}" = set; then
13654 echo $ECHO_N "(cached
) $ECHO_C" >&6
13656 if test "$cross_compiling" = yes; then
13657 ac_cv_func_strnlen_working=no
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 $ac_includes_default
13671 #define S_LEN (sizeof S - 1)
13673 /* At least one implementation is buggy: that of AIX 4.3 would
13674 give strnlen (S, 1) == 3. */
13677 for (i = 0; i < S_LEN + 1; ++i)
13679 int expected = i <= S_LEN ? i : S_LEN;
13680 if (strnlen (S, i) != expected)
13689 rm -f conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>&5
13698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_func_strnlen_working=yes
13711 echo "$as_me: program exited with status
$ac_status" >&5
13712 echo "$as_me: failed program was
:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ( exit $ac_status )
13716 ac_cv_func_strnlen_working=no
13718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13723 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13724 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13725 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13726 *" strnlen.
$ac_objext "* ) ;;
13727 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13732 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13733 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13734 if test "${ac_cv_func_strtod+set}" = set; then
13735 echo $ECHO_N "(cached
) $ECHO_C" >&6
13737 if test "$cross_compiling" = yes; then
13738 ac_cv_func_strtod=no
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13747 $ac_includes_default
13755 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13756 char *string = " +69";
13759 value = strtod (string, &term);
13760 if (value != 69 || term != (string + 4))
13765 /* Under Solaris 2.4, strtod returns the wrong value for the
13766 terminating character under some conditions. */
13767 char *string = "NaN
";
13769 strtod (string, &term);
13770 if (term != string && *(term - 1) == 0)
13777 rm -f conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_link") 2>&5
13786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_func_strtod=yes
13799 echo "$as_me: program exited with status
$ac_status" >&5
13800 echo "$as_me: failed program was
:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ( exit $ac_status )
13804 ac_cv_func_strtod=no
13806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13812 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13813 if test $ac_cv_func_strtod = no; then
13814 case " $LIBOBJS " in
13815 *" strtod.
$ac_objext "* ) ;;
13816 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13820 { echo "$as_me:$LINENO: checking
for pow
" >&5
13821 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13822 if test "${ac_cv_func_pow+set}" = set; then
13823 echo $ECHO_N "(cached
) $ECHO_C" >&6
13825 cat >conftest.$ac_ext <<_ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13833 #define pow innocuous_pow
13835 /* System header to define __stub macros and hopefully few prototypes,
13836 which can conflict with char pow (); below.
13837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13838 <limits.h> exists even on freestanding compilers. */
13841 # include <limits.h>
13843 # include <assert.h>
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13855 /* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858 #if defined __stub_pow || defined __stub___pow
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext &&
13887 $as_test_x conftest$ac_exeext; then
13890 echo "$as_me: failed program was
:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13897 conftest$ac_exeext conftest.$ac_ext
13899 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13900 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13902 if test $ac_cv_func_pow = no; then
13903 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13904 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13905 if test "${ac_cv_lib_m_pow+set}" = set; then
13906 echo $ECHO_N "(cached
) $ECHO_C" >&6
13908 ac_check_lib_save_LIBS=$LIBS
13910 cat >conftest.$ac_ext <<_ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13932 rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest$ac_exeext &&
13949 $as_test_x conftest$ac_exeext; then
13950 ac_cv_lib_m_pow=yes
13952 echo "$as_me: failed program was
:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13959 conftest$ac_exeext conftest.$ac_ext
13960 LIBS=$ac_check_lib_save_LIBS
13962 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13963 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13964 if test $ac_cv_lib_m_pow = yes; then
13967 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
13968 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
13979 for ac_header in $ac_header_list
13981 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13982 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13983 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13984 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13986 echo $ECHO_N "(cached
) $ECHO_C" >&6
13988 ac_res=`eval echo '${'$as_ac_Header'}'`
13989 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13990 echo "${ECHO_T}$ac_res" >&6; }
13992 # Is the header compilable?
13993 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13994 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include <$ac_header>
14004 rm -f conftest.$ac_objext
14005 if { (ac_try="$ac_compile"
14006 case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_compile") 2>conftest.er1
14013 grep -v '^ *+' conftest.er1 >conftest.err
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14017 (exit $ac_status); } && {
14018 test -z "$ac_c_werror_flag" ||
14019 test ! -s conftest.err
14020 } && test -s conftest.$ac_objext; then
14021 ac_header_compiler=yes
14023 echo "$as_me: failed program was
:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14026 ac_header_compiler=no
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14031 echo "${ECHO_T}$ac_header_compiler" >&6; }
14033 # Is the header present?
14034 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14035 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 #include <$ac_header>
14044 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14052 grep -v '^ *+' conftest.er1 >conftest.err
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14056 (exit $ac_status); } >/dev/null && {
14057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14060 ac_header_preproc=yes
14062 echo "$as_me: failed program was
:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_header_preproc=no
14068 rm -f conftest.err conftest.$ac_ext
14069 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14070 echo "${ECHO_T}$ac_header_preproc" >&6; }
14072 # So? What about this header?
14073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14075 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14076 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14077 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14079 ac_header_preproc=yes
14082 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14083 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14084 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14085 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14086 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14087 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14088 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14089 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14090 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14092 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14093 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14095 ## ------------------------------- ##
14096 ## Report this to www.asterisk.org ##
14097 ## ------------------------------- ##
14099 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14102 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14103 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14105 echo $ECHO_N "(cached
) $ECHO_C" >&6
14107 eval "$as_ac_Header=\
$ac_header_preproc"
14109 ac_res=`eval echo '${'$as_ac_Header'}'`
14110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14111 echo "${ECHO_T}$ac_res" >&6; }
14114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14115 cat >>confdefs.h <<_ACEOF
14116 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14131 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14132 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14133 if test "${ac_cv_func_utime_null+set}" = set; then
14134 echo $ECHO_N "(cached
) $ECHO_C" >&6
14136 rm -f conftest.data; >conftest.data
14137 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14138 if test "$cross_compiling" = yes; then
14139 ac_cv_func_utime_null=no
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 $ac_includes_default
14148 #ifdef HAVE_UTIME_H
14149 # include <utime.h>
14155 return ! (stat ("conftest.data
", &s) == 0
14156 && utime ("conftest.data
", 0) == 0
14157 && stat ("conftest.data
", &t) == 0
14158 && t.st_mtime >= s.st_mtime
14159 && t.st_mtime - s.st_mtime < 120);
14164 rm -f conftest$ac_exeext
14165 if { (ac_try="$ac_link"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_link") 2>&5
14173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14175 { (case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_try") 2>&5
14182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_func_utime_null=yes
14186 echo "$as_me: program exited with status
$ac_status" >&5
14187 echo "$as_me: failed program was
:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ( exit $ac_status )
14191 ac_cv_func_utime_null=no
14193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14199 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14200 if test $ac_cv_func_utime_null = yes; then
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_UTIME_NULL 1
14207 rm -f conftest.data
14210 for ac_func in vprintf
14212 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14213 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14214 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14215 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14216 echo $ECHO_N "(cached
) $ECHO_C" >&6
14218 cat >conftest.$ac_ext <<_ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14226 #define $ac_func innocuous_$ac_func
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14234 # include <limits.h>
14236 # include <assert.h>
14241 /* Override any GCC internal prototype to avoid an error.
14242 Use char because int might match the return type of a GCC
14243 builtin and then its argument prototype would still apply. */
14248 /* The GNU C library defines this for functions which it implements
14249 to always fail with ENOSYS. Some functions are actually named
14250 something starting with __ and the normal name is an alias. */
14251 #if defined __stub_$ac_func || defined __stub___$ac_func
14258 return $ac_func ();
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (ac_try="$ac_link"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_link") 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest$ac_exeext &&
14280 $as_test_x conftest$ac_exeext; then
14281 eval "$as_ac_var=yes"
14283 echo "$as_me: failed program was
:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 eval "$as_ac_var=no
"
14289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14290 conftest$ac_exeext conftest.$ac_ext
14292 ac_res=`eval echo '${'$as_ac_var'}'`
14293 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14294 echo "${ECHO_T}$ac_res" >&6; }
14295 if test `eval echo '${'$as_ac_var'}'` = yes; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14300 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14301 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14302 if test "${ac_cv_func__doprnt+set}" = set; then
14303 echo $ECHO_N "(cached
) $ECHO_C" >&6
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14313 #define _doprnt innocuous__doprnt
14315 /* System header to define __stub macros and hopefully few prototypes,
14316 which can conflict with char _doprnt (); below.
14317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14318 <limits.h> exists even on freestanding compilers. */
14321 # include <limits.h>
14323 # include <assert.h>
14328 /* Override any GCC internal prototype to avoid an error.
14329 Use char because int might match the return type of a GCC
14330 builtin and then its argument prototype would still apply. */
14335 /* The GNU C library defines this for functions which it implements
14336 to always fail with ENOSYS. Some functions are actually named
14337 something starting with __ and the normal name is an alias. */
14338 #if defined __stub__doprnt || defined __stub____doprnt
14350 rm -f conftest.$ac_objext conftest$ac_exeext
14351 if { (ac_try="$ac_link"
14352 case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_link") 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14363 (exit $ac_status); } && {
14364 test -z "$ac_c_werror_flag" ||
14365 test ! -s conftest.err
14366 } && test -s conftest$ac_exeext &&
14367 $as_test_x conftest$ac_exeext; then
14368 ac_cv_func__doprnt=yes
14370 echo "$as_me: failed program was
:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_cv_func__doprnt=no
14376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14377 conftest$ac_exeext conftest.$ac_ext
14379 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14380 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14381 if test $ac_cv_func__doprnt = yes; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_DOPRNT 1
14442 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
14444 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14445 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14446 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14447 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached
) $ECHO_C" >&6
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define $ac_func innocuous_$ac_func
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14466 # include <limits.h>
14468 # include <assert.h>
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined __stub_$ac_func || defined __stub___$ac_func
14490 return $ac_func ();
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14508 (exit $ac_status); } && {
14509 test -z "$ac_c_werror_flag" ||
14510 test ! -s conftest.err
14511 } && test -s conftest$ac_exeext &&
14512 $as_test_x conftest$ac_exeext; then
14513 eval "$as_ac_var=yes"
14515 echo "$as_me: failed program was
:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 eval "$as_ac_var=no
"
14521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14522 conftest$ac_exeext conftest.$ac_ext
14524 ac_res=`eval echo '${'$as_ac_var'}'`
14525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14526 echo "${ECHO_T}$ac_res" >&6; }
14527 if test `eval echo '${'$as_ac_var'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14536 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14537 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14538 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14539 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14540 echo $ECHO_N "(cached
) $ECHO_C" >&6
14542 ac_func_search_save_LIBS=$LIBS
14543 cat >conftest.$ac_ext <<_ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14550 /* Override any GCC internal prototype to avoid an error.
14551 Use char because int might match the return type of a GCC
14552 builtin and then its argument prototype would still apply. */
14556 char gethostbyname_r ();
14560 return gethostbyname_r ();
14565 for ac_lib in '' socket nsl; do
14566 if test -z "$ac_lib"; then
14567 ac_res="none required
"
14570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (ac_try="$ac_link"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_link") 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest$ac_exeext &&
14589 $as_test_x conftest$ac_exeext; then
14590 ac_cv_search_gethostbyname_r=$ac_res
14592 echo "$as_me: failed program was
:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14604 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14607 ac_cv_search_gethostbyname_r=no
14609 rm conftest.$ac_ext
14610 LIBS=$ac_func_search_save_LIBS
14612 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14613 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14614 ac_res=$ac_cv_search_gethostbyname_r
14615 if test "$ac_res" != no; then
14616 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14621 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14622 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14623 cat >conftest.$ac_ext <<_ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <stdlib.h>
14634 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_link") 2>conftest.er1
14648 grep -v '^ *+' conftest.er1 >conftest.err
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14652 (exit $ac_status); } && {
14653 test -z "$ac_c_werror_flag" ||
14654 test ! -s conftest.err
14655 } && test -s conftest$ac_exeext &&
14656 $as_test_x conftest$ac_exeext; then
14657 { echo "$as_me:$LINENO: result
: yes" >&5
14658 echo "${ECHO_T}yes" >&6; }
14660 cat >>confdefs.h <<\_ACEOF
14661 #define HAVE_GETHOSTBYNAME_R_6 1
14665 echo "$as_me: failed program was
:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 { echo "$as_me:$LINENO: result
: no
" >&5
14669 echo "${ECHO_T}no
" >&6; }
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674 conftest$ac_exeext conftest.$ac_ext
14676 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14677 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <stdlib.h>
14689 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712 { echo "$as_me:$LINENO: result
: yes" >&5
14713 echo "${ECHO_T}yes" >&6; }
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_GETHOSTBYNAME_R_5 1
14720 echo "$as_me: failed program was
:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 { echo "$as_me:$LINENO: result
: no
" >&5
14724 echo "${ECHO_T}no
" >&6; }
14728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14729 conftest$ac_exeext conftest.$ac_ext
14731 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14732 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #include <pthread.h>
14743 int foo = PTHREAD_RWLOCK_INITIALIZER;
14748 rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_link") 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14761 (exit $ac_status); } && {
14762 test -z "$ac_c_werror_flag" ||
14763 test ! -s conftest.err
14764 } && test -s conftest$ac_exeext &&
14765 $as_test_x conftest$ac_exeext; then
14766 { echo "$as_me:$LINENO: result
: yes" >&5
14767 echo "${ECHO_T}yes" >&6; }
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14774 echo "$as_me: failed program was
:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 { echo "$as_me:$LINENO: result
: no
" >&5
14778 echo "${ECHO_T}no
" >&6; }
14782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14783 conftest$ac_exeext conftest.$ac_ext
14785 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14786 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <pthread.h>
14797 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14802 rm -f conftest.$ac_objext conftest$ac_exeext
14803 if { (ac_try="$ac_link"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_link") 2>conftest.er1
14811 grep -v '^ *+' conftest.er1 >conftest.err
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest$ac_exeext &&
14819 $as_test_x conftest$ac_exeext; then
14820 { echo "$as_me:$LINENO: result
: yes" >&5
14821 echo "${ECHO_T}yes" >&6; }
14823 cat >>confdefs.h <<\_ACEOF
14824 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14828 echo "$as_me: failed program was
:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 { echo "$as_me:$LINENO: result
: no
" >&5
14832 echo "${ECHO_T}no
" >&6; }
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14840 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14841 cat >conftest.$ac_ext <<_ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14851 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (ac_try="$ac_link"
14858 case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_link") 2>conftest.er1
14865 grep -v '^ *+' conftest.er1 >conftest.err
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14869 (exit $ac_status); } && {
14870 test -z "$ac_c_werror_flag" ||
14871 test ! -s conftest.err
14872 } && test -s conftest$ac_exeext &&
14873 $as_test_x conftest$ac_exeext; then
14874 { echo "$as_me:$LINENO: result
: yes" >&5
14875 echo "${ECHO_T}yes" >&6; }
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_GCC_ATOMICS 1
14882 echo "$as_me: failed program was
:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 { echo "$as_me:$LINENO: result
: no
" >&5
14886 echo "${ECHO_T}no
" >&6; }
14890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14891 conftest$ac_exeext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14895 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14896 saved_CFLAGS="$CFLAGS"
14897 CFLAGS="$CFLAGS -Werror"
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 static void __attribute__((pure)) *test(void *muffin, ...) {}
14913 rm -f conftest.$ac_objext
14914 if { (ac_try="$ac_compile"
14915 case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_compile") 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest.$ac_objext; then
14930 { echo "$as_me:$LINENO: result
: yes" >&5
14931 echo "${ECHO_T}yes" >&6; }
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_ATTRIBUTE_pure 1
14938 echo "$as_me: failed program was
:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 { echo "$as_me:$LINENO: result
: no
" >&5
14942 echo "${ECHO_T}no
" >&6; }
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 CFLAGS="$saved_CFLAGS"
14950 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14951 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14952 saved_CFLAGS="$CFLAGS"
14953 CFLAGS="$CFLAGS -Werror"
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14969 rm -f conftest.$ac_objext
14970 if { (ac_try="$ac_compile"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_compile") 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest.$ac_objext; then
14986 { echo "$as_me:$LINENO: result
: yes" >&5
14987 echo "${ECHO_T}yes" >&6; }
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_ATTRIBUTE_malloc 1
14994 echo "$as_me: failed program was
:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 { echo "$as_me:$LINENO: result
: no
" >&5
14998 echo "${ECHO_T}no
" >&6; }
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 CFLAGS="$saved_CFLAGS"
15006 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
15007 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
15008 saved_CFLAGS="$CFLAGS"
15009 CFLAGS="$CFLAGS -Werror"
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 static void __attribute__((const)) *test(void *muffin, ...) {}
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_compile") 2>conftest.er1
15034 grep -v '^ *+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest.$ac_objext; then
15042 { echo "$as_me:$LINENO: result
: yes" >&5
15043 echo "${ECHO_T}yes" >&6; }
15045 cat >>confdefs.h <<_ACEOF
15046 #define HAVE_ATTRIBUTE_const 1
15050 echo "$as_me: failed program was
:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 { echo "$as_me:$LINENO: result
: no
" >&5
15054 echo "${ECHO_T}no
" >&6; }
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 CFLAGS="$saved_CFLAGS"
15062 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15063 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15064 saved_CFLAGS="$CFLAGS"
15065 CFLAGS="$CFLAGS -Werror"
15066 cat >conftest.$ac_ext <<_ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 static void __attribute__((unused)) *test(void *muffin, ...) {}
15081 rm -f conftest.$ac_objext
15082 if { (ac_try="$ac_compile"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_compile") 2>conftest.er1
15090 grep -v '^ *+' conftest.er1 >conftest.err
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest.$ac_objext; then
15098 { echo "$as_me:$LINENO: result
: yes" >&5
15099 echo "${ECHO_T}yes" >&6; }
15101 cat >>confdefs.h <<_ACEOF
15102 #define HAVE_ATTRIBUTE_unused 1
15106 echo "$as_me: failed program was
:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 { echo "$as_me:$LINENO: result
: no
" >&5
15110 echo "${ECHO_T}no
" >&6; }
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15115 CFLAGS="$saved_CFLAGS"
15118 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15119 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15120 saved_CFLAGS="$CFLAGS"
15121 CFLAGS="$CFLAGS -Werror"
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest.$ac_objext; then
15154 { echo "$as_me:$LINENO: result
: yes" >&5
15155 echo "${ECHO_T}yes" >&6; }
15157 cat >>confdefs.h <<_ACEOF
15158 #define HAVE_ATTRIBUTE_always_inline 1
15162 echo "$as_me: failed program was
:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 { echo "$as_me:$LINENO: result
: no
" >&5
15166 echo "${ECHO_T}no
" >&6; }
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 CFLAGS="$saved_CFLAGS"
15174 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15175 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15176 saved_CFLAGS="$CFLAGS"
15177 CFLAGS="$CFLAGS -Werror"
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 { echo "$as_me:$LINENO: result
: yes" >&5
15211 echo "${ECHO_T}yes" >&6; }
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_ATTRIBUTE_deprecated 1
15218 echo "$as_me: failed program was
:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 { echo "$as_me:$LINENO: result
: no
" >&5
15222 echo "${ECHO_T}no
" >&6; }
15225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227 CFLAGS="$saved_CFLAGS"
15230 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15231 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15232 saved_CFLAGS="${CFLAGS}"
15233 CFLAGS="${CFLAGS} -ffunction-sections"
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15249 rm -f conftest.$ac_objext
15250 if { (ac_try="$ac_compile"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_compile") 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15262 (exit $ac_status); } && {
15263 test -z "$ac_c_werror_flag" ||
15264 test ! -s conftest.err
15265 } && test -s conftest.$ac_objext; then
15266 { echo "$as_me:$LINENO: result
: yes" >&5
15267 echo "${ECHO_T}yes" >&6; }
15268 saved_LDFLAGS="${LDFLAGS}"
15269 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15270 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15271 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>conftest.er1
15296 grep -v '^ *+' conftest.er1 >conftest.err
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 { echo "$as_me:$LINENO: result
: yes" >&5
15306 echo "${ECHO_T}yes" >&6; }
15307 GC_CFLAGS="-ffunction-sections"
15308 GC_LDFLAGS="-Wl,--gc-sections"
15310 echo "$as_me: failed program was
:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 { echo "$as_me:$LINENO: result
: no
" >&5
15314 echo "${ECHO_T}no
" >&6; }
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LDFLAGS="${saved_LDFLAGS}"
15322 echo "$as_me: failed program was
:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 { echo "$as_me:$LINENO: result
: no
" >&5
15326 echo "${ECHO_T}no
" >&6; }
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 CFLAGS="${saved_CFLAGS}"
15335 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15336 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15337 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15338 { echo "$as_me:$LINENO: result
: yes" >&5
15339 echo "${ECHO_T}yes" >&6; }
15340 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15342 { echo "$as_me:$LINENO: result
: no
" >&5
15343 echo "${ECHO_T}no
" >&6; }
15344 AST_DECLARATION_AFTER_STATEMENT=
15348 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15349 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15350 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15351 { echo "$as_me:$LINENO: result
: yes" >&5
15352 echo "${ECHO_T}yes" >&6; }
15353 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15355 { echo "$as_me:$LINENO: result
: no
" >&5
15356 echo "${ECHO_T}no
" >&6; }
15357 AST_NO_STRICT_OVERFLOW=
15361 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15362 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <resolv.h>
15373 int foo = res_ninit(NULL);
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_link") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest$ac_exeext &&
15395 $as_test_x conftest$ac_exeext; then
15396 { echo "$as_me:$LINENO: result
: yes" >&5
15397 echo "${ECHO_T}yes" >&6; }
15399 cat >>confdefs.h <<\_ACEOF
15400 #define HAVE_RES_NINIT 1
15403 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15404 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <resolv.h>
15415 int foo = res_ndestroy(NULL);
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15433 (exit $ac_status); } && {
15434 test -z "$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 } && test -s conftest$ac_exeext &&
15437 $as_test_x conftest$ac_exeext; then
15438 { echo "$as_me:$LINENO: result
: yes" >&5
15439 echo "${ECHO_T}yes" >&6; }
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_RES_NDESTROY 1
15446 echo "$as_me: failed program was
:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 { echo "$as_me:$LINENO: result
: no
" >&5
15450 echo "${ECHO_T}no
" >&6; }
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455 conftest$ac_exeext conftest.$ac_ext
15457 echo "$as_me: failed program was
:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 { echo "$as_me:$LINENO: result
: no
" >&5
15461 echo "${ECHO_T}no
" >&6; }
15465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466 conftest$ac_exeext conftest.$ac_ext
15468 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15469 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15480 int foo = RTLD_NOLOAD;
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest$ac_exeext &&
15502 $as_test_x conftest$ac_exeext; then
15503 { echo "$as_me:$LINENO: result
: yes" >&5
15504 echo "${ECHO_T}yes" >&6; }
15506 cat >>confdefs.h <<\_ACEOF
15507 #define HAVE_RTLD_NOLOAD 1
15511 echo "$as_me: failed program was
:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 { echo "$as_me:$LINENO: result
: no
" >&5
15515 echo "${ECHO_T}no
" >&6; }
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520 conftest$ac_exeext conftest.$ac_ext
15522 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15523 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <netinet/in.h>
15534 int foo = IP_MTU_DISCOVER;
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (ac_try="$ac_link"
15541 case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_link") 2>conftest.er1
15548 grep -v '^ *+' conftest.er1 >conftest.err
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15552 (exit $ac_status); } && {
15553 test -z "$ac_c_werror_flag" ||
15554 test ! -s conftest.err
15555 } && test -s conftest$ac_exeext &&
15556 $as_test_x conftest$ac_exeext; then
15557 { echo "$as_me:$LINENO: result
: yes" >&5
15558 echo "${ECHO_T}yes" >&6; }
15560 cat >>confdefs.h <<\_ACEOF
15561 #define HAVE_IP_MTU_DISCOVER 1
15565 echo "$as_me: failed program was
:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 { echo "$as_me:$LINENO: result
: no
" >&5
15569 echo "${ECHO_T}no
" >&6; }
15573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15574 conftest$ac_exeext conftest.$ac_ext
15576 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15577 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15578 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15579 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15580 echo $ECHO_N "(cached
) $ECHO_C" >&6
15582 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15583 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15585 # Is the header compilable?
15586 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15587 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15588 cat >conftest.$ac_ext <<_ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 $ac_includes_default
15595 #include <libkern/OSAtomic.h>
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_compile") 2>conftest.er1
15606 grep -v '^ *+' conftest.er1 >conftest.err
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15610 (exit $ac_status); } && {
15611 test -z "$ac_c_werror_flag" ||
15612 test ! -s conftest.err
15613 } && test -s conftest.$ac_objext; then
15614 ac_header_compiler=yes
15616 echo "$as_me: failed program was
:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_header_compiler=no
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6; }
15626 # Is the header present?
15627 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15628 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 #include <libkern/OSAtomic.h>
15637 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15649 (exit $ac_status); } >/dev/null && {
15650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15653 ac_header_preproc=yes
15655 echo "$as_me: failed program was
:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_header_preproc=no
15661 rm -f conftest.err conftest.$ac_ext
15662 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15663 echo "${ECHO_T}$ac_header_preproc" >&6; }
15665 # So? What about this header?
15666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15669 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15670 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15671 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15672 ac_header_preproc=yes
15675 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15676 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15677 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15678 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15679 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15680 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15681 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15682 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15683 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15684 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15685 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15686 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15688 ## ------------------------------- ##
15689 ## Report this to www.asterisk.org ##
15690 ## ------------------------------- ##
15692 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15695 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15696 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15697 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15698 echo $ECHO_N "(cached
) $ECHO_C" >&6
15700 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15702 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15703 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15706 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15708 cat >>confdefs.h <<_ACEOF
15709 #define HAVE_OSX_ATOMICS 1
15716 { echo "$as_me:$LINENO: checking
for int
" >&5
15717 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15718 if test "${ac_cv_type_int+set}" = set; then
15719 echo $ECHO_N "(cached
) $ECHO_C" >&6
15721 cat >conftest.$ac_ext <<_ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 $ac_includes_default
15728 typedef int ac__type_new_;
15732 if ((ac__type_new_ *) 0)
15734 if (sizeof (ac__type_new_))
15740 rm -f conftest.$ac_objext
15741 if { (ac_try="$ac_compile"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_compile") 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15753 (exit $ac_status); } && {
15754 test -z "$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 } && test -s conftest.$ac_objext; then
15759 echo "$as_me: failed program was
:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15768 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15770 # The cast to long int works around a bug in the HP C Compiler
15771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15773 # This bug is HP SR number 8606223364.
15774 { echo "$as_me:$LINENO: checking size of int
" >&5
15775 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15776 if test "${ac_cv_sizeof_int+set}" = set; then
15777 echo $ECHO_N "(cached
) $ECHO_C" >&6
15779 if test "$cross_compiling" = yes; then
15780 # Depending upon the size, compute the lo and hi bounds.
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15788 typedef int ac__type_sizeof_;
15792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15799 rm -f conftest.$ac_objext
15800 if { (ac_try="$ac_compile"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_compile") 2>conftest.er1
15808 grep -v '^ *+' conftest.er1 >conftest.err
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15812 (exit $ac_status); } && {
15813 test -z "$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15815 } && test -s conftest.$ac_objext; then
15818 cat >conftest.$ac_ext <<_ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 typedef int ac__type_sizeof_;
15829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_compile") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15849 (exit $ac_status); } && {
15850 test -z "$ac_c_werror_flag" ||
15851 test ! -s conftest.err
15852 } && test -s conftest.$ac_objext; then
15853 ac_hi=$ac_mid; break
15855 echo "$as_me: failed program was
:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_lo=`expr $ac_mid + 1`
15859 if test $ac_lo -le $ac_mid; then
15863 ac_mid=`expr 2 '*' $ac_mid + 1`
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 echo "$as_me: failed program was
:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 typedef int ac__type_sizeof_;
15883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_compile") 2>conftest.er1
15899 grep -v '^ *+' conftest.er1 >conftest.err
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15903 (exit $ac_status); } && {
15904 test -z "$ac_c_werror_flag" ||
15905 test ! -s conftest.err
15906 } && test -s conftest.$ac_objext; then
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 typedef int ac__type_sizeof_;
15920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_lo=$ac_mid; break
15946 echo "$as_me: failed program was
:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_hi=`expr '(' $ac_mid ')' - 1`
15950 if test $ac_mid -le $ac_hi; then
15954 ac_mid=`expr 2 '*' $ac_mid`
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 echo "$as_me: failed program was
:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 # Binary search between lo and hi bounds.
15971 while test "x
$ac_lo" != "x
$ac_hi"; do
15972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 $ac_includes_default
15980 typedef int ac__type_sizeof_;
15984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15991 rm -f conftest.$ac_objext
15992 if { (ac_try="$ac_compile"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_compile") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1 >conftest.err
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest.$ac_objext; then
16010 echo "$as_me: failed program was
:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_lo=`expr '(' $ac_mid ')' + 1`
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 ?*) ac_cv_sizeof_int=$ac_lo;;
16020 '') if test "$ac_cv_type_int" = yes; then
16021 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
16022 See \
`config.log' for more details." >&5
16023 echo "$as_me: error: cannot compute sizeof (int)
16024 See \`config.log
' for more details." >&2;}
16025 { (exit 77); exit 77; }; }
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 typedef int ac__type_sizeof_;
16039 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16040 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16042 #include <stdlib.h>
16047 FILE *f = fopen ("conftest.val", "w");
16050 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16052 long int i = longval ();
16053 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16055 fprintf (f, "%ld\n", i);
16059 unsigned long int i = ulongval ();
16060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16062 fprintf (f, "%lu\n", i);
16064 return ferror (f) || fclose (f) != 0;
16070 rm -f conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_cv_sizeof_int=`cat conftest.val`
16092 echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 sed 's
/^
/|
/' conftest.$ac_ext >&5
16096 ( exit $ac_status )
16097 if test "$ac_cv_type_int" = yes; then
16098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16099 See \`config.log' for more details.
" >&5
16100 echo "$as_me: error
: cannot compute sizeof
(int
)
16101 See \
`config.log' for more details." >&2;}
16102 { (exit 77); exit 77; }; }
16107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16112 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16116 cat >>confdefs.h <<_ACEOF
16117 #define SIZEOF_INT $ac_cv_sizeof_int
16122 # do the package library checks now
16125 if test "${USE_ALSA}" != "no"; then
16127 if test "x${ALSA_DIR}" != "x"; then
16128 if test -d ${ALSA_DIR}/lib; then
16129 pbxlibdir="-L${ALSA_DIR}/lib"
16131 pbxlibdir="-L${ALSA_DIR}"
16134 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16135 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16136 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 ac_check_lib_save_LIBS=$LIBS
16140 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16148 /* Override any GCC internal prototype to avoid an error.
16149 Use char because int might match the return type of a GCC
16150 builtin and then its argument prototype would still apply. */
16154 char snd_spcm_init ();
16158 return snd_spcm_init ();
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (ac_try="$ac_link"
16165 case "(($ac_try" in
16166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16167 *) ac_try_echo
=$ac_try;;
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_link") 2>conftest.er1
16172 grep -v '^ *+' conftest.er1
>conftest.err
16174 cat conftest.err
>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && {
16177 test -z "$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 } && test -s conftest
$ac_exeext &&
16180 $as_test_x conftest
$ac_exeext; then
16181 ac_cv_lib_asound_snd_spcm_init
=yes
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.
$ac_ext >&5
16186 ac_cv_lib_asound_snd_spcm_init
=no
16189 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16190 conftest
$ac_exeext conftest.
$ac_ext
16191 LIBS
=$ac_check_lib_save_LIBS
16193 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16194 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16195 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16202 if test "${AST_ALSA_FOUND}" = "yes"; then
16203 ALSA_LIB
="-lasound -lm -ldl"
16204 ALSA_HEADER_FOUND
="1"
16205 if test "x${ALSA_DIR}" != "x"; then
16206 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16207 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16208 saved_cppflags
="${CPPFLAGS}"
16209 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
16210 if test "xalsa/asoundlib.h" != "x" ; then
16211 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16212 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16213 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16214 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16215 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 ac_res
=`eval echo '${'$as_ac_Header'}'`
16219 { echo "$as_me:$LINENO: result: $ac_res" >&5
16220 echo "${ECHO_T}$ac_res" >&6; }
16222 # Is the header compilable?
16223 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16224 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16225 cat >conftest.
$ac_ext <<_ACEOF
16228 cat confdefs.h
>>conftest.
$ac_ext
16229 cat >>conftest.
$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 $ac_includes_default
16232 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16234 rm -f conftest.
$ac_objext
16235 if { (ac_try
="$ac_compile"
16236 case "(($ac_try" in
16237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_compile") 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest.$ac_objext; then
16251 ac_header_compiler=yes
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_compiler=no
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261 echo "${ECHO_T}$ac_header_compiler" >&6; }
16263 # Is the header present?
16264 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16265 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16274 if { (ac_try="$ac_cpp conftest.$ac_ext"
16275 case "(($ac_try" in
16276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16277 *) ac_try_echo
=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16282 grep -v '^ *+' conftest.er1
>conftest.err
16284 cat conftest.err
>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev
/null
&& {
16287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16288 test ! -s conftest.err
16290 ac_header_preproc
=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.
$ac_ext >&5
16295 ac_header_preproc
=no
16298 rm -f conftest.err conftest.
$ac_ext
16299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16300 echo "${ECHO_T}$ac_header_preproc" >&6; }
16302 # So? What about this header?
16303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16305 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16306 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16308 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16309 ac_header_preproc
=yes
16312 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16313 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16315 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16317 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16319 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16321 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16323 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16325 ## ------------------------------- ##
16326 ## Report this to www.asterisk.org ##
16327 ## ------------------------------- ##
16329 ) |
sed "s/^/$as_me: WARNING: /" >&2
16332 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16333 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16334 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 eval "$as_ac_Header=\$ac_header_preproc"
16339 ac_res
=`eval echo '${'$as_ac_Header'}'`
16340 { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16345 ALSA_HEADER_FOUND
=1
16347 ALSA_HEADER_FOUND
=0
16352 CPPFLAGS
="${saved_cppflags}"
16354 if test "xalsa/asoundlib.h" != "x" ; then
16355 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16356 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16357 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16358 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16362 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16364 # Is the header compilable?
16365 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16366 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16367 cat >conftest.
$ac_ext <<_ACEOF
16370 cat confdefs.h
>>conftest.
$ac_ext
16371 cat >>conftest.
$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <alsa/asoundlib.h>
16376 rm -f conftest.
$ac_objext
16377 if { (ac_try
="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } && {
16390 test -z "$ac_c_werror_flag" ||
16391 test ! -s conftest.err
16392 } && test -s conftest.$ac_objext; then
16393 ac_header_compiler=yes
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 ac_header_compiler=no
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16403 echo "${ECHO_T}$ac_header_compiler" >&6; }
16405 # Is the header present?
16406 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16407 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 #include <alsa/asoundlib.h>
16416 if { (ac_try="$ac_cpp conftest.$ac_ext"
16417 case "(($ac_try" in
16418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16419 *) ac_try_echo
=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1
>conftest.err
16426 cat conftest.err
>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } >/dev
/null
&& {
16429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16432 ac_header_preproc
=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.
$ac_ext >&5
16437 ac_header_preproc
=no
16440 rm -f conftest.err conftest.
$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16447 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc
=yes
16454 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16467 ## ------------------------------- ##
16468 ## Report this to www.asterisk.org ##
16469 ## ------------------------------- ##
16471 ) |
sed "s/^/$as_me: WARNING: /" >&2
16474 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16475 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16476 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16481 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16482 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16485 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16486 ALSA_HEADER_FOUND
=1
16488 ALSA_HEADER_FOUND
=0
16494 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16495 if test -n "${ALSA_MANDATORY}" ;
16497 { echo "$as_me:$LINENO: ***" >&5
16498 echo "$as_me: ***" >&6;}
16499 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16500 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16501 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16502 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16504 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16513 cat >>confdefs.h
<<_ACEOF
16514 #define HAVE_ALSA 1
16518 elif test -n "${ALSA_MANDATORY}";
16520 { echo "$as_me:$LINENO: ***" >&5
16521 echo "$as_me: ***" >&6;}
16522 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16523 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16524 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16525 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16526 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16527 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16534 if test "${USE_CURSES}" != "no"; then
16536 if test "x${CURSES_DIR}" != "x"; then
16537 if test -d ${CURSES_DIR}/lib
; then
16538 pbxlibdir
="-L${CURSES_DIR}/lib"
16540 pbxlibdir
="-L${CURSES_DIR}"
16543 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16544 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16545 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 ac_check_lib_save_LIBS
=$LIBS
16549 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16550 cat >conftest.
$ac_ext <<_ACEOF
16553 cat confdefs.h
>>conftest.
$ac_ext
16554 cat >>conftest.
$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16572 rm -f conftest.
$ac_objext conftest
$ac_exeext
16573 if { (ac_try
="$ac_link"
16574 case "(($ac_try" in
16575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16581 grep -v '^ *+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16590 ac_cv_lib_curses_initscr=yes
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_curses_initscr=no
16598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16603 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16604 if test $ac_cv_lib_curses_initscr = yes; then
16605 AST_CURSES_FOUND=yes
16607 AST_CURSES_FOUND=no
16611 if test "${AST_CURSES_FOUND}" = "yes"; then
16612 CURSES_LIB="-lcurses "
16613 CURSES_HEADER_FOUND="1"
16614 if test "x${CURSES_DIR}" != "x"; then
16615 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16616 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16617 saved_cppflags="${CPPFLAGS}"
16618 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16619 if test "xcurses.h" != "x" ; then
16620 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16622 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16623 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 ac_res=`eval echo '${'$as_ac_Header'}'`
16628 { echo "$as_me:$LINENO: result: $ac_res" >&5
16629 echo "${ECHO_T}$ac_res" >&6; }
16631 # Is the header compilable?
16632 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16633 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 $ac_includes_default
16641 #include <${CURSES_DIR}/include/curses.h>
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16647 *) ac_try_echo
=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_compile") 2>conftest.er1
16652 grep -v '^ *+' conftest.er1
>conftest.err
16654 cat conftest.err
>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } && {
16657 test -z "$ac_c_werror_flag" ||
16658 test ! -s conftest.err
16659 } && test -s conftest.
$ac_objext; then
16660 ac_header_compiler
=yes
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.
$ac_ext >&5
16665 ac_header_compiler
=no
16668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16670 echo "${ECHO_T}$ac_header_compiler" >&6; }
16672 # Is the header present?
16673 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16674 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16675 cat >conftest.
$ac_ext <<_ACEOF
16678 cat confdefs.h
>>conftest.
$ac_ext
16679 cat >>conftest.
$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 #include <${CURSES_DIR}/include/curses.h>
16683 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16684 case "(($ac_try" in
16685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } >/dev/null && {
16696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16697 test ! -s conftest.err
16699 ac_header_preproc=yes
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ac_header_preproc=no
16707 rm -f conftest.err conftest.$ac_ext
16708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16709 echo "${ECHO_T}$ac_header_preproc" >&6; }
16711 # So? What about this header?
16712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16714 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16715 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16716 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16717 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16718 ac_header_preproc=yes
16721 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16722 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16723 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16724 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16726 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16728 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16730 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16732 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16734 ## ------------------------------- ##
16735 ## Report this to www.asterisk.org ##
16736 ## ------------------------------- ##
16738 ) | sed "s/^/$as_me: WARNING: /" >&2
16741 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16742 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 eval "$as_ac_Header=\$ac_header_preproc"
16748 ac_res=`eval echo '${'$as_ac_Header'}'`
16749 { echo "$as_me:$LINENO: result: $ac_res" >&5
16750 echo "${ECHO_T}$ac_res" >&6; }
16753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16754 CURSES_HEADER_FOUND=1
16756 CURSES_HEADER_FOUND=0
16761 CPPFLAGS="${saved_cppflags}"
16763 if test "xcurses.h" != "x" ; then
16764 if test "${ac_cv_header_curses_h+set}" = set; then
16765 { echo "$as_me:$LINENO: checking for curses.h" >&5
16766 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16767 if test "${ac_cv_header_curses_h+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16771 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16773 # Is the header compilable?
16774 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16775 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16776 cat >conftest.$ac_ext <<_ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 $ac_includes_default
16783 #include <curses.h>
16785 rm -f conftest.$ac_objext
16786 if { (ac_try="$ac_compile"
16787 case "(($ac_try" in
16788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16789 *) ac_try_echo
=$ac_try;;
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_compile") 2>conftest.er1
16794 grep -v '^ *+' conftest.er1
>conftest.err
16796 cat conftest.err
>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } && {
16799 test -z "$ac_c_werror_flag" ||
16800 test ! -s conftest.err
16801 } && test -s conftest.
$ac_objext; then
16802 ac_header_compiler
=yes
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.
$ac_ext >&5
16807 ac_header_compiler
=no
16810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16812 echo "${ECHO_T}$ac_header_compiler" >&6; }
16814 # Is the header present?
16815 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16816 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16817 cat >conftest.
$ac_ext <<_ACEOF
16820 cat confdefs.h
>>conftest.
$ac_ext
16821 cat >>conftest.
$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 #include <curses.h>
16825 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16826 case "(($ac_try" in
16827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16833 grep -v '^ *+' conftest.er1 >conftest.err
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } >/dev/null && {
16838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16839 test ! -s conftest.err
16841 ac_header_preproc=yes
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_header_preproc=no
16849 rm -f conftest.err conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851 echo "${ECHO_T}$ac_header_preproc" >&6; }
16853 # So? What about this header?
16854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16856 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16857 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16859 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16860 ac_header_preproc=yes
16863 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16864 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16866 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16868 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16870 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16874 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16876 ## ------------------------------- ##
16877 ## Report this to www.asterisk.org ##
16878 ## ------------------------------- ##
16880 ) | sed "s/^/$as_me: WARNING: /" >&2
16883 { echo "$as_me:$LINENO: checking for curses.h" >&5
16884 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16885 if test "${ac_cv_header_curses_h+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 ac_cv_header_curses_h=$ac_header_preproc
16890 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16891 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16894 if test $ac_cv_header_curses_h = yes; then
16895 CURSES_HEADER_FOUND=1
16897 CURSES_HEADER_FOUND=0
16903 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16904 if test -n "${CURSES_MANDATORY}" ;
16906 { echo "$as_me:$LINENO: ***" >&5
16907 echo "$as_me: ***" >&6;}
16908 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16909 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16910 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16911 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16912 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16913 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16922 cat >>confdefs.h <<_ACEOF
16923 #define HAVE_CURSES 1
16927 elif test -n "${CURSES_MANDATORY}";
16929 { echo "$as_me:$LINENO: ***" >&5
16930 echo "$as_me: ***" >&6;}
16931 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16932 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16935 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16936 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16942 if test "x${host_os}" = "xlinux-gnu" ; then
16944 if test "${USE_CAP}" != "no"; then
16946 if test "x${CAP_DIR}" != "x"; then
16947 if test -d ${CAP_DIR}/lib; then
16948 pbxlibdir="-L${CAP_DIR}/lib"
16950 pbxlibdir="-L${CAP_DIR}"
16953 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16954 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16955 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 ac_check_lib_save_LIBS=$LIBS
16959 LIBS="-lcap ${pbxlibdir} $LIBS"
16960 cat >conftest.$ac_ext <<_ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16967 /* Override any GCC internal prototype to avoid an error.
16968 Use char because int might match the return type of a GCC
16969 builtin and then its argument prototype would still apply. */
16973 char cap_from_text ();
16977 return cap_from_text ();
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16986 *) ac_try_echo
=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1
>conftest.err
16993 cat conftest.err
>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest
$ac_exeext &&
16999 $as_test_x conftest
$ac_exeext; then
17000 ac_cv_lib_cap_cap_from_text
=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.
$ac_ext >&5
17005 ac_cv_lib_cap_cap_from_text
=no
17008 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17009 conftest
$ac_exeext conftest.
$ac_ext
17010 LIBS
=$ac_check_lib_save_LIBS
17012 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
17013 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
17014 if test $ac_cv_lib_cap_cap_from_text = yes; then
17021 if test "${AST_CAP_FOUND}" = "yes"; then
17023 CAP_HEADER_FOUND
="1"
17024 if test "x${CAP_DIR}" != "x"; then
17025 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
17026 CAP_INCLUDE
="-I${CAP_DIR}/include"
17027 saved_cppflags
="${CPPFLAGS}"
17028 CPPFLAGS
="${CPPFLAGS} -I${CAP_DIR}/include"
17029 if test "xsys/capability.h" != "x" ; then
17030 as_ac_Header
=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17031 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17033 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17034 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 ac_res
=`eval echo '${'$as_ac_Header'}'`
17038 { echo "$as_me:$LINENO: result: $ac_res" >&5
17039 echo "${ECHO_T}$ac_res" >&6; }
17041 # Is the header compilable?
17042 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17043 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17044 cat >conftest.
$ac_ext <<_ACEOF
17047 cat confdefs.h
>>conftest.
$ac_ext
17048 cat >>conftest.
$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 $ac_includes_default
17051 #include <${CAP_DIR}/include/sys/capability.h>
17053 rm -f conftest.
$ac_objext
17054 if { (ac_try
="$ac_compile"
17055 case "(($ac_try" in
17056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_compile") 2>conftest.er1
17062 grep -v '^ *+' conftest.er1 >conftest.err
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } && {
17067 test -z "$ac_c_werror_flag" ||
17068 test ! -s conftest.err
17069 } && test -s conftest.$ac_objext; then
17070 ac_header_compiler=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_header_compiler=no
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17080 echo "${ECHO_T}$ac_header_compiler" >&6; }
17082 # Is the header present?
17083 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17084 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 #include <${CAP_DIR}/include/sys/capability.h>
17093 if { (ac_try="$ac_cpp conftest.$ac_ext"
17094 case "(($ac_try" in
17095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17096 *) ac_try_echo
=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1
>conftest.err
17103 cat conftest.err
>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } >/dev
/null
&& {
17106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17109 ac_header_preproc
=yes
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.
$ac_ext >&5
17114 ac_header_preproc
=no
17117 rm -f conftest.err conftest.
$ac_ext
17118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17119 echo "${ECHO_T}$ac_header_preproc" >&6; }
17121 # So? What about this header?
17122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17124 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17125 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17127 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17128 ac_header_preproc
=yes
17131 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17132 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17134 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17135 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17136 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17138 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17139 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17140 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17141 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17142 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17144 ## ------------------------------- ##
17145 ## Report this to www.asterisk.org ##
17146 ## ------------------------------- ##
17148 ) |
sed "s/^/$as_me: WARNING: /" >&2
17151 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17152 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 eval "$as_ac_Header=\$ac_header_preproc"
17158 ac_res
=`eval echo '${'$as_ac_Header'}'`
17159 { echo "$as_me:$LINENO: result: $ac_res" >&5
17160 echo "${ECHO_T}$ac_res" >&6; }
17163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17171 CPPFLAGS
="${saved_cppflags}"
17173 if test "xsys/capability.h" != "x" ; then
17174 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17175 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17176 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17177 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17181 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17183 # Is the header compilable?
17184 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17185 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17186 cat >conftest.
$ac_ext <<_ACEOF
17189 cat confdefs.h
>>conftest.
$ac_ext
17190 cat >>conftest.
$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 $ac_includes_default
17193 #include <sys/capability.h>
17195 rm -f conftest.
$ac_objext
17196 if { (ac_try
="$ac_compile"
17197 case "(($ac_try" in
17198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_compile") 2>conftest.er1
17204 grep -v '^ *+' conftest.er1 >conftest.err
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest.$ac_objext; then
17212 ac_header_compiler=yes
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_header_compiler=no
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17222 echo "${ECHO_T}$ac_header_compiler" >&6; }
17224 # Is the header present?
17225 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17226 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/capability.h>
17235 if { (ac_try="$ac_cpp conftest.$ac_ext"
17236 case "(($ac_try" in
17237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17238 *) ac_try_echo
=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1
>conftest.err
17245 cat conftest.err
>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev
/null
&& {
17248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17251 ac_header_preproc
=yes
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.
$ac_ext >&5
17256 ac_header_preproc
=no
17259 rm -f conftest.err conftest.
$ac_ext
17260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17261 echo "${ECHO_T}$ac_header_preproc" >&6; }
17263 # So? What about this header?
17264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17266 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17267 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17269 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17270 ac_header_preproc
=yes
17273 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17274 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17276 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17278 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17279 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17280 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17281 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17282 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17283 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17284 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17286 ## ------------------------------- ##
17287 ## Report this to www.asterisk.org ##
17288 ## ------------------------------- ##
17290 ) |
sed "s/^/$as_me: WARNING: /" >&2
17293 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17294 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17295 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 ac_cv_header_sys_capability_h
=$ac_header_preproc
17300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17301 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17304 if test $ac_cv_header_sys_capability_h = yes; then
17313 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17314 if test -n "${CAP_MANDATORY}" ;
17316 { echo "$as_me:$LINENO: ***" >&5
17317 echo "$as_me: ***" >&6;}
17318 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17319 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17320 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17321 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17322 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17323 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17332 cat >>confdefs.h
<<_ACEOF
17337 elif test -n "${CAP_MANDATORY}";
17339 { echo "$as_me:$LINENO: ***" >&5
17340 echo "$as_me: ***" >&6;}
17341 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17342 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17343 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17344 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17345 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17346 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17354 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17355 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17356 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17357 saved_cppflags
="${CPPFLAGS}"
17358 if test "x${GETIFADDRS_DIR}" != "x"; then
17359 GETIFADDRS_INCLUDE
="-I${GETIFADDRS_DIR}/include"
17361 CPPFLAGS
="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17363 cat >conftest.
$ac_ext <<_ACEOF
17366 cat confdefs.h
>>conftest.
$ac_ext
17367 cat >>conftest.
$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <ifaddrs.h>
17373 struct ifaddrs *p; getifaddrs(&p);
17379 rm -f conftest.
$ac_objext
17380 if { (ac_try
="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest.$ac_objext; then
17396 { echo "$as_me:$LINENO: result: yes" >&5
17397 echo "${ECHO_T}yes" >&6; }
17400 cat >>confdefs.h <<\_ACEOF
17401 #define HAVE_GETIFADDRS 1
17405 cat >>confdefs.h <<\_ACEOF
17406 #define HAVE_GETIFADDRS_VERSION
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 { echo "$as_me:$LINENO: result: no" >&5
17415 echo "${ECHO_T}no" >&6; }
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420 CPPFLAGS="${saved_cppflags}"
17427 if test "${USE_GSM}" != "no"; then
17428 if test "${GSM_DIR}" = "internal"; then
17430 elif test "${GSM_DIR}" != ""; then
17433 if test "${GSM_SYSTEM}" = "yes"; then
17435 if test "x${GSM_DIR}" != "x"; then
17436 if test -d ${GSM_DIR}/lib; then
17437 gsmlibdir="-L${GSM_DIR}/lib"
17439 gsmlibdir="-L${GSM_DIR}"
17442 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17443 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17444 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 ac_check_lib_save_LIBS=$LIBS
17448 LIBS="-lgsm ${gsmlibdir} $LIBS"
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 /* Override any GCC internal prototype to avoid an error.
17457 Use char because int might match the return type of a GCC
17458 builtin and then its argument prototype would still apply. */
17462 char gsm_create ();
17466 return gsm_create ();
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (ac_try="$ac_link"
17473 case "(($ac_try" in
17474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17475 *) ac_try_echo
=$ac_try;;
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_link") 2>conftest.er1
17480 grep -v '^ *+' conftest.er1
>conftest.err
17482 cat conftest.err
>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && {
17485 test -z "$ac_c_werror_flag" ||
17486 test ! -s conftest.err
17487 } && test -s conftest
$ac_exeext &&
17488 $as_test_x conftest
$ac_exeext; then
17489 ac_cv_lib_gsm_gsm_create
=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.
$ac_ext >&5
17494 ac_cv_lib_gsm_gsm_create
=no
17497 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17498 conftest
$ac_exeext conftest.
$ac_ext
17499 LIBS
=$ac_check_lib_save_LIBS
17501 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17502 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17503 if test $ac_cv_lib_gsm_gsm_create = yes; then
17505 cat >>confdefs.h
<<_ACEOF
17511 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17512 if test "x${GSM_DIR}" != "x" ; then
17513 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17514 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17515 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17516 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17517 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 ac_res
=`eval echo '${'$as_ac_Header'}'`
17521 { echo "$as_me:$LINENO: result: $ac_res" >&5
17522 echo "${ECHO_T}$ac_res" >&6; }
17524 # Is the header compilable?
17525 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17526 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17527 cat >conftest.
$ac_ext <<_ACEOF
17530 cat confdefs.h
>>conftest.
$ac_ext
17531 cat >>conftest.
$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 $ac_includes_default
17534 #include <${GSM_DIR}/include/gsm.h>
17536 rm -f conftest.
$ac_objext
17537 if { (ac_try
="$ac_compile"
17538 case "(($ac_try" in
17539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_compile") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest.$ac_objext; then
17553 ac_header_compiler=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 ac_header_compiler=no
17561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17563 echo "${ECHO_T}$ac_header_compiler" >&6; }
17565 # Is the header present?
17566 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17567 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 #include <${GSM_DIR}/include/gsm.h>
17576 if { (ac_try="$ac_cpp conftest.$ac_ext"
17577 case "(($ac_try" in
17578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17579 *) ac_try_echo
=$ac_try;;
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17584 grep -v '^ *+' conftest.er1
>conftest.err
17586 cat conftest.err
>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } >/dev
/null
&& {
17589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17592 ac_header_preproc
=yes
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.
$ac_ext >&5
17597 ac_header_preproc
=no
17600 rm -f conftest.err conftest.
$ac_ext
17601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17602 echo "${ECHO_T}$ac_header_preproc" >&6; }
17604 # So? What about this header?
17605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17607 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17608 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17609 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17610 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17611 ac_header_preproc
=yes
17614 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17615 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17616 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17617 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17619 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17620 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17621 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17622 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17623 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17624 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17625 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17627 ## ------------------------------- ##
17628 ## Report this to www.asterisk.org ##
17629 ## ------------------------------- ##
17631 ) |
sed "s/^/$as_me: WARNING: /" >&2
17634 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17635 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 eval "$as_ac_Header=\$ac_header_preproc"
17641 ac_res
=`eval echo '${'$as_ac_Header'}'`
17642 { echo "$as_me:$LINENO: result: $ac_res" >&5
17643 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17653 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17655 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17656 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_res
=`eval echo '${'$as_ac_Header'}'`
17661 { echo "$as_me:$LINENO: result: $ac_res" >&5
17662 echo "${ECHO_T}$ac_res" >&6; }
17664 # Is the header compilable?
17665 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17666 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17667 cat >conftest.
$ac_ext <<_ACEOF
17670 cat confdefs.h
>>conftest.
$ac_ext
17671 cat >>conftest.
$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17674 #include <${GSM_DIR}/include/gsm/gsm.h>
17676 rm -f conftest.
$ac_objext
17677 if { (ac_try
="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_compile") 2>conftest.er1
17685 grep -v '^ *+' conftest.er1 >conftest.err
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest.$ac_objext; then
17693 ac_header_compiler=yes
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_header_compiler=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17703 echo "${ECHO_T}$ac_header_compiler" >&6; }
17705 # Is the header present?
17706 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17707 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <${GSM_DIR}/include/gsm/gsm.h>
17716 if { (ac_try="$ac_cpp conftest.$ac_ext"
17717 case "(($ac_try" in
17718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17719 *) ac_try_echo
=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1
>conftest.err
17726 cat conftest.err
>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } >/dev
/null
&& {
17729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17732 ac_header_preproc
=yes
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.
$ac_ext >&5
17737 ac_header_preproc
=no
17740 rm -f conftest.err conftest.
$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17742 echo "${ECHO_T}$ac_header_preproc" >&6; }
17744 # So? What about this header?
17745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17747 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17748 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17750 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17751 ac_header_preproc
=yes
17754 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17755 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17757 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17759 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17761 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17763 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17765 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17767 ## ------------------------------- ##
17768 ## Report this to www.asterisk.org ##
17769 ## ------------------------------- ##
17771 ) |
sed "s/^/$as_me: WARNING: /" >&2
17774 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17775 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17776 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 eval "$as_ac_Header=\$ac_header_preproc"
17781 ac_res
=`eval echo '${'$as_ac_Header'}'`
17782 { echo "$as_me:$LINENO: result: $ac_res" >&5
17783 echo "${ECHO_T}$ac_res" >&6; }
17786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17787 GSM_GSM_HEADER_FOUND
=1
17789 GSM_GSM_HEADER_FOUND
=0
17794 if test "${ac_cv_header_gsm_h+set}" = set; then
17795 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17796 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17797 if test "${ac_cv_header_gsm_h+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17801 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17803 # Is the header compilable?
17804 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17805 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17806 cat >conftest.
$ac_ext <<_ACEOF
17809 cat confdefs.h
>>conftest.
$ac_ext
17810 cat >>conftest.
$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $ac_includes_default
17815 rm -f conftest.
$ac_objext
17816 if { (ac_try
="$ac_compile"
17817 case "(($ac_try" in
17818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_compile") 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest.$ac_objext; then
17832 ac_header_compiler=yes
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_header_compiler=no
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17842 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844 # Is the header present?
17845 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17846 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17855 if { (ac_try="$ac_cpp conftest.$ac_ext"
17856 case "(($ac_try" in
17857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17858 *) ac_try_echo
=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17863 grep -v '^ *+' conftest.er1
>conftest.err
17865 cat conftest.err
>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } >/dev
/null
&& {
17868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17871 ac_header_preproc
=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.
$ac_ext >&5
17876 ac_header_preproc
=no
17879 rm -f conftest.err conftest.
$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17881 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883 # So? What about this header?
17884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17886 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17887 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17888 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17889 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17890 ac_header_preproc
=yes
17893 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17894 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17896 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17898 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17900 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17902 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17904 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17906 ## ------------------------------- ##
17907 ## Report this to www.asterisk.org ##
17908 ## ------------------------------- ##
17910 ) |
sed "s/^/$as_me: WARNING: /" >&2
17913 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17914 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17915 if test "${ac_cv_header_gsm_h+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 ac_cv_header_gsm_h
=$ac_header_preproc
17920 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17921 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17924 if test $ac_cv_header_gsm_h = yes; then
17931 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17932 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17933 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17934 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17938 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17940 # Is the header compilable?
17941 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17942 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17943 cat >conftest.
$ac_ext <<_ACEOF
17946 cat confdefs.h
>>conftest.
$ac_ext
17947 cat >>conftest.
$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 $ac_includes_default
17950 #include <gsm/gsm.h>
17952 rm -f conftest.
$ac_objext
17953 if { (ac_try
="$ac_compile"
17954 case "(($ac_try" in
17955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_compile") 2>conftest.er1
17961 grep -v '^ *+' conftest.er1 >conftest.err
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest.$ac_objext; then
17969 ac_header_compiler=yes
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ac_header_compiler=no
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17979 echo "${ECHO_T}$ac_header_compiler" >&6; }
17981 # Is the header present?
17982 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17983 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <gsm/gsm.h>
17992 if { (ac_try="$ac_cpp conftest.$ac_ext"
17993 case "(($ac_try" in
17994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17995 *) ac_try_echo
=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18000 grep -v '^ *+' conftest.er1
>conftest.err
18002 cat conftest.err
>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } >/dev
/null
&& {
18005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18006 test ! -s conftest.err
18008 ac_header_preproc
=yes
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.
$ac_ext >&5
18013 ac_header_preproc
=no
18016 rm -f conftest.err conftest.
$ac_ext
18017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18018 echo "${ECHO_T}$ac_header_preproc" >&6; }
18020 # So? What about this header?
18021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18023 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18024 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18025 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18026 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18027 ac_header_preproc
=yes
18030 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18031 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18033 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18035 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18036 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18037 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18039 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18040 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18041 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18043 ## ------------------------------- ##
18044 ## Report this to www.asterisk.org ##
18045 ## ------------------------------- ##
18047 ) |
sed "s/^/$as_me: WARNING: /" >&2
18050 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18051 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18052 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
18057 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18058 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18061 if test $ac_cv_header_gsm_gsm_h = yes; then
18062 GSM_GSM_HEADER_FOUND
=1
18064 GSM_GSM_HEADER_FOUND
=0
18069 if test "${GSM_HEADER_FOUND}" = "0" ; then
18070 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18071 if test "x${GSM_MANDATORY}" = "xyes" ; then
18072 { echo "$as_me:$LINENO: ***" >&5
18073 echo "$as_me: ***" >&6;}
18074 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18075 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18076 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18077 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18078 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18079 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18085 if test "${GSM_HEADER_FOUND}" = "1" ; then
18087 cat >>confdefs.h
<<_ACEOF
18088 #define HAVE_GSM_HEADER 1
18093 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18095 cat >>confdefs.h
<<_ACEOF
18096 #define HAVE_GSM_GSM_HEADER 1
18102 if test "${GSM_OK}" = "1" ; then
18104 if test "x${GSM_DIR}" != "x"; then
18105 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
18106 GSM_INCLUDE
="-I${GSM_DIR}/include"
18113 if test "${GSM_INTERNAL}" = "yes"; then
18116 cat >>confdefs.h
<<_ACEOF
18117 #define HAVE_GSM_HEADER 1
18124 if test "${USE_IKSEMEL}" != "no"; then
18126 if test "x${IKSEMEL_DIR}" != "x"; then
18127 if test -d ${IKSEMEL_DIR}/lib
; then
18128 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
18130 pbxlibdir
="-L${IKSEMEL_DIR}"
18133 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18134 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18135 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 ac_check_lib_save_LIBS
=$LIBS
18139 LIBS
="-liksemel ${pbxlibdir} $LIBS"
18140 cat >conftest.
$ac_ext <<_ACEOF
18143 cat confdefs.h
>>conftest.
$ac_ext
18144 cat >>conftest.
$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18153 char iks_start_sasl ();
18157 return iks_start_sasl ();
18162 rm -f conftest.
$ac_objext conftest
$ac_exeext
18163 if { (ac_try
="$ac_link"
18164 case "(($ac_try" in
18165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest$ac_exeext &&
18179 $as_test_x conftest$ac_exeext; then
18180 ac_cv_lib_iksemel_iks_start_sasl=yes
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_cv_lib_iksemel_iks_start_sasl=no
18188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18189 conftest$ac_exeext conftest.$ac_ext
18190 LIBS=$ac_check_lib_save_LIBS
18192 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18193 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18194 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18195 AST_IKSEMEL_FOUND=yes
18197 AST_IKSEMEL_FOUND=no
18201 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18202 IKSEMEL_LIB="-liksemel "
18203 IKSEMEL_HEADER_FOUND="1"
18204 if test "x${IKSEMEL_DIR}" != "x"; then
18205 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18206 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18207 saved_cppflags="${CPPFLAGS}"
18208 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18209 if test "xiksemel.h" != "x" ; then
18210 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
18211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18212 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18213 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 ac_res=`eval echo '${'$as_ac_Header'}'`
18218 { echo "$as_me:$LINENO: result: $ac_res" >&5
18219 echo "${ECHO_T}$ac_res" >&6; }
18221 # Is the header compilable?
18222 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18223 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18224 cat >conftest.$ac_ext <<_ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 $ac_includes_default
18231 #include <${IKSEMEL_DIR}/include/iksemel.h>
18233 rm -f conftest.$ac_objext
18234 if { (ac_try="$ac_compile"
18235 case "(($ac_try" in
18236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18237 *) ac_try_echo
=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_compile") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1
>conftest.err
18244 cat conftest.err
>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } && {
18247 test -z "$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18249 } && test -s conftest.
$ac_objext; then
18250 ac_header_compiler
=yes
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.
$ac_ext >&5
18255 ac_header_compiler
=no
18258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18260 echo "${ECHO_T}$ac_header_compiler" >&6; }
18262 # Is the header present?
18263 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18264 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18265 cat >conftest.
$ac_ext <<_ACEOF
18268 cat confdefs.h
>>conftest.
$ac_ext
18269 cat >>conftest.
$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 #include <${IKSEMEL_DIR}/include/iksemel.h>
18273 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18274 case "(($ac_try" in
18275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } >/dev/null && {
18286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18287 test ! -s conftest.err
18289 ac_header_preproc=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_header_preproc=no
18297 rm -f conftest.err conftest.$ac_ext
18298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18299 echo "${ECHO_T}$ac_header_preproc" >&6; }
18301 # So? What about this header?
18302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18304 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18305 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18307 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18308 ac_header_preproc=yes
18311 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18312 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18313 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18314 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18315 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18316 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18318 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18319 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18320 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18321 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18322 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18324 ## ------------------------------- ##
18325 ## Report this to www.asterisk.org ##
18326 ## ------------------------------- ##
18328 ) | sed "s/^/$as_me: WARNING: /" >&2
18331 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18332 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 eval "$as_ac_Header=\$ac_header_preproc"
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18344 IKSEMEL_HEADER_FOUND=1
18346 IKSEMEL_HEADER_FOUND=0
18351 CPPFLAGS="${saved_cppflags}"
18353 if test "xiksemel.h" != "x" ; then
18354 if test "${ac_cv_header_iksemel_h+set}" = set; then
18355 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18356 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18357 if test "${ac_cv_header_iksemel_h+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18361 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18365 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <iksemel.h>
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18379 *) ac_try_echo
=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18384 grep -v '^ *+' conftest.er1
>conftest.err
18386 cat conftest.err
>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.
$ac_objext; then
18392 ac_header_compiler
=yes
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.
$ac_ext >&5
18397 ac_header_compiler
=no
18400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18406 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18407 cat >conftest.
$ac_ext <<_ACEOF
18410 cat confdefs.h
>>conftest.
$ac_ext
18411 cat >>conftest.
$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <iksemel.h>
18415 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18416 case "(($ac_try" in
18417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18431 ac_header_preproc=yes
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18446 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18447 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18449 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18450 ac_header_preproc=yes
18453 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18454 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18456 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18458 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18460 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18462 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18464 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18466 ## ------------------------------- ##
18467 ## Report this to www.asterisk.org ##
18468 ## ------------------------------- ##
18470 ) | sed "s/^/$as_me: WARNING: /" >&2
18473 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18474 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18475 if test "${ac_cv_header_iksemel_h+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 ac_cv_header_iksemel_h=$ac_header_preproc
18480 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18481 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18484 if test $ac_cv_header_iksemel_h = yes; then
18485 IKSEMEL_HEADER_FOUND=1
18487 IKSEMEL_HEADER_FOUND=0
18493 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18494 if test -n "${IKSEMEL_MANDATORY}" ;
18496 { echo "$as_me:$LINENO: ***" >&5
18497 echo "$as_me: ***" >&6;}
18498 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18499 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18500 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18501 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18502 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18503 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18512 cat >>confdefs.h <<_ACEOF
18513 #define HAVE_IKSEMEL 1
18517 elif test -n "${IKSEMEL_MANDATORY}";
18519 { echo "$as_me:$LINENO: ***" >&5
18520 echo "$as_me: ***" >&6;}
18521 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18522 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18523 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18524 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18525 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18526 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18532 if test "${PBX_IKSEMEL}" = 1; then
18534 if test "${USE_GNUTLS}" != "no"; then
18536 if test "x${GNUTLS_DIR}" != "x"; then
18537 if test -d ${GNUTLS_DIR}/lib; then
18538 pbxlibdir="-L${GNUTLS_DIR}/lib"
18540 pbxlibdir="-L${GNUTLS_DIR}"
18543 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18544 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18545 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 ac_check_lib_save_LIBS=$LIBS
18549 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18550 cat >conftest.$ac_ext <<_ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18557 /* Override any GCC internal prototype to avoid an error.
18558 Use char because int might match the return type of a GCC
18559 builtin and then its argument prototype would still apply. */
18563 char gnutls_bye ();
18567 return gnutls_bye ();
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18576 *) ac_try_echo
=$ac_try;;
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_link") 2>conftest.er1
18581 grep -v '^ *+' conftest.er1
>conftest.err
18583 cat conftest.err
>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } && {
18586 test -z "$ac_c_werror_flag" ||
18587 test ! -s conftest.err
18588 } && test -s conftest
$ac_exeext &&
18589 $as_test_x conftest
$ac_exeext; then
18590 ac_cv_lib_gnutls_gnutls_bye
=yes
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.
$ac_ext >&5
18595 ac_cv_lib_gnutls_gnutls_bye
=no
18598 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18599 conftest
$ac_exeext conftest.
$ac_ext
18600 LIBS
=$ac_check_lib_save_LIBS
18602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18603 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18604 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18605 AST_GNUTLS_FOUND
=yes
18607 AST_GNUTLS_FOUND
=no
18611 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18612 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
18613 GNUTLS_HEADER_FOUND
="1"
18614 if test "x${GNUTLS_DIR}" != "x"; then
18615 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
18616 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
18617 saved_cppflags
="${CPPFLAGS}"
18618 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18619 if test "xgnutls/gnutls.h" != "x" ; then
18620 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18622 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18623 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18624 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 ac_res
=`eval echo '${'$as_ac_Header'}'`
18628 { echo "$as_me:$LINENO: result: $ac_res" >&5
18629 echo "${ECHO_T}$ac_res" >&6; }
18631 # Is the header compilable?
18632 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18633 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18634 cat >conftest.
$ac_ext <<_ACEOF
18637 cat confdefs.h
>>conftest.
$ac_ext
18638 cat >>conftest.
$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 $ac_includes_default
18641 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18643 rm -f conftest.
$ac_objext
18644 if { (ac_try
="$ac_compile"
18645 case "(($ac_try" in
18646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_header_compiler=yes
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_header_compiler=no
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18670 echo "${ECHO_T}$ac_header_compiler" >&6; }
18672 # Is the header present?
18673 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18674 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18683 if { (ac_try="$ac_cpp conftest.$ac_ext"
18684 case "(($ac_try" in
18685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18686 *) ac_try_echo
=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1
>conftest.err
18693 cat conftest.err
>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } >/dev
/null
&& {
18696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18699 ac_header_preproc
=yes
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.
$ac_ext >&5
18704 ac_header_preproc
=no
18707 rm -f conftest.err conftest.
$ac_ext
18708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18709 echo "${ECHO_T}$ac_header_preproc" >&6; }
18711 # So? What about this header?
18712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18714 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18715 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18717 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18718 ac_header_preproc
=yes
18721 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18722 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18724 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18725 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18726 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18728 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18729 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18730 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18732 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18734 ## ------------------------------- ##
18735 ## Report this to www.asterisk.org ##
18736 ## ------------------------------- ##
18738 ) |
sed "s/^/$as_me: WARNING: /" >&2
18741 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18742 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18743 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 eval "$as_ac_Header=\$ac_header_preproc"
18748 ac_res
=`eval echo '${'$as_ac_Header'}'`
18749 { echo "$as_me:$LINENO: result: $ac_res" >&5
18750 echo "${ECHO_T}$ac_res" >&6; }
18753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18754 GNUTLS_HEADER_FOUND
=1
18756 GNUTLS_HEADER_FOUND
=0
18761 CPPFLAGS
="${saved_cppflags}"
18763 if test "xgnutls/gnutls.h" != "x" ; then
18764 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18765 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18766 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18767 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18771 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18773 # Is the header compilable?
18774 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18775 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18776 cat >conftest.
$ac_ext <<_ACEOF
18779 cat confdefs.h
>>conftest.
$ac_ext
18780 cat >>conftest.
$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 $ac_includes_default
18783 #include <gnutls/gnutls.h>
18785 rm -f conftest.
$ac_objext
18786 if { (ac_try
="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18802 ac_header_compiler=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_header_compiler=no
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18812 echo "${ECHO_T}$ac_header_compiler" >&6; }
18814 # Is the header present?
18815 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18816 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 #include <gnutls/gnutls.h>
18825 if { (ac_try="$ac_cpp conftest.$ac_ext"
18826 case "(($ac_try" in
18827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18828 *) ac_try_echo
=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18833 grep -v '^ *+' conftest.er1
>conftest.err
18835 cat conftest.err
>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } >/dev
/null
&& {
18838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18839 test ! -s conftest.err
18841 ac_header_preproc
=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.
$ac_ext >&5
18846 ac_header_preproc
=no
18849 rm -f conftest.err conftest.
$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18851 echo "${ECHO_T}$ac_header_preproc" >&6; }
18853 # So? What about this header?
18854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18856 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18857 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18859 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18860 ac_header_preproc
=yes
18863 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18864 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18865 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18866 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18868 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18870 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18872 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18874 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18876 ## ------------------------------- ##
18877 ## Report this to www.asterisk.org ##
18878 ## ------------------------------- ##
18880 ) |
sed "s/^/$as_me: WARNING: /" >&2
18883 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18884 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18885 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
18890 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18891 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18894 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18895 GNUTLS_HEADER_FOUND
=1
18897 GNUTLS_HEADER_FOUND
=0
18903 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18904 if test -n "${GNUTLS_MANDATORY}" ;
18906 { echo "$as_me:$LINENO: ***" >&5
18907 echo "$as_me: ***" >&6;}
18908 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18909 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18910 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18911 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18912 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18913 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18922 cat >>confdefs.h
<<_ACEOF
18923 #define HAVE_GNUTLS 1
18927 elif test -n "${GNUTLS_MANDATORY}";
18929 { echo "$as_me:$LINENO: ***" >&5
18930 echo "$as_me: ***" >&6;}
18931 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18932 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18935 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18936 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18943 if test "${USE_IMAP_TK}" != "no"; then
18944 saved_cppflags
="${CPPFLAGS}"
18945 saved_libs
="${LIBS}"
18946 switch_to_system_on_failure
="no"
18947 if test "${IMAP_TK_DIR}" = ""; then
18948 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
18949 switch_to_system_on_failure
="yes"
18951 if test "${IMAP_TK_DIR}" != "system"; then
18952 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18953 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18954 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18955 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18957 imap_libs
="${IMAP_TK_DIR}/c-client/c-client.a"
18958 imap_include
="-I${IMAP_TK_DIR}/c-client"
18959 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18960 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include "c-client.h
"
18968 void mm_searched (MAILSTREAM *stream,unsigned long number)
18971 void mm_exists (MAILSTREAM *stream,unsigned long number)
18974 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18977 void mm_flags (MAILSTREAM *stream,unsigned long number)
18980 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18983 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18986 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18989 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18992 void mm_log (char *string,long errflg)
18995 void mm_dlog (char *string)
18998 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19001 void mm_critical (MAILSTREAM *stream)
19004 void mm_nocritical (MAILSTREAM *stream)
19007 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19010 void mm_fatal (char *string)
19017 MAILSTREAM *foo = mail_open(NULL, "", 0);
19024 rm -f conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_link") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19037 (exit $ac_status); } && {
19038 test -z "$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 } && test -s conftest$ac_exeext &&
19041 $as_test_x conftest$ac_exeext; then
19042 ac_cv_imap_tk="yes"
19044 echo "$as_me: failed program was
:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19052 conftest$ac_exeext conftest.$ac_ext
19053 if test "${ac_cv_imap_tk}" = "yes"; then
19054 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #include "c-client.h
"
19061 void mm_searched (MAILSTREAM *stream,unsigned long number)
19064 void mm_exists (MAILSTREAM *stream,unsigned long number)
19067 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19070 void mm_flags (MAILSTREAM *stream,unsigned long number)
19073 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19076 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19079 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19082 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19085 void mm_log (char *string,long errflg)
19088 void mm_dlog (char *string)
19091 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19094 void mm_critical (MAILSTREAM *stream)
19097 void mm_nocritical (MAILSTREAM *stream)
19100 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19103 void mm_fatal (char *string)
19110 long check = mail_expunge_full(NULL, "", 0);
19117 rm -f conftest.$ac_objext conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_link") 2>conftest.er1
19126 grep -v '^ *+' conftest.er1 >conftest.err
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19130 (exit $ac_status); } && {
19131 test -z "$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 } && test -s conftest$ac_exeext &&
19134 $as_test_x conftest$ac_exeext; then
19135 ac_cv_imap_tk2006="yes"
19137 echo "$as_me: failed program was
:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_imap_tk2006="no
"
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19147 CPPFLAGS="${saved_cppflags}"
19148 LIBS="${saved_libs}"
19149 if test "${ac_cv_imap_tk}" = "no
"; then
19150 { echo "$as_me:$LINENO: result
: no
" >&5
19151 echo "${ECHO_T}no
" >&6; }
19152 if test "${switch_to_system_on_failure}" = "yes"; then
19153 IMAP_TK_DIR="system
"
19154 else #This means they specified a directory. Search for a package installation there too
19155 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19156 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19157 CPPFLAGS="${saved_cppflags}"
19158 LIBS="${saved_libs}"
19159 imap_include="-I${IMAP_TK_DIR}/include
"
19160 imap_ldflags="-L${IMAP_TK_DIR}/lib
"
19161 imap_libs="-lc-client"
19162 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19163 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 #include "c-client.h
"
19171 void mm_searched (MAILSTREAM *stream,unsigned long number)
19174 void mm_exists (MAILSTREAM *stream,unsigned long number)
19177 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19180 void mm_flags (MAILSTREAM *stream,unsigned long number)
19183 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19186 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19189 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19192 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19195 void mm_log (char *string,long errflg)
19198 void mm_dlog (char *string)
19201 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19204 void mm_critical (MAILSTREAM *stream)
19207 void mm_nocritical (MAILSTREAM *stream)
19210 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19213 void mm_fatal (char *string)
19220 MAILSTREAM *foo = mail_open(NULL, "", 0);
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_link") 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19240 (exit $ac_status); } && {
19241 test -z "$ac_c_werror_flag" ||
19242 test ! -s conftest.err
19243 } && test -s conftest$ac_exeext &&
19244 $as_test_x conftest$ac_exeext; then
19245 ac_cv_imap_tk="yes"
19247 echo "$as_me: failed program was
:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19255 conftest$ac_exeext conftest.$ac_ext
19256 if test "${ac_cv_imap_tk}" = "yes"; then
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include "c-client.h
"
19264 void mm_searched (MAILSTREAM *stream,unsigned long number)
19267 void mm_exists (MAILSTREAM *stream,unsigned long number)
19270 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19273 void mm_flags (MAILSTREAM *stream,unsigned long number)
19276 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19279 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19282 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19285 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19288 void mm_log (char *string,long errflg)
19291 void mm_dlog (char *string)
19294 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19297 void mm_critical (MAILSTREAM *stream)
19300 void mm_nocritical (MAILSTREAM *stream)
19303 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19306 void mm_fatal (char *string)
19313 long check = mail_expunge_full(NULL, "", 0);
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (ac_try="$ac_link"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_link") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest$ac_exeext &&
19337 $as_test_x conftest$ac_exeext; then
19338 ac_cv_imap_tk2006="yes"
19340 echo "$as_me: failed program was
:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 ac_cv_imap_tk2006="no
"
19347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19348 conftest$ac_exeext conftest.$ac_ext
19353 if test "${IMAP_TK_DIR}" = "system
"; then
19354 #We will enter here if user specified "system
" or if any of above checks failed
19355 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19356 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19357 CPPFLAGS="${saved_cppflags}"
19358 LIBS="${saved_libs}"
19360 imap_libs="-lc-client"
19361 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19362 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19363 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19371 #include <imap/c-client.h>
19372 void mm_searched (MAILSTREAM *stream,unsigned long number)
19375 void mm_exists (MAILSTREAM *stream,unsigned long number)
19378 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19381 void mm_flags (MAILSTREAM *stream,unsigned long number)
19384 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19387 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19390 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19393 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19396 void mm_log (char *string,long errflg)
19399 void mm_dlog (char *string)
19402 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19405 void mm_critical (MAILSTREAM *stream)
19408 void mm_nocritical (MAILSTREAM *stream)
19411 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19414 void mm_fatal (char *string)
19421 MAILSTREAM *foo = mail_open(NULL, "", 0);
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19432 *) ac_try_echo
=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1
>conftest.err
19439 cat conftest.err
>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest
$ac_exeext &&
19445 $as_test_x conftest
$ac_exeext; then
19446 ac_cv_imap_tk
="yes"
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.
$ac_ext >&5
19455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19456 conftest
$ac_exeext conftest.
$ac_ext
19457 if test "${ac_cv_imap_tk}" = "yes"; then
19458 cat >conftest.
$ac_ext <<_ACEOF
19461 cat confdefs.h
>>conftest.
$ac_ext
19462 cat >>conftest.
$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19465 #include <imap/c-client.h>
19466 void mm_searched (MAILSTREAM *stream,unsigned long number)
19469 void mm_exists (MAILSTREAM *stream,unsigned long number)
19472 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19475 void mm_flags (MAILSTREAM *stream,unsigned long number)
19478 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19481 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19484 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19487 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19490 void mm_log (char *string,long errflg)
19493 void mm_dlog (char *string)
19496 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19499 void mm_critical (MAILSTREAM *stream)
19502 void mm_nocritical (MAILSTREAM *stream)
19505 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19508 void mm_fatal (char *string)
19515 long check = mail_expunge_full(NULL, "", 0);
19522 rm -f conftest.
$ac_objext conftest
$ac_exeext
19523 if { (ac_try
="$ac_link"
19524 case "(($ac_try" in
19525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_link") 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest$ac_exeext &&
19539 $as_test_x conftest$ac_exeext; then
19540 ac_cv_imap_tk2006="yes"
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_imap_tk2006="no"
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550 conftest$ac_exeext conftest.$ac_ext
19551 else #looking in imap directory didn't work, try c-client
19553 imap_libs="-lc-client"
19554 imap_include="-DUSE_SYSTEM_CCLIENT"
19555 CPPFLAGS="${saved_cppflags}"
19556 LIBS="${saved_libs}"
19557 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19558 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19559 cat >conftest.
$ac_ext <<_ACEOF
19562 cat confdefs.h
>>conftest.
$ac_ext
19563 cat >>conftest.
$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 #include <c-client/c-client.h>
19567 void mm_searched (MAILSTREAM *stream,unsigned long number)
19570 void mm_exists (MAILSTREAM *stream,unsigned long number)
19573 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19576 void mm_flags (MAILSTREAM *stream,unsigned long number)
19579 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19582 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19585 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19588 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19591 void mm_log (char *string,long errflg)
19594 void mm_dlog (char *string)
19597 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19600 void mm_critical (MAILSTREAM *stream)
19603 void mm_nocritical (MAILSTREAM *stream)
19606 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19609 void mm_fatal (char *string)
19616 MAILSTREAM *foo = mail_open(NULL, "", 0);
19623 rm -f conftest.
$ac_objext conftest
$ac_exeext
19624 if { (ac_try
="$ac_link"
19625 case "(($ac_try" in
19626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_link") 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest$ac_exeext &&
19640 $as_test_x conftest$ac_exeext; then
19641 ac_cv_imap_tk="yes"
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19651 conftest$ac_exeext conftest.$ac_ext
19652 if test "${ac_cv_imap_tk}" = "yes"; then
19653 cat >conftest.$ac_ext <<_ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h. */
19660 #include <c-client/c-client.h>
19661 void mm_searched (MAILSTREAM *stream,unsigned long number)
19664 void mm_exists (MAILSTREAM *stream,unsigned long number)
19667 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19670 void mm_flags (MAILSTREAM *stream,unsigned long number)
19673 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19676 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19679 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19682 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19685 void mm_log (char *string,long errflg)
19688 void mm_dlog (char *string)
19691 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19694 void mm_critical (MAILSTREAM *stream)
19697 void mm_nocritical (MAILSTREAM *stream)
19700 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19703 void mm_fatal (char *string)
19710 long check = mail_expunge_full(NULL, "", 0);
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19721 *) ac_try_echo
=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1
>conftest.err
19728 cat conftest.err
>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest
$ac_exeext &&
19734 $as_test_x conftest
$ac_exeext; then
19735 ac_cv_imap_tk2006
="yes"
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.
$ac_ext >&5
19740 ac_cv_imap_tk2006
="no"
19744 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19745 conftest
$ac_exeext conftest.
$ac_ext
19749 if test "${ac_cv_imap_tk}" = "yes"; then
19750 { echo "$as_me:$LINENO: result: yes" >&5
19751 echo "${ECHO_T}yes" >&6; }
19752 IMAP_TK_LIB
="${imap_libs} "`echo ${imap_ldflags}`
19753 IMAP_TK_INCLUDE
="${imap_include}"
19756 cat >>confdefs.h
<<\_ACEOF
19757 #define HAVE_IMAP_TK 1
19760 if test "${ac_cv_imap_tk2006}" = "yes"; then
19762 cat >>confdefs.h
<<\_ACEOF
19763 #define HAVE_IMAP_TK2006 1
19767 elif test -n "${IMAP_TK_MANDATORY}"; then
19768 { echo "$as_me:$LINENO: result: no" >&5
19769 echo "${ECHO_T}no" >&6; }
19770 { echo "$as_me:$LINENO: ***" >&5
19771 echo "$as_me: ***" >&6;}
19772 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19773 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19774 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19775 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19776 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19777 echo "$as_me: *** including --without-imap." >&6;}
19780 { echo "$as_me:$LINENO: result: no" >&5
19781 echo "${ECHO_T}no" >&6; }
19783 CPPFLAGS
="${saved_cppflags}"
19784 LIBS
="${saved_libs}"
19787 # Needed by unixodbc
19789 if test "${USE_LTDL}" != "no"; then
19791 if test "x${LTDL_DIR}" != "x"; then
19792 if test -d ${LTDL_DIR}/lib
; then
19793 pbxlibdir
="-L${LTDL_DIR}/lib"
19795 pbxlibdir
="-L${LTDL_DIR}"
19798 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19799 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS
=$LIBS
19804 LIBS
="-lltdl ${pbxlibdir} $LIBS"
19805 cat >conftest.
$ac_ext <<_ACEOF
19808 cat confdefs.h
>>conftest.
$ac_ext
19809 cat >>conftest.
$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19822 return lt_dlinit ();
19827 rm -f conftest.
$ac_objext conftest
$ac_exeext
19828 if { (ac_try
="$ac_link"
19829 case "(($ac_try" in
19830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_lib_ltdl_lt_dlinit=yes
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_cv_lib_ltdl_lt_dlinit=no
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19858 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19859 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19866 if test "${AST_LTDL_FOUND}" = "yes"; then
19868 LTDL_HEADER_FOUND="1"
19869 if test "x${LTDL_DIR}" != "x"; then
19870 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19871 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19872 saved_cppflags="${CPPFLAGS}"
19873 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19874 if test "xltdl.h" != "x" ; then
19875 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" |
$as_tr_sh`
19876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19877 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19878 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 ac_res=`eval echo '${'$as_ac_Header'}'`
19883 { echo "$as_me:$LINENO: result: $ac_res" >&5
19884 echo "${ECHO_T}$ac_res" >&6; }
19886 # Is the header compilable?
19887 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19888 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19889 cat >conftest.$ac_ext <<_ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 $ac_includes_default
19896 #include <${LTDL_DIR}/include/ltdl.h>
19898 rm -f conftest.$ac_objext
19899 if { (ac_try="$ac_compile"
19900 case "(($ac_try" in
19901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19902 *) ac_try_echo
=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_compile") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1
>conftest.err
19909 cat conftest.err
>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest.
$ac_objext; then
19915 ac_header_compiler
=yes
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.
$ac_ext >&5
19920 ac_header_compiler
=no
19923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19925 echo "${ECHO_T}$ac_header_compiler" >&6; }
19927 # Is the header present?
19928 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19929 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19930 cat >conftest.
$ac_ext <<_ACEOF
19933 cat confdefs.h
>>conftest.
$ac_ext
19934 cat >>conftest.
$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #include <${LTDL_DIR}/include/ltdl.h>
19938 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19939 case "(($ac_try" in
19940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } >/dev/null && {
19951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19954 ac_header_preproc=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_header_preproc=no
19962 rm -f conftest.err conftest.$ac_ext
19963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19964 echo "${ECHO_T}$ac_header_preproc" >&6; }
19966 # So? What about this header?
19967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19969 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19970 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19972 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19973 ac_header_preproc=yes
19976 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19977 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19979 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19981 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19983 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19985 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19987 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19989 ## ------------------------------- ##
19990 ## Report this to www.asterisk.org ##
19991 ## ------------------------------- ##
19993 ) | sed "s/^/$as_me: WARNING: /" >&2
19996 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19997 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 eval "$as_ac_Header=\$ac_header_preproc"
20003 ac_res=`eval echo '${'$as_ac_Header'}'`
20004 { echo "$as_me:$LINENO: result: $ac_res" >&5
20005 echo "${ECHO_T}$ac_res" >&6; }
20008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20009 LTDL_HEADER_FOUND=1
20011 LTDL_HEADER_FOUND=0
20016 CPPFLAGS="${saved_cppflags}"
20018 if test "xltdl.h" != "x" ; then
20019 if test "${ac_cv_header_ltdl_h+set}" = set; then
20020 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20021 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20022 if test "${ac_cv_header_ltdl_h+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20026 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20028 # Is the header compilable?
20029 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20030 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 $ac_includes_default
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20044 *) ac_try_echo
=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1
>conftest.err
20051 cat conftest.err
>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.
$ac_objext; then
20057 ac_header_compiler
=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.
$ac_ext >&5
20062 ac_header_compiler
=no
20065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20067 echo "${ECHO_T}$ac_header_compiler" >&6; }
20069 # Is the header present?
20070 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20071 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20072 cat >conftest.
$ac_ext <<_ACEOF
20075 cat confdefs.h
>>conftest.
$ac_ext
20076 cat >>conftest.
$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20080 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20081 case "(($ac_try" in
20082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20088 grep -v '^ *+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } >/dev/null && {
20093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20096 ac_header_preproc=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_header_preproc=no
20104 rm -f conftest.err conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6; }
20108 # So? What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20111 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20115 ac_header_preproc=yes
20118 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20131 ## ------------------------------- ##
20132 ## Report this to www.asterisk.org ##
20133 ## ------------------------------- ##
20135 ) | sed "s/^/$as_me: WARNING: /" >&2
20138 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20139 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20140 if test "${ac_cv_header_ltdl_h+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 ac_cv_header_ltdl_h=$ac_header_preproc
20145 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20146 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20149 if test $ac_cv_header_ltdl_h = yes; then
20150 LTDL_HEADER_FOUND=1
20152 LTDL_HEADER_FOUND=0
20158 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20159 if test -n "${LTDL_MANDATORY}" ;
20161 { echo "$as_me:$LINENO: ***" >&5
20162 echo "$as_me: ***" >&6;}
20163 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20164 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20165 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20166 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20167 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20168 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20177 cat >>confdefs.h <<_ACEOF
20178 #define HAVE_LTDL 1
20182 elif test -n "${LTDL_MANDATORY}";
20184 { echo "$as_me:$LINENO: ***" >&5
20185 echo "$as_me: ***" >&6;}
20186 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20187 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20188 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20189 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20190 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20191 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20204 if test "${USE_KDE}" != "no"; then
20205 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20206 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20207 saved_libs="${LIBS}"
20208 saved_cppflags="${CPPFLAGS}"
20209 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20210 if test -d ${KDE_DIR}/lib; then
20211 kdelibdir="${KDE_DIR}/lib"
20213 kdelibdir="${KDE_DIR}"
20215 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include "kcrash.h"
20228 KCrash::defaultCrashHandler(1);
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20238 *) ac_try_echo
=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20243 grep -v '^ *+' conftest.er1
>conftest.err
20245 cat conftest.err
>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_cxx_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest
$ac_exeext &&
20251 $as_test_x conftest
$ac_exeext; then
20252 ac_cv_lib_kde_crash
="yes"
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.
$ac_ext >&5
20257 ac_cv_lib_kde_crash
="no"
20260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20261 conftest
$ac_exeext conftest.
$ac_ext
20263 LIBS
="${saved_libs}"
20264 CPPFLAGS
="${saved_cppflags}"
20266 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20267 { echo "$as_me:$LINENO: result: yes" >&5
20268 echo "${ECHO_T}yes" >&6; }
20269 KDE_LIB
="-lkdecore -lkdeui"
20270 if test "${KDE_DIR}" != ""; then
20271 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
20272 KDE_INCLUDE
="-I${KDE_DIR}/include"
20276 cat >>confdefs.h
<<\_ACEOF
20277 #define HAVE_LIBKDE 1
20280 elif test -n "${KDE_MANDATORY}"; then
20281 { echo "$as_me:$LINENO: result: no" >&5
20282 echo "${ECHO_T}no" >&6; }
20283 { echo "$as_me:$LINENO: ***" >&5
20284 echo "$as_me: ***" >&6;}
20285 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20286 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20287 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20288 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20289 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20290 echo "$as_me: *** including --without-kde." >&6;}
20293 { echo "$as_me:$LINENO: result: no" >&5
20294 echo "${ECHO_T}no" >&6; }
20297 if test "${PBX_KDE}" = 1; then
20298 if test -n "$ac_tool_prefix"; then
20299 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20300 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
20301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20303 if test "${ac_cv_path_KDEINIT+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
20311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20312 for as_dir
in $PATH
20315 test -z "$as_dir" && as_dir
=.
20316 for ac_exec_ext
in '' $ac_executable_extensions; do
20317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20318 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20329 KDEINIT
=$ac_cv_path_KDEINIT
20330 if test -n "$KDEINIT"; then
20331 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20332 echo "${ECHO_T}$KDEINIT" >&6; }
20334 { echo "$as_me:$LINENO: result: no" >&5
20335 echo "${ECHO_T}no" >&6; }
20340 if test -z "$ac_cv_path_KDEINIT"; then
20341 ac_pt_KDEINIT
=$KDEINIT
20342 # Extract the first word of "kdeinit", so it can be a program name with args.
20343 set dummy kdeinit
; ac_word
=$2
20344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20346 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 case $ac_pt_KDEINIT in
20351 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
20354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20355 for as_dir
in $PATH
20358 test -z "$as_dir" && as_dir
=.
20359 for ac_exec_ext
in '' $ac_executable_extensions; do
20360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20361 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20372 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
20373 if test -n "$ac_pt_KDEINIT"; then
20374 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20375 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20377 { echo "$as_me:$LINENO: result: no" >&5
20378 echo "${ECHO_T}no" >&6; }
20381 if test "x$ac_pt_KDEINIT" = x
; then
20384 case $cross_compiling:$ac_tool_warned in
20386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20387 whose name does not start with the host triplet. If you think this
20388 configuration is useful to you, please write to autoconf@gnu.org." >&5
20389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20390 whose name does not start with the host triplet. If you think this
20391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20392 ac_tool_warned
=yes ;;
20394 KDEINIT
=$ac_pt_KDEINIT
20397 KDEINIT
="$ac_cv_path_KDEINIT"
20400 if test ! x
"${KDEINIT}" = xNo
; then
20401 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
20402 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
20408 ac_cpp
='$CPP $CPPFLAGS'
20409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20415 if test "${USE_MISDN}" != "no"; then
20417 if test "x${MISDN_DIR}" != "x"; then
20418 if test -d ${MISDN_DIR}/lib
; then
20419 pbxlibdir
="-L${MISDN_DIR}/lib"
20421 pbxlibdir
="-L${MISDN_DIR}"
20424 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20425 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20426 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 ac_check_lib_save_LIBS
=$LIBS
20430 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
20431 cat >conftest.
$ac_ext <<_ACEOF
20434 cat confdefs.h
>>conftest.
$ac_ext
20435 cat >>conftest.
$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20444 char mISDN_open ();
20448 return mISDN_open ();
20453 rm -f conftest.
$ac_objext conftest
$ac_exeext
20454 if { (ac_try
="$ac_link"
20455 case "(($ac_try" in
20456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20471 ac_cv_lib_mISDN_mISDN_open=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_lib_mISDN_mISDN_open=no
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20484 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20485 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20486 AST_MISDN_FOUND=yes
20492 if test "${AST_MISDN_FOUND}" = "yes"; then
20493 MISDN_LIB="-lmISDN "
20494 MISDN_HEADER_FOUND="1"
20495 if test "x${MISDN_DIR}" != "x"; then
20496 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20497 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20498 saved_cppflags="${CPPFLAGS}"
20499 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20500 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20501 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20504 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20512 # Is the header compilable?
20513 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20514 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20522 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20528 *) ac_try_echo
=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_compile") 2>conftest.er1
20533 grep -v '^ *+' conftest.er1
>conftest.err
20535 cat conftest.err
>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } && {
20538 test -z "$ac_c_werror_flag" ||
20539 test ! -s conftest.err
20540 } && test -s conftest.
$ac_objext; then
20541 ac_header_compiler
=yes
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.
$ac_ext >&5
20546 ac_header_compiler
=no
20549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6; }
20553 # Is the header present?
20554 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20555 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20556 cat >conftest.
$ac_ext <<_ACEOF
20559 cat confdefs.h
>>conftest.
$ac_ext
20560 cat >>conftest.
$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20564 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20565 case "(($ac_try" in
20566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1 >conftest.err
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } >/dev/null && {
20577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20580 ac_header_preproc=yes
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_header_preproc=no
20588 rm -f conftest.err conftest.$ac_ext
20589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20590 echo "${ECHO_T}$ac_header_preproc" >&6; }
20592 # So? What about this header?
20593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20595 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20596 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20598 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20599 ac_header_preproc=yes
20602 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20603 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20605 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20607 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20609 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20611 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20613 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20615 ## ------------------------------- ##
20616 ## Report this to www.asterisk.org ##
20617 ## ------------------------------- ##
20619 ) | sed "s/^/$as_me: WARNING: /" >&2
20622 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20623 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 eval "$as_ac_Header=\$ac_header_preproc"
20629 ac_res=`eval echo '${'$as_ac_Header'}'`
20630 { echo "$as_me:$LINENO: result: $ac_res" >&5
20631 echo "${ECHO_T}$ac_res" >&6; }
20634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20635 MISDN_HEADER_FOUND=1
20637 MISDN_HEADER_FOUND=0
20642 CPPFLAGS="${saved_cppflags}"
20644 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20645 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20646 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20647 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20648 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20652 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20654 # Is the header compilable?
20655 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20656 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 $ac_includes_default
20664 #include <mISDNuser/mISDNlib.h>
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20670 *) ac_try_echo
=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
20675 grep -v '^ *+' conftest.er1
>conftest.err
20677 cat conftest.err
>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.
$ac_objext; then
20683 ac_header_compiler
=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.
$ac_ext >&5
20688 ac_header_compiler
=no
20691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20693 echo "${ECHO_T}$ac_header_compiler" >&6; }
20695 # Is the header present?
20696 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20697 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20698 cat >conftest.
$ac_ext <<_ACEOF
20701 cat confdefs.h
>>conftest.
$ac_ext
20702 cat >>conftest.
$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 #include <mISDNuser/mISDNlib.h>
20706 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20707 case "(($ac_try" in
20708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20714 grep -v '^ *+' conftest.er1 >conftest.err
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } >/dev/null && {
20719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20722 ac_header_preproc=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_header_preproc=no
20730 rm -f conftest.err conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20732 echo "${ECHO_T}$ac_header_preproc" >&6; }
20734 # So? What about this header?
20735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20737 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20738 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20740 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20741 ac_header_preproc=yes
20744 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20745 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20747 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20749 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20751 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20753 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20755 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20757 ## ------------------------------- ##
20758 ## Report this to www.asterisk.org ##
20759 ## ------------------------------- ##
20761 ) | sed "s/^/$as_me: WARNING: /" >&2
20764 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20765 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20766 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20771 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20772 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20775 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20776 MISDN_HEADER_FOUND=1
20778 MISDN_HEADER_FOUND=0
20784 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20785 if test -n "${MISDN_MANDATORY}" ;
20787 { echo "$as_me:$LINENO: ***" >&5
20788 echo "$as_me: ***" >&6;}
20789 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20790 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20791 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20792 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20793 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20794 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_MISDN 1
20808 elif test -n "${MISDN_MANDATORY}";
20810 { echo "$as_me:$LINENO: ***" >&5
20811 echo "$as_me: ***" >&6;}
20812 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20813 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20814 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20815 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20816 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20817 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20823 if test "${PBX_MISDN}" = 1; then
20825 if test "${USE_ISDNNET}" != "no"; then
20827 if test "x${ISDNNET_DIR}" != "x"; then
20828 if test -d ${ISDNNET_DIR}/lib; then
20829 pbxlibdir="-L${ISDNNET_DIR}/lib"
20831 pbxlibdir="-L${ISDNNET_DIR}"
20834 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20835 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20836 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 ac_check_lib_save_LIBS=$LIBS
20840 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20841 cat >conftest.$ac_ext <<_ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20854 char init_manager ();
20858 return init_manager ();
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (ac_try="$ac_link"
20865 case "(($ac_try" in
20866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20867 *) ac_try_echo
=$ac_try;;
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_link") 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest
$ac_exeext &&
20880 $as_test_x conftest
$ac_exeext; then
20881 ac_cv_lib_isdnnet_init_manager
=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.
$ac_ext >&5
20886 ac_cv_lib_isdnnet_init_manager
=no
20889 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20890 conftest
$ac_exeext conftest.
$ac_ext
20891 LIBS
=$ac_check_lib_save_LIBS
20893 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20894 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20895 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20896 AST_ISDNNET_FOUND
=yes
20898 AST_ISDNNET_FOUND
=no
20902 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20903 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
20904 ISDNNET_HEADER_FOUND
="1"
20905 if test "x${ISDNNET_DIR}" != "x"; then
20906 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
20907 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
20908 saved_cppflags
="${CPPFLAGS}"
20909 CPPFLAGS
="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20910 if test "xmISDNuser/isdn_net.h" != "x" ; then
20911 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20912 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20913 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20914 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20915 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 ac_res
=`eval echo '${'$as_ac_Header'}'`
20919 { echo "$as_me:$LINENO: result: $ac_res" >&5
20920 echo "${ECHO_T}$ac_res" >&6; }
20922 # Is the header compilable?
20923 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20924 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20925 cat >conftest.
$ac_ext <<_ACEOF
20928 cat confdefs.h
>>conftest.
$ac_ext
20929 cat >>conftest.
$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 $ac_includes_default
20932 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20934 rm -f conftest.
$ac_objext
20935 if { (ac_try
="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_compile") 2>conftest.er1
20943 grep -v '^ *+' conftest.er1 >conftest.err
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest.$ac_objext; then
20951 ac_header_compiler=yes
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_header_compiler=no
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20961 echo "${ECHO_T}$ac_header_compiler" >&6; }
20963 # Is the header present?
20964 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20965 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20974 if { (ac_try="$ac_cpp conftest.$ac_ext"
20975 case "(($ac_try" in
20976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20977 *) ac_try_echo
=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20982 grep -v '^ *+' conftest.er1
>conftest.err
20984 cat conftest.err
>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } >/dev
/null
&& {
20987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20988 test ! -s conftest.err
20990 ac_header_preproc
=yes
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.
$ac_ext >&5
20995 ac_header_preproc
=no
20998 rm -f conftest.err conftest.
$ac_ext
20999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21000 echo "${ECHO_T}$ac_header_preproc" >&6; }
21002 # So? What about this header?
21003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21005 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21006 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21008 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21009 ac_header_preproc
=yes
21012 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21013 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21015 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21017 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21019 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21021 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21023 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21025 ## ------------------------------- ##
21026 ## Report this to www.asterisk.org ##
21027 ## ------------------------------- ##
21029 ) |
sed "s/^/$as_me: WARNING: /" >&2
21032 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21033 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21034 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 eval "$as_ac_Header=\$ac_header_preproc"
21039 ac_res
=`eval echo '${'$as_ac_Header'}'`
21040 { echo "$as_me:$LINENO: result: $ac_res" >&5
21041 echo "${ECHO_T}$ac_res" >&6; }
21044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21045 ISDNNET_HEADER_FOUND
=1
21047 ISDNNET_HEADER_FOUND
=0
21052 CPPFLAGS
="${saved_cppflags}"
21054 if test "xmISDNuser/isdn_net.h" != "x" ; then
21055 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21056 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21057 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21058 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21062 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21064 # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21066 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21067 cat >conftest.
$ac_ext <<_ACEOF
21070 cat confdefs.h
>>conftest.
$ac_ext
21071 cat >>conftest.
$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21074 #include <mISDNuser/isdn_net.h>
21076 rm -f conftest.
$ac_objext
21077 if { (ac_try
="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } && {
21090 test -z "$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 } && test -s conftest.$ac_objext; then
21093 ac_header_compiler=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_header_compiler=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21103 echo "${ECHO_T}$ac_header_compiler" >&6; }
21105 # Is the header present?
21106 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21107 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <mISDNuser/isdn_net.h>
21116 if { (ac_try="$ac_cpp conftest.$ac_ext"
21117 case "(($ac_try" in
21118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21119 *) ac_try_echo
=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1
>conftest.err
21126 cat conftest.err
>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } >/dev
/null
&& {
21129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21132 ac_header_preproc
=yes
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.
$ac_ext >&5
21137 ac_header_preproc
=no
21140 rm -f conftest.err conftest.
$ac_ext
21141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21142 echo "${ECHO_T}$ac_header_preproc" >&6; }
21144 # So? What about this header?
21145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21147 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21148 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21150 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21151 ac_header_preproc
=yes
21154 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21155 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21157 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21159 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21163 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21165 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21167 ## ------------------------------- ##
21168 ## Report this to www.asterisk.org ##
21169 ## ------------------------------- ##
21171 ) |
sed "s/^/$as_me: WARNING: /" >&2
21174 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21175 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21176 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
21181 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21182 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21185 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21186 ISDNNET_HEADER_FOUND
=1
21188 ISDNNET_HEADER_FOUND
=0
21194 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21195 if test -n "${ISDNNET_MANDATORY}" ;
21197 { echo "$as_me:$LINENO: ***" >&5
21198 echo "$as_me: ***" >&6;}
21199 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21200 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21201 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21202 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21203 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21204 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21213 cat >>confdefs.h
<<_ACEOF
21214 #define HAVE_ISDNNET 1
21218 elif test -n "${ISDNNET_MANDATORY}";
21220 { echo "$as_me:$LINENO: ***" >&5
21221 echo "$as_me: ***" >&6;}
21222 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21223 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21224 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21225 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21226 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21227 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21233 if test "${USE_SUPPSERV}" != "no"; then
21235 if test "x${SUPPSERV_DIR}" != "x"; then
21236 if test -d ${SUPPSERV_DIR}/lib
; then
21237 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
21239 pbxlibdir
="-L${SUPPSERV_DIR}"
21242 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21243 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21244 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 ac_check_lib_save_LIBS
=$LIBS
21248 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
21249 cat >conftest.
$ac_ext <<_ACEOF
21252 cat confdefs.h
>>conftest.
$ac_ext
21253 cat >>conftest.
$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21256 /* Override any GCC internal prototype to avoid an error.
21257 Use char because int might match the return type of a GCC
21258 builtin and then its argument prototype would still apply. */
21266 return encodeFac ();
21271 rm -f conftest.
$ac_objext conftest
$ac_exeext
21272 if { (ac_try
="$ac_link"
21273 case "(($ac_try" in
21274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_link") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest$ac_exeext &&
21288 $as_test_x conftest$ac_exeext; then
21289 ac_cv_lib_suppserv_encodeFac=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_cv_lib_suppserv_encodeFac=no
21297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21298 conftest$ac_exeext conftest.$ac_ext
21299 LIBS=$ac_check_lib_save_LIBS
21301 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21302 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21303 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21304 AST_SUPPSERV_FOUND=yes
21306 AST_SUPPSERV_FOUND=no
21310 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21311 SUPPSERV_LIB="-lsuppserv "
21312 SUPPSERV_HEADER_FOUND="1"
21313 if test "x${SUPPSERV_DIR}" != "x"; then
21314 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21315 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21316 saved_cppflags="${CPPFLAGS}"
21317 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21318 if test "xmISDNuser/suppserv.h" != "x" ; then
21319 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
21320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21321 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21322 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 ac_res=`eval echo '${'$as_ac_Header'}'`
21327 { echo "$as_me:$LINENO: result: $ac_res" >&5
21328 echo "${ECHO_T}$ac_res" >&6; }
21330 # Is the header compilable?
21331 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21332 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 $ac_includes_default
21340 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21346 *) ac_try_echo
=$ac_try;;
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349 (eval "$ac_compile") 2>conftest.er1
21351 grep -v '^ *+' conftest.er1
>conftest.err
21353 cat conftest.err
>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } && {
21356 test -z "$ac_c_werror_flag" ||
21357 test ! -s conftest.err
21358 } && test -s conftest.
$ac_objext; then
21359 ac_header_compiler
=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.
$ac_ext >&5
21364 ac_header_compiler
=no
21367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21369 echo "${ECHO_T}$ac_header_compiler" >&6; }
21371 # Is the header present?
21372 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21373 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21374 cat >conftest.
$ac_ext <<_ACEOF
21377 cat confdefs.h
>>conftest.
$ac_ext
21378 cat >>conftest.
$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21382 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21383 case "(($ac_try" in
21384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21390 grep -v '^ *+' conftest.er1 >conftest.err
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } >/dev/null && {
21395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21398 ac_header_preproc=yes
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 ac_header_preproc=no
21406 rm -f conftest.err conftest.$ac_ext
21407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21408 echo "${ECHO_T}$ac_header_preproc" >&6; }
21410 # So? What about this header?
21411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21413 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21414 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21416 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21417 ac_header_preproc=yes
21420 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21421 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21422 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21423 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21424 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21425 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21426 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21427 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21428 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21429 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21431 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21433 ## ------------------------------- ##
21434 ## Report this to www.asterisk.org ##
21435 ## ------------------------------- ##
21437 ) | sed "s/^/$as_me: WARNING: /" >&2
21440 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21441 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 eval "$as_ac_Header=\$ac_header_preproc"
21447 ac_res=`eval echo '${'$as_ac_Header'}'`
21448 { echo "$as_me:$LINENO: result: $ac_res" >&5
21449 echo "${ECHO_T}$ac_res" >&6; }
21452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21453 SUPPSERV_HEADER_FOUND=1
21455 SUPPSERV_HEADER_FOUND=0
21460 CPPFLAGS="${saved_cppflags}"
21462 if test "xmISDNuser/suppserv.h" != "x" ; then
21463 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21464 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21465 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21466 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21470 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21472 # Is the header compilable?
21473 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21474 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 $ac_includes_default
21482 #include <mISDNuser/suppserv.h>
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21488 *) ac_try_echo
=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_compile") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1
>conftest.err
21495 cat conftest.err
>&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest.
$ac_objext; then
21501 ac_header_compiler
=yes
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.
$ac_ext >&5
21506 ac_header_compiler
=no
21509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21511 echo "${ECHO_T}$ac_header_compiler" >&6; }
21513 # Is the header present?
21514 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21515 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21516 cat >conftest.
$ac_ext <<_ACEOF
21519 cat confdefs.h
>>conftest.
$ac_ext
21520 cat >>conftest.
$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 #include <mISDNuser/suppserv.h>
21524 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21525 case "(($ac_try" in
21526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } >/dev/null && {
21537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21540 ac_header_preproc=yes
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21545 ac_header_preproc=no
21548 rm -f conftest.err conftest.$ac_ext
21549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21550 echo "${ECHO_T}$ac_header_preproc" >&6; }
21552 # So? What about this header?
21553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21556 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21558 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21559 ac_header_preproc=yes
21562 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21563 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21564 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21565 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21567 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21569 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21571 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21572 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21573 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21575 ## ------------------------------- ##
21576 ## Report this to www.asterisk.org ##
21577 ## ------------------------------- ##
21579 ) | sed "s/^/$as_me: WARNING: /" >&2
21582 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21583 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21584 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21589 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21590 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21593 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21594 SUPPSERV_HEADER_FOUND=1
21596 SUPPSERV_HEADER_FOUND=0
21602 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21603 if test -n "${SUPPSERV_MANDATORY}" ;
21605 { echo "$as_me:$LINENO: ***" >&5
21606 echo "$as_me: ***" >&6;}
21607 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21608 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21609 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21610 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21611 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21612 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21616 SUPPSERV_INCLUDE=""
21621 cat >>confdefs.h <<_ACEOF
21622 #define HAVE_SUPPSERV 1
21626 elif test -n "${SUPPSERV_MANDATORY}";
21628 { echo "$as_me:$LINENO: ***" >&5
21629 echo "$as_me: ***" >&6;}
21630 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21631 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21632 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21633 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21634 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21635 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21640 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21641 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21642 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21643 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21647 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21649 # Is the header compilable?
21650 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21651 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 #include <linux/mISDNdsp.h>
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21665 *) ac_try_echo
=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1
>conftest.err
21672 cat conftest.err
>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.
$ac_objext; then
21678 ac_header_compiler
=yes
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.
$ac_ext >&5
21683 ac_header_compiler
=no
21686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21688 echo "${ECHO_T}$ac_header_compiler" >&6; }
21690 # Is the header present?
21691 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21692 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21693 cat >conftest.
$ac_ext <<_ACEOF
21696 cat confdefs.h
>>conftest.
$ac_ext
21697 cat >>conftest.
$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <linux/mISDNdsp.h>
21701 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21702 case "(($ac_try" in
21703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev/null && {
21714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21717 ac_header_preproc=yes
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_header_preproc=no
21725 rm -f conftest.err conftest.$ac_ext
21726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21727 echo "${ECHO_T}$ac_header_preproc" >&6; }
21729 # So? What about this header?
21730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21732 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21733 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21735 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21736 ac_header_preproc=yes
21739 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21740 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21742 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21744 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21746 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21748 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21750 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21752 ## ------------------------------- ##
21753 ## Report this to www.asterisk.org ##
21754 ## ------------------------------- ##
21756 ) | sed "s/^/$as_me: WARNING: /" >&2
21759 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21760 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21761 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21766 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21767 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21770 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21772 cat >>confdefs.h <<_ACEOF
21773 #define MISDN_1_2 1
21782 if test "${USE_NBS}" != "no"; then
21784 if test "x${NBS_DIR}" != "x"; then
21785 if test -d ${NBS_DIR}/lib; then
21786 pbxlibdir="-L${NBS_DIR}/lib"
21788 pbxlibdir="-L${NBS_DIR}"
21791 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21792 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21793 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 ac_check_lib_save_LIBS=$LIBS
21797 LIBS="-lnbs ${pbxlibdir} $LIBS"
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21805 /* Override any GCC internal prototype to avoid an error.
21806 Use char because int might match the return type of a GCC
21807 builtin and then its argument prototype would still apply. */
21811 char nbs_connect ();
21815 return nbs_connect ();
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21824 *) ac_try_echo
=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_link") 2>conftest.er1
21829 grep -v '^ *+' conftest.er1
>conftest.err
21831 cat conftest.err
>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest
$ac_exeext &&
21837 $as_test_x conftest
$ac_exeext; then
21838 ac_cv_lib_nbs_nbs_connect
=yes
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.
$ac_ext >&5
21843 ac_cv_lib_nbs_nbs_connect
=no
21846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21847 conftest
$ac_exeext conftest.
$ac_ext
21848 LIBS
=$ac_check_lib_save_LIBS
21850 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21851 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21852 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21859 if test "${AST_NBS_FOUND}" = "yes"; then
21861 NBS_HEADER_FOUND
="1"
21862 if test "x${NBS_DIR}" != "x"; then
21863 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
21864 NBS_INCLUDE
="-I${NBS_DIR}/include"
21865 saved_cppflags
="${CPPFLAGS}"
21866 CPPFLAGS
="${CPPFLAGS} -I${NBS_DIR}/include"
21867 if test "xnbs.h" != "x" ; then
21868 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21869 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21870 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21871 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21872 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 ac_res
=`eval echo '${'$as_ac_Header'}'`
21876 { echo "$as_me:$LINENO: result: $ac_res" >&5
21877 echo "${ECHO_T}$ac_res" >&6; }
21879 # Is the header compilable?
21880 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21881 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21882 cat >conftest.
$ac_ext <<_ACEOF
21885 cat confdefs.h
>>conftest.
$ac_ext
21886 cat >>conftest.
$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 $ac_includes_default
21889 #include <${NBS_DIR}/include/nbs.h>
21891 rm -f conftest.
$ac_objext
21892 if { (ac_try
="$ac_compile"
21893 case "(($ac_try" in
21894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_compile") 2>conftest.er1
21900 grep -v '^ *+' conftest.er1 >conftest.err
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && {
21905 test -z "$ac_c_werror_flag" ||
21906 test ! -s conftest.err
21907 } && test -s conftest.$ac_objext; then
21908 ac_header_compiler=yes
21910 echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21913 ac_header_compiler=no
21916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21918 echo "${ECHO_T}$ac_header_compiler" >&6; }
21920 # Is the header present?
21921 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21922 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21923 cat >conftest.$ac_ext <<_ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21929 #include <${NBS_DIR}/include/nbs.h>
21931 if { (ac_try="$ac_cpp conftest.$ac_ext"
21932 case "(($ac_try" in
21933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21934 *) ac_try_echo
=$ac_try;;
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21939 grep -v '^ *+' conftest.er1
>conftest.err
21941 cat conftest.err
>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } >/dev
/null
&& {
21944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21947 ac_header_preproc
=yes
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.
$ac_ext >&5
21952 ac_header_preproc
=no
21955 rm -f conftest.err conftest.
$ac_ext
21956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21957 echo "${ECHO_T}$ac_header_preproc" >&6; }
21959 # So? What about this header?
21960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21962 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21963 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21965 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21966 ac_header_preproc
=yes
21969 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21970 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21972 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21974 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21976 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21978 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21980 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21982 ## ------------------------------- ##
21983 ## Report this to www.asterisk.org ##
21984 ## ------------------------------- ##
21986 ) |
sed "s/^/$as_me: WARNING: /" >&2
21989 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21990 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21991 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 eval "$as_ac_Header=\$ac_header_preproc"
21996 ac_res
=`eval echo '${'$as_ac_Header'}'`
21997 { echo "$as_me:$LINENO: result: $ac_res" >&5
21998 echo "${ECHO_T}$ac_res" >&6; }
22001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22009 CPPFLAGS
="${saved_cppflags}"
22011 if test "xnbs.h" != "x" ; then
22012 if test "${ac_cv_header_nbs_h+set}" = set; then
22013 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22014 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22015 if test "${ac_cv_header_nbs_h+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22019 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22021 # Is the header compilable?
22022 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
22023 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
22024 cat >conftest.
$ac_ext <<_ACEOF
22027 cat confdefs.h
>>conftest.
$ac_ext
22028 cat >>conftest.
$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22030 $ac_includes_default
22033 rm -f conftest.
$ac_objext
22034 if { (ac_try
="$ac_compile"
22035 case "(($ac_try" in
22036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_compile") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } && {
22047 test -z "$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22049 } && test -s conftest.$ac_objext; then
22050 ac_header_compiler=yes
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_compiler=no
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22060 echo "${ECHO_T}$ac_header_compiler" >&6; }
22062 # Is the header present?
22063 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22064 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22073 if { (ac_try="$ac_cpp conftest.$ac_ext"
22074 case "(($ac_try" in
22075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22076 *) ac_try_echo
=$ac_try;;
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22081 grep -v '^ *+' conftest.er1
>conftest.err
22083 cat conftest.err
>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } >/dev
/null
&& {
22086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22089 ac_header_preproc
=yes
22091 echo "$as_me: failed program was:" >&5
22092 sed 's/^/| /' conftest.
$ac_ext >&5
22094 ac_header_preproc
=no
22097 rm -f conftest.err conftest.
$ac_ext
22098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22099 echo "${ECHO_T}$ac_header_preproc" >&6; }
22101 # So? What about this header?
22102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22104 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22105 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22107 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22108 ac_header_preproc
=yes
22111 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22112 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22113 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22114 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22115 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22116 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22118 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22120 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22122 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22124 ## ------------------------------- ##
22125 ## Report this to www.asterisk.org ##
22126 ## ------------------------------- ##
22128 ) |
sed "s/^/$as_me: WARNING: /" >&2
22131 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22132 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22133 if test "${ac_cv_header_nbs_h+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 ac_cv_header_nbs_h
=$ac_header_preproc
22138 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22139 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22142 if test $ac_cv_header_nbs_h = yes; then
22151 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22152 if test -n "${NBS_MANDATORY}" ;
22154 { echo "$as_me:$LINENO: ***" >&5
22155 echo "$as_me: ***" >&6;}
22156 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22157 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22158 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22159 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22160 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22161 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22170 cat >>confdefs.h
<<_ACEOF
22175 elif test -n "${NBS_MANDATORY}";
22177 { echo "$as_me:$LINENO: ***" >&5
22178 echo "$as_me: ***" >&6;}
22179 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22180 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22181 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22182 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22183 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22184 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22191 if test "${USE_NCURSES}" != "no"; then
22193 if test "x${NCURSES_DIR}" != "x"; then
22194 if test -d ${NCURSES_DIR}/lib
; then
22195 pbxlibdir
="-L${NCURSES_DIR}/lib"
22197 pbxlibdir
="-L${NCURSES_DIR}"
22200 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22201 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22202 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 ac_check_lib_save_LIBS
=$LIBS
22206 LIBS
="-lncurses ${pbxlibdir} $LIBS"
22207 cat >conftest.
$ac_ext <<_ACEOF
22210 cat confdefs.h
>>conftest.
$ac_ext
22211 cat >>conftest.
$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22229 rm -f conftest.
$ac_objext conftest
$ac_exeext
22230 if { (ac_try
="$ac_link"
22231 case "(($ac_try" in
22232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22233 *) ac_try_echo=$ac_try;;
22235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22236 (eval "$ac_link") 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest$ac_exeext &&
22246 $as_test_x conftest$ac_exeext; then
22247 ac_cv_lib_ncurses_initscr=yes
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 ac_cv_lib_ncurses_initscr=no
22255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22256 conftest$ac_exeext conftest.$ac_ext
22257 LIBS=$ac_check_lib_save_LIBS
22259 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22260 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22261 if test $ac_cv_lib_ncurses_initscr = yes; then
22262 AST_NCURSES_FOUND=yes
22264 AST_NCURSES_FOUND=no
22268 if test "${AST_NCURSES_FOUND}" = "yes"; then
22269 NCURSES_LIB="-lncurses "
22270 NCURSES_HEADER_FOUND="1"
22271 if test "x${NCURSES_DIR}" != "x"; then
22272 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22273 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22274 saved_cppflags="${CPPFLAGS}"
22275 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22276 if test "xcurses.h" != "x" ; then
22277 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
22278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22279 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22280 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 ac_res=`eval echo '${'$as_ac_Header'}'`
22285 { echo "$as_me:$LINENO: result: $ac_res" >&5
22286 echo "${ECHO_T}$ac_res" >&6; }
22288 # Is the header compilable?
22289 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22290 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 $ac_includes_default
22298 #include <${NCURSES_DIR}/include/curses.h>
22300 rm -f conftest.$ac_objext
22301 if { (ac_try="$ac_compile"
22302 case "(($ac_try" in
22303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22304 *) ac_try_echo
=$ac_try;;
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_compile") 2>conftest.er1
22309 grep -v '^ *+' conftest.er1
>conftest.err
22311 cat conftest.err
>&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } && {
22314 test -z "$ac_c_werror_flag" ||
22315 test ! -s conftest.err
22316 } && test -s conftest.
$ac_objext; then
22317 ac_header_compiler
=yes
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.
$ac_ext >&5
22322 ac_header_compiler
=no
22325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22327 echo "${ECHO_T}$ac_header_compiler" >&6; }
22329 # Is the header present?
22330 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22331 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22332 cat >conftest.
$ac_ext <<_ACEOF
22335 cat confdefs.h
>>conftest.
$ac_ext
22336 cat >>conftest.
$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 #include <${NCURSES_DIR}/include/curses.h>
22340 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22341 case "(($ac_try" in
22342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22348 grep -v '^ *+' conftest.er1 >conftest.err
22350 cat conftest.err >&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } >/dev/null && {
22353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22354 test ! -s conftest.err
22356 ac_header_preproc=yes
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 ac_header_preproc=no
22364 rm -f conftest.err conftest.$ac_ext
22365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22366 echo "${ECHO_T}$ac_header_preproc" >&6; }
22368 # So? What about this header?
22369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22371 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22372 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22374 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22375 ac_header_preproc=yes
22378 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22379 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22381 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22383 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22385 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22386 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22387 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22388 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22389 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22391 ## ------------------------------- ##
22392 ## Report this to www.asterisk.org ##
22393 ## ------------------------------- ##
22395 ) | sed "s/^/$as_me: WARNING: /" >&2
22398 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22399 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22401 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 eval "$as_ac_Header=\$ac_header_preproc"
22405 ac_res=`eval echo '${'$as_ac_Header'}'`
22406 { echo "$as_me:$LINENO: result: $ac_res" >&5
22407 echo "${ECHO_T}$ac_res" >&6; }
22410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22411 NCURSES_HEADER_FOUND=1
22413 NCURSES_HEADER_FOUND=0
22418 CPPFLAGS="${saved_cppflags}"
22420 if test "xcurses.h" != "x" ; then
22421 if test "${ac_cv_header_curses_h+set}" = set; then
22422 { echo "$as_me:$LINENO: checking for curses.h" >&5
22423 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22424 if test "${ac_cv_header_curses_h+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22428 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22430 # Is the header compilable?
22431 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22432 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 $ac_includes_default
22440 #include <curses.h>
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22446 *) ac_try_echo
=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_compile") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1
>conftest.err
22453 cat conftest.err
>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest.
$ac_objext; then
22459 ac_header_compiler
=yes
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.
$ac_ext >&5
22464 ac_header_compiler
=no
22467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22469 echo "${ECHO_T}$ac_header_compiler" >&6; }
22471 # Is the header present?
22472 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22473 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22474 cat >conftest.
$ac_ext <<_ACEOF
22477 cat confdefs.h
>>conftest.
$ac_ext
22478 cat >>conftest.
$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 #include <curses.h>
22482 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22483 case "(($ac_try" in
22484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } >/dev/null && {
22495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22498 ac_header_preproc=yes
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ac_header_preproc=no
22506 rm -f conftest.err conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22508 echo "${ECHO_T}$ac_header_preproc" >&6; }
22510 # So? What about this header?
22511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22513 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22514 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22516 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22517 ac_header_preproc=yes
22520 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22521 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22523 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22524 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22525 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22527 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22529 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22531 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22533 ## ------------------------------- ##
22534 ## Report this to www.asterisk.org ##
22535 ## ------------------------------- ##
22537 ) | sed "s/^/$as_me: WARNING: /" >&2
22540 { echo "$as_me:$LINENO: checking for curses.h" >&5
22541 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22542 if test "${ac_cv_header_curses_h+set}" = set; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 ac_cv_header_curses_h=$ac_header_preproc
22547 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22548 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22551 if test $ac_cv_header_curses_h = yes; then
22552 NCURSES_HEADER_FOUND=1
22554 NCURSES_HEADER_FOUND=0
22560 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22561 if test -n "${NCURSES_MANDATORY}" ;
22563 { echo "$as_me:$LINENO: ***" >&5
22564 echo "$as_me: ***" >&6;}
22565 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22566 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22567 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22568 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22569 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22570 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22579 cat >>confdefs.h <<_ACEOF
22580 #define HAVE_NCURSES 1
22584 elif test -n "${NCURSES_MANDATORY}";
22586 { echo "$as_me:$LINENO: ***" >&5
22587 echo "$as_me: ***" >&6;}
22588 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22589 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22590 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22591 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22592 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22593 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22600 if test "${USE_NETSNMP}" != "no"; then
22601 if test "x${NETSNMP_DIR}" != "x"; then
22602 if test -n "$ac_tool_prefix"; then
22603 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22604 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22607 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 case $NETSNMP_CONFIG in
22612 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in ${NETSNMP_DIR}/bin
22619 test -z "$as_dir" && as_dir=.
22620 for ac_exec_ext in '' $ac_executable_extensions; do
22621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22622 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22633 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22634 if test -n "$NETSNMP_CONFIG"; then
22635 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22636 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22638 { echo "$as_me:$LINENO: result: no" >&5
22639 echo "${ECHO_T}no" >&6; }
22644 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22645 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22646 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22647 set dummy net-snmp-config; ac_word=$2
22648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22650 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 case $ac_pt_NETSNMP_CONFIG in
22655 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22659 for as_dir in ${NETSNMP_DIR}/bin
22662 test -z "$as_dir" && as_dir=.
22663 for ac_exec_ext in '' $ac_executable_extensions; do
22664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22665 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22676 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22677 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22678 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22679 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22681 { echo "$as_me:$LINENO: result: no" >&5
22682 echo "${ECHO_T}no" >&6; }
22685 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22686 NETSNMP_CONFIG="No"
22688 case $cross_compiling:$ac_tool_warned in
22690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22691 whose name does not start with the host triplet. If you think this
22692 configuration is useful to you, please write to autoconf@gnu.org." >&5
22693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22694 whose name does not start with the host triplet. If you think this
22695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22696 ac_tool_warned=yes ;;
22698 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22701 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22704 if test x"${NETSNMP_CONFIG}" = xNo; then
22705 { echo "$as_me:$LINENO: ***" >&5
22706 echo "$as_me: ***" >&6;}
22707 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22708 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22709 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22710 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22711 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22712 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22713 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22714 echo "$as_me: *** including --without-netsnmp" >&6;}
22718 if test -n "$ac_tool_prefix"; then
22719 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22720 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22723 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 case $NETSNMP_CONFIG in
22728 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22732 for as_dir in $PATH
22735 test -z "$as_dir" && as_dir=.
22736 for ac_exec_ext in '' $ac_executable_extensions; do
22737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22738 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22749 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22750 if test -n "$NETSNMP_CONFIG"; then
22751 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22752 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22754 { echo "$as_me:$LINENO: result: no" >&5
22755 echo "${ECHO_T}no" >&6; }
22760 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22761 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22762 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22763 set dummy net-snmp-config; ac_word=$2
22764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22766 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 case $ac_pt_NETSNMP_CONFIG in
22771 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 for as_dir in $PATH
22778 test -z "$as_dir" && as_dir=.
22779 for ac_exec_ext in '' $ac_executable_extensions; do
22780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22781 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22792 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22793 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22794 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22795 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22797 { echo "$as_me:$LINENO: result: no" >&5
22798 echo "${ECHO_T}no" >&6; }
22801 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22802 NETSNMP_CONFIG="No"
22804 case $cross_compiling:$ac_tool_warned in
22806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22807 whose name does not start with the host triplet. If you think this
22808 configuration is useful to you, please write to autoconf@gnu.org." >&5
22809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22810 whose name does not start with the host triplet. If you think this
22811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22812 ac_tool_warned=yes ;;
22814 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22817 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22822 if test x"${NETSNMP_CONFIG}" != xNo; then
22823 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22825 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22826 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22827 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 ac_check_lib_save_LIBS=$LIBS
22831 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22839 /* Override any GCC internal prototype to avoid an error.
22840 Use char because int might match the return type of a GCC
22841 builtin and then its argument prototype would still apply. */
22845 char snmp_register_callback ();
22849 return snmp_register_callback ();
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (ac_try="$ac_link"
22856 case "(($ac_try" in
22857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22858 *) ac_try_echo
=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_link") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1
>conftest.err
22865 cat conftest.err
>&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest
$ac_exeext &&
22871 $as_test_x conftest
$ac_exeext; then
22872 ac_cv_lib_netsnmp_snmp_register_callback
=yes
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.
$ac_ext >&5
22877 ac_cv_lib_netsnmp_snmp_register_callback
=no
22880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22881 conftest
$ac_exeext conftest.
$ac_ext
22882 LIBS
=$ac_check_lib_save_LIBS
22884 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22885 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22886 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22888 cat >>confdefs.h
<<_ACEOF
22889 #define HAVE_NETSNMP 1
22895 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22896 NETSNMP_LIB
="${NETSNMP_libs}"
22898 elif test -n "${NETSNMP_MANDATORY}";
22900 { echo "$as_me:$LINENO: ***" >&5
22901 echo "$as_me: ***" >&6;}
22902 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22903 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22906 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22907 echo "$as_me: *** including --without-netsnmp" >&6;}
22910 elif test -n "${NETSNMP_MANDATORY}";
22912 { echo "$as_me:$LINENO: ***" >&5
22913 echo "$as_me: ***" >&6;}
22914 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22915 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22916 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22917 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22918 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22919 echo "$as_me: *** including --without-netsnmp" >&6;}
22924 if test "${USE_NEWT}" != "no"; then
22926 if test "x${NEWT_DIR}" != "x"; then
22927 if test -d ${NEWT_DIR}/lib
; then
22928 pbxlibdir
="-L${NEWT_DIR}/lib"
22930 pbxlibdir
="-L${NEWT_DIR}"
22933 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22934 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22935 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 ac_check_lib_save_LIBS
=$LIBS
22939 LIBS
="-lnewt ${pbxlibdir} $LIBS"
22940 cat >conftest.
$ac_ext <<_ACEOF
22943 cat confdefs.h
>>conftest.
$ac_ext
22944 cat >>conftest.
$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22957 return newtBell ();
22962 rm -f conftest.
$ac_objext conftest
$ac_exeext
22963 if { (ac_try
="$ac_link"
22964 case "(($ac_try" in
22965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_link") 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest$ac_exeext &&
22979 $as_test_x conftest$ac_exeext; then
22980 ac_cv_lib_newt_newtBell=yes
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 ac_cv_lib_newt_newtBell=no
22988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22989 conftest$ac_exeext conftest.$ac_ext
22990 LIBS=$ac_check_lib_save_LIBS
22992 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22993 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22994 if test $ac_cv_lib_newt_newtBell = yes; then
23001 if test "${AST_NEWT_FOUND}" = "yes"; then
23003 NEWT_HEADER_FOUND="1"
23004 if test "x${NEWT_DIR}" != "x"; then
23005 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
23006 NEWT_INCLUDE="-I${NEWT_DIR}/include"
23007 saved_cppflags="${CPPFLAGS}"
23008 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
23009 if test "xnewt.h" != "x" ; then
23010 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23013 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 ac_res=`eval echo '${'$as_ac_Header'}'`
23018 { echo "$as_me:$LINENO: result: $ac_res" >&5
23019 echo "${ECHO_T}$ac_res" >&6; }
23021 # Is the header compilable?
23022 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
23023 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 $ac_includes_default
23031 #include <${NEWT_DIR}/include/newt.h>
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23037 *) ac_try_echo
=$ac_try;;
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_compile") 2>conftest.er1
23042 grep -v '^ *+' conftest.er1
>conftest.err
23044 cat conftest.err
>&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest.
$ac_objext; then
23050 ac_header_compiler
=yes
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.
$ac_ext >&5
23055 ac_header_compiler
=no
23058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23064 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23065 cat >conftest.
$ac_ext <<_ACEOF
23068 cat confdefs.h
>>conftest.
$ac_ext
23069 cat >>conftest.
$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <${NEWT_DIR}/include/newt.h>
23073 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23074 case "(($ac_try" in
23075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23089 ac_header_preproc=yes
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6; }
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23104 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23111 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23124 ## ------------------------------- ##
23125 ## Report this to www.asterisk.org ##
23126 ## ------------------------------- ##
23128 ) | sed "s/^/$as_me: WARNING: /" >&2
23131 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23132 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 eval "$as_ac_Header=\$ac_header_preproc"
23138 ac_res=`eval echo '${'$as_ac_Header'}'`
23139 { echo "$as_me:$LINENO: result: $ac_res" >&5
23140 echo "${ECHO_T}$ac_res" >&6; }
23143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23144 NEWT_HEADER_FOUND=1
23146 NEWT_HEADER_FOUND=0
23151 CPPFLAGS="${saved_cppflags}"
23153 if test "xnewt.h" != "x" ; then
23154 if test "${ac_cv_header_newt_h+set}" = set; then
23155 { echo "$as_me:$LINENO: checking for newt.h" >&5
23156 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23157 if test "${ac_cv_header_newt_h+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23161 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23163 # Is the header compilable?
23164 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23165 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23166 cat >conftest.$ac_ext <<_ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h. */
23172 $ac_includes_default
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23179 *) ac_try_echo
=$ac_try;;
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23184 grep -v '^ *+' conftest.er1
>conftest.err
23186 cat conftest.err
>&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.
$ac_objext; then
23192 ac_header_compiler
=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.
$ac_ext >&5
23197 ac_header_compiler
=no
23200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23202 echo "${ECHO_T}$ac_header_compiler" >&6; }
23204 # Is the header present?
23205 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23206 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23207 cat >conftest.
$ac_ext <<_ACEOF
23210 cat confdefs.h
>>conftest.
$ac_ext
23211 cat >>conftest.
$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23215 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23216 case "(($ac_try" in
23217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } >/dev/null && {
23228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23231 ac_header_preproc=yes
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_header_preproc=no
23239 rm -f conftest.err conftest.$ac_ext
23240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23241 echo "${ECHO_T}$ac_header_preproc" >&6; }
23243 # So? What about this header?
23244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23246 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23247 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23248 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23249 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23250 ac_header_preproc=yes
23253 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23254 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23255 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23256 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23257 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23258 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23259 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23260 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23261 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23262 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23263 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23264 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23266 ## ------------------------------- ##
23267 ## Report this to www.asterisk.org ##
23268 ## ------------------------------- ##
23270 ) | sed "s/^/$as_me: WARNING: /" >&2
23273 { echo "$as_me:$LINENO: checking for newt.h" >&5
23274 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23275 if test "${ac_cv_header_newt_h+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23278 ac_cv_header_newt_h=$ac_header_preproc
23280 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23281 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23284 if test $ac_cv_header_newt_h = yes; then
23285 NEWT_HEADER_FOUND=1
23287 NEWT_HEADER_FOUND=0
23293 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23294 if test -n "${NEWT_MANDATORY}" ;
23296 { echo "$as_me:$LINENO: ***" >&5
23297 echo "$as_me: ***" >&6;}
23298 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23299 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23300 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23301 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23302 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23303 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_NEWT 1
23317 elif test -n "${NEWT_MANDATORY}";
23319 { echo "$as_me:$LINENO: ***" >&5
23320 echo "$as_me: ***" >&6;}
23321 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23322 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23323 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23324 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23325 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23326 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23333 if test "${USE_UNIXODBC}" != "no"; then
23335 if test "x${UNIXODBC_DIR}" != "x"; then
23336 if test -d ${UNIXODBC_DIR}/lib; then
23337 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23339 pbxlibdir="-L${UNIXODBC_DIR}"
23342 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23343 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23344 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 ac_check_lib_save_LIBS=$LIBS
23348 LIBS="-lodbc ${pbxlibdir} $LIBS"
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23356 /* Override any GCC internal prototype to avoid an error.
23357 Use char because int might match the return type of a GCC
23358 builtin and then its argument prototype would still apply. */
23362 char SQLConnect ();
23366 return SQLConnect ();
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23375 *) ac_try_echo
=$ac_try;;
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_link") 2>conftest.er1
23380 grep -v '^ *+' conftest.er1
>conftest.err
23382 cat conftest.err
>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest
$ac_exeext &&
23388 $as_test_x conftest
$ac_exeext; then
23389 ac_cv_lib_odbc_SQLConnect
=yes
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.
$ac_ext >&5
23394 ac_cv_lib_odbc_SQLConnect
=no
23397 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23398 conftest
$ac_exeext conftest.
$ac_ext
23399 LIBS
=$ac_check_lib_save_LIBS
23401 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23402 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23403 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23404 AST_UNIXODBC_FOUND
=yes
23406 AST_UNIXODBC_FOUND
=no
23410 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23411 UNIXODBC_LIB
="-lodbc "
23412 UNIXODBC_HEADER_FOUND
="1"
23413 if test "x${UNIXODBC_DIR}" != "x"; then
23414 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
23415 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
23416 saved_cppflags
="${CPPFLAGS}"
23417 CPPFLAGS
="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23418 if test "xsql.h" != "x" ; then
23419 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23420 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23421 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23422 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23423 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 ac_res
=`eval echo '${'$as_ac_Header'}'`
23427 { echo "$as_me:$LINENO: result: $ac_res" >&5
23428 echo "${ECHO_T}$ac_res" >&6; }
23430 # Is the header compilable?
23431 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23432 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23433 cat >conftest.
$ac_ext <<_ACEOF
23436 cat confdefs.h
>>conftest.
$ac_ext
23437 cat >>conftest.
$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23439 $ac_includes_default
23440 #include <${UNIXODBC_DIR}/include/sql.h>
23442 rm -f conftest.
$ac_objext
23443 if { (ac_try
="$ac_compile"
23444 case "(($ac_try" in
23445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_compile") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1 >conftest.err
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest.$ac_objext; then
23459 ac_header_compiler=yes
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_header_compiler=no
23467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23469 echo "${ECHO_T}$ac_header_compiler" >&6; }
23471 # Is the header present?
23472 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23473 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23474 cat >conftest.$ac_ext <<_ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 #include <${UNIXODBC_DIR}/include/sql.h>
23482 if { (ac_try="$ac_cpp conftest.$ac_ext"
23483 case "(($ac_try" in
23484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23485 *) ac_try_echo
=$ac_try;;
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23490 grep -v '^ *+' conftest.er1
>conftest.err
23492 cat conftest.err
>&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } >/dev
/null
&& {
23495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23496 test ! -s conftest.err
23498 ac_header_preproc
=yes
23500 echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.
$ac_ext >&5
23503 ac_header_preproc
=no
23506 rm -f conftest.err conftest.
$ac_ext
23507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23508 echo "${ECHO_T}$ac_header_preproc" >&6; }
23510 # So? What about this header?
23511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23513 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23514 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23515 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23516 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23517 ac_header_preproc
=yes
23520 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23521 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23522 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23523 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23524 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23525 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23526 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23527 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23528 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23529 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23530 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23531 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23533 ## ------------------------------- ##
23534 ## Report this to www.asterisk.org ##
23535 ## ------------------------------- ##
23537 ) |
sed "s/^/$as_me: WARNING: /" >&2
23540 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23541 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23543 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 eval "$as_ac_Header=\$ac_header_preproc"
23547 ac_res
=`eval echo '${'$as_ac_Header'}'`
23548 { echo "$as_me:$LINENO: result: $ac_res" >&5
23549 echo "${ECHO_T}$ac_res" >&6; }
23552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23553 UNIXODBC_HEADER_FOUND
=1
23555 UNIXODBC_HEADER_FOUND
=0
23560 CPPFLAGS
="${saved_cppflags}"
23562 if test "xsql.h" != "x" ; then
23563 if test "${ac_cv_header_sql_h+set}" = set; then
23564 { echo "$as_me:$LINENO: checking for sql.h" >&5
23565 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23566 if test "${ac_cv_header_sql_h+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23570 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23572 # Is the header compilable?
23573 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23574 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23575 cat >conftest.
$ac_ext <<_ACEOF
23578 cat confdefs.h
>>conftest.
$ac_ext
23579 cat >>conftest.
$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 $ac_includes_default
23584 rm -f conftest.
$ac_objext
23585 if { (ac_try
="$ac_compile"
23586 case "(($ac_try" in
23587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23601 ac_header_compiler=yes
23603 echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 ac_header_compiler=no
23609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23611 echo "${ECHO_T}$ac_header_compiler" >&6; }
23613 # Is the header present?
23614 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23615 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23616 cat >conftest.$ac_ext <<_ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23624 if { (ac_try="$ac_cpp conftest.$ac_ext"
23625 case "(($ac_try" in
23626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23627 *) ac_try_echo
=$ac_try;;
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23632 grep -v '^ *+' conftest.er1
>conftest.err
23634 cat conftest.err
>&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } >/dev
/null
&& {
23637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23638 test ! -s conftest.err
23640 ac_header_preproc
=yes
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.
$ac_ext >&5
23645 ac_header_preproc
=no
23648 rm -f conftest.err conftest.
$ac_ext
23649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23650 echo "${ECHO_T}$ac_header_preproc" >&6; }
23652 # So? What about this header?
23653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23655 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23656 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23657 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23658 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23659 ac_header_preproc
=yes
23662 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23663 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23664 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23665 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23666 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23667 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23668 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23669 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23670 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23671 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23672 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23673 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23675 ## ------------------------------- ##
23676 ## Report this to www.asterisk.org ##
23677 ## ------------------------------- ##
23679 ) |
sed "s/^/$as_me: WARNING: /" >&2
23682 { echo "$as_me:$LINENO: checking for sql.h" >&5
23683 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23684 if test "${ac_cv_header_sql_h+set}" = set; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 ac_cv_header_sql_h
=$ac_header_preproc
23689 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23690 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23693 if test $ac_cv_header_sql_h = yes; then
23694 UNIXODBC_HEADER_FOUND
=1
23696 UNIXODBC_HEADER_FOUND
=0
23702 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23703 if test -n "${UNIXODBC_MANDATORY}" ;
23705 { echo "$as_me:$LINENO: ***" >&5
23706 echo "$as_me: ***" >&6;}
23707 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23708 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23709 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23710 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23711 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23712 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23716 UNIXODBC_INCLUDE
=""
23721 cat >>confdefs.h
<<_ACEOF
23722 #define HAVE_UNIXODBC 1
23726 elif test -n "${UNIXODBC_MANDATORY}";
23728 { echo "$as_me:$LINENO: ***" >&5
23729 echo "$as_me: ***" >&6;}
23730 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23731 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23732 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23733 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23734 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23735 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23742 if test "${USE_OGG}" != "no"; then
23744 if test "x${OGG_DIR}" != "x"; then
23745 if test -d ${OGG_DIR}/lib
; then
23746 pbxlibdir
="-L${OGG_DIR}/lib"
23748 pbxlibdir
="-L${OGG_DIR}"
23751 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23752 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23753 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 ac_check_lib_save_LIBS
=$LIBS
23757 LIBS
="-logg ${pbxlibdir} $LIBS"
23758 cat >conftest.
$ac_ext <<_ACEOF
23761 cat confdefs.h
>>conftest.
$ac_ext
23762 cat >>conftest.
$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23765 /* Override any GCC internal prototype to avoid an error.
23766 Use char because int might match the return type of a GCC
23767 builtin and then its argument prototype would still apply. */
23771 char ogg_sync_init ();
23775 return ogg_sync_init ();
23780 rm -f conftest.
$ac_objext conftest
$ac_exeext
23781 if { (ac_try
="$ac_link"
23782 case "(($ac_try" in
23783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_link") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest$ac_exeext &&
23797 $as_test_x conftest$ac_exeext; then
23798 ac_cv_lib_ogg_ogg_sync_init=yes
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_cv_lib_ogg_ogg_sync_init=no
23806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23807 conftest$ac_exeext conftest.$ac_ext
23808 LIBS=$ac_check_lib_save_LIBS
23810 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23811 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23812 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23819 if test "${AST_OGG_FOUND}" = "yes"; then
23821 OGG_HEADER_FOUND="1"
23822 if test "x${OGG_DIR}" != "x"; then
23823 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23824 OGG_INCLUDE="-I${OGG_DIR}/include"
23825 saved_cppflags="${CPPFLAGS}"
23826 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23827 if test "x" != "x" ; then
23828 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
23829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23830 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23831 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 ac_res=`eval echo '${'$as_ac_Header'}'`
23836 { echo "$as_me:$LINENO: result: $ac_res" >&5
23837 echo "${ECHO_T}$ac_res" >&6; }
23839 # Is the header compilable?
23840 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23841 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23842 cat >conftest.$ac_ext <<_ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23848 $ac_includes_default
23849 #include <${OGG_DIR}/include/>
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23855 *) ac_try_echo
=$ac_try;;
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_compile") 2>conftest.er1
23860 grep -v '^ *+' conftest.er1
>conftest.err
23862 cat conftest.err
>&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest.
$ac_objext; then
23868 ac_header_compiler
=yes
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.
$ac_ext >&5
23873 ac_header_compiler
=no
23876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23878 echo "${ECHO_T}$ac_header_compiler" >&6; }
23880 # Is the header present?
23881 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23882 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23883 cat >conftest.
$ac_ext <<_ACEOF
23886 cat confdefs.h
>>conftest.
$ac_ext
23887 cat >>conftest.
$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 #include <${OGG_DIR}/include/>
23891 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23892 case "(($ac_try" in
23893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23899 grep -v '^ *+' conftest.er1 >conftest.err
23901 cat conftest.err >&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } >/dev/null && {
23904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23905 test ! -s conftest.err
23907 ac_header_preproc=yes
23909 echo "$as_me: failed program was:" >&5
23910 sed 's/^/| /' conftest.$ac_ext >&5
23912 ac_header_preproc=no
23915 rm -f conftest.err conftest.$ac_ext
23916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23917 echo "${ECHO_T}$ac_header_preproc" >&6; }
23919 # So? What about this header?
23920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23922 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23923 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23924 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23925 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23926 ac_header_preproc=yes
23929 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23930 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23931 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23932 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23933 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23934 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23935 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23936 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23937 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23938 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23939 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23940 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23942 ## ------------------------------- ##
23943 ## Report this to www.asterisk.org ##
23944 ## ------------------------------- ##
23946 ) | sed "s/^/$as_me: WARNING: /" >&2
23949 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23950 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23954 eval "$as_ac_Header=\$ac_header_preproc"
23956 ac_res=`eval echo '${'$as_ac_Header'}'`
23957 { echo "$as_me:$LINENO: result: $ac_res" >&5
23958 echo "${ECHO_T}$ac_res" >&6; }
23961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23969 CPPFLAGS="${saved_cppflags}"
23971 if test "x" != "x" ; then
23972 if test "${ac_cv_header_+set}" = set; then
23973 { echo "$as_me:$LINENO: checking for " >&5
23974 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23975 if test "${ac_cv_header_+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23979 echo "${ECHO_T}$ac_cv_header_" >&6; }
23981 # Is the header compilable?
23982 { echo "$as_me:$LINENO: checking usability" >&5
23983 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 $ac_includes_default
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23997 *) ac_try_echo
=$ac_try;;
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24002 grep -v '^ *+' conftest.er1
>conftest.err
24004 cat conftest.err
>&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.
$ac_objext; then
24010 ac_header_compiler
=yes
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.
$ac_ext >&5
24015 ac_header_compiler
=no
24018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 echo "${ECHO_T}$ac_header_compiler" >&6; }
24022 # Is the header present?
24023 { echo "$as_me:$LINENO: checking presence" >&5
24024 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24025 cat >conftest.
$ac_ext <<_ACEOF
24028 cat confdefs.h
>>conftest.
$ac_ext
24029 cat >>conftest.
$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24033 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24034 case "(($ac_try" in
24035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24041 grep -v '^ *+' conftest.er1 >conftest.err
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } >/dev/null && {
24046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24049 ac_header_preproc=yes
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24054 ac_header_preproc=no
24057 rm -f conftest.err conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24059 echo "${ECHO_T}$ac_header_preproc" >&6; }
24061 # So? What about this header?
24062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24064 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24065 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24066 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24067 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24068 ac_header_preproc=yes
24071 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24072 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24073 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24074 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24075 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24076 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24077 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24078 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24079 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24080 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24082 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24084 ## ------------------------------- ##
24085 ## Report this to www.asterisk.org ##
24086 ## ------------------------------- ##
24088 ) | sed "s/^/$as_me: WARNING: /" >&2
24091 { echo "$as_me:$LINENO: checking for " >&5
24092 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24093 if test "${ac_cv_header_+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 ac_cv_header_=$ac_header_preproc
24098 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24099 echo "${ECHO_T}$ac_cv_header_" >&6; }
24102 if test $ac_cv_header_ = yes; then
24111 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24112 if test -n "${OGG_MANDATORY}" ;
24114 { echo "$as_me:$LINENO: ***" >&5
24115 echo "$as_me: ***" >&6;}
24116 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24117 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24118 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24119 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24120 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24121 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24130 cat >>confdefs.h <<_ACEOF
24135 elif test -n "${OGG_MANDATORY}";
24137 { echo "$as_me:$LINENO: ***" >&5
24138 echo "$as_me: ***" >&6;}
24139 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24140 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24141 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24142 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24143 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24144 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24150 if test "${USE_OSS}" != "no"; then
24152 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24153 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24154 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24155 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24159 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24161 # Is the header compilable?
24162 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24163 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24164 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 $ac_includes_default
24171 #include <linux/soundcard.h>
24173 rm -f conftest.$ac_objext
24174 if { (ac_try="$ac_compile"
24175 case "(($ac_try" in
24176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24177 *) ac_try_echo
=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_compile") 2>conftest.er1
24182 grep -v '^ *+' conftest.er1
>conftest.err
24184 cat conftest.err
>&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && {
24187 test -z "$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24189 } && test -s conftest.
$ac_objext; then
24190 ac_header_compiler
=yes
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.
$ac_ext >&5
24195 ac_header_compiler
=no
24198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24200 echo "${ECHO_T}$ac_header_compiler" >&6; }
24202 # Is the header present?
24203 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24204 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24205 cat >conftest.
$ac_ext <<_ACEOF
24208 cat confdefs.h
>>conftest.
$ac_ext
24209 cat >>conftest.
$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 #include <linux/soundcard.h>
24213 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24214 case "(($ac_try" in
24215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24221 grep -v '^ *+' conftest.er1 >conftest.err
24223 cat conftest.err >&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } >/dev/null && {
24226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24227 test ! -s conftest.err
24229 ac_header_preproc=yes
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_header_preproc=no
24237 rm -f conftest.err conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24239 echo "${ECHO_T}$ac_header_preproc" >&6; }
24241 # So? What about this header?
24242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24244 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24245 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24246 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24247 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24248 ac_header_preproc=yes
24251 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24252 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24254 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24255 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24256 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24257 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24258 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24259 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24260 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24261 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24262 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24264 ## ------------------------------- ##
24265 ## Report this to www.asterisk.org ##
24266 ## ------------------------------- ##
24268 ) | sed "s/^/$as_me: WARNING: /" >&2
24271 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24272 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24273 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24278 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24279 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24282 if test $ac_cv_header_linux_soundcard_h = yes; then
24286 cat >>confdefs.h <<_ACEOF
24294 if test "$PBX_OSS" = "0"; then
24295 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24296 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24297 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24298 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24302 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24304 # Is the header compilable?
24305 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24306 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24314 #include <sys/soundcard.h>
24316 rm -f conftest.$ac_objext
24317 if { (ac_try="$ac_compile"
24318 case "(($ac_try" in
24319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24320 *) ac_try_echo
=$ac_try;;
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_compile") 2>conftest.er1
24325 grep -v '^ *+' conftest.er1
>conftest.err
24327 cat conftest.err
>&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } && {
24330 test -z "$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24332 } && test -s conftest.
$ac_objext; then
24333 ac_header_compiler
=yes
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.
$ac_ext >&5
24338 ac_header_compiler
=no
24341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24343 echo "${ECHO_T}$ac_header_compiler" >&6; }
24345 # Is the header present?
24346 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24347 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24348 cat >conftest.
$ac_ext <<_ACEOF
24351 cat confdefs.h
>>conftest.
$ac_ext
24352 cat >>conftest.
$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 #include <sys/soundcard.h>
24356 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24357 case "(($ac_try" in
24358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24364 grep -v '^ *+' conftest.er1 >conftest.err
24366 cat conftest.err >&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); } >/dev/null && {
24369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24370 test ! -s conftest.err
24372 ac_header_preproc=yes
24374 echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24377 ac_header_preproc=no
24380 rm -f conftest.err conftest.$ac_ext
24381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24382 echo "${ECHO_T}$ac_header_preproc" >&6; }
24384 # So? What about this header?
24385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24387 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24388 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24389 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24390 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24391 ac_header_preproc=yes
24394 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24395 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24397 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24399 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24401 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24402 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24403 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24404 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24405 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24407 ## ------------------------------- ##
24408 ## Report this to www.asterisk.org ##
24409 ## ------------------------------- ##
24411 ) | sed "s/^/$as_me: WARNING: /" >&2
24414 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24415 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24416 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24419 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24421 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24422 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24425 if test $ac_cv_header_sys_soundcard_h = yes; then
24429 cat >>confdefs.h <<_ACEOF
24438 if test "$PBX_OSS" = "0"; then
24440 if test "${USE_OSS}" != "no"; then
24442 if test "x${OSS_DIR}" != "x"; then
24443 if test -d ${OSS_DIR}/lib; then
24444 pbxlibdir="-L${OSS_DIR}/lib"
24446 pbxlibdir="-L${OSS_DIR}"
24449 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24450 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24451 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 ac_check_lib_save_LIBS=$LIBS
24455 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24463 /* Override any GCC internal prototype to avoid an error.
24464 Use char because int might match the return type of a GCC
24465 builtin and then its argument prototype would still apply. */
24469 char oss_ioctl_mixer ();
24473 return oss_ioctl_mixer ();
24478 rm -f conftest.$ac_objext conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24482 *) ac_try_echo
=$ac_try;;
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_link") 2>conftest.er1
24487 grep -v '^ *+' conftest.er1
>conftest.err
24489 cat conftest.err
>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && {
24492 test -z "$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 } && test -s conftest
$ac_exeext &&
24495 $as_test_x conftest
$ac_exeext; then
24496 ac_cv_lib_ossaudio_oss_ioctl_mixer
=yes
24498 echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.
$ac_ext >&5
24501 ac_cv_lib_ossaudio_oss_ioctl_mixer
=no
24504 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24505 conftest
$ac_exeext conftest.
$ac_ext
24506 LIBS
=$ac_check_lib_save_LIBS
24508 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24509 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24510 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24517 if test "${AST_OSS_FOUND}" = "yes"; then
24518 OSS_LIB
="-lossaudio "
24519 OSS_HEADER_FOUND
="1"
24520 if test "x${OSS_DIR}" != "x"; then
24521 OSS_LIB
="${pbxlibdir} ${OSS_LIB}"
24522 OSS_INCLUDE
="-I${OSS_DIR}/include"
24523 saved_cppflags
="${CPPFLAGS}"
24524 CPPFLAGS
="${CPPFLAGS} -I${OSS_DIR}/include"
24525 if test "xsoundcard.h" != "x" ; then
24526 as_ac_Header
=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24527 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24528 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24529 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24530 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24533 ac_res
=`eval echo '${'$as_ac_Header'}'`
24534 { echo "$as_me:$LINENO: result: $ac_res" >&5
24535 echo "${ECHO_T}$ac_res" >&6; }
24537 # Is the header compilable?
24538 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24539 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24540 cat >conftest.
$ac_ext <<_ACEOF
24543 cat confdefs.h
>>conftest.
$ac_ext
24544 cat >>conftest.
$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24546 $ac_includes_default
24547 #include <${OSS_DIR}/include/soundcard.h>
24549 rm -f conftest.
$ac_objext
24550 if { (ac_try
="$ac_compile"
24551 case "(($ac_try" in
24552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556 (eval "$ac_compile") 2>conftest.er1
24558 grep -v '^ *+' conftest.er1 >conftest.err
24560 cat conftest.err >&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } && {
24563 test -z "$ac_c_werror_flag" ||
24564 test ! -s conftest.err
24565 } && test -s conftest.$ac_objext; then
24566 ac_header_compiler=yes
24568 echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24571 ac_header_compiler=no
24574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24576 echo "${ECHO_T}$ac_header_compiler" >&6; }
24578 # Is the header present?
24579 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24580 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24581 cat >conftest.$ac_ext <<_ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587 #include <${OSS_DIR}/include/soundcard.h>
24589 if { (ac_try="$ac_cpp conftest.$ac_ext"
24590 case "(($ac_try" in
24591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24592 *) ac_try_echo
=$ac_try;;
24594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24597 grep -v '^ *+' conftest.er1
>conftest.err
24599 cat conftest.err
>&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } >/dev
/null
&& {
24602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24603 test ! -s conftest.err
24605 ac_header_preproc
=yes
24607 echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.
$ac_ext >&5
24610 ac_header_preproc
=no
24613 rm -f conftest.err conftest.
$ac_ext
24614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24615 echo "${ECHO_T}$ac_header_preproc" >&6; }
24617 # So? What about this header?
24618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24620 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24621 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24622 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24623 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24624 ac_header_preproc
=yes
24627 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24628 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24629 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24630 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24631 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24632 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24633 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24634 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24635 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24636 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24637 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24638 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24640 ## ------------------------------- ##
24641 ## Report this to www.asterisk.org ##
24642 ## ------------------------------- ##
24644 ) |
sed "s/^/$as_me: WARNING: /" >&2
24647 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24648 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 eval "$as_ac_Header=\$ac_header_preproc"
24654 ac_res
=`eval echo '${'$as_ac_Header'}'`
24655 { echo "$as_me:$LINENO: result: $ac_res" >&5
24656 echo "${ECHO_T}$ac_res" >&6; }
24659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24667 CPPFLAGS
="${saved_cppflags}"
24669 if test "xsoundcard.h" != "x" ; then
24670 if test "${ac_cv_header_soundcard_h+set}" = set; then
24671 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24672 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24673 if test "${ac_cv_header_soundcard_h+set}" = set; then
24674 echo $ECHO_N "(cached) $ECHO_C" >&6
24676 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24677 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24679 # Is the header compilable?
24680 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24681 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24682 cat >conftest.
$ac_ext <<_ACEOF
24685 cat confdefs.h
>>conftest.
$ac_ext
24686 cat >>conftest.
$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 $ac_includes_default
24689 #include <soundcard.h>
24691 rm -f conftest.
$ac_objext
24692 if { (ac_try
="$ac_compile"
24693 case "(($ac_try" in
24694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_compile") 2>conftest.er1
24700 grep -v '^ *+' conftest.er1 >conftest.err
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && {
24705 test -z "$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24707 } && test -s conftest.$ac_objext; then
24708 ac_header_compiler=yes
24710 echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 ac_header_compiler=no
24716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24718 echo "${ECHO_T}$ac_header_compiler" >&6; }
24720 # Is the header present?
24721 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24722 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 #include <soundcard.h>
24731 if { (ac_try="$ac_cpp conftest.$ac_ext"
24732 case "(($ac_try" in
24733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24734 *) ac_try_echo
=$ac_try;;
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24739 grep -v '^ *+' conftest.er1
>conftest.err
24741 cat conftest.err
>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } >/dev
/null
&& {
24744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24745 test ! -s conftest.err
24747 ac_header_preproc
=yes
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.
$ac_ext >&5
24752 ac_header_preproc
=no
24755 rm -f conftest.err conftest.
$ac_ext
24756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24757 echo "${ECHO_T}$ac_header_preproc" >&6; }
24759 # So? What about this header?
24760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24762 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24763 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24764 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24765 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24766 ac_header_preproc
=yes
24769 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24770 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24772 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24773 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24774 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24775 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24776 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24777 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24778 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24779 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24780 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24782 ## ------------------------------- ##
24783 ## Report this to www.asterisk.org ##
24784 ## ------------------------------- ##
24786 ) |
sed "s/^/$as_me: WARNING: /" >&2
24789 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24790 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24791 if test "${ac_cv_header_soundcard_h+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 ac_cv_header_soundcard_h
=$ac_header_preproc
24796 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24797 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24800 if test $ac_cv_header_soundcard_h = yes; then
24809 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24810 if test -n "${OSS_MANDATORY}" ;
24812 { echo "$as_me:$LINENO: ***" >&5
24813 echo "$as_me: ***" >&6;}
24814 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24815 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24816 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24817 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24818 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24819 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24828 cat >>confdefs.h
<<_ACEOF
24833 elif test -n "${OSS_MANDATORY}";
24835 { echo "$as_me:$LINENO: ***" >&5
24836 echo "$as_me: ***" >&6;}
24837 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24838 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24839 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24840 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24841 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24842 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24851 if test "${USE_PGSQL}" != "no"; then
24852 if test "x${PGSQL_DIR}" != "x"; then
24853 if test -n "$ac_tool_prefix"; then
24854 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24855 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24858 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24859 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24867 for as_dir
in ${PGSQL_DIR}/bin
24870 test -z "$as_dir" && as_dir
=.
24871 for ac_exec_ext
in '' $ac_executable_extensions; do
24872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24873 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24884 PG_CONFIG
=$ac_cv_path_PG_CONFIG
24885 if test -n "$PG_CONFIG"; then
24886 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24887 echo "${ECHO_T}$PG_CONFIG" >&6; }
24889 { echo "$as_me:$LINENO: result: no" >&5
24890 echo "${ECHO_T}no" >&6; }
24895 if test -z "$ac_cv_path_PG_CONFIG"; then
24896 ac_pt_PG_CONFIG
=$PG_CONFIG
24897 # Extract the first word of "pg_config", so it can be a program name with args.
24898 set dummy pg_config
; ac_word
=$2
24899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24901 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24902 echo $ECHO_N "(cached) $ECHO_C" >&6
24904 case $ac_pt_PG_CONFIG in
24906 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24910 for as_dir
in ${PGSQL_DIR}/bin
24913 test -z "$as_dir" && as_dir
=.
24914 for ac_exec_ext
in '' $ac_executable_extensions; do
24915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24916 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24927 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
24928 if test -n "$ac_pt_PG_CONFIG"; then
24929 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24930 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24932 { echo "$as_me:$LINENO: result: no" >&5
24933 echo "${ECHO_T}no" >&6; }
24936 if test "x$ac_pt_PG_CONFIG" = x
; then
24939 case $cross_compiling:$ac_tool_warned in
24941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24942 whose name does not start with the host triplet. If you think this
24943 configuration is useful to you, please write to autoconf@gnu.org." >&5
24944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24945 whose name does not start with the host triplet. If you think this
24946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24947 ac_tool_warned
=yes ;;
24949 PG_CONFIG
=$ac_pt_PG_CONFIG
24952 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
24955 if test x
"${PG_CONFIG}" = xNo
; then
24956 { echo "$as_me:$LINENO: ***" >&5
24957 echo "$as_me: ***" >&6;}
24958 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24959 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24960 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24961 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24962 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24963 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24964 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24965 echo "$as_me: *** including --without-postgres" >&6;}
24969 if test -n "$ac_tool_prefix"; then
24970 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24971 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24974 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24979 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24983 for as_dir
in $PATH
24986 test -z "$as_dir" && as_dir
=.
24987 for ac_exec_ext
in '' $ac_executable_extensions; do
24988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24989 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25000 PG_CONFIG
=$ac_cv_path_PG_CONFIG
25001 if test -n "$PG_CONFIG"; then
25002 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25003 echo "${ECHO_T}$PG_CONFIG" >&6; }
25005 { echo "$as_me:$LINENO: result: no" >&5
25006 echo "${ECHO_T}no" >&6; }
25011 if test -z "$ac_cv_path_PG_CONFIG"; then
25012 ac_pt_PG_CONFIG
=$PG_CONFIG
25013 # Extract the first word of "pg_config", so it can be a program name with args.
25014 set dummy pg_config
; ac_word
=$2
25015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25017 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25020 case $ac_pt_PG_CONFIG in
25022 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25026 for as_dir
in $PATH
25029 test -z "$as_dir" && as_dir
=.
25030 for ac_exec_ext
in '' $ac_executable_extensions; do
25031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25032 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25043 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
25044 if test -n "$ac_pt_PG_CONFIG"; then
25045 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25046 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25048 { echo "$as_me:$LINENO: result: no" >&5
25049 echo "${ECHO_T}no" >&6; }
25052 if test "x$ac_pt_PG_CONFIG" = x
; then
25055 case $cross_compiling:$ac_tool_warned in
25057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25058 whose name does not start with the host triplet. If you think this
25059 configuration is useful to you, please write to autoconf@gnu.org." >&5
25060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25061 whose name does not start with the host triplet. If you think this
25062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25063 ac_tool_warned
=yes ;;
25065 PG_CONFIG
=$ac_pt_PG_CONFIG
25068 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
25073 if test "${PG_CONFIG}" != No
; then
25074 PGSQL_libdir
=`${PG_CONFIG} --libdir`
25075 PGSQL_includedir
=`${PG_CONFIG} --includedir`
25077 if test "x$?" != "x0" ; then
25078 if test -n "${PGSQL_MANDATORY}" ; then
25079 { echo "$as_me:$LINENO: ***" >&5
25080 echo "$as_me: ***" >&6;}
25081 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25082 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25083 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25084 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25085 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25086 echo "$as_me: *** including --without-postgres" >&6;}
25090 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25091 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25092 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 ac_check_lib_save_LIBS
=$LIBS
25096 LIBS
="-lpq -L${PGSQL_libdir} -lz $LIBS"
25097 cat >conftest.
$ac_ext <<_ACEOF
25100 cat confdefs.h
>>conftest.
$ac_ext
25101 cat >>conftest.
$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25104 /* Override any GCC internal prototype to avoid an error.
25105 Use char because int might match the return type of a GCC
25106 builtin and then its argument prototype would still apply. */
25110 char PQescapeStringConn ();
25114 return PQescapeStringConn ();
25119 rm -f conftest.
$ac_objext conftest
$ac_exeext
25120 if { (ac_try
="$ac_link"
25121 case "(($ac_try" in
25122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_link") 2>conftest.er1
25128 grep -v '^ *+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest$ac_exeext &&
25136 $as_test_x conftest$ac_exeext; then
25137 ac_cv_lib_pq_PQescapeStringConn=yes
25139 echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ac_cv_lib_pq_PQescapeStringConn=no
25145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25146 conftest$ac_exeext conftest.$ac_ext
25147 LIBS=$ac_check_lib_save_LIBS
25149 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25150 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25151 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25153 cat >>confdefs.h <<_ACEOF
25154 #define HAVE_PGSQL 1
25160 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25161 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25162 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25164 elif test -n "${PGSQL_MANDATORY}";
25166 { echo "$as_me:$LINENO: ***" >&5
25167 echo "$as_me: ***" >&6;}
25168 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25169 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25170 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25171 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25172 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25173 echo "$as_me: *** including --without-postgres" >&6;}
25177 elif test -n "${PGSQL_MANDATORY}";
25179 { echo "$as_me:$LINENO: ***" >&5
25180 echo "$as_me: ***" >&6;}
25181 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25182 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25183 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25184 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25185 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25186 echo "$as_me: *** including --without-postgres" >&6;}
25191 if test "${USE_POPT}" != "no"; then
25193 if test "x${POPT_DIR}" != "x"; then
25194 if test -d ${POPT_DIR}/lib; then
25195 pbxlibdir="-L${POPT_DIR}/lib"
25197 pbxlibdir="-L${POPT_DIR}"
25200 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25201 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25202 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25203 echo $ECHO_N "(cached) $ECHO_C" >&6
25205 ac_check_lib_save_LIBS=$LIBS
25206 LIBS="-lpopt ${pbxlibdir} $LIBS"
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25214 /* Override any GCC internal prototype to avoid an error.
25215 Use char because int might match the return type of a GCC
25216 builtin and then its argument prototype would still apply. */
25220 char poptStrerror ();
25224 return poptStrerror ();
25229 rm -f conftest.$ac_objext conftest$ac_exeext
25230 if { (ac_try="$ac_link"
25231 case "(($ac_try" in
25232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25233 *) ac_try_echo
=$ac_try;;
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_link") 2>conftest.er1
25238 grep -v '^ *+' conftest.er1
>conftest.err
25240 cat conftest.err
>&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest
$ac_exeext &&
25246 $as_test_x conftest
$ac_exeext; then
25247 ac_cv_lib_popt_poptStrerror
=yes
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.
$ac_ext >&5
25252 ac_cv_lib_popt_poptStrerror
=no
25255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25256 conftest
$ac_exeext conftest.
$ac_ext
25257 LIBS
=$ac_check_lib_save_LIBS
25259 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25260 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25261 if test $ac_cv_lib_popt_poptStrerror = yes; then
25268 if test "${AST_POPT_FOUND}" = "yes"; then
25270 POPT_HEADER_FOUND
="1"
25271 if test "x${POPT_DIR}" != "x"; then
25272 POPT_LIB
="${pbxlibdir} ${POPT_LIB}"
25273 POPT_INCLUDE
="-I${POPT_DIR}/include"
25274 saved_cppflags
="${CPPFLAGS}"
25275 CPPFLAGS
="${CPPFLAGS} -I${POPT_DIR}/include"
25276 if test "xpopt.h" != "x" ; then
25277 as_ac_Header
=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25278 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25279 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25280 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25281 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 ac_res
=`eval echo '${'$as_ac_Header'}'`
25285 { echo "$as_me:$LINENO: result: $ac_res" >&5
25286 echo "${ECHO_T}$ac_res" >&6; }
25288 # Is the header compilable?
25289 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25290 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25291 cat >conftest.
$ac_ext <<_ACEOF
25294 cat confdefs.h
>>conftest.
$ac_ext
25295 cat >>conftest.
$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25297 $ac_includes_default
25298 #include <${POPT_DIR}/include/popt.h>
25300 rm -f conftest.
$ac_objext
25301 if { (ac_try
="$ac_compile"
25302 case "(($ac_try" in
25303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_compile") 2>conftest.er1
25309 grep -v '^ *+' conftest.er1 >conftest.err
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest.$ac_objext; then
25317 ac_header_compiler=yes
25319 echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25322 ac_header_compiler=no
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25327 echo "${ECHO_T}$ac_header_compiler" >&6; }
25329 # Is the header present?
25330 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25331 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25332 cat >conftest.$ac_ext <<_ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25338 #include <${POPT_DIR}/include/popt.h>
25340 if { (ac_try="$ac_cpp conftest.$ac_ext"
25341 case "(($ac_try" in
25342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25343 *) ac_try_echo
=$ac_try;;
25345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25348 grep -v '^ *+' conftest.er1
>conftest.err
25350 cat conftest.err
>&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } >/dev
/null
&& {
25353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25354 test ! -s conftest.err
25356 ac_header_preproc
=yes
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.
$ac_ext >&5
25361 ac_header_preproc
=no
25364 rm -f conftest.err conftest.
$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25366 echo "${ECHO_T}$ac_header_preproc" >&6; }
25368 # So? What about this header?
25369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25371 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25372 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25374 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25375 ac_header_preproc
=yes
25378 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25379 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25381 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25383 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25384 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25385 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25387 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25389 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25391 ## ------------------------------- ##
25392 ## Report this to www.asterisk.org ##
25393 ## ------------------------------- ##
25395 ) |
sed "s/^/$as_me: WARNING: /" >&2
25398 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25399 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25400 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 eval "$as_ac_Header=\$ac_header_preproc"
25405 ac_res
=`eval echo '${'$as_ac_Header'}'`
25406 { echo "$as_me:$LINENO: result: $ac_res" >&5
25407 echo "${ECHO_T}$ac_res" >&6; }
25410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25411 POPT_HEADER_FOUND
=1
25413 POPT_HEADER_FOUND
=0
25418 CPPFLAGS
="${saved_cppflags}"
25420 if test "xpopt.h" != "x" ; then
25421 if test "${ac_cv_header_popt_h+set}" = set; then
25422 { echo "$as_me:$LINENO: checking for popt.h" >&5
25423 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25424 if test "${ac_cv_header_popt_h+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25428 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25430 # Is the header compilable?
25431 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25432 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25433 cat >conftest.
$ac_ext <<_ACEOF
25436 cat confdefs.h
>>conftest.
$ac_ext
25437 cat >>conftest.
$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25442 rm -f conftest.
$ac_objext
25443 if { (ac_try
="$ac_compile"
25444 case "(($ac_try" in
25445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_header_compiler=yes
25461 echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_header_compiler=no
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 echo "${ECHO_T}$ac_header_compiler" >&6; }
25471 # Is the header present?
25472 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25473 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25482 if { (ac_try="$ac_cpp conftest.$ac_ext"
25483 case "(($ac_try" in
25484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25485 *) ac_try_echo
=$ac_try;;
25487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25490 grep -v '^ *+' conftest.er1
>conftest.err
25492 cat conftest.err
>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } >/dev
/null
&& {
25495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25498 ac_header_preproc
=yes
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.
$ac_ext >&5
25503 ac_header_preproc
=no
25506 rm -f conftest.err conftest.
$ac_ext
25507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 echo "${ECHO_T}$ac_header_preproc" >&6; }
25510 # So? What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25514 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25516 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25517 ac_header_preproc
=yes
25520 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25521 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25523 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25524 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25525 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25527 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25529 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25531 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25533 ## ------------------------------- ##
25534 ## Report this to www.asterisk.org ##
25535 ## ------------------------------- ##
25537 ) |
sed "s/^/$as_me: WARNING: /" >&2
25540 { echo "$as_me:$LINENO: checking for popt.h" >&5
25541 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25542 if test "${ac_cv_header_popt_h+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 ac_cv_header_popt_h
=$ac_header_preproc
25547 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25548 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25551 if test $ac_cv_header_popt_h = yes; then
25552 POPT_HEADER_FOUND
=1
25554 POPT_HEADER_FOUND
=0
25560 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25561 if test -n "${POPT_MANDATORY}" ;
25563 { echo "$as_me:$LINENO: ***" >&5
25564 echo "$as_me: ***" >&6;}
25565 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25566 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25567 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25568 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25569 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25570 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25579 cat >>confdefs.h
<<_ACEOF
25580 #define HAVE_POPT 1
25584 elif test -n "${POPT_MANDATORY}";
25586 { echo "$as_me:$LINENO: ***" >&5
25587 echo "$as_me: ***" >&6;}
25588 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25589 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25590 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25591 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25592 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25593 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25600 if test "${USE_PRI}" != "no"; then
25602 if test "x${PRI_DIR}" != "x"; then
25603 if test -d ${PRI_DIR}/lib
; then
25604 pbxlibdir
="-L${PRI_DIR}/lib"
25606 pbxlibdir
="-L${PRI_DIR}"
25609 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25610 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25611 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 ac_check_lib_save_LIBS
=$LIBS
25615 LIBS
="-lpri ${pbxlibdir} $LIBS"
25616 cat >conftest.
$ac_ext <<_ACEOF
25619 cat confdefs.h
>>conftest.
$ac_ext
25620 cat >>conftest.
$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25623 /* Override any GCC internal prototype to avoid an error.
25624 Use char because int might match the return type of a GCC
25625 builtin and then its argument prototype would still apply. */
25629 char pri_keypad_facility ();
25633 return pri_keypad_facility ();
25638 rm -f conftest.
$ac_objext conftest
$ac_exeext
25639 if { (ac_try
="$ac_link"
25640 case "(($ac_try" in
25641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_link") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest$ac_exeext &&
25655 $as_test_x conftest$ac_exeext; then
25656 ac_cv_lib_pri_pri_keypad_facility=yes
25658 echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_cv_lib_pri_pri_keypad_facility=no
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665 conftest$ac_exeext conftest.$ac_ext
25666 LIBS=$ac_check_lib_save_LIBS
25668 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25669 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25670 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25677 if test "${AST_PRI_FOUND}" = "yes"; then
25679 PRI_HEADER_FOUND="1"
25680 if test "x${PRI_DIR}" != "x"; then
25681 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25682 PRI_INCLUDE="-I${PRI_DIR}/include"
25683 saved_cppflags="${CPPFLAGS}"
25684 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25685 if test "xlibpri.h" != "x" ; then
25686 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" |
$as_tr_sh`
25687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25688 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25689 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 ac_res=`eval echo '${'$as_ac_Header'}'`
25694 { echo "$as_me:$LINENO: result: $ac_res" >&5
25695 echo "${ECHO_T}$ac_res" >&6; }
25697 # Is the header compilable?
25698 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25699 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 #include <${PRI_DIR}/include/libpri.h>
25709 rm -f conftest.$ac_objext
25710 if { (ac_try="$ac_compile"
25711 case "(($ac_try" in
25712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25713 *) ac_try_echo
=$ac_try;;
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716 (eval "$ac_compile") 2>conftest.er1
25718 grep -v '^ *+' conftest.er1
>conftest.err
25720 cat conftest.err
>&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } && {
25723 test -z "$ac_c_werror_flag" ||
25724 test ! -s conftest.err
25725 } && test -s conftest.
$ac_objext; then
25726 ac_header_compiler
=yes
25728 echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.
$ac_ext >&5
25731 ac_header_compiler
=no
25734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25736 echo "${ECHO_T}$ac_header_compiler" >&6; }
25738 # Is the header present?
25739 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25740 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25741 cat >conftest.
$ac_ext <<_ACEOF
25744 cat confdefs.h
>>conftest.
$ac_ext
25745 cat >>conftest.
$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 #include <${PRI_DIR}/include/libpri.h>
25749 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25750 case "(($ac_try" in
25751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25757 grep -v '^ *+' conftest.er1 >conftest.err
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } >/dev/null && {
25762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25763 test ! -s conftest.err
25765 ac_header_preproc=yes
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_header_preproc=no
25773 rm -f conftest.err conftest.$ac_ext
25774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25775 echo "${ECHO_T}$ac_header_preproc" >&6; }
25777 # So? What about this header?
25778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25780 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25781 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25782 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25783 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25784 ac_header_preproc=yes
25787 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25788 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25790 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25792 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25794 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25795 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25796 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25798 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25800 ## ------------------------------- ##
25801 ## Report this to www.asterisk.org ##
25802 ## ------------------------------- ##
25804 ) | sed "s/^/$as_me: WARNING: /" >&2
25807 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25808 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25810 echo $ECHO_N "(cached) $ECHO_C" >&6
25812 eval "$as_ac_Header=\$ac_header_preproc"
25814 ac_res=`eval echo '${'$as_ac_Header'}'`
25815 { echo "$as_me:$LINENO: result: $ac_res" >&5
25816 echo "${ECHO_T}$ac_res" >&6; }
25819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25827 CPPFLAGS="${saved_cppflags}"
25829 if test "xlibpri.h" != "x" ; then
25830 if test "${ac_cv_header_libpri_h+set}" = set; then
25831 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25832 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25833 if test "${ac_cv_header_libpri_h+set}" = set; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25837 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25839 # Is the header compilable?
25840 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25841 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25842 cat >conftest.$ac_ext <<_ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 $ac_includes_default
25849 #include <libpri.h>
25851 rm -f conftest.$ac_objext
25852 if { (ac_try="$ac_compile"
25853 case "(($ac_try" in
25854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25855 *) ac_try_echo
=$ac_try;;
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_compile") 2>conftest.er1
25860 grep -v '^ *+' conftest.er1
>conftest.err
25862 cat conftest.err
>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } && {
25865 test -z "$ac_c_werror_flag" ||
25866 test ! -s conftest.err
25867 } && test -s conftest.
$ac_objext; then
25868 ac_header_compiler
=yes
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.
$ac_ext >&5
25873 ac_header_compiler
=no
25876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25878 echo "${ECHO_T}$ac_header_compiler" >&6; }
25880 # Is the header present?
25881 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25882 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25883 cat >conftest.
$ac_ext <<_ACEOF
25886 cat confdefs.h
>>conftest.
$ac_ext
25887 cat >>conftest.
$ac_ext <<_ACEOF
25888 /* end confdefs.h. */
25889 #include <libpri.h>
25891 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25892 case "(($ac_try" in
25893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25894 *) ac_try_echo=$ac_try;;
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } >/dev/null && {
25904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25905 test ! -s conftest.err
25907 ac_header_preproc=yes
25909 echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.$ac_ext >&5
25912 ac_header_preproc=no
25915 rm -f conftest.err conftest.$ac_ext
25916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25917 echo "${ECHO_T}$ac_header_preproc" >&6; }
25919 # So? What about this header?
25920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25922 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25923 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25924 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25925 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25926 ac_header_preproc=yes
25929 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25930 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25931 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25932 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25933 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25934 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25936 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25937 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25938 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25940 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25942 ## ------------------------------- ##
25943 ## Report this to www.asterisk.org ##
25944 ## ------------------------------- ##
25946 ) | sed "s/^/$as_me: WARNING: /" >&2
25949 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25950 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25951 if test "${ac_cv_header_libpri_h+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 ac_cv_header_libpri_h=$ac_header_preproc
25956 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25957 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25960 if test $ac_cv_header_libpri_h = yes; then
25969 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25970 if test -n "${PRI_MANDATORY}" ;
25972 { echo "$as_me:$LINENO: ***" >&5
25973 echo "$as_me: ***" >&6;}
25974 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25975 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25976 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25977 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25978 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25979 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25988 cat >>confdefs.h <<_ACEOF
25993 elif test -n "${PRI_MANDATORY}";
25995 { echo "$as_me:$LINENO: ***" >&5
25996 echo "$as_me: ***" >&6;}
25997 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25998 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25999 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26000 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26002 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26009 if test "${USE_PRI_VERSION}" != "no"; then
26011 if test "x${PRI_VERSION_DIR}" != "x"; then
26012 if test -d ${PRI_VERSION_DIR}/lib; then
26013 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
26015 pbxlibdir="-L${PRI_VERSION_DIR}"
26018 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
26019 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
26020 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26023 ac_check_lib_save_LIBS=$LIBS
26024 LIBS="-lpri ${pbxlibdir} $LIBS"
26025 cat >conftest.$ac_ext <<_ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26032 /* Override any GCC internal prototype to avoid an error.
26033 Use char because int might match the return type of a GCC
26034 builtin and then its argument prototype would still apply. */
26038 char pri_get_version ();
26042 return pri_get_version ();
26047 rm -f conftest.$ac_objext conftest$ac_exeext
26048 if { (ac_try="$ac_link"
26049 case "(($ac_try" in
26050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26051 *) ac_try_echo
=$ac_try;;
26053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26054 (eval "$ac_link") 2>conftest.er1
26056 grep -v '^ *+' conftest.er1
>conftest.err
26058 cat conftest.err
>&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } && {
26061 test -z "$ac_c_werror_flag" ||
26062 test ! -s conftest.err
26063 } && test -s conftest
$ac_exeext &&
26064 $as_test_x conftest
$ac_exeext; then
26065 ac_cv_lib_pri_pri_get_version
=yes
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.
$ac_ext >&5
26070 ac_cv_lib_pri_pri_get_version
=no
26073 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26074 conftest
$ac_exeext conftest.
$ac_ext
26075 LIBS
=$ac_check_lib_save_LIBS
26077 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
26078 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
26079 if test $ac_cv_lib_pri_pri_get_version = yes; then
26080 AST_PRI_VERSION_FOUND
=yes
26082 AST_PRI_VERSION_FOUND
=no
26086 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
26087 PRI_VERSION_LIB
="-lpri "
26088 PRI_VERSION_HEADER_FOUND
="1"
26089 if test "x${PRI_VERSION_DIR}" != "x"; then
26090 PRI_VERSION_LIB
="${pbxlibdir} ${PRI_VERSION_LIB}"
26091 PRI_VERSION_INCLUDE
="-I${PRI_VERSION_DIR}/include"
26092 saved_cppflags
="${CPPFLAGS}"
26093 CPPFLAGS
="${CPPFLAGS} -I${PRI_VERSION_DIR}/include"
26094 if test "xlibpri.h" != "x" ; then
26095 as_ac_Header
=`echo "ac_cv_header_${PRI_VERSION_DIR}/include/libpri.h" | $as_tr_sh`
26096 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26097 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26098 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26099 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 ac_res
=`eval echo '${'$as_ac_Header'}'`
26103 { echo "$as_me:$LINENO: result: $ac_res" >&5
26104 echo "${ECHO_T}$ac_res" >&6; }
26106 # Is the header compilable?
26107 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h usability" >&5
26108 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
26109 cat >conftest.
$ac_ext <<_ACEOF
26112 cat confdefs.h
>>conftest.
$ac_ext
26113 cat >>conftest.
$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 $ac_includes_default
26116 #include <${PRI_VERSION_DIR}/include/libpri.h>
26118 rm -f conftest.
$ac_objext
26119 if { (ac_try
="$ac_compile"
26120 case "(($ac_try" in
26121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125 (eval "$ac_compile") 2>conftest.er1
26127 grep -v '^ *+' conftest.er1 >conftest.err
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } && {
26132 test -z "$ac_c_werror_flag" ||
26133 test ! -s conftest.err
26134 } && test -s conftest.$ac_objext; then
26135 ac_header_compiler=yes
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_header_compiler=no
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26145 echo "${ECHO_T}$ac_header_compiler" >&6; }
26147 # Is the header present?
26148 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h presence" >&5
26149 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
26150 cat >conftest.$ac_ext <<_ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 #include <${PRI_VERSION_DIR}/include/libpri.h>
26158 if { (ac_try="$ac_cpp conftest.$ac_ext"
26159 case "(($ac_try" in
26160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26161 *) ac_try_echo
=$ac_try;;
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26166 grep -v '^ *+' conftest.er1
>conftest.err
26168 cat conftest.err
>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } >/dev
/null
&& {
26171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26172 test ! -s conftest.err
26174 ac_header_preproc
=yes
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.
$ac_ext >&5
26179 ac_header_preproc
=no
26182 rm -f conftest.err conftest.
$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26184 echo "${ECHO_T}$ac_header_preproc" >&6; }
26186 # So? What about this header?
26187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26189 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26190 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26191 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
26192 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
26193 ac_header_preproc
=yes
26196 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&5
26197 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
26198 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
26199 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&5
26201 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26203 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26204 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
26205 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
26207 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
26209 ## ------------------------------- ##
26210 ## Report this to www.asterisk.org ##
26211 ## ------------------------------- ##
26213 ) |
sed "s/^/$as_me: WARNING: /" >&2
26216 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26217 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26218 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 eval "$as_ac_Header=\$ac_header_preproc"
26223 ac_res
=`eval echo '${'$as_ac_Header'}'`
26224 { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229 PRI_VERSION_HEADER_FOUND
=1
26231 PRI_VERSION_HEADER_FOUND
=0
26236 CPPFLAGS
="${saved_cppflags}"
26238 if test "xlibpri.h" != "x" ; then
26239 if test "${ac_cv_header_libpri_h+set}" = set; then
26240 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26241 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26242 if test "${ac_cv_header_libpri_h+set}" = set; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26246 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26248 # Is the header compilable?
26249 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26250 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26251 cat >conftest.
$ac_ext <<_ACEOF
26254 cat confdefs.h
>>conftest.
$ac_ext
26255 cat >>conftest.
$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 $ac_includes_default
26258 #include <libpri.h>
26260 rm -f conftest.
$ac_objext
26261 if { (ac_try
="$ac_compile"
26262 case "(($ac_try" in
26263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26264 *) ac_try_echo=$ac_try;;
26266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26267 (eval "$ac_compile") 2>conftest.er1
26269 grep -v '^ *+' conftest.er1 >conftest.err
26271 cat conftest.err >&5
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); } && {
26274 test -z "$ac_c_werror_flag" ||
26275 test ! -s conftest.err
26276 } && test -s conftest.$ac_objext; then
26277 ac_header_compiler=yes
26279 echo "$as_me: failed program was:" >&5
26280 sed 's/^/| /' conftest.$ac_ext >&5
26282 ac_header_compiler=no
26285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26287 echo "${ECHO_T}$ac_header_compiler" >&6; }
26289 # Is the header present?
26290 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26291 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26292 cat >conftest.$ac_ext <<_ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26298 #include <libpri.h>
26300 if { (ac_try="$ac_cpp conftest.$ac_ext"
26301 case "(($ac_try" in
26302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26303 *) ac_try_echo
=$ac_try;;
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26308 grep -v '^ *+' conftest.er1
>conftest.err
26310 cat conftest.err
>&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } >/dev
/null
&& {
26313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26314 test ! -s conftest.err
26316 ac_header_preproc
=yes
26318 echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.
$ac_ext >&5
26321 ac_header_preproc
=no
26324 rm -f conftest.err conftest.
$ac_ext
26325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26326 echo "${ECHO_T}$ac_header_preproc" >&6; }
26328 # So? What about this header?
26329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26331 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26332 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26333 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26334 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26335 ac_header_preproc
=yes
26338 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26339 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26340 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26341 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26342 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26343 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26345 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26347 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26349 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26351 ## ------------------------------- ##
26352 ## Report this to www.asterisk.org ##
26353 ## ------------------------------- ##
26355 ) |
sed "s/^/$as_me: WARNING: /" >&2
26358 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26359 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26360 if test "${ac_cv_header_libpri_h+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 ac_cv_header_libpri_h
=$ac_header_preproc
26365 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26366 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26369 if test $ac_cv_header_libpri_h = yes; then
26370 PRI_VERSION_HEADER_FOUND
=1
26372 PRI_VERSION_HEADER_FOUND
=0
26378 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
26379 if test -n "${PRI_VERSION_MANDATORY}" ;
26381 { echo "$as_me:$LINENO: ***" >&5
26382 echo "$as_me: ***" >&6;}
26383 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26384 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26385 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
26386 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
26387 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26388 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26392 PRI_VERSION_INCLUDE
=""
26397 cat >>confdefs.h
<<_ACEOF
26398 #define HAVE_PRI_VERSION 1
26402 elif test -n "${PRI_VERSION_MANDATORY}";
26404 { echo "$as_me:$LINENO: ***" >&5
26405 echo "$as_me: ***" >&6;}
26406 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
26407 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
26408 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26409 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26410 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26411 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26417 if test "${USE_PWLIB}" != "no"; then
26418 if test -n "${PWLIB_DIR}"; then
26419 PWLIBDIR
="${PWLIB_DIR}"
26426 ac_cpp
='$CXXCPP $CPPFLAGS'
26427 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26428 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26429 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
26431 if test "${PWLIBDIR:-unset}" != "unset" ; then
26432 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
26433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26434 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26435 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 ac_res
=`eval echo '${'$as_ac_Header'}'`
26440 { echo "$as_me:$LINENO: result: $ac_res" >&5
26441 echo "${ECHO_T}$ac_res" >&6; }
26443 # Is the header compilable?
26444 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26445 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26446 cat >conftest.
$ac_ext <<_ACEOF
26449 cat confdefs.h
>>conftest.
$ac_ext
26450 cat >>conftest.
$ac_ext <<_ACEOF
26451 /* end confdefs.h. */
26452 $ac_includes_default
26453 #include <${PWLIBDIR}/version.h>
26455 rm -f conftest.
$ac_objext
26456 if { (ac_try
="$ac_compile"
26457 case "(($ac_try" in
26458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26459 *) ac_try_echo=$ac_try;;
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462 (eval "$ac_compile") 2>conftest.er1
26464 grep -v '^ *+' conftest.er1 >conftest.err
26466 cat conftest.err >&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } && {
26469 test -z "$ac_cxx_werror_flag" ||
26470 test ! -s conftest.err
26471 } && test -s conftest.$ac_objext; then
26472 ac_header_compiler=yes
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26477 ac_header_compiler=no
26480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26482 echo "${ECHO_T}$ac_header_compiler" >&6; }
26484 # Is the header present?
26485 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26486 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26487 cat >conftest.$ac_ext <<_ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h. */
26493 #include <${PWLIBDIR}/version.h>
26495 if { (ac_try="$ac_cpp conftest.$ac_ext"
26496 case "(($ac_try" in
26497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26498 *) ac_try_echo
=$ac_try;;
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26503 grep -v '^ *+' conftest.er1
>conftest.err
26505 cat conftest.err
>&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } >/dev
/null
&& {
26508 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26509 test ! -s conftest.err
26511 ac_header_preproc
=yes
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.
$ac_ext >&5
26516 ac_header_preproc
=no
26519 rm -f conftest.err conftest.
$ac_ext
26520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26521 echo "${ECHO_T}$ac_header_preproc" >&6; }
26523 # So? What about this header?
26524 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26526 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26527 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26529 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26530 ac_header_preproc
=yes
26533 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26534 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26536 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26537 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26538 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26540 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26542 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26544 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26546 ## ------------------------------- ##
26547 ## Report this to www.asterisk.org ##
26548 ## ------------------------------- ##
26550 ) |
sed "s/^/$as_me: WARNING: /" >&2
26553 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26554 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26555 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 eval "$as_ac_Header=\$ac_header_preproc"
26560 ac_res
=`eval echo '${'$as_ac_Header'}'`
26561 { echo "$as_me:$LINENO: result: $ac_res" >&5
26562 echo "${ECHO_T}$ac_res" >&6; }
26565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26571 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26572 if test "${OPENH323DIR:-unset}" != "unset"; then
26573 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26574 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26575 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26576 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26577 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26578 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 ac_res
=`eval echo '${'$as_ac_Header'}'`
26581 { echo "$as_me:$LINENO: result: $ac_res" >&5
26582 echo "${ECHO_T}$ac_res" >&6; }
26584 # Is the header compilable?
26585 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26586 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26587 cat >conftest.
$ac_ext <<_ACEOF
26590 cat confdefs.h
>>conftest.
$ac_ext
26591 cat >>conftest.
$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26593 $ac_includes_default
26594 #include <${OPENH323DIR}/../pwlib/version.h>
26596 rm -f conftest.
$ac_objext
26597 if { (ac_try
="$ac_compile"
26598 case "(($ac_try" in
26599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_compile") 2>conftest.er1
26605 grep -v '^ *+' conftest.er1 >conftest.err
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } && {
26610 test -z "$ac_cxx_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest.$ac_objext; then
26613 ac_header_compiler=yes
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ac_header_compiler=no
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6; }
26625 # Is the header present?
26626 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26627 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 #include <${OPENH323DIR}/../pwlib/version.h>
26636 if { (ac_try="$ac_cpp conftest.$ac_ext"
26637 case "(($ac_try" in
26638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26639 *) ac_try_echo
=$ac_try;;
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26644 grep -v '^ *+' conftest.er1
>conftest.err
26646 cat conftest.err
>&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } >/dev
/null
&& {
26649 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26650 test ! -s conftest.err
26652 ac_header_preproc
=yes
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.
$ac_ext >&5
26657 ac_header_preproc
=no
26660 rm -f conftest.err conftest.
$ac_ext
26661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26662 echo "${ECHO_T}$ac_header_preproc" >&6; }
26664 # So? What about this header?
26665 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26667 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26668 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26669 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26670 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26671 ac_header_preproc
=yes
26674 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26675 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26677 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26679 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26681 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26683 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26685 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26687 ## ------------------------------- ##
26688 ## Report this to www.asterisk.org ##
26689 ## ------------------------------- ##
26691 ) |
sed "s/^/$as_me: WARNING: /" >&2
26694 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26695 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26696 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26697 echo $ECHO_N "(cached) $ECHO_C" >&6
26699 eval "$as_ac_Header=\$ac_header_preproc"
26701 ac_res
=`eval echo '${'$as_ac_Header'}'`
26702 { echo "$as_me:$LINENO: result: $ac_res" >&5
26703 echo "${ECHO_T}$ac_res" >&6; }
26706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26712 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26713 PWLIBDIR
="${OPENH323DIR}/../pwlib"
26715 as_ac_Header
=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26716 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26717 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26718 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26719 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26720 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 ac_res
=`eval echo '${'$as_ac_Header'}'`
26723 { echo "$as_me:$LINENO: result: $ac_res" >&5
26724 echo "${ECHO_T}$ac_res" >&6; }
26726 # Is the header compilable?
26727 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26728 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26729 cat >conftest.
$ac_ext <<_ACEOF
26732 cat confdefs.h
>>conftest.
$ac_ext
26733 cat >>conftest.
$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26736 #include <${HOME}/pwlib/include/ptlib.h>
26738 rm -f conftest.
$ac_objext
26739 if { (ac_try
="$ac_compile"
26740 case "(($ac_try" in
26741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_compile") 2>conftest.er1
26747 grep -v '^ *+' conftest.er1 >conftest.err
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } && {
26752 test -z "$ac_cxx_werror_flag" ||
26753 test ! -s conftest.err
26754 } && test -s conftest.$ac_objext; then
26755 ac_header_compiler=yes
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 ac_header_compiler=no
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26765 echo "${ECHO_T}$ac_header_compiler" >&6; }
26767 # Is the header present?
26768 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26769 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26770 cat >conftest.$ac_ext <<_ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h. */
26776 #include <${HOME}/pwlib/include/ptlib.h>
26778 if { (ac_try="$ac_cpp conftest.$ac_ext"
26779 case "(($ac_try" in
26780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26781 *) ac_try_echo
=$ac_try;;
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26786 grep -v '^ *+' conftest.er1
>conftest.err
26788 cat conftest.err
>&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } >/dev
/null
&& {
26791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26792 test ! -s conftest.err
26794 ac_header_preproc
=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.
$ac_ext >&5
26799 ac_header_preproc
=no
26802 rm -f conftest.err conftest.
$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26804 echo "${ECHO_T}$ac_header_preproc" >&6; }
26806 # So? What about this header?
26807 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26809 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26810 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26811 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26812 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26813 ac_header_preproc
=yes
26816 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26817 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26818 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26819 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26820 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26821 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26823 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26825 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26826 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26827 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26829 ## ------------------------------- ##
26830 ## Report this to www.asterisk.org ##
26831 ## ------------------------------- ##
26833 ) |
sed "s/^/$as_me: WARNING: /" >&2
26836 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26837 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26838 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 eval "$as_ac_Header=\$ac_header_preproc"
26843 ac_res
=`eval echo '${'$as_ac_Header'}'`
26844 { echo "$as_me:$LINENO: result: $ac_res" >&5
26845 echo "${ECHO_T}$ac_res" >&6; }
26848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26853 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26854 PWLIBDIR
="${HOME}/pwlib"
26856 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26857 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26858 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26859 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26862 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26863 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26865 # Is the header compilable?
26866 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26867 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26868 cat >conftest.
$ac_ext <<_ACEOF
26871 cat confdefs.h
>>conftest.
$ac_ext
26872 cat >>conftest.
$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26874 $ac_includes_default
26875 #include </usr/local/include/ptlib.h>
26877 rm -f conftest.
$ac_objext
26878 if { (ac_try
="$ac_compile"
26879 case "(($ac_try" in
26880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26881 *) ac_try_echo=$ac_try;;
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884 (eval "$ac_compile") 2>conftest.er1
26886 grep -v '^ *+' conftest.er1 >conftest.err
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } && {
26891 test -z "$ac_cxx_werror_flag" ||
26892 test ! -s conftest.err
26893 } && test -s conftest.$ac_objext; then
26894 ac_header_compiler=yes
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 ac_header_compiler=no
26902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26904 echo "${ECHO_T}$ac_header_compiler" >&6; }
26906 # Is the header present?
26907 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26908 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26909 cat >conftest.$ac_ext <<_ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 #include </usr/local/include/ptlib.h>
26917 if { (ac_try="$ac_cpp conftest.$ac_ext"
26918 case "(($ac_try" in
26919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26920 *) ac_try_echo
=$ac_try;;
26922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26925 grep -v '^ *+' conftest.er1
>conftest.err
26927 cat conftest.err
>&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } >/dev
/null
&& {
26930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26931 test ! -s conftest.err
26933 ac_header_preproc
=yes
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.
$ac_ext >&5
26938 ac_header_preproc
=no
26941 rm -f conftest.err conftest.
$ac_ext
26942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26943 echo "${ECHO_T}$ac_header_preproc" >&6; }
26945 # So? What about this header?
26946 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26948 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26949 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26951 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26952 ac_header_preproc
=yes
26955 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26956 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26958 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26960 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26962 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26964 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26966 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26968 ## ------------------------------- ##
26969 ## Report this to www.asterisk.org ##
26970 ## ------------------------------- ##
26972 ) |
sed "s/^/$as_me: WARNING: /" >&2
26975 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26976 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26977 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26980 ac_cv_header__usr_local_include_ptlib_h
=$ac_header_preproc
26982 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26983 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26986 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26991 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26992 # Extract the first word of "ptlib-config", so it can be a program name with args.
26993 set dummy ptlib-config
; ac_word
=$2
26994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26996 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26999 case $PTLIB_CONFIG in
27001 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27005 for as_dir
in /usr
/local
/bin
27008 test -z "$as_dir" && as_dir
=.
27009 for ac_exec_ext
in '' $ac_executable_extensions; do
27010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27011 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27022 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27023 if test -n "$PTLIB_CONFIG"; then
27024 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27025 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27027 { echo "$as_me:$LINENO: result: no" >&5
27028 echo "${ECHO_T}no" >&6; }
27032 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
27033 # Extract the first word of "ptlib-config", so it can be a program name with args.
27034 set dummy ptlib-config
; ac_word
=$2
27035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27037 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 case $PTLIB_CONFIG in
27042 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27046 for as_dir
in /usr
/local
/share
/pwlib
/make
27049 test -z "$as_dir" && as_dir
=.
27050 for ac_exec_ext
in '' $ac_executable_extensions; do
27051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27052 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27063 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27064 if test -n "$PTLIB_CONFIG"; then
27065 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27066 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27068 { echo "$as_me:$LINENO: result: no" >&5
27069 echo "${ECHO_T}no" >&6; }
27074 PWLIB_INCDIR
="/usr/local/include"
27075 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
27076 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27077 if test "x$LIB64" != "x"; then
27078 PWLIB_LIBDIR
="/usr/local/lib64"
27080 PWLIB_LIBDIR
="/usr/local/lib"
27083 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
27084 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27086 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27087 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27088 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27089 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27092 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27093 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27095 # Is the header compilable?
27096 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
27097 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
27098 cat >conftest.
$ac_ext <<_ACEOF
27101 cat confdefs.h
>>conftest.
$ac_ext
27102 cat >>conftest.
$ac_ext <<_ACEOF
27103 /* end confdefs.h. */
27104 $ac_includes_default
27105 #include </usr/include/ptlib.h>
27107 rm -f conftest.
$ac_objext
27108 if { (ac_try
="$ac_compile"
27109 case "(($ac_try" in
27110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_compile") 2>conftest.er1
27116 grep -v '^ *+' conftest.er1 >conftest.err
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } && {
27121 test -z "$ac_cxx_werror_flag" ||
27122 test ! -s conftest.err
27123 } && test -s conftest.$ac_objext; then
27124 ac_header_compiler=yes
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 ac_header_compiler=no
27132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27134 echo "${ECHO_T}$ac_header_compiler" >&6; }
27136 # Is the header present?
27137 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
27138 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27145 #include </usr/include/ptlib.h>
27147 if { (ac_try="$ac_cpp conftest.$ac_ext"
27148 case "(($ac_try" in
27149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27150 *) ac_try_echo
=$ac_try;;
27152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27155 grep -v '^ *+' conftest.er1
>conftest.err
27157 cat conftest.err
>&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } >/dev
/null
&& {
27160 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27161 test ! -s conftest.err
27163 ac_header_preproc
=yes
27165 echo "$as_me: failed program was:" >&5
27166 sed 's/^/| /' conftest.
$ac_ext >&5
27168 ac_header_preproc
=no
27171 rm -f conftest.err conftest.
$ac_ext
27172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27173 echo "${ECHO_T}$ac_header_preproc" >&6; }
27175 # So? What about this header?
27176 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27178 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27179 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
27181 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
27182 ac_header_preproc
=yes
27185 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
27186 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
27187 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
27188 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27189 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
27190 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
27191 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27192 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27193 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
27194 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27195 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
27196 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27198 ## ------------------------------- ##
27199 ## Report this to www.asterisk.org ##
27200 ## ------------------------------- ##
27202 ) |
sed "s/^/$as_me: WARNING: /" >&2
27205 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27206 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27207 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27210 ac_cv_header__usr_include_ptlib_h
=$ac_header_preproc
27212 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27213 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27216 if test $ac_cv_header__usr_include_ptlib_h = yes; then
27221 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27222 # Extract the first word of "ptlib-config", so it can be a program name with args.
27223 set dummy ptlib-config
; ac_word
=$2
27224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27226 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27229 case $PTLIB_CONFIG in
27231 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27235 for as_dir
in /usr
/share
/pwlib
/make
27238 test -z "$as_dir" && as_dir
=.
27239 for ac_exec_ext
in '' $ac_executable_extensions; do
27240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27241 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27252 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27253 if test -n "$PTLIB_CONFIG"; then
27254 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27255 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27257 { echo "$as_me:$LINENO: result: no" >&5
27258 echo "${ECHO_T}no" >&6; }
27262 PWLIB_INCDIR
="/usr/include"
27263 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
27264 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27265 if test "x$LIB64" != "x"; then
27266 PWLIB_LIBDIR
="/usr/lib64"
27268 PWLIB_LIBDIR
="/usr/lib"
27271 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
27272 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27279 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
27280 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
27284 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27285 if test "${PWLIBDIR:-unset}" = "unset" ; then
27286 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
27287 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
27289 echo "Cannot find ptlib-config - please install and try again"
27294 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
27295 PWLIBDIR
="/usr/share/pwlib"
27296 PWLIB_INCDIR
="/usr/include"
27297 if test "x$LIB64" != "x"; then
27298 PWLIB_LIBDIR
="/usr/lib64"
27300 PWLIB_LIBDIR
="/usr/lib"
27303 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
27304 PWLIBDIR
="/usr/local/share/pwlib"
27305 PWLIB_INCDIR
="/usr/local/include"
27306 if test "x$LIB64" != "x"; then
27307 PWLIB_LIBDIR
="/usr/local/lib64"
27309 PWLIB_LIBDIR
="/usr/local/lib"
27313 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
27314 PWLIB_INCDIR
="${PWLIBDIR}/include"
27316 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27317 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
27325 ac_cpp
='$CPP $CPPFLAGS'
27326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27332 if test "${HAS_PWLIB:-unset}" != "unset"; then
27333 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27334 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
27335 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
27336 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
27337 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
27338 let PWLIB_REQ
=1*10000+9*100+2
27340 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
27341 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27342 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
27343 { echo "$as_me:$LINENO: result: no" >&5
27344 echo "${ECHO_T}no" >&6; }
27347 { echo "$as_me:$LINENO: result: yes" >&5
27348 echo "${ECHO_T}yes" >&6; }
27353 if test "${HAS_PWLIB:-unset}" != "unset"; then
27357 linux
*) PWLIB_OSTYPE
=linux
;
27359 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
27361 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
27362 ENDLDLIBS
="-lossaudio" ;
27364 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
27365 ENDLDLIBS
="-lossaudio" ;
27367 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
27369 darwin
* ) PWLIB_OSTYPE
=Darwin
;
27371 beos
*) PWLIB_OSTYPE
=beos
;
27372 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
27374 cygwin
*) PWLIB_OSTYPE
=cygwin
;
27376 mingw
*) PWLIB_OSTYPE
=mingw
;
27377 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
27378 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
27380 * ) PWLIB_OSTYPE
="$host_os" ;
27381 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
27382 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
27387 case "$host_cpu" in
27388 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
27391 x86_64
) PWLIB_MACHTYPE
=x86_64
;
27396 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
27400 sparc
) PWLIB_MACHTYPE
=sparc
;
27403 powerpc
) PWLIB_MACHTYPE
=ppc
;
27406 ppc
) PWLIB_MACHTYPE
=ppc
;
27409 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
27414 ppc64
) PWLIB_MACHTYPE
=ppc64
;
27419 ia64
) PWLIB_MACHTYPE
=ia64
;
27423 s390x
) PWLIB_MACHTYPE
=s390x
;
27428 s390
) PWLIB_MACHTYPE
=s390
;
27431 * ) PWLIB_MACHTYPE
="$host_cpu";
27432 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
27433 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27436 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27441 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
27444 if test "${HAS_PWLIB:-unset}" != "unset"; then
27445 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27446 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27448 saved_cppflags
="${CPPFLAGS}"
27449 saved_libs
="${LIBS}"
27450 if test "${PWLIB_LIB:-unset}" != "unset"; then
27451 LIBS
="${LIBS} ${PWLIB_LIB} "
27453 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27455 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
27458 ac_cpp
='$CXXCPP $CPPFLAGS'
27459 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27460 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27461 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
27464 cat >conftest.
$ac_ext <<_ACEOF
27467 cat confdefs.h
>>conftest.
$ac_ext
27468 cat >>conftest.
$ac_ext <<_ACEOF
27469 /* end confdefs.h. */
27474 BOOL q = PTime::IsDaylightSavings();
27479 rm -f conftest.
$ac_objext conftest
$ac_exeext
27480 if { (ac_try
="$ac_link"
27481 case "(($ac_try" in
27482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_link") 2>conftest.er1
27488 grep -v '^ *+' conftest.er1 >conftest.err
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } && {
27493 test -z "$ac_cxx_werror_flag" ||
27494 test ! -s conftest.err
27495 } && test -s conftest$ac_exeext &&
27496 $as_test_x conftest$ac_exeext; then
27497 { echo "$as_me:$LINENO: result: yes" >&5
27498 echo "${ECHO_T}yes" >&6; }
27499 ac_cv_lib_PWLIB="yes"
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 { echo "$as_me:$LINENO: result: no" >&5
27506 echo "${ECHO_T}no" >&6; }
27507 ac_cv_lib_PWLIB="no"
27512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27513 conftest$ac_exeext conftest.$ac_ext
27516 ac_cpp='$CPP $CPPFLAGS'
27517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27522 LIBS="${saved_libs}"
27523 CPPFLAGS="${saved_cppflags}"
27525 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27526 if test "${PWLIB_LIB:-undef}" = "undef"; then
27527 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27528 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27530 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27533 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27534 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27538 cat >>confdefs.h <<\_ACEOF
27539 #define HAVE_PWLIB 1
27548 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27549 { echo "$as_me:$LINENO: ***" >&5
27550 echo "$as_me: ***" >&6;}
27551 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27552 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27553 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27554 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27555 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27556 echo "$as_me: *** including --without-pwlib" >&6;}
27560 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27561 if test -n "${OPENH323_DIR}"; then
27562 OPENH323DIR="${OPENH323_DIR}"
27568 ac_cpp='$CXXCPP $CPPFLAGS'
27569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27573 if test "${OPENH323DIR:-unset}" != "unset" ; then
27574 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" |
$as_tr_sh`
27575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27576 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27577 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27579 echo $ECHO_N "(cached) $ECHO_C" >&6
27581 ac_res=`eval echo '${'$as_ac_Header'}'`
27582 { echo "$as_me:$LINENO: result: $ac_res" >&5
27583 echo "${ECHO_T}$ac_res" >&6; }
27585 # Is the header compilable?
27586 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27587 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27588 cat >conftest.$ac_ext <<_ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27594 $ac_includes_default
27595 #include <${OPENH323DIR}/version.h>
27597 rm -f conftest.$ac_objext
27598 if { (ac_try="$ac_compile"
27599 case "(($ac_try" in
27600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27601 *) ac_try_echo
=$ac_try;;
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_compile") 2>conftest.er1
27606 grep -v '^ *+' conftest.er1
>conftest.err
27608 cat conftest.err
>&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } && {
27611 test -z "$ac_cxx_werror_flag" ||
27612 test ! -s conftest.err
27613 } && test -s conftest.
$ac_objext; then
27614 ac_header_compiler
=yes
27616 echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.
$ac_ext >&5
27619 ac_header_compiler
=no
27622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27624 echo "${ECHO_T}$ac_header_compiler" >&6; }
27626 # Is the header present?
27627 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27628 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27629 cat >conftest.
$ac_ext <<_ACEOF
27632 cat confdefs.h
>>conftest.
$ac_ext
27633 cat >>conftest.
$ac_ext <<_ACEOF
27634 /* end confdefs.h. */
27635 #include <${OPENH323DIR}/version.h>
27637 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27638 case "(($ac_try" in
27639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27645 grep -v '^ *+' conftest.er1 >conftest.err
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } >/dev/null && {
27650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27651 test ! -s conftest.err
27653 ac_header_preproc=yes
27655 echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27658 ac_header_preproc=no
27661 rm -f conftest.err conftest.$ac_ext
27662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27663 echo "${ECHO_T}$ac_header_preproc" >&6; }
27665 # So? What about this header?
27666 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27668 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27669 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27671 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27672 ac_header_preproc=yes
27675 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27676 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27677 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27678 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27679 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27680 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27681 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27682 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27683 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27684 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27685 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27686 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27688 ## ------------------------------- ##
27689 ## Report this to www.asterisk.org ##
27690 ## ------------------------------- ##
27692 ) | sed "s/^/$as_me: WARNING: /" >&2
27695 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27696 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27700 eval "$as_ac_Header=\$ac_header_preproc"
27702 ac_res=`eval echo '${'$as_ac_Header'}'`
27703 { echo "$as_me:$LINENO: result: $ac_res" >&5
27704 echo "${ECHO_T}$ac_res" >&6; }
27707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27713 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27714 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
27715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27716 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27717 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 ac_res=`eval echo '${'$as_ac_Header'}'`
27722 { echo "$as_me:$LINENO: result: $ac_res" >&5
27723 echo "${ECHO_T}$ac_res" >&6; }
27725 # Is the header compilable?
27726 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27727 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27728 cat >conftest.$ac_ext <<_ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 $ac_includes_default
27735 #include <${PWLIBDIR}/../openh323/version.h>
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27741 *) ac_try_echo
=$ac_try;;
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_compile") 2>conftest.er1
27746 grep -v '^ *+' conftest.er1
>conftest.err
27748 cat conftest.err
>&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } && {
27751 test -z "$ac_cxx_werror_flag" ||
27752 test ! -s conftest.err
27753 } && test -s conftest.
$ac_objext; then
27754 ac_header_compiler
=yes
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.
$ac_ext >&5
27759 ac_header_compiler
=no
27762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27764 echo "${ECHO_T}$ac_header_compiler" >&6; }
27766 # Is the header present?
27767 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27768 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27769 cat >conftest.
$ac_ext <<_ACEOF
27772 cat confdefs.h
>>conftest.
$ac_ext
27773 cat >>conftest.
$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <${PWLIBDIR}/../openh323/version.h>
27777 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27778 case "(($ac_try" in
27779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27785 grep -v '^ *+' conftest.er1 >conftest.err
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } >/dev/null && {
27790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27791 test ! -s conftest.err
27793 ac_header_preproc=yes
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27798 ac_header_preproc=no
27801 rm -f conftest.err conftest.$ac_ext
27802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27803 echo "${ECHO_T}$ac_header_preproc" >&6; }
27805 # So? What about this header?
27806 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27808 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27809 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27811 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27812 ac_header_preproc=yes
27815 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27816 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27817 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27818 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27819 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27820 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27821 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27822 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27823 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27824 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27825 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27826 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27828 ## ------------------------------- ##
27829 ## Report this to www.asterisk.org ##
27830 ## ------------------------------- ##
27832 ) | sed "s/^/$as_me: WARNING: /" >&2
27835 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27836 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 eval "$as_ac_Header=\$ac_header_preproc"
27842 ac_res=`eval echo '${'$as_ac_Header'}'`
27843 { echo "$as_me:$LINENO: result: $ac_res" >&5
27844 echo "${ECHO_T}$ac_res" >&6; }
27847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27848 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
27852 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27853 OPENH323DIR="${PWLIBDIR}/../openh323"
27854 saved_cppflags="${CPPFLAGS}"
27855 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27856 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
27857 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27858 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27862 cat >conftest.$ac_ext <<_ACEOF
27865 cat confdefs.h >>conftest.$ac_ext
27866 cat >>conftest.$ac_ext <<_ACEOF
27867 /* end confdefs.h. */
27870 #include <${OPENH323DIR}/include/h323.h>
27872 rm -f conftest.$ac_objext
27873 if { (ac_try="$ac_compile"
27874 case "(($ac_try" in
27875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27876 *) ac_try_echo
=$ac_try;;
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879 (eval "$ac_compile") 2>conftest.er1
27881 grep -v '^ *+' conftest.er1
>conftest.err
27883 cat conftest.err
>&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } && {
27886 test -z "$ac_cxx_werror_flag" ||
27887 test ! -s conftest.err
27888 } && test -s conftest.
$ac_objext; then
27889 eval "$as_ac_Header=yes"
27891 echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.
$ac_ext >&5
27894 eval "$as_ac_Header=no"
27897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27899 ac_res
=`eval echo '${'$as_ac_Header'}'`
27900 { echo "$as_me:$LINENO: result: $ac_res" >&5
27901 echo "${ECHO_T}$ac_res" >&6; }
27902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27905 OPENH323_INCDIR
="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR
="${PWLIB_LIBDIR}"
27909 CPPFLAGS
="${saved_cppflags}"
27911 saved_cppflags
="${CPPFLAGS}"
27912 CPPFLAGS
="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27913 as_ac_Header
=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
27914 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27915 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27916 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27917 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 ac_res
=`eval echo '${'$as_ac_Header'}'`
27921 { echo "$as_me:$LINENO: result: $ac_res" >&5
27922 echo "${ECHO_T}$ac_res" >&6; }
27924 # Is the header compilable?
27925 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27926 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27927 cat >conftest.
$ac_ext <<_ACEOF
27930 cat confdefs.h
>>conftest.
$ac_ext
27931 cat >>conftest.
$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 $ac_includes_default
27934 #include <${HOME}/openh323/include/h323.h>
27936 rm -f conftest.
$ac_objext
27937 if { (ac_try
="$ac_compile"
27938 case "(($ac_try" in
27939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_compile") 2>conftest.er1
27945 grep -v '^ *+' conftest.er1 >conftest.err
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } && {
27950 test -z "$ac_cxx_werror_flag" ||
27951 test ! -s conftest.err
27952 } && test -s conftest.$ac_objext; then
27953 ac_header_compiler=yes
27955 echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27958 ac_header_compiler=no
27961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27963 echo "${ECHO_T}$ac_header_compiler" >&6; }
27965 # Is the header present?
27966 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27967 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27968 cat >conftest.$ac_ext <<_ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27974 #include <${HOME}/openh323/include/h323.h>
27976 if { (ac_try="$ac_cpp conftest.$ac_ext"
27977 case "(($ac_try" in
27978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27979 *) ac_try_echo
=$ac_try;;
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27984 grep -v '^ *+' conftest.er1
>conftest.err
27986 cat conftest.err
>&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } >/dev
/null
&& {
27989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27990 test ! -s conftest.err
27992 ac_header_preproc
=yes
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.
$ac_ext >&5
27997 ac_header_preproc
=no
28000 rm -f conftest.err conftest.
$ac_ext
28001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28002 echo "${ECHO_T}$ac_header_preproc" >&6; }
28004 # So? What about this header?
28005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28007 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28008 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28009 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
28010 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
28011 ac_header_preproc
=yes
28014 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
28015 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
28017 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
28019 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28021 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28022 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
28023 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
28024 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
28025 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
28027 ## ------------------------------- ##
28028 ## Report this to www.asterisk.org ##
28029 ## ------------------------------- ##
28031 ) |
sed "s/^/$as_me: WARNING: /" >&2
28034 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28035 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28036 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28039 eval "$as_ac_Header=\$ac_header_preproc"
28041 ac_res
=`eval echo '${'$as_ac_Header'}'`
28042 { echo "$as_me:$LINENO: result: $ac_res" >&5
28043 echo "${ECHO_T}$ac_res" >&6; }
28046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28051 CPPFLAGS
="${saved_cppflags}"
28052 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28053 OPENH323DIR
="${HOME}/openh323"
28055 saved_cppflags
="${CPPFLAGS}"
28056 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
28057 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28058 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28059 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28060 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28061 echo $ECHO_N "(cached) $ECHO_C" >&6
28063 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28064 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28066 # Is the header compilable?
28067 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
28068 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
28069 cat >conftest.
$ac_ext <<_ACEOF
28072 cat confdefs.h
>>conftest.
$ac_ext
28073 cat >>conftest.
$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 $ac_includes_default
28076 #include </usr/local/include/openh323/h323.h>
28078 rm -f conftest.
$ac_objext
28079 if { (ac_try
="$ac_compile"
28080 case "(($ac_try" in
28081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_compile") 2>conftest.er1
28087 grep -v '^ *+' conftest.er1 >conftest.err
28089 cat conftest.err >&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } && {
28092 test -z "$ac_cxx_werror_flag" ||
28093 test ! -s conftest.err
28094 } && test -s conftest.$ac_objext; then
28095 ac_header_compiler=yes
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28100 ac_header_compiler=no
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28105 echo "${ECHO_T}$ac_header_compiler" >&6; }
28107 # Is the header present?
28108 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
28109 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28116 #include </usr/local/include/openh323/h323.h>
28118 if { (ac_try="$ac_cpp conftest.$ac_ext"
28119 case "(($ac_try" in
28120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28121 *) ac_try_echo
=$ac_try;;
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28126 grep -v '^ *+' conftest.er1
>conftest.err
28128 cat conftest.err
>&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } >/dev
/null
&& {
28131 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28132 test ! -s conftest.err
28134 ac_header_preproc
=yes
28136 echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.
$ac_ext >&5
28139 ac_header_preproc
=no
28142 rm -f conftest.err conftest.
$ac_ext
28143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28144 echo "${ECHO_T}$ac_header_preproc" >&6; }
28146 # So? What about this header?
28147 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28149 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28150 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28151 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
28152 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
28153 ac_header_preproc
=yes
28156 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
28157 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
28159 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
28161 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
28162 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28163 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28164 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
28165 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
28166 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
28167 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
28169 ## ------------------------------- ##
28170 ## Report this to www.asterisk.org ##
28171 ## ------------------------------- ##
28173 ) |
sed "s/^/$as_me: WARNING: /" >&2
28176 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28177 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28178 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 ac_cv_header__usr_local_include_openh323_h323_h
=$ac_header_preproc
28183 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28184 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28187 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
28192 CPPFLAGS
="${saved_cppflags}"
28193 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28194 OPENH323DIR
="/usr/local/share/openh323"
28195 OPENH323_INCDIR
="/usr/local/include/openh323"
28196 if test "x$LIB64" != "x"; then
28197 OPENH323_LIBDIR
="/usr/local/lib64"
28199 OPENH323_LIBDIR
="/usr/local/lib"
28202 saved_cppflags
="${CPPFLAGS}"
28203 CPPFLAGS
="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
28204 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
28205 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
28206 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28209 cat >conftest.
$ac_ext <<_ACEOF
28212 cat confdefs.h
>>conftest.
$ac_ext
28213 cat >>conftest.
$ac_ext <<_ACEOF
28214 /* end confdefs.h. */
28217 #include </usr/include/openh323/h323.h>
28219 rm -f conftest.
$ac_objext
28220 if { (ac_try
="$ac_compile"
28221 case "(($ac_try" in
28222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28223 *) ac_try_echo=$ac_try;;
28225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226 (eval "$ac_compile") 2>conftest.er1
28228 grep -v '^ *+' conftest.er1 >conftest.err
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } && {
28233 test -z "$ac_cxx_werror_flag" ||
28234 test ! -s conftest.err
28235 } && test -s conftest.$ac_objext; then
28236 ac_cv_header__usr_include_openh323_h323_h=yes
28238 echo "$as_me: failed program was:" >&5
28239 sed 's/^/| /' conftest.$ac_ext >&5
28241 ac_cv_header__usr_include_openh323_h323_h=no
28244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
28247 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
28248 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
28253 CPPFLAGS="${saved_cppflags}"
28254 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28255 OPENH323DIR="/usr/share/openh323"
28256 OPENH323_INCDIR="/usr/include/openh323"
28257 if test "x$LIB64" != "x"; then
28258 OPENH323_LIBDIR="/usr/lib64"
28260 OPENH323_LIBDIR="/usr/lib"
28268 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28269 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
28270 OPENH323_INCDIR="${OPENH323DIR}/include"
28272 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
28273 OPENH323_LIBDIR="${OPENH323DIR}/lib"
28276 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
28277 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
28278 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
28285 ac_cpp='$CPP $CPPFLAGS'
28286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28292 if test "${HAS_OPENH323:-unset}" != "unset"; then
28293 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
28294 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
28295 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
28296 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
28297 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
28298 let OPENH323_REQ=1*10000+17*100+3
28300 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
28301 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28302 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
28303 { echo "$as_me:$LINENO: result: no" >&5
28304 echo "${ECHO_T}no" >&6; }
28307 { echo "$as_me:$LINENO: result: yes" >&5
28308 echo "${ECHO_T}yes" >&6; }
28313 if test "${HAS_OPENH323:-unset}" != "unset"; then
28314 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
28315 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
28317 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
28318 for pfx in $prefixes; do
28319 files=`ls -l ${OPENH323_LIBDIR}/lib
${pfx}*.so
* 2>/dev
/null
`
28321 if test -n "$files"; then
28322 for f in $files; do
28323 if test -f $f -a ! -L $f; then
28324 libfile=`basename $f`
28329 if test -n "$libfile"; then
28330 OPENH323_PREFIX=$pfx
28334 if test "${libfile:-unset}" != "unset"; then
28335 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
28337 case "${OPENH323_SUFFIX}" in
28339 OPENH323_BUILD="notrace";;
28341 OPENH323_BUILD="opt";;
28343 OPENH323_BUILD="debug";;
28345 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
28346 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
28347 if test "x$notrace" = "x"; then
28350 if test "$notrace" -ne 0; then
28351 OPENH323_BUILD="notrace"
28353 OPENH323_BUILD="opt"
28355 OPENH323_LIB="-l${OPENH323_PREFIX}"
28357 OPENH323_BUILD="notrace"
28361 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
28362 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
28368 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
28370 if test "${HAS_OPENH323:-unset}" != "unset"; then
28371 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
28372 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
28374 saved_cppflags="${CPPFLAGS}"
28375 saved_libs="${LIBS}"
28376 if test "${OPENH323_LIB:-unset}" != "unset"; then
28377 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
28379 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
28381 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
28384 ac_cpp='$CXXCPP $CPPFLAGS'
28385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28390 cat >conftest.$ac_ext <<_ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h. */
28398 #include "h323ep.h"
28402 H323EndPoint ep = H323EndPoint();
28407 rm -f conftest.$ac_objext conftest$ac_exeext
28408 if { (ac_try="$ac_link"
28409 case "(($ac_try" in
28410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28411 *) ac_try_echo
=$ac_try;;
28413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28414 (eval "$ac_link") 2>conftest.er1
28416 grep -v '^ *+' conftest.er1
>conftest.err
28418 cat conftest.err
>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } && {
28421 test -z "$ac_cxx_werror_flag" ||
28422 test ! -s conftest.err
28423 } && test -s conftest
$ac_exeext &&
28424 $as_test_x conftest
$ac_exeext; then
28425 { echo "$as_me:$LINENO: result: yes" >&5
28426 echo "${ECHO_T}yes" >&6; }
28427 ac_cv_lib_OPENH323
="yes"
28430 echo "$as_me: failed program was:" >&5
28431 sed 's/^/| /' conftest.
$ac_ext >&5
28433 { echo "$as_me:$LINENO: result: no" >&5
28434 echo "${ECHO_T}no" >&6; }
28435 ac_cv_lib_OPENH323
="no"
28440 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28441 conftest
$ac_exeext conftest.
$ac_ext
28444 ac_cpp
='$CPP $CPPFLAGS'
28445 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28446 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28447 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28450 LIBS
="${saved_libs}"
28451 CPPFLAGS
="${saved_cppflags}"
28453 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28454 if test "${OPENH323_LIB:-undef}" = "undef"; then
28455 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28456 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28458 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
28461 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28462 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
28466 cat >>confdefs.h
<<\_ACEOF
28467 #define HAVE_OPENH323 1
28474 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28475 { echo "$as_me:$LINENO: ***" >&5
28476 echo "$as_me: ***" >&6;}
28477 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28478 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28479 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28480 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28481 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28482 echo "$as_me: *** including --without-h323" >&6;}
28487 if test "${USE_RADIUS}" != "no"; then
28489 if test "x${RADIUS_DIR}" != "x"; then
28490 if test -d ${RADIUS_DIR}/lib
; then
28491 pbxlibdir
="-L${RADIUS_DIR}/lib"
28493 pbxlibdir
="-L${RADIUS_DIR}"
28496 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28497 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28498 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28501 ac_check_lib_save_LIBS
=$LIBS
28502 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
28503 cat >conftest.
$ac_ext <<_ACEOF
28506 cat confdefs.h
>>conftest.
$ac_ext
28507 cat >>conftest.
$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28510 /* Override any GCC internal prototype to avoid an error.
28511 Use char because int might match the return type of a GCC
28512 builtin and then its argument prototype would still apply. */
28516 char rc_read_config ();
28520 return rc_read_config ();
28525 rm -f conftest.
$ac_objext conftest
$ac_exeext
28526 if { (ac_try
="$ac_link"
28527 case "(($ac_try" in
28528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28529 *) ac_try_echo=$ac_try;;
28531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28532 (eval "$ac_link") 2>conftest.er1
28534 grep -v '^ *+' conftest.er1 >conftest.err
28536 cat conftest.err >&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && {
28539 test -z "$ac_c_werror_flag" ||
28540 test ! -s conftest.err
28541 } && test -s conftest$ac_exeext &&
28542 $as_test_x conftest$ac_exeext; then
28543 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28545 echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28548 ac_cv_lib_radiusclient_ng_rc_read_config=no
28551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28552 conftest$ac_exeext conftest.$ac_ext
28553 LIBS=$ac_check_lib_save_LIBS
28555 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28556 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28557 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28558 AST_RADIUS_FOUND=yes
28560 AST_RADIUS_FOUND=no
28564 if test "${AST_RADIUS_FOUND}" = "yes"; then
28565 RADIUS_LIB="-lradiusclient-ng "
28566 RADIUS_HEADER_FOUND="1"
28567 if test "x${RADIUS_DIR}" != "x"; then
28568 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28569 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28570 saved_cppflags="${CPPFLAGS}"
28571 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28572 if test "xradiusclient-ng.h" != "x" ; then
28573 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
28574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28575 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28576 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28580 ac_res=`eval echo '${'$as_ac_Header'}'`
28581 { echo "$as_me:$LINENO: result: $ac_res" >&5
28582 echo "${ECHO_T}$ac_res" >&6; }
28584 # Is the header compilable?
28585 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28586 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28587 cat >conftest.$ac_ext <<_ACEOF
28590 cat confdefs.h >>conftest.$ac_ext
28591 cat >>conftest.$ac_ext <<_ACEOF
28592 /* end confdefs.h. */
28593 $ac_includes_default
28594 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28600 *) ac_try_echo
=$ac_try;;
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603 (eval "$ac_compile") 2>conftest.er1
28605 grep -v '^ *+' conftest.er1
>conftest.err
28607 cat conftest.err
>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && {
28610 test -z "$ac_c_werror_flag" ||
28611 test ! -s conftest.err
28612 } && test -s conftest.
$ac_objext; then
28613 ac_header_compiler
=yes
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.
$ac_ext >&5
28618 ac_header_compiler
=no
28621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28623 echo "${ECHO_T}$ac_header_compiler" >&6; }
28625 # Is the header present?
28626 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28627 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28628 cat >conftest.
$ac_ext <<_ACEOF
28631 cat confdefs.h
>>conftest.
$ac_ext
28632 cat >>conftest.
$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28636 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28637 case "(($ac_try" in
28638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28639 *) ac_try_echo=$ac_try;;
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28644 grep -v '^ *+' conftest.er1 >conftest.err
28646 cat conftest.err >&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); } >/dev/null && {
28649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28650 test ! -s conftest.err
28652 ac_header_preproc=yes
28654 echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28657 ac_header_preproc=no
28660 rm -f conftest.err conftest.$ac_ext
28661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28662 echo "${ECHO_T}$ac_header_preproc" >&6; }
28664 # So? What about this header?
28665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28667 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28668 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28669 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28670 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28671 ac_header_preproc=yes
28674 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28675 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28676 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28677 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28678 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28679 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28680 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28681 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28683 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28685 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28687 ## ------------------------------- ##
28688 ## Report this to www.asterisk.org ##
28689 ## ------------------------------- ##
28691 ) | sed "s/^/$as_me: WARNING: /" >&2
28694 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28695 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 eval "$as_ac_Header=\$ac_header_preproc"
28701 ac_res=`eval echo '${'$as_ac_Header'}'`
28702 { echo "$as_me:$LINENO: result: $ac_res" >&5
28703 echo "${ECHO_T}$ac_res" >&6; }
28706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28707 RADIUS_HEADER_FOUND=1
28709 RADIUS_HEADER_FOUND=0
28714 CPPFLAGS="${saved_cppflags}"
28716 if test "xradiusclient-ng.h" != "x" ; then
28717 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28718 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28719 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28720 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28723 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28724 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28726 # Is the header compilable?
28727 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28728 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28735 $ac_includes_default
28736 #include <radiusclient-ng.h>
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28742 *) ac_try_echo
=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_compile") 2>conftest.er1
28747 grep -v '^ *+' conftest.er1
>conftest.err
28749 cat conftest.err
>&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } && {
28752 test -z "$ac_c_werror_flag" ||
28753 test ! -s conftest.err
28754 } && test -s conftest.
$ac_objext; then
28755 ac_header_compiler
=yes
28757 echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.
$ac_ext >&5
28760 ac_header_compiler
=no
28763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28765 echo "${ECHO_T}$ac_header_compiler" >&6; }
28767 # Is the header present?
28768 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28769 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28770 cat >conftest.
$ac_ext <<_ACEOF
28773 cat confdefs.h
>>conftest.
$ac_ext
28774 cat >>conftest.
$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 #include <radiusclient-ng.h>
28778 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28779 case "(($ac_try" in
28780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28786 grep -v '^ *+' conftest.er1 >conftest.err
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } >/dev/null && {
28791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28792 test ! -s conftest.err
28794 ac_header_preproc=yes
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 ac_header_preproc=no
28802 rm -f conftest.err conftest.$ac_ext
28803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28804 echo "${ECHO_T}$ac_header_preproc" >&6; }
28806 # So? What about this header?
28807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28809 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28810 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28812 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28813 ac_header_preproc=yes
28816 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
28817 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
28819 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28820 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
28821 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
28822 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28823 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28824 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28825 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28826 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28827 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28829 ## ------------------------------- ##
28830 ## Report this to www.asterisk.org ##
28831 ## ------------------------------- ##
28833 ) | sed "s/^/$as_me: WARNING: /" >&2
28836 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28837 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28838 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28839 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28843 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28844 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28847 if test $ac_cv_header_radiusclient_ng_h = yes; then
28848 RADIUS_HEADER_FOUND=1
28850 RADIUS_HEADER_FOUND=0
28856 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
28857 if test -n "${RADIUS_MANDATORY}" ;
28859 { echo "$as_me:$LINENO: ***" >&5
28860 echo "$as_me: ***" >&6;}
28861 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
28862 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
28863 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
28864 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
28865 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28866 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28875 cat >>confdefs.h <<_ACEOF
28876 #define HAVE_RADIUS 1
28880 elif test -n "${RADIUS_MANDATORY}";
28882 { echo "$as_me:$LINENO: ***" >&5
28883 echo "$as_me: ***" >&6;}
28884 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
28885 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
28886 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28887 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28888 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28889 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28896 if test "${USE_SPEEX}" != "no"; then
28898 if test "x${SPEEX_DIR}" != "x"; then
28899 if test -d ${SPEEX_DIR}/lib; then
28900 pbxlibdir="-L${SPEEX_DIR}/lib"
28902 pbxlibdir="-L${SPEEX_DIR}"
28905 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
28906 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
28907 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 ac_check_lib_save_LIBS=$LIBS
28911 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28919 /* Override any GCC internal prototype to avoid an error.
28920 Use char because int might match the return type of a GCC
28921 builtin and then its argument prototype would still apply. */
28925 char speex_encode ();
28929 return speex_encode ();
28934 rm -f conftest.$ac_objext conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28938 *) ac_try_echo
=$ac_try;;
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_link") 2>conftest.er1
28943 grep -v '^ *+' conftest.er1
>conftest.err
28945 cat conftest.err
>&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); } && {
28948 test -z "$ac_c_werror_flag" ||
28949 test ! -s conftest.err
28950 } && test -s conftest
$ac_exeext &&
28951 $as_test_x conftest
$ac_exeext; then
28952 ac_cv_lib_speex_speex_encode
=yes
28954 echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.
$ac_ext >&5
28957 ac_cv_lib_speex_speex_encode
=no
28960 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28961 conftest
$ac_exeext conftest.
$ac_ext
28962 LIBS
=$ac_check_lib_save_LIBS
28964 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
28965 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28966 if test $ac_cv_lib_speex_speex_encode = yes; then
28967 AST_SPEEX_FOUND
=yes
28973 if test "${AST_SPEEX_FOUND}" = "yes"; then
28974 SPEEX_LIB
="-lspeex -lm"
28975 SPEEX_HEADER_FOUND
="1"
28976 if test "x${SPEEX_DIR}" != "x"; then
28977 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
28978 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
28979 saved_cppflags
="${CPPFLAGS}"
28980 CPPFLAGS
="${CPPFLAGS} -I${SPEEX_DIR}/include"
28981 if test "xspeex/speex.h" != "x" ; then
28982 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
28983 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28984 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28985 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28986 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28987 echo $ECHO_N "(cached) $ECHO_C" >&6
28989 ac_res
=`eval echo '${'$as_ac_Header'}'`
28990 { echo "$as_me:$LINENO: result: $ac_res" >&5
28991 echo "${ECHO_T}$ac_res" >&6; }
28993 # Is the header compilable?
28994 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
28995 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28996 cat >conftest.
$ac_ext <<_ACEOF
28999 cat confdefs.h
>>conftest.
$ac_ext
29000 cat >>conftest.
$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29002 $ac_includes_default
29003 #include <${SPEEX_DIR}/include/speex/speex.h>
29005 rm -f conftest.
$ac_objext
29006 if { (ac_try
="$ac_compile"
29007 case "(($ac_try" in
29008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29009 *) ac_try_echo=$ac_try;;
29011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29012 (eval "$ac_compile") 2>conftest.er1
29014 grep -v '^ *+' conftest.er1 >conftest.err
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } && {
29019 test -z "$ac_c_werror_flag" ||
29020 test ! -s conftest.err
29021 } && test -s conftest.$ac_objext; then
29022 ac_header_compiler=yes
29024 echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29027 ac_header_compiler=no
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29032 echo "${ECHO_T}$ac_header_compiler" >&6; }
29034 # Is the header present?
29035 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
29036 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29037 cat >conftest.$ac_ext <<_ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043 #include <${SPEEX_DIR}/include/speex/speex.h>
29045 if { (ac_try="$ac_cpp conftest.$ac_ext"
29046 case "(($ac_try" in
29047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29048 *) ac_try_echo
=$ac_try;;
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29053 grep -v '^ *+' conftest.er1
>conftest.err
29055 cat conftest.err
>&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } >/dev
/null
&& {
29058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29059 test ! -s conftest.err
29061 ac_header_preproc
=yes
29063 echo "$as_me: failed program was:" >&5
29064 sed 's/^/| /' conftest.
$ac_ext >&5
29066 ac_header_preproc
=no
29069 rm -f conftest.err conftest.
$ac_ext
29070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29071 echo "${ECHO_T}$ac_header_preproc" >&6; }
29073 # So? What about this header?
29074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29076 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29077 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29079 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29080 ac_header_preproc
=yes
29083 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29084 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29086 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29088 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29090 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29092 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29094 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29096 ## ------------------------------- ##
29097 ## Report this to www.asterisk.org ##
29098 ## ------------------------------- ##
29100 ) |
sed "s/^/$as_me: WARNING: /" >&2
29103 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29104 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29105 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 eval "$as_ac_Header=\$ac_header_preproc"
29110 ac_res
=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112 echo "${ECHO_T}$ac_res" >&6; }
29115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29116 SPEEX_HEADER_FOUND
=1
29118 SPEEX_HEADER_FOUND
=0
29123 CPPFLAGS
="${saved_cppflags}"
29125 if test "xspeex/speex.h" != "x" ; then
29126 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29127 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29128 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29129 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29132 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29133 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29135 # Is the header compilable?
29136 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29137 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29138 cat >conftest.
$ac_ext <<_ACEOF
29141 cat confdefs.h
>>conftest.
$ac_ext
29142 cat >>conftest.
$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29144 $ac_includes_default
29145 #include <speex/speex.h>
29147 rm -f conftest.
$ac_objext
29148 if { (ac_try
="$ac_compile"
29149 case "(($ac_try" in
29150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_compile") 2>conftest.er1
29156 grep -v '^ *+' conftest.er1 >conftest.err
29158 cat conftest.err >&5
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); } && {
29161 test -z "$ac_c_werror_flag" ||
29162 test ! -s conftest.err
29163 } && test -s conftest.$ac_objext; then
29164 ac_header_compiler=yes
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29169 ac_header_compiler=no
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174 echo "${ECHO_T}$ac_header_compiler" >&6; }
29176 # Is the header present?
29177 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29178 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29179 cat >conftest.$ac_ext <<_ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 #include <speex/speex.h>
29187 if { (ac_try="$ac_cpp conftest.$ac_ext"
29188 case "(($ac_try" in
29189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29190 *) ac_try_echo
=$ac_try;;
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29195 grep -v '^ *+' conftest.er1
>conftest.err
29197 cat conftest.err
>&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } >/dev
/null
&& {
29200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29201 test ! -s conftest.err
29203 ac_header_preproc
=yes
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.
$ac_ext >&5
29208 ac_header_preproc
=no
29211 rm -f conftest.err conftest.
$ac_ext
29212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29213 echo "${ECHO_T}$ac_header_preproc" >&6; }
29215 # So? What about this header?
29216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29218 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29219 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29221 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29222 ac_header_preproc
=yes
29225 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29226 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29228 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29230 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29232 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29234 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29235 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29236 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29238 ## ------------------------------- ##
29239 ## Report this to www.asterisk.org ##
29240 ## ------------------------------- ##
29242 ) |
sed "s/^/$as_me: WARNING: /" >&2
29245 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29246 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29247 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29250 ac_cv_header_speex_speex_h
=$ac_header_preproc
29252 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29253 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29256 if test $ac_cv_header_speex_speex_h = yes; then
29257 SPEEX_HEADER_FOUND
=1
29259 SPEEX_HEADER_FOUND
=0
29265 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
29266 if test -n "${SPEEX_MANDATORY}" ;
29268 { echo "$as_me:$LINENO: ***" >&5
29269 echo "$as_me: ***" >&6;}
29270 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29271 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29272 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
29273 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
29274 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29275 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29284 cat >>confdefs.h
<<_ACEOF
29285 #define HAVE_SPEEX 1
29289 elif test -n "${SPEEX_MANDATORY}";
29291 { echo "$as_me:$LINENO: ***" >&5
29292 echo "$as_me: ***" >&6;}
29293 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
29294 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
29295 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29296 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29297 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29298 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29304 # See if the main speex library contains the preprocess functions
29306 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
29308 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29309 if test -d ${SPEEX_PREPROCESS_DIR}/lib
; then
29310 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}/lib"
29312 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}"
29315 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
29316 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
29317 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
29318 echo $ECHO_N "(cached) $ECHO_C" >&6
29320 ac_check_lib_save_LIBS
=$LIBS
29321 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
29322 cat >conftest.
$ac_ext <<_ACEOF
29325 cat confdefs.h
>>conftest.
$ac_ext
29326 cat >>conftest.
$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29329 /* Override any GCC internal prototype to avoid an error.
29330 Use char because int might match the return type of a GCC
29331 builtin and then its argument prototype would still apply. */
29335 char speex_preprocess_ctl ();
29339 return speex_preprocess_ctl ();
29344 rm -f conftest.
$ac_objext conftest
$ac_exeext
29345 if { (ac_try
="$ac_link"
29346 case "(($ac_try" in
29347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_link") 2>conftest.er1
29353 grep -v '^ *+' conftest.er1 >conftest.err
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest$ac_exeext &&
29361 $as_test_x conftest$ac_exeext; then
29362 ac_cv_lib_speex_speex_preprocess_ctl=yes
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 ac_cv_lib_speex_speex_preprocess_ctl=no
29370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29371 conftest$ac_exeext conftest.$ac_ext
29372 LIBS=$ac_check_lib_save_LIBS
29374 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
29375 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
29376 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
29377 AST_SPEEX_PREPROCESS_FOUND=yes
29379 AST_SPEEX_PREPROCESS_FOUND=no
29383 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
29384 SPEEX_PREPROCESS_LIB="-lspeex -lm"
29385 SPEEX_PREPROCESS_HEADER_FOUND="1"
29386 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29387 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
29388 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
29389 saved_cppflags="${CPPFLAGS}"
29390 CPPFLAGS="${CPPFLAGS} -I${SPEEX_PREPROCESS_DIR}/include"
29391 if test "xspeex/speex.h" != "x" ; then
29392 as_ac_Header=`echo "ac_cv_header_${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" |
$as_tr_sh`
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29395 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29399 ac_res=`eval echo '${'$as_ac_Header'}'`
29400 { echo "$as_me:$LINENO: result: $ac_res" >&5
29401 echo "${ECHO_T}$ac_res" >&6; }
29403 # Is the header compilable?
29404 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability" >&5
29405 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 $ac_includes_default
29413 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29415 rm -f conftest.$ac_objext
29416 if { (ac_try="$ac_compile"
29417 case "(($ac_try" in
29418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29419 *) ac_try_echo
=$ac_try;;
29421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29422 (eval "$ac_compile") 2>conftest.er1
29424 grep -v '^ *+' conftest.er1
>conftest.err
29426 cat conftest.err
>&5
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } && {
29429 test -z "$ac_c_werror_flag" ||
29430 test ! -s conftest.err
29431 } && test -s conftest.
$ac_objext; then
29432 ac_header_compiler
=yes
29434 echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.
$ac_ext >&5
29437 ac_header_compiler
=no
29440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29442 echo "${ECHO_T}$ac_header_compiler" >&6; }
29444 # Is the header present?
29445 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence" >&5
29446 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29447 cat >conftest.
$ac_ext <<_ACEOF
29450 cat confdefs.h
>>conftest.
$ac_ext
29451 cat >>conftest.
$ac_ext <<_ACEOF
29452 /* end confdefs.h. */
29453 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29455 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29456 case "(($ac_try" in
29457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29458 *) ac_try_echo=$ac_try;;
29460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29463 grep -v '^ *+' conftest.er1 >conftest.err
29465 cat conftest.err >&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } >/dev/null && {
29468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29469 test ! -s conftest.err
29471 ac_header_preproc=yes
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_header_preproc=no
29479 rm -f conftest.err conftest.$ac_ext
29480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29481 echo "${ECHO_T}$ac_header_preproc" >&6; }
29483 # So? What about this header?
29484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29486 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29487 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29489 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29490 ac_header_preproc=yes
29493 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29494 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29495 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29496 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29498 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29500 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29502 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29504 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29506 ## ------------------------------- ##
29507 ## Report this to www.asterisk.org ##
29508 ## ------------------------------- ##
29510 ) | sed "s/^/$as_me: WARNING: /" >&2
29513 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29514 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29518 eval "$as_ac_Header=\$ac_header_preproc"
29520 ac_res=`eval echo '${'$as_ac_Header'}'`
29521 { echo "$as_me:$LINENO: result: $ac_res" >&5
29522 echo "${ECHO_T}$ac_res" >&6; }
29525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29526 SPEEX_PREPROCESS_HEADER_FOUND=1
29528 SPEEX_PREPROCESS_HEADER_FOUND=0
29533 CPPFLAGS="${saved_cppflags}"
29535 if test "xspeex/speex.h" != "x" ; then
29536 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29537 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29538 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29539 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29542 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29543 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29545 # Is the header compilable?
29546 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29547 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29554 $ac_includes_default
29555 #include <speex/speex.h>
29557 rm -f conftest.$ac_objext
29558 if { (ac_try="$ac_compile"
29559 case "(($ac_try" in
29560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29561 *) ac_try_echo
=$ac_try;;
29563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29564 (eval "$ac_compile") 2>conftest.er1
29566 grep -v '^ *+' conftest.er1
>conftest.err
29568 cat conftest.err
>&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } && {
29571 test -z "$ac_c_werror_flag" ||
29572 test ! -s conftest.err
29573 } && test -s conftest.
$ac_objext; then
29574 ac_header_compiler
=yes
29576 echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.
$ac_ext >&5
29579 ac_header_compiler
=no
29582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29584 echo "${ECHO_T}$ac_header_compiler" >&6; }
29586 # Is the header present?
29587 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29588 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29589 cat >conftest.
$ac_ext <<_ACEOF
29592 cat confdefs.h
>>conftest.
$ac_ext
29593 cat >>conftest.
$ac_ext <<_ACEOF
29594 /* end confdefs.h. */
29595 #include <speex/speex.h>
29597 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29598 case "(($ac_try" in
29599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29605 grep -v '^ *+' conftest.er1 >conftest.err
29607 cat conftest.err >&5
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } >/dev/null && {
29610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29611 test ! -s conftest.err
29613 ac_header_preproc=yes
29615 echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29618 ac_header_preproc=no
29621 rm -f conftest.err conftest.$ac_ext
29622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29623 echo "${ECHO_T}$ac_header_preproc" >&6; }
29625 # So? What about this header?
29626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29628 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29629 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29631 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29632 ac_header_preproc=yes
29635 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29636 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29637 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29638 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29639 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29640 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29641 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29642 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29644 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29645 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29646 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29648 ## ------------------------------- ##
29649 ## Report this to www.asterisk.org ##
29650 ## ------------------------------- ##
29652 ) | sed "s/^/$as_me: WARNING: /" >&2
29655 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29656 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29657 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29658 echo $ECHO_N "(cached) $ECHO_C" >&6
29660 ac_cv_header_speex_speex_h=$ac_header_preproc
29662 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29663 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29666 if test $ac_cv_header_speex_speex_h = yes; then
29667 SPEEX_PREPROCESS_HEADER_FOUND=1
29669 SPEEX_PREPROCESS_HEADER_FOUND=0
29675 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
29676 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
29678 { echo "$as_me:$LINENO: ***" >&5
29679 echo "$as_me: ***" >&6;}
29680 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29681 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29682 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
29683 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
29684 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29685 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29688 SPEEX_PREPROCESS_LIB=""
29689 SPEEX_PREPROCESS_INCLUDE=""
29690 PBX_SPEEX_PREPROCESS=0
29692 PBX_SPEEX_PREPROCESS=1
29694 cat >>confdefs.h <<_ACEOF
29695 #define HAVE_SPEEX_PREPROCESS 1
29699 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
29701 { echo "$as_me:$LINENO: ***" >&5
29702 echo "$as_me: ***" >&6;}
29703 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
29704 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
29705 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29706 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29707 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29708 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29713 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
29714 PBX_SPEEX_PREPROCESS=1
29718 if test "${USE_SPEEXDSP}" != "no"; then
29720 if test "x${SPEEXDSP_DIR}" != "x"; then
29721 if test -d ${SPEEXDSP_DIR}/lib; then
29722 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
29724 pbxlibdir="-L${SPEEXDSP_DIR}"
29727 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
29728 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
29729 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29732 ac_check_lib_save_LIBS=$LIBS
29733 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29741 /* Override any GCC internal prototype to avoid an error.
29742 Use char because int might match the return type of a GCC
29743 builtin and then its argument prototype would still apply. */
29747 char speex_preprocess_ctl ();
29751 return speex_preprocess_ctl ();
29756 rm -f conftest.$ac_objext conftest$ac_exeext
29757 if { (ac_try="$ac_link"
29758 case "(($ac_try" in
29759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29760 *) ac_try_echo
=$ac_try;;
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763 (eval "$ac_link") 2>conftest.er1
29765 grep -v '^ *+' conftest.er1
>conftest.err
29767 cat conftest.err
>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); } && {
29770 test -z "$ac_c_werror_flag" ||
29771 test ! -s conftest.err
29772 } && test -s conftest
$ac_exeext &&
29773 $as_test_x conftest
$ac_exeext; then
29774 ac_cv_lib_speexdsp_speex_preprocess_ctl
=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.
$ac_ext >&5
29779 ac_cv_lib_speexdsp_speex_preprocess_ctl
=no
29782 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29783 conftest
$ac_exeext conftest.
$ac_ext
29784 LIBS
=$ac_check_lib_save_LIBS
29786 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
29787 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
29788 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
29789 AST_SPEEXDSP_FOUND
=yes
29791 AST_SPEEXDSP_FOUND
=no
29795 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
29796 SPEEXDSP_LIB
="-lspeexdsp -lm"
29797 SPEEXDSP_HEADER_FOUND
="1"
29798 if test "x${SPEEXDSP_DIR}" != "x"; then
29799 SPEEXDSP_LIB
="${pbxlibdir} ${SPEEXDSP_LIB}"
29800 SPEEXDSP_INCLUDE
="-I${SPEEXDSP_DIR}/include"
29801 saved_cppflags
="${CPPFLAGS}"
29802 CPPFLAGS
="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
29803 if test "xspeex/speex.h" != "x" ; then
29804 as_ac_Header
=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
29805 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29806 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29807 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29809 echo $ECHO_N "(cached) $ECHO_C" >&6
29811 ac_res
=`eval echo '${'$as_ac_Header'}'`
29812 { echo "$as_me:$LINENO: result: $ac_res" >&5
29813 echo "${ECHO_T}$ac_res" >&6; }
29815 # Is the header compilable?
29816 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
29817 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29818 cat >conftest.
$ac_ext <<_ACEOF
29821 cat confdefs.h
>>conftest.
$ac_ext
29822 cat >>conftest.
$ac_ext <<_ACEOF
29823 /* end confdefs.h. */
29824 $ac_includes_default
29825 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29827 rm -f conftest.
$ac_objext
29828 if { (ac_try
="$ac_compile"
29829 case "(($ac_try" in
29830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_compile") 2>conftest.er1
29836 grep -v '^ *+' conftest.er1 >conftest.err
29838 cat conftest.err >&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); } && {
29841 test -z "$ac_c_werror_flag" ||
29842 test ! -s conftest.err
29843 } && test -s conftest.$ac_objext; then
29844 ac_header_compiler=yes
29846 echo "$as_me: failed program was:" >&5
29847 sed 's/^/| /' conftest.$ac_ext >&5
29849 ac_header_compiler=no
29852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29854 echo "${ECHO_T}$ac_header_compiler" >&6; }
29856 # Is the header present?
29857 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
29858 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29859 cat >conftest.$ac_ext <<_ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29867 if { (ac_try="$ac_cpp conftest.$ac_ext"
29868 case "(($ac_try" in
29869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29870 *) ac_try_echo
=$ac_try;;
29872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29875 grep -v '^ *+' conftest.er1
>conftest.err
29877 cat conftest.err
>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } >/dev
/null
&& {
29880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29881 test ! -s conftest.err
29883 ac_header_preproc
=yes
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.
$ac_ext >&5
29888 ac_header_preproc
=no
29891 rm -f conftest.err conftest.
$ac_ext
29892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29893 echo "${ECHO_T}$ac_header_preproc" >&6; }
29895 # So? What about this header?
29896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29898 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29899 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29901 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29902 ac_header_preproc
=yes
29905 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29906 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29908 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29910 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29912 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29914 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29916 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29918 ## ------------------------------- ##
29919 ## Report this to www.asterisk.org ##
29920 ## ------------------------------- ##
29922 ) |
sed "s/^/$as_me: WARNING: /" >&2
29925 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29926 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29930 eval "$as_ac_Header=\$ac_header_preproc"
29932 ac_res
=`eval echo '${'$as_ac_Header'}'`
29933 { echo "$as_me:$LINENO: result: $ac_res" >&5
29934 echo "${ECHO_T}$ac_res" >&6; }
29937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29938 SPEEXDSP_HEADER_FOUND
=1
29940 SPEEXDSP_HEADER_FOUND
=0
29945 CPPFLAGS
="${saved_cppflags}"
29947 if test "xspeex/speex.h" != "x" ; then
29948 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29949 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29950 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29951 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29954 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29955 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29957 # Is the header compilable?
29958 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29959 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29960 cat >conftest.
$ac_ext <<_ACEOF
29963 cat confdefs.h
>>conftest.
$ac_ext
29964 cat >>conftest.
$ac_ext <<_ACEOF
29965 /* end confdefs.h. */
29966 $ac_includes_default
29967 #include <speex/speex.h>
29969 rm -f conftest.
$ac_objext
29970 if { (ac_try
="$ac_compile"
29971 case "(($ac_try" in
29972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29973 *) ac_try_echo=$ac_try;;
29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976 (eval "$ac_compile") 2>conftest.er1
29978 grep -v '^ *+' conftest.er1 >conftest.err
29980 cat conftest.err >&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } && {
29983 test -z "$ac_c_werror_flag" ||
29984 test ! -s conftest.err
29985 } && test -s conftest.$ac_objext; then
29986 ac_header_compiler=yes
29988 echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29991 ac_header_compiler=no
29994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29996 echo "${ECHO_T}$ac_header_compiler" >&6; }
29998 # Is the header present?
29999 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
30000 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
30001 cat >conftest.$ac_ext <<_ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30007 #include <speex/speex.h>
30009 if { (ac_try="$ac_cpp conftest.$ac_ext"
30010 case "(($ac_try" in
30011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30012 *) ac_try_echo
=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30017 grep -v '^ *+' conftest.er1
>conftest.err
30019 cat conftest.err
>&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } >/dev
/null
&& {
30022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30023 test ! -s conftest.err
30025 ac_header_preproc
=yes
30027 echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.
$ac_ext >&5
30030 ac_header_preproc
=no
30033 rm -f conftest.err conftest.
$ac_ext
30034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30035 echo "${ECHO_T}$ac_header_preproc" >&6; }
30037 # So? What about this header?
30038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30040 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
30041 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30042 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
30043 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
30044 ac_header_preproc
=yes
30047 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
30048 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
30050 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
30051 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
30052 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
30053 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
30054 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
30055 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
30056 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
30057 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
30058 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
30060 ## ------------------------------- ##
30061 ## Report this to www.asterisk.org ##
30062 ## ------------------------------- ##
30064 ) |
sed "s/^/$as_me: WARNING: /" >&2
30067 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30068 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30069 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30072 ac_cv_header_speex_speex_h
=$ac_header_preproc
30074 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30075 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30078 if test $ac_cv_header_speex_speex_h = yes; then
30079 SPEEXDSP_HEADER_FOUND
=1
30081 SPEEXDSP_HEADER_FOUND
=0
30087 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
30088 if test -n "${SPEEXDSP_MANDATORY}" ;
30090 { echo "$as_me:$LINENO: ***" >&5
30091 echo "$as_me: ***" >&6;}
30092 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
30093 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
30094 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
30095 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
30096 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30097 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30101 SPEEXDSP_INCLUDE
=""
30106 cat >>confdefs.h
<<_ACEOF
30107 #define HAVE_SPEEXDSP 1
30111 elif test -n "${SPEEXDSP_MANDATORY}";
30113 { echo "$as_me:$LINENO: ***" >&5
30114 echo "$as_me: ***" >&6;}
30115 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
30116 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
30117 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30118 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30119 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30120 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30125 if test "${PBX_SPEEXDSP}" = 1; then
30126 PBX_SPEEX_PREPROCESS
=1
30132 if test "${USE_SQLITE}" != "no"; then
30134 if test "x${SQLITE_DIR}" != "x"; then
30135 if test -d ${SQLITE_DIR}/lib
; then
30136 pbxlibdir
="-L${SQLITE_DIR}/lib"
30138 pbxlibdir
="-L${SQLITE_DIR}"
30141 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
30142 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
30143 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30146 ac_check_lib_save_LIBS
=$LIBS
30147 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
30148 cat >conftest.
$ac_ext <<_ACEOF
30151 cat confdefs.h
>>conftest.
$ac_ext
30152 cat >>conftest.
$ac_ext <<_ACEOF
30153 /* end confdefs.h. */
30155 /* Override any GCC internal prototype to avoid an error.
30156 Use char because int might match the return type of a GCC
30157 builtin and then its argument prototype would still apply. */
30161 char sqlite_exec ();
30165 return sqlite_exec ();
30170 rm -f conftest.
$ac_objext conftest
$ac_exeext
30171 if { (ac_try
="$ac_link"
30172 case "(($ac_try" in
30173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_link") 2>conftest.er1
30179 grep -v '^ *+' conftest.er1 >conftest.err
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } && {
30184 test -z "$ac_c_werror_flag" ||
30185 test ! -s conftest.err
30186 } && test -s conftest$ac_exeext &&
30187 $as_test_x conftest$ac_exeext; then
30188 ac_cv_lib_sqlite_sqlite_exec=yes
30190 echo "$as_me: failed program was:" >&5
30191 sed 's/^/| /' conftest.$ac_ext >&5
30193 ac_cv_lib_sqlite_sqlite_exec=no
30196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30197 conftest$ac_exeext conftest.$ac_ext
30198 LIBS=$ac_check_lib_save_LIBS
30200 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
30201 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
30202 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
30203 AST_SQLITE_FOUND=yes
30205 AST_SQLITE_FOUND=no
30209 if test "${AST_SQLITE_FOUND}" = "yes"; then
30210 SQLITE_LIB="-lsqlite "
30211 SQLITE_HEADER_FOUND="1"
30212 if test "x${SQLITE_DIR}" != "x"; then
30213 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
30214 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
30215 saved_cppflags="${CPPFLAGS}"
30216 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
30217 if test "xsqlite.h" != "x" ; then
30218 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
30219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30220 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30221 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30225 ac_res=`eval echo '${'$as_ac_Header'}'`
30226 { echo "$as_me:$LINENO: result: $ac_res" >&5
30227 echo "${ECHO_T}$ac_res" >&6; }
30229 # Is the header compilable?
30230 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
30231 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
30232 cat >conftest.$ac_ext <<_ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 $ac_includes_default
30239 #include <${SQLITE_DIR}/include/sqlite.h>
30241 rm -f conftest.$ac_objext
30242 if { (ac_try="$ac_compile"
30243 case "(($ac_try" in
30244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30245 *) ac_try_echo
=$ac_try;;
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_compile") 2>conftest.er1
30250 grep -v '^ *+' conftest.er1
>conftest.err
30252 cat conftest.err
>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } && {
30255 test -z "$ac_c_werror_flag" ||
30256 test ! -s conftest.err
30257 } && test -s conftest.
$ac_objext; then
30258 ac_header_compiler
=yes
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.
$ac_ext >&5
30263 ac_header_compiler
=no
30266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30268 echo "${ECHO_T}$ac_header_compiler" >&6; }
30270 # Is the header present?
30271 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
30272 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
30273 cat >conftest.
$ac_ext <<_ACEOF
30276 cat confdefs.h
>>conftest.
$ac_ext
30277 cat >>conftest.
$ac_ext <<_ACEOF
30278 /* end confdefs.h. */
30279 #include <${SQLITE_DIR}/include/sqlite.h>
30281 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30282 case "(($ac_try" in
30283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30289 grep -v '^ *+' conftest.er1 >conftest.err
30291 cat conftest.err >&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } >/dev/null && {
30294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30297 ac_header_preproc=yes
30299 echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30302 ac_header_preproc=no
30305 rm -f conftest.err conftest.$ac_ext
30306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30307 echo "${ECHO_T}$ac_header_preproc" >&6; }
30309 # So? What about this header?
30310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30312 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30313 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30314 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
30315 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
30316 ac_header_preproc=yes
30319 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
30320 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
30321 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
30322 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
30323 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
30324 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
30325 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30326 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30327 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
30328 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
30329 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
30330 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
30332 ## ------------------------------- ##
30333 ## Report this to www.asterisk.org ##
30334 ## ------------------------------- ##
30336 ) | sed "s/^/$as_me: WARNING: /" >&2
30339 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30340 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30342 echo $ECHO_N "(cached) $ECHO_C" >&6
30344 eval "$as_ac_Header=\$ac_header_preproc"
30346 ac_res=`eval echo '${'$as_ac_Header'}'`
30347 { echo "$as_me:$LINENO: result: $ac_res" >&5
30348 echo "${ECHO_T}$ac_res" >&6; }
30351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30352 SQLITE_HEADER_FOUND=1
30354 SQLITE_HEADER_FOUND=0
30359 CPPFLAGS="${saved_cppflags}"
30361 if test "xsqlite.h" != "x" ; then
30362 if test "${ac_cv_header_sqlite_h+set}" = set; then
30363 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30364 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30365 if test "${ac_cv_header_sqlite_h+set}" = set; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30369 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30371 # Is the header compilable?
30372 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
30373 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
30374 cat >conftest.$ac_ext <<_ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380 $ac_includes_default
30381 #include <sqlite.h>
30383 rm -f conftest.$ac_objext
30384 if { (ac_try="$ac_compile"
30385 case "(($ac_try" in
30386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30387 *) ac_try_echo
=$ac_try;;
30389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390 (eval "$ac_compile") 2>conftest.er1
30392 grep -v '^ *+' conftest.er1
>conftest.err
30394 cat conftest.err
>&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); } && {
30397 test -z "$ac_c_werror_flag" ||
30398 test ! -s conftest.err
30399 } && test -s conftest.
$ac_objext; then
30400 ac_header_compiler
=yes
30402 echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.
$ac_ext >&5
30405 ac_header_compiler
=no
30408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30410 echo "${ECHO_T}$ac_header_compiler" >&6; }
30412 # Is the header present?
30413 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
30414 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
30415 cat >conftest.
$ac_ext <<_ACEOF
30418 cat confdefs.h
>>conftest.
$ac_ext
30419 cat >>conftest.
$ac_ext <<_ACEOF
30420 /* end confdefs.h. */
30421 #include <sqlite.h>
30423 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30424 case "(($ac_try" in
30425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30426 *) ac_try_echo=$ac_try;;
30428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30431 grep -v '^ *+' conftest.er1 >conftest.err
30433 cat conftest.err >&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } >/dev/null && {
30436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30437 test ! -s conftest.err
30439 ac_header_preproc=yes
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 ac_header_preproc=no
30447 rm -f conftest.err conftest.$ac_ext
30448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30449 echo "${ECHO_T}$ac_header_preproc" >&6; }
30451 # So? What about this header?
30452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30454 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30455 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30456 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
30457 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
30458 ac_header_preproc=yes
30461 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
30462 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
30464 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
30466 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
30467 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30468 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30469 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
30470 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
30471 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
30472 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
30474 ## ------------------------------- ##
30475 ## Report this to www.asterisk.org ##
30476 ## ------------------------------- ##
30478 ) | sed "s/^/$as_me: WARNING: /" >&2
30481 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30482 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30483 if test "${ac_cv_header_sqlite_h+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30486 ac_cv_header_sqlite_h=$ac_header_preproc
30488 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30489 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30492 if test $ac_cv_header_sqlite_h = yes; then
30493 SQLITE_HEADER_FOUND=1
30495 SQLITE_HEADER_FOUND=0
30501 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
30502 if test -n "${SQLITE_MANDATORY}" ;
30504 { echo "$as_me:$LINENO: ***" >&5
30505 echo "$as_me: ***" >&6;}
30506 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
30507 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
30508 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
30509 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
30510 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30511 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30520 cat >>confdefs.h <<_ACEOF
30521 #define HAVE_SQLITE 1
30525 elif test -n "${SQLITE_MANDATORY}";
30527 { echo "$as_me:$LINENO: ***" >&5
30528 echo "$as_me: ***" >&6;}
30529 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
30530 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
30531 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30532 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30533 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30534 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30541 if test "${USE_OPENSSL}" != "no"; then
30543 if test "x${OPENSSL_DIR}" != "x"; then
30544 if test -d ${OPENSSL_DIR}/lib; then
30545 pbxlibdir="-L${OPENSSL_DIR}/lib"
30547 pbxlibdir="-L${OPENSSL_DIR}"
30550 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
30551 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
30552 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
30553 echo $ECHO_N "(cached) $ECHO_C" >&6
30555 ac_check_lib_save_LIBS=$LIBS
30556 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
30557 cat >conftest.$ac_ext <<_ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h. */
30564 /* Override any GCC internal prototype to avoid an error.
30565 Use char because int might match the return type of a GCC
30566 builtin and then its argument prototype would still apply. */
30570 char ssl2_connect ();
30574 return ssl2_connect ();
30579 rm -f conftest.$ac_objext conftest$ac_exeext
30580 if { (ac_try="$ac_link"
30581 case "(($ac_try" in
30582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30583 *) ac_try_echo
=$ac_try;;
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586 (eval "$ac_link") 2>conftest.er1
30588 grep -v '^ *+' conftest.er1
>conftest.err
30590 cat conftest.err
>&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } && {
30593 test -z "$ac_c_werror_flag" ||
30594 test ! -s conftest.err
30595 } && test -s conftest
$ac_exeext &&
30596 $as_test_x conftest
$ac_exeext; then
30597 ac_cv_lib_ssl_ssl2_connect
=yes
30599 echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.
$ac_ext >&5
30602 ac_cv_lib_ssl_ssl2_connect
=no
30605 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30606 conftest
$ac_exeext conftest.
$ac_ext
30607 LIBS
=$ac_check_lib_save_LIBS
30609 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
30610 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
30611 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
30612 AST_OPENSSL_FOUND
=yes
30614 AST_OPENSSL_FOUND
=no
30618 if test "${AST_OPENSSL_FOUND}" = "yes"; then
30619 OPENSSL_LIB
="-lssl -lcrypto"
30620 OPENSSL_HEADER_FOUND
="1"
30621 if test "x${OPENSSL_DIR}" != "x"; then
30622 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
30623 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
30624 saved_cppflags
="${CPPFLAGS}"
30625 CPPFLAGS
="${CPPFLAGS} -I${OPENSSL_DIR}/include"
30626 if test "xopenssl/ssl.h" != "x" ; then
30627 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
30628 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30629 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30630 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30631 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30632 echo $ECHO_N "(cached) $ECHO_C" >&6
30634 ac_res
=`eval echo '${'$as_ac_Header'}'`
30635 { echo "$as_me:$LINENO: result: $ac_res" >&5
30636 echo "${ECHO_T}$ac_res" >&6; }
30638 # Is the header compilable?
30639 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
30640 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
30641 cat >conftest.
$ac_ext <<_ACEOF
30644 cat confdefs.h
>>conftest.
$ac_ext
30645 cat >>conftest.
$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30647 $ac_includes_default
30648 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30650 rm -f conftest.
$ac_objext
30651 if { (ac_try
="$ac_compile"
30652 case "(($ac_try" in
30653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30654 *) ac_try_echo=$ac_try;;
30656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30657 (eval "$ac_compile") 2>conftest.er1
30659 grep -v '^ *+' conftest.er1 >conftest.err
30661 cat conftest.err >&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } && {
30664 test -z "$ac_c_werror_flag" ||
30665 test ! -s conftest.err
30666 } && test -s conftest.$ac_objext; then
30667 ac_header_compiler=yes
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30672 ac_header_compiler=no
30675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30677 echo "${ECHO_T}$ac_header_compiler" >&6; }
30679 # Is the header present?
30680 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
30681 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
30682 cat >conftest.$ac_ext <<_ACEOF
30685 cat confdefs.h >>conftest.$ac_ext
30686 cat >>conftest.$ac_ext <<_ACEOF
30687 /* end confdefs.h. */
30688 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30690 if { (ac_try="$ac_cpp conftest.$ac_ext"
30691 case "(($ac_try" in
30692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30693 *) ac_try_echo
=$ac_try;;
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30698 grep -v '^ *+' conftest.er1
>conftest.err
30700 cat conftest.err
>&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); } >/dev
/null
&& {
30703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30704 test ! -s conftest.err
30706 ac_header_preproc
=yes
30708 echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.
$ac_ext >&5
30711 ac_header_preproc
=no
30714 rm -f conftest.err conftest.
$ac_ext
30715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30716 echo "${ECHO_T}$ac_header_preproc" >&6; }
30718 # So? What about this header?
30719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30721 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30722 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
30724 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
30725 ac_header_preproc
=yes
30728 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
30729 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
30730 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
30731 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30732 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
30733 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
30734 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30735 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30736 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
30737 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30738 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
30739 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30741 ## ------------------------------- ##
30742 ## Report this to www.asterisk.org ##
30743 ## ------------------------------- ##
30745 ) |
sed "s/^/$as_me: WARNING: /" >&2
30748 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30749 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30750 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 echo $ECHO_N "(cached) $ECHO_C" >&6
30753 eval "$as_ac_Header=\$ac_header_preproc"
30755 ac_res
=`eval echo '${'$as_ac_Header'}'`
30756 { echo "$as_me:$LINENO: result: $ac_res" >&5
30757 echo "${ECHO_T}$ac_res" >&6; }
30760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30761 OPENSSL_HEADER_FOUND
=1
30763 OPENSSL_HEADER_FOUND
=0
30768 CPPFLAGS
="${saved_cppflags}"
30770 if test "xopenssl/ssl.h" != "x" ; then
30771 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30772 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30773 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30774 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30777 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30778 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30780 # Is the header compilable?
30781 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
30782 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
30783 cat >conftest.
$ac_ext <<_ACEOF
30786 cat confdefs.h
>>conftest.
$ac_ext
30787 cat >>conftest.
$ac_ext <<_ACEOF
30788 /* end confdefs.h. */
30789 $ac_includes_default
30790 #include <openssl/ssl.h>
30792 rm -f conftest.
$ac_objext
30793 if { (ac_try
="$ac_compile"
30794 case "(($ac_try" in
30795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30796 *) ac_try_echo=$ac_try;;
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799 (eval "$ac_compile") 2>conftest.er1
30801 grep -v '^ *+' conftest.er1 >conftest.err
30803 cat conftest.err >&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); } && {
30806 test -z "$ac_c_werror_flag" ||
30807 test ! -s conftest.err
30808 } && test -s conftest.$ac_objext; then
30809 ac_header_compiler=yes
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 ac_header_compiler=no
30817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30819 echo "${ECHO_T}$ac_header_compiler" >&6; }
30821 # Is the header present?
30822 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
30823 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
30824 cat >conftest.$ac_ext <<_ACEOF
30827 cat confdefs.h >>conftest.$ac_ext
30828 cat >>conftest.$ac_ext <<_ACEOF
30829 /* end confdefs.h. */
30830 #include <openssl/ssl.h>
30832 if { (ac_try="$ac_cpp conftest.$ac_ext"
30833 case "(($ac_try" in
30834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30835 *) ac_try_echo
=$ac_try;;
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30840 grep -v '^ *+' conftest.er1
>conftest.err
30842 cat conftest.err
>&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } >/dev
/null
&& {
30845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30846 test ! -s conftest.err
30848 ac_header_preproc
=yes
30850 echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.
$ac_ext >&5
30853 ac_header_preproc
=no
30856 rm -f conftest.err conftest.
$ac_ext
30857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30858 echo "${ECHO_T}$ac_header_preproc" >&6; }
30860 # So? What about this header?
30861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30863 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30864 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30865 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
30866 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
30867 ac_header_preproc
=yes
30870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
30871 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
30872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
30873 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30874 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
30875 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
30876 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30877 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
30879 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
30881 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30883 ## ------------------------------- ##
30884 ## Report this to www.asterisk.org ##
30885 ## ------------------------------- ##
30887 ) |
sed "s/^/$as_me: WARNING: /" >&2
30890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30895 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
30897 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30898 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30901 if test $ac_cv_header_openssl_ssl_h = yes; then
30902 OPENSSL_HEADER_FOUND
=1
30904 OPENSSL_HEADER_FOUND
=0
30910 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
30911 if test -n "${OPENSSL_MANDATORY}" ;
30913 { echo "$as_me:$LINENO: ***" >&5
30914 echo "$as_me: ***" >&6;}
30915 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
30916 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
30917 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
30918 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
30919 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30920 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30929 cat >>confdefs.h
<<_ACEOF
30930 #define HAVE_OPENSSL 1
30934 elif test -n "${OPENSSL_MANDATORY}";
30936 { echo "$as_me:$LINENO: ***" >&5
30937 echo "$as_me: ***" >&6;}
30938 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
30939 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
30940 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30941 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30942 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30943 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30948 if test "$PBX_OPENSSL" = "1";
30951 if test "${USE_OSPTK}" != "no"; then
30953 if test "x${OSPTK_DIR}" != "x"; then
30954 if test -d ${OSPTK_DIR}/lib
; then
30955 pbxlibdir
="-L${OSPTK_DIR}/lib"
30957 pbxlibdir
="-L${OSPTK_DIR}"
30960 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
30961 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
30962 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30965 ac_check_lib_save_LIBS
=$LIBS
30966 LIBS
="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30967 cat >conftest.
$ac_ext <<_ACEOF
30970 cat confdefs.h
>>conftest.
$ac_ext
30971 cat >>conftest.
$ac_ext <<_ACEOF
30972 /* end confdefs.h. */
30974 /* Override any GCC internal prototype to avoid an error.
30975 Use char because int might match the return type of a GCC
30976 builtin and then its argument prototype would still apply. */
30980 char OSPPCryptoDecrypt ();
30984 return OSPPCryptoDecrypt ();
30989 rm -f conftest.
$ac_objext conftest
$ac_exeext
30990 if { (ac_try
="$ac_link"
30991 case "(($ac_try" in
30992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30993 *) ac_try_echo=$ac_try;;
30995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30996 (eval "$ac_link") 2>conftest.er1
30998 grep -v '^ *+' conftest.er1 >conftest.err
31000 cat conftest.err >&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } && {
31003 test -z "$ac_c_werror_flag" ||
31004 test ! -s conftest.err
31005 } && test -s conftest$ac_exeext &&
31006 $as_test_x conftest$ac_exeext; then
31007 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
31009 echo "$as_me: failed program was:" >&5
31010 sed 's/^/| /' conftest.$ac_ext >&5
31012 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
31015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31016 conftest$ac_exeext conftest.$ac_ext
31017 LIBS=$ac_check_lib_save_LIBS
31019 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
31020 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
31021 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
31022 AST_OSPTK_FOUND=yes
31028 if test "${AST_OSPTK_FOUND}" = "yes"; then
31029 OSPTK_LIB="-losptk -lcrypto -lssl"
31030 OSPTK_HEADER_FOUND="1"
31031 if test "x${OSPTK_DIR}" != "x"; then
31032 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
31033 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
31034 saved_cppflags="${CPPFLAGS}"
31035 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
31036 if test "xosp/osp.h" != "x" ; then
31037 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" |
$as_tr_sh`
31038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31039 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31040 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31044 ac_res=`eval echo '${'$as_ac_Header'}'`
31045 { echo "$as_me:$LINENO: result: $ac_res" >&5
31046 echo "${ECHO_T}$ac_res" >&6; }
31048 # Is the header compilable?
31049 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
31050 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
31051 cat >conftest.$ac_ext <<_ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 $ac_includes_default
31058 #include <${OSPTK_DIR}/include/osp/osp.h>
31060 rm -f conftest.$ac_objext
31061 if { (ac_try="$ac_compile"
31062 case "(($ac_try" in
31063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31064 *) ac_try_echo
=$ac_try;;
31066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31067 (eval "$ac_compile") 2>conftest.er1
31069 grep -v '^ *+' conftest.er1
>conftest.err
31071 cat conftest.err
>&5
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); } && {
31074 test -z "$ac_c_werror_flag" ||
31075 test ! -s conftest.err
31076 } && test -s conftest.
$ac_objext; then
31077 ac_header_compiler
=yes
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.
$ac_ext >&5
31082 ac_header_compiler
=no
31085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31087 echo "${ECHO_T}$ac_header_compiler" >&6; }
31089 # Is the header present?
31090 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
31091 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
31092 cat >conftest.
$ac_ext <<_ACEOF
31095 cat confdefs.h
>>conftest.
$ac_ext
31096 cat >>conftest.
$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31098 #include <${OSPTK_DIR}/include/osp/osp.h>
31100 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31101 case "(($ac_try" in
31102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31108 grep -v '^ *+' conftest.er1 >conftest.err
31110 cat conftest.err >&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } >/dev/null && {
31113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31114 test ! -s conftest.err
31116 ac_header_preproc=yes
31118 echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31121 ac_header_preproc=no
31124 rm -f conftest.err conftest.$ac_ext
31125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31126 echo "${ECHO_T}$ac_header_preproc" >&6; }
31128 # So? What about this header?
31129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31131 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31132 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31133 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
31134 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
31135 ac_header_preproc=yes
31138 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
31139 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
31140 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
31141 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
31142 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
31143 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31145 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31146 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
31147 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
31148 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
31149 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
31151 ## ------------------------------- ##
31152 ## Report this to www.asterisk.org ##
31153 ## ------------------------------- ##
31155 ) | sed "s/^/$as_me: WARNING: /" >&2
31158 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31159 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31163 eval "$as_ac_Header=\$ac_header_preproc"
31165 ac_res=`eval echo '${'$as_ac_Header'}'`
31166 { echo "$as_me:$LINENO: result: $ac_res" >&5
31167 echo "${ECHO_T}$ac_res" >&6; }
31170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31171 OSPTK_HEADER_FOUND=1
31173 OSPTK_HEADER_FOUND=0
31178 CPPFLAGS="${saved_cppflags}"
31180 if test "xosp/osp.h" != "x" ; then
31181 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31182 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31183 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31184 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31187 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31188 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31190 # Is the header compilable?
31191 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
31192 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
31193 cat >conftest.$ac_ext <<_ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31199 $ac_includes_default
31200 #include <osp/osp.h>
31202 rm -f conftest.$ac_objext
31203 if { (ac_try="$ac_compile"
31204 case "(($ac_try" in
31205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31206 *) ac_try_echo
=$ac_try;;
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_compile") 2>conftest.er1
31211 grep -v '^ *+' conftest.er1
>conftest.err
31213 cat conftest.err
>&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } && {
31216 test -z "$ac_c_werror_flag" ||
31217 test ! -s conftest.err
31218 } && test -s conftest.
$ac_objext; then
31219 ac_header_compiler
=yes
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.
$ac_ext >&5
31224 ac_header_compiler
=no
31227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31229 echo "${ECHO_T}$ac_header_compiler" >&6; }
31231 # Is the header present?
31232 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
31233 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
31234 cat >conftest.
$ac_ext <<_ACEOF
31237 cat confdefs.h
>>conftest.
$ac_ext
31238 cat >>conftest.
$ac_ext <<_ACEOF
31239 /* end confdefs.h. */
31240 #include <osp/osp.h>
31242 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31243 case "(($ac_try" in
31244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31245 *) ac_try_echo=$ac_try;;
31247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31250 grep -v '^ *+' conftest.er1 >conftest.err
31252 cat conftest.err >&5
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); } >/dev/null && {
31255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31256 test ! -s conftest.err
31258 ac_header_preproc=yes
31260 echo "$as_me: failed program was:" >&5
31261 sed 's/^/| /' conftest.$ac_ext >&5
31263 ac_header_preproc=no
31266 rm -f conftest.err conftest.$ac_ext
31267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31268 echo "${ECHO_T}$ac_header_preproc" >&6; }
31270 # So? What about this header?
31271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31273 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31274 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
31276 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
31277 ac_header_preproc=yes
31280 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
31281 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
31282 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
31283 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
31284 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
31285 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
31286 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31287 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31288 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
31289 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
31290 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
31291 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
31293 ## ------------------------------- ##
31294 ## Report this to www.asterisk.org ##
31295 ## ------------------------------- ##
31297 ) | sed "s/^/$as_me: WARNING: /" >&2
31300 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31301 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31302 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31305 ac_cv_header_osp_osp_h=$ac_header_preproc
31307 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31308 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31311 if test $ac_cv_header_osp_osp_h = yes; then
31312 OSPTK_HEADER_FOUND=1
31314 OSPTK_HEADER_FOUND=0
31320 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
31321 if test -n "${OSPTK_MANDATORY}" ;
31323 { echo "$as_me:$LINENO: ***" >&5
31324 echo "$as_me: ***" >&6;}
31325 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
31326 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
31327 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
31328 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
31329 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31330 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31339 cat >>confdefs.h <<_ACEOF
31340 #define HAVE_OSPTK 1
31344 elif test -n "${OSPTK_MANDATORY}";
31346 { echo "$as_me:$LINENO: ***" >&5
31347 echo "$as_me: ***" >&6;}
31348 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
31349 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
31350 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31351 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31352 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31353 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31361 if test "${USE_FREETDS}" != "no"; then
31363 if test "x${FREETDS_DIR}" != "x"; then
31364 if test -d ${FREETDS_DIR}/lib; then
31365 pbxlibdir="-L${FREETDS_DIR}/lib"
31367 pbxlibdir="-L${FREETDS_DIR}"
31370 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
31371 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
31372 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 ac_check_lib_save_LIBS=$LIBS
31376 LIBS="-ltds ${pbxlibdir} $LIBS"
31377 cat >conftest.$ac_ext <<_ACEOF
31380 cat confdefs.h >>conftest.$ac_ext
31381 cat >>conftest.$ac_ext <<_ACEOF
31382 /* end confdefs.h. */
31384 /* Override any GCC internal prototype to avoid an error.
31385 Use char because int might match the return type of a GCC
31386 builtin and then its argument prototype would still apply. */
31390 char tds_version ();
31394 return tds_version ();
31399 rm -f conftest.$ac_objext conftest$ac_exeext
31400 if { (ac_try="$ac_link"
31401 case "(($ac_try" in
31402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31403 *) ac_try_echo
=$ac_try;;
31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_link") 2>conftest.er1
31408 grep -v '^ *+' conftest.er1
>conftest.err
31410 cat conftest.err
>&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); } && {
31413 test -z "$ac_c_werror_flag" ||
31414 test ! -s conftest.err
31415 } && test -s conftest
$ac_exeext &&
31416 $as_test_x conftest
$ac_exeext; then
31417 ac_cv_lib_tds_tds_version
=yes
31419 echo "$as_me: failed program was:" >&5
31420 sed 's/^/| /' conftest.
$ac_ext >&5
31422 ac_cv_lib_tds_tds_version
=no
31425 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31426 conftest
$ac_exeext conftest.
$ac_ext
31427 LIBS
=$ac_check_lib_save_LIBS
31429 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
31430 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
31431 if test $ac_cv_lib_tds_tds_version = yes; then
31432 AST_FREETDS_FOUND
=yes
31434 AST_FREETDS_FOUND
=no
31438 if test "${AST_FREETDS_FOUND}" = "yes"; then
31439 FREETDS_LIB
="-ltds "
31440 FREETDS_HEADER_FOUND
="1"
31441 if test "x${FREETDS_DIR}" != "x"; then
31442 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
31443 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
31444 saved_cppflags
="${CPPFLAGS}"
31445 CPPFLAGS
="${CPPFLAGS} -I${FREETDS_DIR}/include"
31446 if test "xtds.h" != "x" ; then
31447 as_ac_Header
=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
31448 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31449 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31450 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31451 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31452 echo $ECHO_N "(cached) $ECHO_C" >&6
31454 ac_res
=`eval echo '${'$as_ac_Header'}'`
31455 { echo "$as_me:$LINENO: result: $ac_res" >&5
31456 echo "${ECHO_T}$ac_res" >&6; }
31458 # Is the header compilable?
31459 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
31460 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
31461 cat >conftest.
$ac_ext <<_ACEOF
31464 cat confdefs.h
>>conftest.
$ac_ext
31465 cat >>conftest.
$ac_ext <<_ACEOF
31466 /* end confdefs.h. */
31467 $ac_includes_default
31468 #include <${FREETDS_DIR}/include/tds.h>
31470 rm -f conftest.
$ac_objext
31471 if { (ac_try
="$ac_compile"
31472 case "(($ac_try" in
31473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_compile") 2>conftest.er1
31479 grep -v '^ *+' conftest.er1 >conftest.err
31481 cat conftest.err >&5
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } && {
31484 test -z "$ac_c_werror_flag" ||
31485 test ! -s conftest.err
31486 } && test -s conftest.$ac_objext; then
31487 ac_header_compiler=yes
31489 echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31492 ac_header_compiler=no
31495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31497 echo "${ECHO_T}$ac_header_compiler" >&6; }
31499 # Is the header present?
31500 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
31501 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
31502 cat >conftest.$ac_ext <<_ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h. */
31508 #include <${FREETDS_DIR}/include/tds.h>
31510 if { (ac_try="$ac_cpp conftest.$ac_ext"
31511 case "(($ac_try" in
31512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31513 *) ac_try_echo
=$ac_try;;
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31518 grep -v '^ *+' conftest.er1
>conftest.err
31520 cat conftest.err
>&5
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); } >/dev
/null
&& {
31523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31524 test ! -s conftest.err
31526 ac_header_preproc
=yes
31528 echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.
$ac_ext >&5
31531 ac_header_preproc
=no
31534 rm -f conftest.err conftest.
$ac_ext
31535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31536 echo "${ECHO_T}$ac_header_preproc" >&6; }
31538 # So? What about this header?
31539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31541 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31542 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31543 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
31544 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
31545 ac_header_preproc
=yes
31548 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
31549 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
31550 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
31551 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
31552 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
31553 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
31554 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
31555 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31556 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
31557 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
31558 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
31559 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
31561 ## ------------------------------- ##
31562 ## Report this to www.asterisk.org ##
31563 ## ------------------------------- ##
31565 ) |
sed "s/^/$as_me: WARNING: /" >&2
31568 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31569 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31573 eval "$as_ac_Header=\$ac_header_preproc"
31575 ac_res
=`eval echo '${'$as_ac_Header'}'`
31576 { echo "$as_me:$LINENO: result: $ac_res" >&5
31577 echo "${ECHO_T}$ac_res" >&6; }
31580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31581 FREETDS_HEADER_FOUND
=1
31583 FREETDS_HEADER_FOUND
=0
31588 CPPFLAGS
="${saved_cppflags}"
31590 if test "xtds.h" != "x" ; then
31591 if test "${ac_cv_header_tds_h+set}" = set; then
31592 { echo "$as_me:$LINENO: checking for tds.h" >&5
31593 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31594 if test "${ac_cv_header_tds_h+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
31597 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31598 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31600 # Is the header compilable?
31601 { echo "$as_me:$LINENO: checking tds.h usability" >&5
31602 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
31603 cat >conftest.
$ac_ext <<_ACEOF
31606 cat confdefs.h
>>conftest.
$ac_ext
31607 cat >>conftest.
$ac_ext <<_ACEOF
31608 /* end confdefs.h. */
31609 $ac_includes_default
31612 rm -f conftest.
$ac_objext
31613 if { (ac_try
="$ac_compile"
31614 case "(($ac_try" in
31615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_compile") 2>conftest.er1
31621 grep -v '^ *+' conftest.er1 >conftest.err
31623 cat conftest.err >&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } && {
31626 test -z "$ac_c_werror_flag" ||
31627 test ! -s conftest.err
31628 } && test -s conftest.$ac_objext; then
31629 ac_header_compiler=yes
31631 echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.$ac_ext >&5
31634 ac_header_compiler=no
31637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31639 echo "${ECHO_T}$ac_header_compiler" >&6; }
31641 # Is the header present?
31642 { echo "$as_me:$LINENO: checking tds.h presence" >&5
31643 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
31644 cat >conftest.$ac_ext <<_ACEOF
31647 cat confdefs.h >>conftest.$ac_ext
31648 cat >>conftest.$ac_ext <<_ACEOF
31649 /* end confdefs.h. */
31652 if { (ac_try="$ac_cpp conftest.$ac_ext"
31653 case "(($ac_try" in
31654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31655 *) ac_try_echo
=$ac_try;;
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31660 grep -v '^ *+' conftest.er1
>conftest.err
31662 cat conftest.err
>&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } >/dev
/null
&& {
31665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31666 test ! -s conftest.err
31668 ac_header_preproc
=yes
31670 echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.
$ac_ext >&5
31673 ac_header_preproc
=no
31676 rm -f conftest.err conftest.
$ac_ext
31677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31678 echo "${ECHO_T}$ac_header_preproc" >&6; }
31680 # So? What about this header?
31681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31683 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31684 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31685 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
31686 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
31687 ac_header_preproc
=yes
31690 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
31691 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
31692 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
31693 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
31694 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
31695 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
31696 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
31697 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31698 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
31699 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
31700 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
31701 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
31703 ## ------------------------------- ##
31704 ## Report this to www.asterisk.org ##
31705 ## ------------------------------- ##
31707 ) |
sed "s/^/$as_me: WARNING: /" >&2
31710 { echo "$as_me:$LINENO: checking for tds.h" >&5
31711 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31712 if test "${ac_cv_header_tds_h+set}" = set; then
31713 echo $ECHO_N "(cached) $ECHO_C" >&6
31715 ac_cv_header_tds_h
=$ac_header_preproc
31717 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31718 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31721 if test $ac_cv_header_tds_h = yes; then
31722 FREETDS_HEADER_FOUND
=1
31724 FREETDS_HEADER_FOUND
=0
31730 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
31731 if test -n "${FREETDS_MANDATORY}" ;
31733 { echo "$as_me:$LINENO: ***" >&5
31734 echo "$as_me: ***" >&6;}
31735 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
31736 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
31737 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
31738 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
31739 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31740 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31749 cat >>confdefs.h
<<_ACEOF
31750 #define HAVE_FREETDS 1
31754 elif test -n "${FREETDS_MANDATORY}";
31756 { echo "$as_me:$LINENO: ***" >&5
31757 echo "$as_me: ***" >&6;}
31758 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
31759 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
31760 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31761 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31762 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31763 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31768 if test "${PBX_FREETDS}" != "0";
31770 if test "${FREETDS_DIR}x" = "x";
31772 for tds_dir
in /usr
/usr
/local;
31774 if test -f "${tds_dir}/include/tdsver.h";
31776 FREETDS_DIR
="${tds_dir}"
31780 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
31782 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_64"
31785 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
31788 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
31791 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
31797 if test "${USE_TERMCAP}" != "no"; then
31799 if test "x${TERMCAP_DIR}" != "x"; then
31800 if test -d ${TERMCAP_DIR}/lib
; then
31801 pbxlibdir
="-L${TERMCAP_DIR}/lib"
31803 pbxlibdir
="-L${TERMCAP_DIR}"
31806 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31807 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31808 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 ac_check_lib_save_LIBS
=$LIBS
31812 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
31813 cat >conftest.
$ac_ext <<_ACEOF
31816 cat confdefs.h
>>conftest.
$ac_ext
31817 cat >>conftest.
$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31820 /* Override any GCC internal prototype to avoid an error.
31821 Use char because int might match the return type of a GCC
31822 builtin and then its argument prototype would still apply. */
31835 rm -f conftest.
$ac_objext conftest
$ac_exeext
31836 if { (ac_try
="$ac_link"
31837 case "(($ac_try" in
31838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842 (eval "$ac_link") 2>conftest.er1
31844 grep -v '^ *+' conftest.er1 >conftest.err
31846 cat conftest.err >&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } && {
31849 test -z "$ac_c_werror_flag" ||
31850 test ! -s conftest.err
31851 } && test -s conftest$ac_exeext &&
31852 $as_test_x conftest$ac_exeext; then
31853 ac_cv_lib_termcap_tgetent=yes
31855 echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31858 ac_cv_lib_termcap_tgetent=no
31861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31862 conftest$ac_exeext conftest.$ac_ext
31863 LIBS=$ac_check_lib_save_LIBS
31865 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31866 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31867 if test $ac_cv_lib_termcap_tgetent = yes; then
31868 AST_TERMCAP_FOUND=yes
31870 AST_TERMCAP_FOUND=no
31874 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31875 TERMCAP_LIB="-ltermcap "
31876 TERMCAP_HEADER_FOUND="1"
31877 if test "x${TERMCAP_DIR}" != "x"; then
31878 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31879 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
31880 saved_cppflags="${CPPFLAGS}"
31881 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
31882 if test "x" != "x" ; then
31883 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" |
$as_tr_sh`
31884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31885 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31886 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31890 ac_res=`eval echo '${'$as_ac_Header'}'`
31891 { echo "$as_me:$LINENO: result: $ac_res" >&5
31892 echo "${ECHO_T}$ac_res" >&6; }
31894 # Is the header compilable?
31895 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
31896 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
31897 cat >conftest.$ac_ext <<_ACEOF
31900 cat confdefs.h >>conftest.$ac_ext
31901 cat >>conftest.$ac_ext <<_ACEOF
31902 /* end confdefs.h. */
31903 $ac_includes_default
31904 #include <${TERMCAP_DIR}/include/>
31906 rm -f conftest.$ac_objext
31907 if { (ac_try="$ac_compile"
31908 case "(($ac_try" in
31909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31910 *) ac_try_echo
=$ac_try;;
31912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_compile") 2>conftest.er1
31915 grep -v '^ *+' conftest.er1
>conftest.err
31917 cat conftest.err
>&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); } && {
31920 test -z "$ac_c_werror_flag" ||
31921 test ! -s conftest.err
31922 } && test -s conftest.
$ac_objext; then
31923 ac_header_compiler
=yes
31925 echo "$as_me: failed program was:" >&5
31926 sed 's/^/| /' conftest.
$ac_ext >&5
31928 ac_header_compiler
=no
31931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31933 echo "${ECHO_T}$ac_header_compiler" >&6; }
31935 # Is the header present?
31936 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
31937 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
31938 cat >conftest.
$ac_ext <<_ACEOF
31941 cat confdefs.h
>>conftest.
$ac_ext
31942 cat >>conftest.
$ac_ext <<_ACEOF
31943 /* end confdefs.h. */
31944 #include <${TERMCAP_DIR}/include/>
31946 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31947 case "(($ac_try" in
31948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31954 grep -v '^ *+' conftest.er1 >conftest.err
31956 cat conftest.err >&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); } >/dev/null && {
31959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31960 test ! -s conftest.err
31962 ac_header_preproc=yes
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31967 ac_header_preproc=no
31970 rm -f conftest.err conftest.$ac_ext
31971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31972 echo "${ECHO_T}$ac_header_preproc" >&6; }
31974 # So? What about this header?
31975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31977 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31978 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31979 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
31980 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
31981 ac_header_preproc=yes
31984 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
31985 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
31986 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
31987 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
31988 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
31989 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
31990 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31991 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31992 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
31993 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31994 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
31995 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31997 ## ------------------------------- ##
31998 ## Report this to www.asterisk.org ##
31999 ## ------------------------------- ##
32001 ) | sed "s/^/$as_me: WARNING: /" >&2
32004 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
32005 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
32006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32007 echo $ECHO_N "(cached) $ECHO_C" >&6
32009 eval "$as_ac_Header=\$ac_header_preproc"
32011 ac_res=`eval echo '${'$as_ac_Header'}'`
32012 { echo "$as_me:$LINENO: result: $ac_res" >&5
32013 echo "${ECHO_T}$ac_res" >&6; }
32016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32017 TERMCAP_HEADER_FOUND=1
32019 TERMCAP_HEADER_FOUND=0
32024 CPPFLAGS="${saved_cppflags}"
32026 if test "x" != "x" ; then
32027 if test "${ac_cv_header_+set}" = set; then
32028 { echo "$as_me:$LINENO: checking for " >&5
32029 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32030 if test "${ac_cv_header_+set}" = set; then
32031 echo $ECHO_N "(cached) $ECHO_C" >&6
32033 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32034 echo "${ECHO_T}$ac_cv_header_" >&6; }
32036 # Is the header compilable?
32037 { echo "$as_me:$LINENO: checking usability" >&5
32038 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32039 cat >conftest.$ac_ext <<_ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h. */
32045 $ac_includes_default
32048 rm -f conftest.$ac_objext
32049 if { (ac_try="$ac_compile"
32050 case "(($ac_try" in
32051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32052 *) ac_try_echo
=$ac_try;;
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_compile") 2>conftest.er1
32057 grep -v '^ *+' conftest.er1
>conftest.err
32059 cat conftest.err
>&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } && {
32062 test -z "$ac_c_werror_flag" ||
32063 test ! -s conftest.err
32064 } && test -s conftest.
$ac_objext; then
32065 ac_header_compiler
=yes
32067 echo "$as_me: failed program was:" >&5
32068 sed 's/^/| /' conftest.
$ac_ext >&5
32070 ac_header_compiler
=no
32073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32075 echo "${ECHO_T}$ac_header_compiler" >&6; }
32077 # Is the header present?
32078 { echo "$as_me:$LINENO: checking presence" >&5
32079 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32080 cat >conftest.
$ac_ext <<_ACEOF
32083 cat confdefs.h
>>conftest.
$ac_ext
32084 cat >>conftest.
$ac_ext <<_ACEOF
32085 /* end confdefs.h. */
32088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32089 case "(($ac_try" in
32090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32096 grep -v '^ *+' conftest.er1 >conftest.err
32098 cat conftest.err >&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } >/dev/null && {
32101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32102 test ! -s conftest.err
32104 ac_header_preproc=yes
32106 echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32109 ac_header_preproc=no
32112 rm -f conftest.err conftest.$ac_ext
32113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32114 echo "${ECHO_T}$ac_header_preproc" >&6; }
32116 # So? What about this header?
32117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32119 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32120 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32121 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32122 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32123 ac_header_preproc=yes
32126 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32127 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32128 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32129 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32130 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32131 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32132 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32133 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32134 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32135 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32136 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32137 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32139 ## ------------------------------- ##
32140 ## Report this to www.asterisk.org ##
32141 ## ------------------------------- ##
32143 ) | sed "s/^/$as_me: WARNING: /" >&2
32146 { echo "$as_me:$LINENO: checking for " >&5
32147 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32148 if test "${ac_cv_header_+set}" = set; then
32149 echo $ECHO_N "(cached) $ECHO_C" >&6
32151 ac_cv_header_=$ac_header_preproc
32153 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32154 echo "${ECHO_T}$ac_cv_header_" >&6; }
32157 if test $ac_cv_header_ = yes; then
32158 TERMCAP_HEADER_FOUND=1
32160 TERMCAP_HEADER_FOUND=0
32166 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
32167 if test -n "${TERMCAP_MANDATORY}" ;
32169 { echo "$as_me:$LINENO: ***" >&5
32170 echo "$as_me: ***" >&6;}
32171 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
32172 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
32173 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
32174 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
32175 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32176 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32185 cat >>confdefs.h <<_ACEOF
32186 #define HAVE_TERMCAP 1
32190 elif test -n "${TERMCAP_MANDATORY}";
32192 { echo "$as_me:$LINENO: ***" >&5
32193 echo "$as_me: ***" >&6;}
32194 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
32195 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
32196 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32197 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32198 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32199 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32206 if test "${USE_TINFO}" != "no"; then
32208 if test "x${TINFO_DIR}" != "x"; then
32209 if test -d ${TINFO_DIR}/lib; then
32210 pbxlibdir="-L${TINFO_DIR}/lib"
32212 pbxlibdir="-L${TINFO_DIR}"
32215 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
32216 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
32217 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32220 ac_check_lib_save_LIBS=$LIBS
32221 LIBS="-ltinfo ${pbxlibdir} $LIBS"
32222 cat >conftest.$ac_ext <<_ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h. */
32229 /* Override any GCC internal prototype to avoid an error.
32230 Use char because int might match the return type of a GCC
32231 builtin and then its argument prototype would still apply. */
32244 rm -f conftest.$ac_objext conftest$ac_exeext
32245 if { (ac_try="$ac_link"
32246 case "(($ac_try" in
32247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32248 *) ac_try_echo
=$ac_try;;
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_link") 2>conftest.er1
32253 grep -v '^ *+' conftest.er1
>conftest.err
32255 cat conftest.err
>&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } && {
32258 test -z "$ac_c_werror_flag" ||
32259 test ! -s conftest.err
32260 } && test -s conftest
$ac_exeext &&
32261 $as_test_x conftest
$ac_exeext; then
32262 ac_cv_lib_tinfo_tgetent
=yes
32264 echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.
$ac_ext >&5
32267 ac_cv_lib_tinfo_tgetent
=no
32270 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32271 conftest
$ac_exeext conftest.
$ac_ext
32272 LIBS
=$ac_check_lib_save_LIBS
32274 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
32275 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
32276 if test $ac_cv_lib_tinfo_tgetent = yes; then
32277 AST_TINFO_FOUND
=yes
32283 if test "${AST_TINFO_FOUND}" = "yes"; then
32284 TINFO_LIB
="-ltinfo "
32285 TINFO_HEADER_FOUND
="1"
32286 if test "x${TINFO_DIR}" != "x"; then
32287 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
32288 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
32289 saved_cppflags
="${CPPFLAGS}"
32290 CPPFLAGS
="${CPPFLAGS} -I${TINFO_DIR}/include"
32291 if test "x" != "x" ; then
32292 as_ac_Header
=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
32293 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32294 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32295 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32296 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32297 echo $ECHO_N "(cached) $ECHO_C" >&6
32299 ac_res
=`eval echo '${'$as_ac_Header'}'`
32300 { echo "$as_me:$LINENO: result: $ac_res" >&5
32301 echo "${ECHO_T}$ac_res" >&6; }
32303 # Is the header compilable?
32304 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
32305 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
32306 cat >conftest.
$ac_ext <<_ACEOF
32309 cat confdefs.h
>>conftest.
$ac_ext
32310 cat >>conftest.
$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32312 $ac_includes_default
32313 #include <${TINFO_DIR}/include/>
32315 rm -f conftest.
$ac_objext
32316 if { (ac_try
="$ac_compile"
32317 case "(($ac_try" in
32318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_compile") 2>conftest.er1
32324 grep -v '^ *+' conftest.er1 >conftest.err
32326 cat conftest.err >&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } && {
32329 test -z "$ac_c_werror_flag" ||
32330 test ! -s conftest.err
32331 } && test -s conftest.$ac_objext; then
32332 ac_header_compiler=yes
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32337 ac_header_compiler=no
32340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32342 echo "${ECHO_T}$ac_header_compiler" >&6; }
32344 # Is the header present?
32345 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
32346 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
32347 cat >conftest.$ac_ext <<_ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353 #include <${TINFO_DIR}/include/>
32355 if { (ac_try="$ac_cpp conftest.$ac_ext"
32356 case "(($ac_try" in
32357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32358 *) ac_try_echo
=$ac_try;;
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32363 grep -v '^ *+' conftest.er1
>conftest.err
32365 cat conftest.err
>&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } >/dev
/null
&& {
32368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32369 test ! -s conftest.err
32371 ac_header_preproc
=yes
32373 echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.
$ac_ext >&5
32376 ac_header_preproc
=no
32379 rm -f conftest.err conftest.
$ac_ext
32380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32381 echo "${ECHO_T}$ac_header_preproc" >&6; }
32383 # So? What about this header?
32384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32386 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
32387 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
32388 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
32389 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
32390 ac_header_preproc
=yes
32393 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
32394 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
32396 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
32397 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
32398 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
32399 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
32400 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
32401 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
32402 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
32403 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
32404 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
32406 ## ------------------------------- ##
32407 ## Report this to www.asterisk.org ##
32408 ## ------------------------------- ##
32410 ) |
sed "s/^/$as_me: WARNING: /" >&2
32413 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32414 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32415 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32416 echo $ECHO_N "(cached) $ECHO_C" >&6
32418 eval "$as_ac_Header=\$ac_header_preproc"
32420 ac_res
=`eval echo '${'$as_ac_Header'}'`
32421 { echo "$as_me:$LINENO: result: $ac_res" >&5
32422 echo "${ECHO_T}$ac_res" >&6; }
32425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32426 TINFO_HEADER_FOUND
=1
32428 TINFO_HEADER_FOUND
=0
32433 CPPFLAGS
="${saved_cppflags}"
32435 if test "x" != "x" ; then
32436 if test "${ac_cv_header_+set}" = set; then
32437 { echo "$as_me:$LINENO: checking for " >&5
32438 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32439 if test "${ac_cv_header_+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32442 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32443 echo "${ECHO_T}$ac_cv_header_" >&6; }
32445 # Is the header compilable?
32446 { echo "$as_me:$LINENO: checking usability" >&5
32447 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32448 cat >conftest.
$ac_ext <<_ACEOF
32451 cat confdefs.h
>>conftest.
$ac_ext
32452 cat >>conftest.
$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32454 $ac_includes_default
32457 rm -f conftest.
$ac_objext
32458 if { (ac_try
="$ac_compile"
32459 case "(($ac_try" in
32460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_compile") 2>conftest.er1
32466 grep -v '^ *+' conftest.er1 >conftest.err
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } && {
32471 test -z "$ac_c_werror_flag" ||
32472 test ! -s conftest.err
32473 } && test -s conftest.$ac_objext; then
32474 ac_header_compiler=yes
32476 echo "$as_me: failed program was:" >&5
32477 sed 's/^/| /' conftest.$ac_ext >&5
32479 ac_header_compiler=no
32482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32484 echo "${ECHO_T}$ac_header_compiler" >&6; }
32486 # Is the header present?
32487 { echo "$as_me:$LINENO: checking presence" >&5
32488 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32489 cat >conftest.$ac_ext <<_ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h. */
32497 if { (ac_try="$ac_cpp conftest.$ac_ext"
32498 case "(($ac_try" in
32499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32500 *) ac_try_echo
=$ac_try;;
32502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32505 grep -v '^ *+' conftest.er1
>conftest.err
32507 cat conftest.err
>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); } >/dev
/null
&& {
32510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32511 test ! -s conftest.err
32513 ac_header_preproc
=yes
32515 echo "$as_me: failed program was:" >&5
32516 sed 's/^/| /' conftest.
$ac_ext >&5
32518 ac_header_preproc
=no
32521 rm -f conftest.err conftest.
$ac_ext
32522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32523 echo "${ECHO_T}$ac_header_preproc" >&6; }
32525 # So? What about this header?
32526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32528 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32529 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32530 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32531 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32532 ac_header_preproc
=yes
32535 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32536 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32537 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32538 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32539 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32540 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32541 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32542 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32543 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32544 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32545 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32546 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32548 ## ------------------------------- ##
32549 ## Report this to www.asterisk.org ##
32550 ## ------------------------------- ##
32552 ) |
sed "s/^/$as_me: WARNING: /" >&2
32555 { echo "$as_me:$LINENO: checking for " >&5
32556 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32557 if test "${ac_cv_header_+set}" = set; then
32558 echo $ECHO_N "(cached) $ECHO_C" >&6
32560 ac_cv_header_
=$ac_header_preproc
32562 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32563 echo "${ECHO_T}$ac_cv_header_" >&6; }
32566 if test $ac_cv_header_ = yes; then
32567 TINFO_HEADER_FOUND
=1
32569 TINFO_HEADER_FOUND
=0
32575 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
32576 if test -n "${TINFO_MANDATORY}" ;
32578 { echo "$as_me:$LINENO: ***" >&5
32579 echo "$as_me: ***" >&6;}
32580 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
32581 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
32582 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
32583 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
32584 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32585 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32594 cat >>confdefs.h
<<_ACEOF
32595 #define HAVE_TINFO 1
32599 elif test -n "${TINFO_MANDATORY}";
32601 { echo "$as_me:$LINENO: ***" >&5
32602 echo "$as_me: ***" >&6;}
32603 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
32604 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
32605 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32606 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32607 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32608 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32614 if test "${host_os}" != "linux-gnu" ; then
32615 tonezone_extra
="-lm"
32619 if test "${USE_TONEZONE}" != "no"; then
32621 if test "x${TONEZONE_DIR}" != "x"; then
32622 if test -d ${TONEZONE_DIR}/lib
; then
32623 pbxlibdir
="-L${TONEZONE_DIR}/lib"
32625 pbxlibdir
="-L${TONEZONE_DIR}"
32628 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
32629 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
32630 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
32631 echo $ECHO_N "(cached) $ECHO_C" >&6
32633 ac_check_lib_save_LIBS
=$LIBS
32634 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
32635 cat >conftest.
$ac_ext <<_ACEOF
32638 cat confdefs.h
>>conftest.
$ac_ext
32639 cat >>conftest.
$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32642 /* Override any GCC internal prototype to avoid an error.
32643 Use char because int might match the return type of a GCC
32644 builtin and then its argument prototype would still apply. */
32648 char tone_zone_find ();
32652 return tone_zone_find ();
32657 rm -f conftest.
$ac_objext conftest
$ac_exeext
32658 if { (ac_try
="$ac_link"
32659 case "(($ac_try" in
32660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_link") 2>conftest.er1
32666 grep -v '^ *+' conftest.er1 >conftest.err
32668 cat conftest.err >&5
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); } && {
32671 test -z "$ac_c_werror_flag" ||
32672 test ! -s conftest.err
32673 } && test -s conftest$ac_exeext &&
32674 $as_test_x conftest$ac_exeext; then
32675 ac_cv_lib_tonezone_tone_zone_find=yes
32677 echo "$as_me: failed program was:" >&5
32678 sed 's/^/| /' conftest.$ac_ext >&5
32680 ac_cv_lib_tonezone_tone_zone_find=no
32683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32684 conftest$ac_exeext conftest.$ac_ext
32685 LIBS=$ac_check_lib_save_LIBS
32687 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
32688 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
32689 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
32690 AST_TONEZONE_FOUND=yes
32692 AST_TONEZONE_FOUND=no
32696 if test "${AST_TONEZONE_FOUND}" = "yes"; then
32697 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
32698 TONEZONE_HEADER_FOUND="1"
32699 if test "x${TONEZONE_DIR}" != "x"; then
32700 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
32701 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
32702 saved_cppflags="${CPPFLAGS}"
32703 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
32704 if test "xzaptel/tonezone.h" != "x" ; then
32705 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" |
$as_tr_sh`
32706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32707 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32708 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32710 echo $ECHO_N "(cached) $ECHO_C" >&6
32712 ac_res=`eval echo '${'$as_ac_Header'}'`
32713 { echo "$as_me:$LINENO: result: $ac_res" >&5
32714 echo "${ECHO_T}$ac_res" >&6; }
32716 # Is the header compilable?
32717 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
32718 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
32719 cat >conftest.$ac_ext <<_ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32725 $ac_includes_default
32726 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32728 rm -f conftest.$ac_objext
32729 if { (ac_try="$ac_compile"
32730 case "(($ac_try" in
32731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32732 *) ac_try_echo
=$ac_try;;
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_compile") 2>conftest.er1
32737 grep -v '^ *+' conftest.er1
>conftest.err
32739 cat conftest.err
>&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } && {
32742 test -z "$ac_c_werror_flag" ||
32743 test ! -s conftest.err
32744 } && test -s conftest.
$ac_objext; then
32745 ac_header_compiler
=yes
32747 echo "$as_me: failed program was:" >&5
32748 sed 's/^/| /' conftest.
$ac_ext >&5
32750 ac_header_compiler
=no
32753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32755 echo "${ECHO_T}$ac_header_compiler" >&6; }
32757 # Is the header present?
32758 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
32759 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
32760 cat >conftest.
$ac_ext <<_ACEOF
32763 cat confdefs.h
>>conftest.
$ac_ext
32764 cat >>conftest.
$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32766 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32768 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32769 case "(($ac_try" in
32770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32771 *) ac_try_echo=$ac_try;;
32773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32776 grep -v '^ *+' conftest.er1 >conftest.err
32778 cat conftest.err >&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); } >/dev/null && {
32781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32782 test ! -s conftest.err
32784 ac_header_preproc=yes
32786 echo "$as_me: failed program was:" >&5
32787 sed 's/^/| /' conftest.$ac_ext >&5
32789 ac_header_preproc=no
32792 rm -f conftest.err conftest.$ac_ext
32793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32794 echo "${ECHO_T}$ac_header_preproc" >&6; }
32796 # So? What about this header?
32797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32799 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32800 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32801 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
32802 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32803 ac_header_preproc=yes
32806 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
32807 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
32808 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32809 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32810 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
32811 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32812 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32813 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32814 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32815 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32816 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32817 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32819 ## ------------------------------- ##
32820 ## Report this to www.asterisk.org ##
32821 ## ------------------------------- ##
32823 ) | sed "s/^/$as_me: WARNING: /" >&2
32826 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32827 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32829 echo $ECHO_N "(cached) $ECHO_C" >&6
32831 eval "$as_ac_Header=\$ac_header_preproc"
32833 ac_res=`eval echo '${'$as_ac_Header'}'`
32834 { echo "$as_me:$LINENO: result: $ac_res" >&5
32835 echo "${ECHO_T}$ac_res" >&6; }
32838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32839 TONEZONE_HEADER_FOUND=1
32841 TONEZONE_HEADER_FOUND=0
32846 CPPFLAGS="${saved_cppflags}"
32848 if test "xzaptel/tonezone.h" != "x" ; then
32849 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32850 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32851 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32852 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32853 echo $ECHO_N "(cached) $ECHO_C" >&6
32855 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32856 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32858 # Is the header compilable?
32859 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
32860 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
32861 cat >conftest.$ac_ext <<_ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32867 $ac_includes_default
32868 #include <zaptel/tonezone.h>
32870 rm -f conftest.$ac_objext
32871 if { (ac_try="$ac_compile"
32872 case "(($ac_try" in
32873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32874 *) ac_try_echo
=$ac_try;;
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
32879 grep -v '^ *+' conftest.er1
>conftest.err
32881 cat conftest.err
>&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } && {
32884 test -z "$ac_c_werror_flag" ||
32885 test ! -s conftest.err
32886 } && test -s conftest.
$ac_objext; then
32887 ac_header_compiler
=yes
32889 echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.
$ac_ext >&5
32892 ac_header_compiler
=no
32895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32897 echo "${ECHO_T}$ac_header_compiler" >&6; }
32899 # Is the header present?
32900 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
32901 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
32902 cat >conftest.
$ac_ext <<_ACEOF
32905 cat confdefs.h
>>conftest.
$ac_ext
32906 cat >>conftest.
$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 #include <zaptel/tonezone.h>
32910 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32911 case "(($ac_try" in
32912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32918 grep -v '^ *+' conftest.er1 >conftest.err
32920 cat conftest.err >&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } >/dev/null && {
32923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32924 test ! -s conftest.err
32926 ac_header_preproc=yes
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32931 ac_header_preproc=no
32934 rm -f conftest.err conftest.$ac_ext
32935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32936 echo "${ECHO_T}$ac_header_preproc" >&6; }
32938 # So? What about this header?
32939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32941 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32942 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32943 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
32944 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32945 ac_header_preproc=yes
32948 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
32949 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
32950 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32951 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32952 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
32953 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32954 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32955 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32956 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32957 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32958 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32959 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32961 ## ------------------------------- ##
32962 ## Report this to www.asterisk.org ##
32963 ## ------------------------------- ##
32965 ) | sed "s/^/$as_me: WARNING: /" >&2
32968 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32969 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32970 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32971 echo $ECHO_N "(cached) $ECHO_C" >&6
32973 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32975 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32976 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32979 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32980 TONEZONE_HEADER_FOUND=1
32982 TONEZONE_HEADER_FOUND=0
32988 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
32989 if test -n "${TONEZONE_MANDATORY}" ;
32991 { echo "$as_me:$LINENO: ***" >&5
32992 echo "$as_me: ***" >&6;}
32993 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
32994 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
32995 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
32996 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
32997 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32998 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33002 TONEZONE_INCLUDE=""
33007 cat >>confdefs.h <<_ACEOF
33008 #define HAVE_TONEZONE 1
33012 elif test -n "${TONEZONE_MANDATORY}";
33014 { echo "$as_me:$LINENO: ***" >&5
33015 echo "$as_me: ***" >&6;}
33016 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
33017 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
33018 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33019 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33020 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
33021 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33028 if test "${USE_USB}" != "no"; then
33030 if test "x${USB_DIR}" != "x"; then
33031 if test -d ${USB_DIR}/lib; then
33032 pbxlibdir="-L${USB_DIR}/lib"
33034 pbxlibdir="-L${USB_DIR}"
33037 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
33038 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
33039 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
33040 echo $ECHO_N "(cached) $ECHO_C" >&6
33042 ac_check_lib_save_LIBS=$LIBS
33043 LIBS="-lusb ${pbxlibdir} $LIBS"
33044 cat >conftest.$ac_ext <<_ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h. */
33051 /* Override any GCC internal prototype to avoid an error.
33052 Use char because int might match the return type of a GCC
33053 builtin and then its argument prototype would still apply. */
33061 return usb_init ();
33066 rm -f conftest.$ac_objext conftest$ac_exeext
33067 if { (ac_try="$ac_link"
33068 case "(($ac_try" in
33069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33070 *) ac_try_echo
=$ac_try;;
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_link") 2>conftest.er1
33075 grep -v '^ *+' conftest.er1
>conftest.err
33077 cat conftest.err
>&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } && {
33080 test -z "$ac_c_werror_flag" ||
33081 test ! -s conftest.err
33082 } && test -s conftest
$ac_exeext &&
33083 $as_test_x conftest
$ac_exeext; then
33084 ac_cv_lib_usb_usb_init
=yes
33086 echo "$as_me: failed program was:" >&5
33087 sed 's/^/| /' conftest.
$ac_ext >&5
33089 ac_cv_lib_usb_usb_init
=no
33092 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33093 conftest
$ac_exeext conftest.
$ac_ext
33094 LIBS
=$ac_check_lib_save_LIBS
33096 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
33097 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
33098 if test $ac_cv_lib_usb_usb_init = yes; then
33105 if test "${AST_USB_FOUND}" = "yes"; then
33107 USB_HEADER_FOUND
="1"
33108 if test "x${USB_DIR}" != "x"; then
33109 USB_LIB
="${pbxlibdir} ${USB_LIB}"
33110 USB_INCLUDE
="-I${USB_DIR}/include"
33111 saved_cppflags
="${CPPFLAGS}"
33112 CPPFLAGS
="${CPPFLAGS} -I${USB_DIR}/include"
33113 if test "xusb.h" != "x" ; then
33114 as_ac_Header
=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
33115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33116 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33117 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33118 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33119 echo $ECHO_N "(cached) $ECHO_C" >&6
33121 ac_res
=`eval echo '${'$as_ac_Header'}'`
33122 { echo "$as_me:$LINENO: result: $ac_res" >&5
33123 echo "${ECHO_T}$ac_res" >&6; }
33125 # Is the header compilable?
33126 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
33127 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
33128 cat >conftest.
$ac_ext <<_ACEOF
33131 cat confdefs.h
>>conftest.
$ac_ext
33132 cat >>conftest.
$ac_ext <<_ACEOF
33133 /* end confdefs.h. */
33134 $ac_includes_default
33135 #include <${USB_DIR}/include/usb.h>
33137 rm -f conftest.
$ac_objext
33138 if { (ac_try
="$ac_compile"
33139 case "(($ac_try" in
33140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_compile") 2>conftest.er1
33146 grep -v '^ *+' conftest.er1 >conftest.err
33148 cat conftest.err >&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } && {
33151 test -z "$ac_c_werror_flag" ||
33152 test ! -s conftest.err
33153 } && test -s conftest.$ac_objext; then
33154 ac_header_compiler=yes
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 ac_header_compiler=no
33162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33164 echo "${ECHO_T}$ac_header_compiler" >&6; }
33166 # Is the header present?
33167 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
33168 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
33169 cat >conftest.$ac_ext <<_ACEOF
33172 cat confdefs.h >>conftest.$ac_ext
33173 cat >>conftest.$ac_ext <<_ACEOF
33174 /* end confdefs.h. */
33175 #include <${USB_DIR}/include/usb.h>
33177 if { (ac_try="$ac_cpp conftest.$ac_ext"
33178 case "(($ac_try" in
33179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33180 *) ac_try_echo
=$ac_try;;
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33185 grep -v '^ *+' conftest.er1
>conftest.err
33187 cat conftest.err
>&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } >/dev
/null
&& {
33190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33191 test ! -s conftest.err
33193 ac_header_preproc
=yes
33195 echo "$as_me: failed program was:" >&5
33196 sed 's/^/| /' conftest.
$ac_ext >&5
33198 ac_header_preproc
=no
33201 rm -f conftest.err conftest.
$ac_ext
33202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33203 echo "${ECHO_T}$ac_header_preproc" >&6; }
33205 # So? What about this header?
33206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33208 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33209 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33210 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
33211 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
33212 ac_header_preproc
=yes
33215 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
33216 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
33217 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
33218 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
33219 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
33220 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
33221 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
33222 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33223 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
33224 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
33226 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
33228 ## ------------------------------- ##
33229 ## Report this to www.asterisk.org ##
33230 ## ------------------------------- ##
33232 ) |
sed "s/^/$as_me: WARNING: /" >&2
33235 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33236 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33237 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33240 eval "$as_ac_Header=\$ac_header_preproc"
33242 ac_res
=`eval echo '${'$as_ac_Header'}'`
33243 { echo "$as_me:$LINENO: result: $ac_res" >&5
33244 echo "${ECHO_T}$ac_res" >&6; }
33247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33255 CPPFLAGS
="${saved_cppflags}"
33257 if test "xusb.h" != "x" ; then
33258 if test "${ac_cv_header_usb_h+set}" = set; then
33259 { echo "$as_me:$LINENO: checking for usb.h" >&5
33260 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33261 if test "${ac_cv_header_usb_h+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33264 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33265 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33267 # Is the header compilable?
33268 { echo "$as_me:$LINENO: checking usb.h usability" >&5
33269 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
33270 cat >conftest.
$ac_ext <<_ACEOF
33273 cat confdefs.h
>>conftest.
$ac_ext
33274 cat >>conftest.
$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33276 $ac_includes_default
33279 rm -f conftest.
$ac_objext
33280 if { (ac_try
="$ac_compile"
33281 case "(($ac_try" in
33282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_compile") 2>conftest.er1
33288 grep -v '^ *+' conftest.er1 >conftest.err
33290 cat conftest.err >&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } && {
33293 test -z "$ac_c_werror_flag" ||
33294 test ! -s conftest.err
33295 } && test -s conftest.$ac_objext; then
33296 ac_header_compiler=yes
33298 echo "$as_me: failed program was:" >&5
33299 sed 's/^/| /' conftest.$ac_ext >&5
33301 ac_header_compiler=no
33304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33306 echo "${ECHO_T}$ac_header_compiler" >&6; }
33308 # Is the header present?
33309 { echo "$as_me:$LINENO: checking usb.h presence" >&5
33310 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
33311 cat >conftest.$ac_ext <<_ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h. */
33319 if { (ac_try="$ac_cpp conftest.$ac_ext"
33320 case "(($ac_try" in
33321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33322 *) ac_try_echo
=$ac_try;;
33324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33327 grep -v '^ *+' conftest.er1
>conftest.err
33329 cat conftest.err
>&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); } >/dev
/null
&& {
33332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33333 test ! -s conftest.err
33335 ac_header_preproc
=yes
33337 echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.
$ac_ext >&5
33340 ac_header_preproc
=no
33343 rm -f conftest.err conftest.
$ac_ext
33344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33345 echo "${ECHO_T}$ac_header_preproc" >&6; }
33347 # So? What about this header?
33348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33350 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33351 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33352 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
33353 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
33354 ac_header_preproc
=yes
33357 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
33358 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
33359 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
33360 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
33361 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
33362 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
33363 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
33364 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33365 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
33366 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
33367 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
33368 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
33370 ## ------------------------------- ##
33371 ## Report this to www.asterisk.org ##
33372 ## ------------------------------- ##
33374 ) |
sed "s/^/$as_me: WARNING: /" >&2
33377 { echo "$as_me:$LINENO: checking for usb.h" >&5
33378 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33379 if test "${ac_cv_header_usb_h+set}" = set; then
33380 echo $ECHO_N "(cached) $ECHO_C" >&6
33382 ac_cv_header_usb_h
=$ac_header_preproc
33384 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33385 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33388 if test $ac_cv_header_usb_h = yes; then
33397 if test "x${USB_HEADER_FOUND}" = "x0" ; then
33398 if test -n "${USB_MANDATORY}" ;
33400 { echo "$as_me:$LINENO: ***" >&5
33401 echo "$as_me: ***" >&6;}
33402 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
33403 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
33404 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
33405 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
33406 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33407 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33416 cat >>confdefs.h
<<_ACEOF
33421 elif test -n "${USB_MANDATORY}";
33423 { echo "$as_me:$LINENO: ***" >&5
33424 echo "$as_me: ***" >&6;}
33425 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
33426 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
33427 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33428 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33429 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33430 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33437 if test "${USE_VORBIS}" != "no"; then
33439 if test "x${VORBIS_DIR}" != "x"; then
33440 if test -d ${VORBIS_DIR}/lib
; then
33441 pbxlibdir
="-L${VORBIS_DIR}/lib"
33443 pbxlibdir
="-L${VORBIS_DIR}"
33446 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
33447 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
33448 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
33449 echo $ECHO_N "(cached) $ECHO_C" >&6
33451 ac_check_lib_save_LIBS
=$LIBS
33452 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
33453 cat >conftest.
$ac_ext <<_ACEOF
33456 cat confdefs.h
>>conftest.
$ac_ext
33457 cat >>conftest.
$ac_ext <<_ACEOF
33458 /* end confdefs.h. */
33460 /* Override any GCC internal prototype to avoid an error.
33461 Use char because int might match the return type of a GCC
33462 builtin and then its argument prototype would still apply. */
33466 char vorbis_info_init ();
33470 return vorbis_info_init ();
33475 rm -f conftest.
$ac_objext conftest
$ac_exeext
33476 if { (ac_try
="$ac_link"
33477 case "(($ac_try" in
33478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33479 *) ac_try_echo=$ac_try;;
33481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33482 (eval "$ac_link") 2>conftest.er1
33484 grep -v '^ *+' conftest.er1 >conftest.err
33486 cat conftest.err >&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); } && {
33489 test -z "$ac_c_werror_flag" ||
33490 test ! -s conftest.err
33491 } && test -s conftest$ac_exeext &&
33492 $as_test_x conftest$ac_exeext; then
33493 ac_cv_lib_vorbis_vorbis_info_init=yes
33495 echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33498 ac_cv_lib_vorbis_vorbis_info_init=no
33501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33502 conftest$ac_exeext conftest.$ac_ext
33503 LIBS=$ac_check_lib_save_LIBS
33505 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
33506 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
33507 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
33508 AST_VORBIS_FOUND=yes
33510 AST_VORBIS_FOUND=no
33514 if test "${AST_VORBIS_FOUND}" = "yes"; then
33515 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
33516 VORBIS_HEADER_FOUND="1"
33517 if test "x${VORBIS_DIR}" != "x"; then
33518 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
33519 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
33520 saved_cppflags="${CPPFLAGS}"
33521 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
33522 if test "xvorbis/codec.h" != "x" ; then
33523 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
33524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33525 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33526 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 ac_res=`eval echo '${'$as_ac_Header'}'`
33531 { echo "$as_me:$LINENO: result: $ac_res" >&5
33532 echo "${ECHO_T}$ac_res" >&6; }
33534 # Is the header compilable?
33535 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
33536 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
33537 cat >conftest.$ac_ext <<_ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h. */
33543 $ac_includes_default
33544 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33546 rm -f conftest.$ac_objext
33547 if { (ac_try="$ac_compile"
33548 case "(($ac_try" in
33549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33550 *) ac_try_echo
=$ac_try;;
33552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33553 (eval "$ac_compile") 2>conftest.er1
33555 grep -v '^ *+' conftest.er1
>conftest.err
33557 cat conftest.err
>&5
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); } && {
33560 test -z "$ac_c_werror_flag" ||
33561 test ! -s conftest.err
33562 } && test -s conftest.
$ac_objext; then
33563 ac_header_compiler
=yes
33565 echo "$as_me: failed program was:" >&5
33566 sed 's/^/| /' conftest.
$ac_ext >&5
33568 ac_header_compiler
=no
33571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33573 echo "${ECHO_T}$ac_header_compiler" >&6; }
33575 # Is the header present?
33576 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
33577 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
33578 cat >conftest.
$ac_ext <<_ACEOF
33581 cat confdefs.h
>>conftest.
$ac_ext
33582 cat >>conftest.
$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33584 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33586 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33587 case "(($ac_try" in
33588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33589 *) ac_try_echo=$ac_try;;
33591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33594 grep -v '^ *+' conftest.er1 >conftest.err
33596 cat conftest.err >&5
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } >/dev/null && {
33599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33600 test ! -s conftest.err
33602 ac_header_preproc=yes
33604 echo "$as_me: failed program was:" >&5
33605 sed 's/^/| /' conftest.$ac_ext >&5
33607 ac_header_preproc=no
33610 rm -f conftest.err conftest.$ac_ext
33611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33612 echo "${ECHO_T}$ac_header_preproc" >&6; }
33614 # So? What about this header?
33615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33617 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33618 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33619 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
33620 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
33621 ac_header_preproc=yes
33624 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
33625 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
33626 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
33627 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33628 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
33629 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
33630 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33631 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33632 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
33633 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33634 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
33635 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33637 ## ------------------------------- ##
33638 ## Report this to www.asterisk.org ##
33639 ## ------------------------------- ##
33641 ) | sed "s/^/$as_me: WARNING: /" >&2
33644 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33645 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33649 eval "$as_ac_Header=\$ac_header_preproc"
33651 ac_res=`eval echo '${'$as_ac_Header'}'`
33652 { echo "$as_me:$LINENO: result: $ac_res" >&5
33653 echo "${ECHO_T}$ac_res" >&6; }
33656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33657 VORBIS_HEADER_FOUND=1
33659 VORBIS_HEADER_FOUND=0
33664 CPPFLAGS="${saved_cppflags}"
33666 if test "xvorbis/codec.h" != "x" ; then
33667 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33668 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33669 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33670 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33671 echo $ECHO_N "(cached) $ECHO_C" >&6
33673 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33674 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33676 # Is the header compilable?
33677 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
33678 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
33679 cat >conftest.$ac_ext <<_ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h. */
33685 $ac_includes_default
33686 #include <vorbis/codec.h>
33688 rm -f conftest.$ac_objext
33689 if { (ac_try="$ac_compile"
33690 case "(($ac_try" in
33691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33692 *) ac_try_echo
=$ac_try;;
33694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33695 (eval "$ac_compile") 2>conftest.er1
33697 grep -v '^ *+' conftest.er1
>conftest.err
33699 cat conftest.err
>&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } && {
33702 test -z "$ac_c_werror_flag" ||
33703 test ! -s conftest.err
33704 } && test -s conftest.
$ac_objext; then
33705 ac_header_compiler
=yes
33707 echo "$as_me: failed program was:" >&5
33708 sed 's/^/| /' conftest.
$ac_ext >&5
33710 ac_header_compiler
=no
33713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33715 echo "${ECHO_T}$ac_header_compiler" >&6; }
33717 # Is the header present?
33718 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
33719 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
33720 cat >conftest.
$ac_ext <<_ACEOF
33723 cat confdefs.h
>>conftest.
$ac_ext
33724 cat >>conftest.
$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 #include <vorbis/codec.h>
33728 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33729 case "(($ac_try" in
33730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33736 grep -v '^ *+' conftest.er1 >conftest.err
33738 cat conftest.err >&5
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); } >/dev/null && {
33741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33742 test ! -s conftest.err
33744 ac_header_preproc=yes
33746 echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33749 ac_header_preproc=no
33752 rm -f conftest.err conftest.$ac_ext
33753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33754 echo "${ECHO_T}$ac_header_preproc" >&6; }
33756 # So? What about this header?
33757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33759 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33760 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33761 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
33762 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
33763 ac_header_preproc=yes
33766 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
33767 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
33768 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
33769 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33770 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
33771 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
33772 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33773 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33774 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
33775 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33776 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
33777 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33779 ## ------------------------------- ##
33780 ## Report this to www.asterisk.org ##
33781 ## ------------------------------- ##
33783 ) | sed "s/^/$as_me: WARNING: /" >&2
33786 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33787 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33788 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33789 echo $ECHO_N "(cached) $ECHO_C" >&6
33791 ac_cv_header_vorbis_codec_h=$ac_header_preproc
33793 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33794 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33797 if test $ac_cv_header_vorbis_codec_h = yes; then
33798 VORBIS_HEADER_FOUND=1
33800 VORBIS_HEADER_FOUND=0
33806 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
33807 if test -n "${VORBIS_MANDATORY}" ;
33809 { echo "$as_me:$LINENO: ***" >&5
33810 echo "$as_me: ***" >&6;}
33811 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
33812 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
33813 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
33814 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
33815 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33816 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33825 cat >>confdefs.h <<_ACEOF
33826 #define HAVE_VORBIS 1
33830 elif test -n "${VORBIS_MANDATORY}";
33832 { echo "$as_me:$LINENO: ***" >&5
33833 echo "$as_me: ***" >&6;}
33834 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
33835 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
33836 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33837 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33838 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33839 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33846 ac_cpp='$CXXCPP $CPPFLAGS'
33847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33852 if test "${USE_VPB}" != "no"; then
33853 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
33854 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
33855 saved_libs="${LIBS}"
33856 saved_cppflags="${CPPFLAGS}"
33857 if test "x${VPB_DIR}" != "x"; then
33858 if test -d ${VPB_DIR}/lib; then
33859 vpblibdir=${VPB_DIR}/lib
33861 vpblibdir=${VPB_DIR}
33863 LIBS="${LIBS} -L${vpblibdir}"
33864 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
33866 LIBS="${LIBS} -lvpb -lpthread"
33867 cat >conftest.$ac_ext <<_ACEOF
33871 cat confdefs.h >>conftest.$ac_ext
33872 cat >>conftest.$ac_ext <<_ACEOF
33873 /* end confdefs.h. */
33874 #include <vpbapi.h>
33878 int q = vpb_open(0,0);
33884 rm -f conftest.$ac_objext conftest$ac_exeext
33885 if { (ac_try="$ac_link"
33886 case "(($ac_try" in
33887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33888 *) ac_try_echo
=$ac_try;;
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_link") 2>conftest.er1
33893 grep -v '^ *+' conftest.er1
>conftest.err
33895 cat conftest.err
>&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } && {
33898 test -z "$ac_cxx_werror_flag" ||
33899 test ! -s conftest.err
33900 } && test -s conftest
$ac_exeext &&
33901 $as_test_x conftest
$ac_exeext; then
33902 { echo "$as_me:$LINENO: result: yes" >&5
33903 echo "${ECHO_T}yes" >&6; }
33904 ac_cv_lib_vpb_vpb_open
="yes"
33907 echo "$as_me: failed program was:" >&5
33908 sed 's/^/| /' conftest.
$ac_ext >&5
33910 { echo "$as_me:$LINENO: result: no" >&5
33911 echo "${ECHO_T}no" >&6; }
33912 ac_cv_lib_vpb_vpb_open
="no"
33917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33918 conftest
$ac_exeext conftest.
$ac_ext
33919 LIBS
="${saved_libs}"
33920 CPPFLAGS
="${saved_cppflags}"
33921 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33923 if test "${VPB_DIR}" != ""; then
33924 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
33925 VPB_INCLUDE
="-I${VPB_DIR}/include"
33929 cat >>confdefs.h
<<\_ACEOF
33933 elif test -n "${VPB_MANDATORY}"; then
33934 { echo "$as_me:$LINENO: ***" >&5
33935 echo "$as_me: ***" >&6;}
33936 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
33937 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
33938 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33939 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33940 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
33941 echo "$as_me: *** including --without-vpb." >&6;}
33947 ac_cpp
='$CPP $CPPFLAGS'
33948 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33949 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33950 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33954 if test "${USE_ZLIB}" != "no"; then
33956 if test "x${ZLIB_DIR}" != "x"; then
33957 if test -d ${ZLIB_DIR}/lib
; then
33958 pbxlibdir
="-L${ZLIB_DIR}/lib"
33960 pbxlibdir
="-L${ZLIB_DIR}"
33963 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
33964 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
33965 if test "${ac_cv_lib_z_compress+set}" = set; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33968 ac_check_lib_save_LIBS
=$LIBS
33969 LIBS
="-lz ${pbxlibdir} $LIBS"
33970 cat >conftest.
$ac_ext <<_ACEOF
33973 cat confdefs.h
>>conftest.
$ac_ext
33974 cat >>conftest.
$ac_ext <<_ACEOF
33975 /* end confdefs.h. */
33977 /* Override any GCC internal prototype to avoid an error.
33978 Use char because int might match the return type of a GCC
33979 builtin and then its argument prototype would still apply. */
33987 return compress ();
33992 rm -f conftest.
$ac_objext conftest
$ac_exeext
33993 if { (ac_try
="$ac_link"
33994 case "(($ac_try" in
33995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33996 *) ac_try_echo=$ac_try;;
33998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33999 (eval "$ac_link") 2>conftest.er1
34001 grep -v '^ *+' conftest.er1 >conftest.err
34003 cat conftest.err >&5
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); } && {
34006 test -z "$ac_c_werror_flag" ||
34007 test ! -s conftest.err
34008 } && test -s conftest$ac_exeext &&
34009 $as_test_x conftest$ac_exeext; then
34010 ac_cv_lib_z_compress=yes
34012 echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34015 ac_cv_lib_z_compress=no
34018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34019 conftest$ac_exeext conftest.$ac_ext
34020 LIBS=$ac_check_lib_save_LIBS
34022 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
34023 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
34024 if test $ac_cv_lib_z_compress = yes; then
34031 if test "${AST_ZLIB_FOUND}" = "yes"; then
34033 ZLIB_HEADER_FOUND="1"
34034 if test "x${ZLIB_DIR}" != "x"; then
34035 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
34036 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
34037 saved_cppflags="${CPPFLAGS}"
34038 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
34039 if test "xzlib.h" != "x" ; then
34040 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
34041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34042 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34043 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34045 echo $ECHO_N "(cached) $ECHO_C" >&6
34047 ac_res=`eval echo '${'$as_ac_Header'}'`
34048 { echo "$as_me:$LINENO: result: $ac_res" >&5
34049 echo "${ECHO_T}$ac_res" >&6; }
34051 # Is the header compilable?
34052 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
34053 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
34054 cat >conftest.$ac_ext <<_ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h. */
34060 $ac_includes_default
34061 #include <${ZLIB_DIR}/include/zlib.h>
34063 rm -f conftest.$ac_objext
34064 if { (ac_try="$ac_compile"
34065 case "(($ac_try" in
34066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34067 *) ac_try_echo
=$ac_try;;
34069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34070 (eval "$ac_compile") 2>conftest.er1
34072 grep -v '^ *+' conftest.er1
>conftest.err
34074 cat conftest.err
>&5
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); } && {
34077 test -z "$ac_c_werror_flag" ||
34078 test ! -s conftest.err
34079 } && test -s conftest.
$ac_objext; then
34080 ac_header_compiler
=yes
34082 echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.
$ac_ext >&5
34085 ac_header_compiler
=no
34088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34090 echo "${ECHO_T}$ac_header_compiler" >&6; }
34092 # Is the header present?
34093 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
34094 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
34095 cat >conftest.
$ac_ext <<_ACEOF
34098 cat confdefs.h
>>conftest.
$ac_ext
34099 cat >>conftest.
$ac_ext <<_ACEOF
34100 /* end confdefs.h. */
34101 #include <${ZLIB_DIR}/include/zlib.h>
34103 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34104 case "(($ac_try" in
34105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34106 *) ac_try_echo=$ac_try;;
34108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34111 grep -v '^ *+' conftest.er1 >conftest.err
34113 cat conftest.err >&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); } >/dev/null && {
34116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34117 test ! -s conftest.err
34119 ac_header_preproc=yes
34121 echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34124 ac_header_preproc=no
34127 rm -f conftest.err conftest.$ac_ext
34128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34129 echo "${ECHO_T}$ac_header_preproc" >&6; }
34131 # So? What about this header?
34132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34134 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34135 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34136 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
34137 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
34138 ac_header_preproc=yes
34141 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
34142 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
34143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
34144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
34145 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
34146 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
34147 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34148 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34149 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
34150 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
34151 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
34152 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
34154 ## ------------------------------- ##
34155 ## Report this to www.asterisk.org ##
34156 ## ------------------------------- ##
34158 ) | sed "s/^/$as_me: WARNING: /" >&2
34161 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34162 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34164 echo $ECHO_N "(cached) $ECHO_C" >&6
34166 eval "$as_ac_Header=\$ac_header_preproc"
34168 ac_res=`eval echo '${'$as_ac_Header'}'`
34169 { echo "$as_me:$LINENO: result: $ac_res" >&5
34170 echo "${ECHO_T}$ac_res" >&6; }
34173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34174 ZLIB_HEADER_FOUND=1
34176 ZLIB_HEADER_FOUND=0
34181 CPPFLAGS="${saved_cppflags}"
34183 if test "xzlib.h" != "x" ; then
34184 if test "${ac_cv_header_zlib_h+set}" = set; then
34185 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34186 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34187 if test "${ac_cv_header_zlib_h+set}" = set; then
34188 echo $ECHO_N "(cached) $ECHO_C" >&6
34190 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34191 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34193 # Is the header compilable?
34194 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
34195 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
34196 cat >conftest.$ac_ext <<_ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h. */
34202 $ac_includes_default
34205 rm -f conftest.$ac_objext
34206 if { (ac_try="$ac_compile"
34207 case "(($ac_try" in
34208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34209 *) ac_try_echo
=$ac_try;;
34211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212 (eval "$ac_compile") 2>conftest.er1
34214 grep -v '^ *+' conftest.er1
>conftest.err
34216 cat conftest.err
>&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); } && {
34219 test -z "$ac_c_werror_flag" ||
34220 test ! -s conftest.err
34221 } && test -s conftest.
$ac_objext; then
34222 ac_header_compiler
=yes
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.
$ac_ext >&5
34227 ac_header_compiler
=no
34230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34232 echo "${ECHO_T}$ac_header_compiler" >&6; }
34234 # Is the header present?
34235 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
34236 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
34237 cat >conftest.
$ac_ext <<_ACEOF
34240 cat confdefs.h
>>conftest.
$ac_ext
34241 cat >>conftest.
$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34245 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34246 case "(($ac_try" in
34247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34253 grep -v '^ *+' conftest.er1 >conftest.err
34255 cat conftest.err >&5
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); } >/dev/null && {
34258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34259 test ! -s conftest.err
34261 ac_header_preproc=yes
34263 echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34266 ac_header_preproc=no
34269 rm -f conftest.err conftest.$ac_ext
34270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34271 echo "${ECHO_T}$ac_header_preproc" >&6; }
34273 # So? What about this header?
34274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34276 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34277 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34278 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
34279 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
34280 ac_header_preproc=yes
34283 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
34284 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
34285 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
34286 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
34287 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
34288 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
34289 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34290 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34291 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
34292 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
34293 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
34294 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
34296 ## ------------------------------- ##
34297 ## Report this to www.asterisk.org ##
34298 ## ------------------------------- ##
34300 ) | sed "s/^/$as_me: WARNING: /" >&2
34303 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34304 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34305 if test "${ac_cv_header_zlib_h+set}" = set; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34308 ac_cv_header_zlib_h=$ac_header_preproc
34310 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34311 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34314 if test $ac_cv_header_zlib_h = yes; then
34315 ZLIB_HEADER_FOUND=1
34317 ZLIB_HEADER_FOUND=0
34323 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
34324 if test -n "${ZLIB_MANDATORY}" ;
34326 { echo "$as_me:$LINENO: ***" >&5
34327 echo "$as_me: ***" >&6;}
34328 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
34329 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
34330 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
34331 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
34332 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34333 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34342 cat >>confdefs.h <<_ACEOF
34343 #define HAVE_ZLIB 1
34347 elif test -n "${ZLIB_MANDATORY}";
34349 { echo "$as_me:$LINENO: ***" >&5
34350 echo "$as_me: ***" >&6;}
34351 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
34352 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
34353 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34354 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34355 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34356 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34362 if test "${USE_ZAPTEL}" != "no"; then
34363 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
34364 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
34365 saved_cppflags="${CPPFLAGS}"
34366 if test "x${ZAPTEL_DIR}" != "x"; then
34367 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34369 cat >conftest.$ac_ext <<_ACEOF
34373 cat confdefs.h >>conftest.$ac_ext
34374 cat >>conftest.$ac_ext <<_ACEOF
34375 /* end confdefs.h. */
34376 #include <zaptel/zaptel.h>
34380 int foo = ZT_DIAL_OP_CANCEL;
34386 rm -f conftest.$ac_objext
34387 if { (ac_try="$ac_compile"
34388 case "(($ac_try" in
34389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34390 *) ac_try_echo
=$ac_try;;
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_compile") 2>conftest.er1
34395 grep -v '^ *+' conftest.er1
>conftest.err
34397 cat conftest.err
>&5
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); } && {
34400 test -z "$ac_c_werror_flag" ||
34401 test ! -s conftest.err
34402 } && test -s conftest.
$ac_objext; then
34403 { echo "$as_me:$LINENO: result: yes" >&5
34404 echo "${ECHO_T}yes" >&6; }
34405 ac_cv_zaptel_h
="yes"
34408 echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.
$ac_ext >&5
34411 { echo "$as_me:$LINENO: result: no" >&5
34412 echo "${ECHO_T}no" >&6; }
34413 ac_cv_zaptel_h
="no"
34418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34419 CPPFLAGS
="${saved_cppflags}"
34420 if test "${ac_cv_zaptel_h}" = "yes"; then
34421 if test "${ZAPTEL_DIR}" != ""; then
34422 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
34426 cat >>confdefs.h
<<\_ACEOF
34427 #define HAVE_ZAPTEL 1
34430 elif test -n "${ZAPTEL_MANDATORY}";
34432 { echo "$as_me:$LINENO: ***" >&5
34433 echo "$as_me: ***" >&6;}
34434 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
34435 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
34436 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34437 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34438 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
34439 echo "$as_me: *** including --without-zaptel." >&6;}
34444 if test "${PBX_ZAPTEL}" = 1; then
34445 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
34446 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
34447 saved_cppflags
="${CPPFLAGS}"
34448 if test "x${ZAPTEL_DIR}" != "x"; then
34449 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34451 cat >conftest.
$ac_ext <<_ACEOF
34455 cat confdefs.h
>>conftest.
$ac_ext
34456 cat >>conftest.
$ac_ext <<_ACEOF
34457 /* end confdefs.h. */
34458 #include <zaptel/zaptel.h>
34462 int foo = ZT_EVENT_REMOVED;
34468 rm -f conftest.
$ac_objext
34469 if { (ac_try
="$ac_compile"
34470 case "(($ac_try" in
34471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34472 *) ac_try_echo=$ac_try;;
34474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34475 (eval "$ac_compile") 2>conftest.er1
34477 grep -v '^ *+' conftest.er1 >conftest.err
34479 cat conftest.err >&5
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); } && {
34482 test -z "$ac_c_werror_flag" ||
34483 test ! -s conftest.err
34484 } && test -s conftest.$ac_objext; then
34485 { echo "$as_me:$LINENO: result: yes" >&5
34486 echo "${ECHO_T}yes" >&6; }
34487 ac_cv_zaptel_vldtmf="yes"
34490 echo "$as_me: failed program was:" >&5
34491 sed 's/^/| /' conftest.$ac_ext >&5
34493 { echo "$as_me:$LINENO: result: no" >&5
34494 echo "${ECHO_T}no" >&6; }
34495 ac_cv_zaptel_vldtmf="no"
34500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34501 CPPFLAGS="${saved_cppflags}"
34502 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
34503 PBX_ZAPTEL_VLDTMF=1
34505 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
34506 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
34507 saved_cppflags="${CPPFLAGS}"
34508 if test "x${ZAPTEL_DIR}" != "x"; then
34509 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34511 cat >conftest.$ac_ext <<_ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h. */
34518 #include <zaptel/zaptel.h>
34522 int foo = ZT_TCOP_ALLOCATE;
34528 rm -f conftest.$ac_objext
34529 if { (ac_try="$ac_compile"
34530 case "(($ac_try" in
34531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34532 *) ac_try_echo
=$ac_try;;
34534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34535 (eval "$ac_compile") 2>conftest.er1
34537 grep -v '^ *+' conftest.er1
>conftest.err
34539 cat conftest.err
>&5
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); } && {
34542 test -z "$ac_c_werror_flag" ||
34543 test ! -s conftest.err
34544 } && test -s conftest.
$ac_objext; then
34545 { echo "$as_me:$LINENO: result: yes" >&5
34546 echo "${ECHO_T}yes" >&6; }
34547 ac_cv_zaptel_transcode
="yes"
34550 echo "$as_me: failed program was:" >&5
34551 sed 's/^/| /' conftest.
$ac_ext >&5
34553 { echo "$as_me:$LINENO: result: no" >&5
34554 echo "${ECHO_T}no" >&6; }
34555 ac_cv_zaptel_transcode
="no"
34560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34561 CPPFLAGS
="${saved_cppflags}"
34562 if test "${ac_cv_zaptel_transcode}" = "yes"; then
34563 PBX_ZAPTEL_TRANSCODE
=1
34570 if test "x$TERMCAP_LIB" != "x" ; then
34571 EDITLINE_LIB
="$TERMCAP_LIB"
34572 elif test "x$TINFO_LIB" != "x" ; then
34573 EDITLINE_LIB
="$TINFO_LIB"
34574 elif test "x$CURSES_LIB" != "x" ; then
34575 EDITLINE_LIB
="$CURSES_LIB"
34576 elif test "x$NCURSES_LIB" != "x" ; then
34577 EDITLINE_LIB
="$NCURSES_LIB"
34579 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
34580 echo "$as_me: error: *** termcap support not found" >&2;}
34581 { (exit 1); exit 1; }; }
34585 if test "${ac_cv_header_h323_h+set}" = set; then
34586 { echo "$as_me:$LINENO: checking for h323.h" >&5
34587 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34588 if test "${ac_cv_header_h323_h+set}" = set; then
34589 echo $ECHO_N "(cached) $ECHO_C" >&6
34591 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34592 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34594 # Is the header compilable?
34595 { echo "$as_me:$LINENO: checking h323.h usability" >&5
34596 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
34597 cat >conftest.
$ac_ext <<_ACEOF
34600 cat confdefs.h
>>conftest.
$ac_ext
34601 cat >>conftest.
$ac_ext <<_ACEOF
34602 /* end confdefs.h. */
34603 $ac_includes_default
34606 rm -f conftest.
$ac_objext
34607 if { (ac_try
="$ac_compile"
34608 case "(($ac_try" in
34609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34610 *) ac_try_echo=$ac_try;;
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613 (eval "$ac_compile") 2>conftest.er1
34615 grep -v '^ *+' conftest.er1 >conftest.err
34617 cat conftest.err >&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } && {
34620 test -z "$ac_c_werror_flag" ||
34621 test ! -s conftest.err
34622 } && test -s conftest.$ac_objext; then
34623 ac_header_compiler=yes
34625 echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34628 ac_header_compiler=no
34631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34633 echo "${ECHO_T}$ac_header_compiler" >&6; }
34635 # Is the header present?
34636 { echo "$as_me:$LINENO: checking h323.h presence" >&5
34637 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
34638 cat >conftest.$ac_ext <<_ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h. */
34646 if { (ac_try="$ac_cpp conftest.$ac_ext"
34647 case "(($ac_try" in
34648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34649 *) ac_try_echo
=$ac_try;;
34651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34654 grep -v '^ *+' conftest.er1
>conftest.err
34656 cat conftest.err
>&5
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } >/dev
/null
&& {
34659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34660 test ! -s conftest.err
34662 ac_header_preproc
=yes
34664 echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.
$ac_ext >&5
34667 ac_header_preproc
=no
34670 rm -f conftest.err conftest.
$ac_ext
34671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34672 echo "${ECHO_T}$ac_header_preproc" >&6; }
34674 # So? What about this header?
34675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34677 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
34678 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34679 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
34680 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
34681 ac_header_preproc
=yes
34684 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
34685 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
34686 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
34687 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
34688 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
34689 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
34690 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
34691 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
34692 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
34693 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
34694 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
34695 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
34697 ## ------------------------------- ##
34698 ## Report this to www.asterisk.org ##
34699 ## ------------------------------- ##
34701 ) |
sed "s/^/$as_me: WARNING: /" >&2
34704 { echo "$as_me:$LINENO: checking for h323.h" >&5
34705 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34706 if test "${ac_cv_header_h323_h+set}" = set; then
34707 echo $ECHO_N "(cached) $ECHO_C" >&6
34709 ac_cv_header_h323_h
=$ac_header_preproc
34711 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34712 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34715 if test $ac_cv_header_h323_h = yes; then
34724 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34725 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34726 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34727 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34728 echo $ECHO_N "(cached) $ECHO_C" >&6
34730 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34731 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34733 # Is the header compilable?
34734 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
34735 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
34736 cat >conftest.
$ac_ext <<_ACEOF
34739 cat confdefs.h
>>conftest.
$ac_ext
34740 cat >>conftest.
$ac_ext <<_ACEOF
34741 /* end confdefs.h. */
34742 $ac_includes_default
34743 #include <linux/compiler.h>
34745 rm -f conftest.
$ac_objext
34746 if { (ac_try
="$ac_compile"
34747 case "(($ac_try" in
34748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34749 *) ac_try_echo=$ac_try;;
34751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34752 (eval "$ac_compile") 2>conftest.er1
34754 grep -v '^ *+' conftest.er1 >conftest.err
34756 cat conftest.err >&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } && {
34759 test -z "$ac_c_werror_flag" ||
34760 test ! -s conftest.err
34761 } && test -s conftest.$ac_objext; then
34762 ac_header_compiler=yes
34764 echo "$as_me: failed program was:" >&5
34765 sed 's/^/| /' conftest.$ac_ext >&5
34767 ac_header_compiler=no
34770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34772 echo "${ECHO_T}$ac_header_compiler" >&6; }
34774 # Is the header present?
34775 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
34776 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
34777 cat >conftest.$ac_ext <<_ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h. */
34783 #include <linux/compiler.h>
34785 if { (ac_try="$ac_cpp conftest.$ac_ext"
34786 case "(($ac_try" in
34787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34788 *) ac_try_echo
=$ac_try;;
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34793 grep -v '^ *+' conftest.er1
>conftest.err
34795 cat conftest.err
>&5
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); } >/dev
/null
&& {
34798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34799 test ! -s conftest.err
34801 ac_header_preproc
=yes
34803 echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.
$ac_ext >&5
34806 ac_header_preproc
=no
34809 rm -f conftest.err conftest.
$ac_ext
34810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34811 echo "${ECHO_T}$ac_header_preproc" >&6; }
34813 # So? What about this header?
34814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34816 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
34817 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34818 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
34819 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
34820 ac_header_preproc
=yes
34823 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
34824 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
34825 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
34826 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
34827 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
34828 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
34829 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
34830 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
34831 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
34832 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
34833 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
34834 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
34836 ## ------------------------------- ##
34837 ## Report this to www.asterisk.org ##
34838 ## ------------------------------- ##
34840 ) |
sed "s/^/$as_me: WARNING: /" >&2
34843 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34844 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34845 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34846 echo $ECHO_N "(cached) $ECHO_C" >&6
34848 ac_cv_header_linux_compiler_h
=$ac_header_preproc
34850 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34851 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34854 if test $ac_cv_header_linux_compiler_h = yes; then
34856 cat >>confdefs.h
<<_ACEOF
34857 #define HAVE_LINUX_COMPILER_H 1
34864 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
34865 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
34866 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34867 echo $ECHO_N "(cached) $ECHO_C" >&6
34869 cat >conftest.
$ac_ext <<_ACEOF
34872 cat confdefs.h
>>conftest.
$ac_ext
34873 cat >>conftest.
$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34876 #include <linux/version.h>
34877 #ifdef HAVE_LINUX_COMPILER_H
34878 #include <linux/compiler.h>
34882 #include <linux/ixjuser.h>
34884 rm -f conftest.
$ac_objext
34885 if { (ac_try
="$ac_compile"
34886 case "(($ac_try" in
34887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891 (eval "$ac_compile") 2>conftest.er1
34893 grep -v '^ *+' conftest.er1 >conftest.err
34895 cat conftest.err >&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } && {
34898 test -z "$ac_c_werror_flag" ||
34899 test ! -s conftest.err
34900 } && test -s conftest.$ac_objext; then
34901 ac_cv_header_linux_ixjuser_h=yes
34903 echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.$ac_ext >&5
34906 ac_cv_header_linux_ixjuser_h=no
34909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34911 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
34912 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34913 if test $ac_cv_header_linux_ixjuser_h = yes; then
34922 if test "${cross_compiling}" = "no";
34924 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
34925 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
34926 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34927 echo $ECHO_N "(cached) $ECHO_C" >&6
34929 test "$cross_compiling" = yes &&
34930 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34931 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34932 { (exit 1); exit 1; }; }
34933 if test -r "/sbin/launchd"; then
34934 ac_cv_file__sbin_launchd=yes
34936 ac_cv_file__sbin_launchd=no
34939 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
34940 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34941 if test $ac_cv_file__sbin_launchd = yes; then
34943 cat >>confdefs.h <<\_ACEOF
34944 #define HAVE_SBIN_LAUNCHD 1
34952 if test -n "$ac_tool_prefix"; then
34953 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
34954 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34957 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34958 echo $ECHO_N "(cached) $ECHO_C" >&6
34960 if test -n "$GTKCONFIG"; then
34961 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34964 for as_dir in $PATH
34967 test -z "$as_dir" && as_dir=.
34968 for ac_exec_ext in '' $ac_executable_extensions; do
34969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34970 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
34971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34980 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34981 if test -n "$GTKCONFIG"; then
34982 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
34983 echo "${ECHO_T}$GTKCONFIG" >&6; }
34985 { echo "$as_me:$LINENO: result: no" >&5
34986 echo "${ECHO_T}no" >&6; }
34991 if test -z "$ac_cv_prog_GTKCONFIG"; then
34992 ac_ct_GTKCONFIG=$GTKCONFIG
34993 # Extract the first word of "gtk-config", so it can be a program name with args.
34994 set dummy gtk-config; ac_word=$2
34995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34997 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34998 echo $ECHO_N "(cached) $ECHO_C" >&6
35000 if test -n "$ac_ct_GTKCONFIG"; then
35001 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
35003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35004 for as_dir in $PATH
35007 test -z "$as_dir" && as_dir=.
35008 for ac_exec_ext in '' $ac_executable_extensions; do
35009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35010 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
35011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35020 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
35021 if test -n "$ac_ct_GTKCONFIG"; then
35022 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
35023 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
35025 { echo "$as_me:$LINENO: result: no" >&5
35026 echo "${ECHO_T}no" >&6; }
35029 if test "x$ac_ct_GTKCONFIG" = x; then
35032 case $cross_compiling:$ac_tool_warned in
35034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35035 whose name does not start with the host triplet. If you think this
35036 configuration is useful to you, please write to autoconf@gnu.org." >&5
35037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35038 whose name does not start with the host triplet. If you think this
35039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35040 ac_tool_warned=yes ;;
35042 GTKCONFIG=$ac_ct_GTKCONFIG
35045 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
35048 if test ! "x${GTKCONFIG}" = xNo; then
35049 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
35050 GTK_LIB=$(${GTKCONFIG} --libs gthread)
35053 cat >>confdefs.h <<\_ACEOF
35063 if test -n "$ac_tool_prefix"; then
35064 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35065 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35068 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35071 if test -n "$PKGCONFIG"; then
35072 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
35074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35075 for as_dir in $PATH
35078 test -z "$as_dir" && as_dir=.
35079 for ac_exec_ext in '' $ac_executable_extensions; do
35080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35081 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
35082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35091 PKGCONFIG=$ac_cv_prog_PKGCONFIG
35092 if test -n "$PKGCONFIG"; then
35093 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
35094 echo "${ECHO_T}$PKGCONFIG" >&6; }
35096 { echo "$as_me:$LINENO: result: no" >&5
35097 echo "${ECHO_T}no" >&6; }
35102 if test -z "$ac_cv_prog_PKGCONFIG"; then
35103 ac_ct_PKGCONFIG=$PKGCONFIG
35104 # Extract the first word of "pkg-config", so it can be a program name with args.
35105 set dummy pkg-config; ac_word=$2
35106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35108 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
35109 echo $ECHO_N "(cached) $ECHO_C" >&6
35111 if test -n "$ac_ct_PKGCONFIG"; then
35112 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
35114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35115 for as_dir in $PATH
35118 test -z "$as_dir" && as_dir=.
35119 for ac_exec_ext in '' $ac_executable_extensions; do
35120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35121 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
35122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35131 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
35132 if test -n "$ac_ct_PKGCONFIG"; then
35133 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
35134 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
35136 { echo "$as_me:$LINENO: result: no" >&5
35137 echo "${ECHO_T}no" >&6; }
35140 if test "x$ac_ct_PKGCONFIG" = x; then
35143 case $cross_compiling:$ac_tool_warned in
35145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35146 whose name does not start with the host triplet. If you think this
35147 configuration is useful to you, please write to autoconf@gnu.org." >&5
35148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35149 whose name does not start with the host triplet. If you think this
35150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35151 ac_tool_warned=yes ;;
35153 PKGCONFIG=$ac_ct_PKGCONFIG
35156 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
35159 if test ! "x${PKGCONFIG}" = xNo; then
35160 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
35161 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
35164 cat >>confdefs.h <<\_ACEOF
35165 #define HAVE_GTK2 1
35173 if test "${USE_CURL}" != "no"; then
35174 if test -n "$ac_tool_prefix"; then
35175 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
35176 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
35177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35179 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
35180 echo $ECHO_N "(cached) $ECHO_C" >&6
35182 case $CURL_CONFIG in
35184 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
35187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35188 for as_dir in $PATH
35191 test -z "$as_dir" && as_dir=.
35192 for ac_exec_ext in '' $ac_executable_extensions; do
35193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35194 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35205 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
35206 if test -n "$CURL_CONFIG"; then
35207 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
35208 echo "${ECHO_T}$CURL_CONFIG" >&6; }
35210 { echo "$as_me:$LINENO: result: no" >&5
35211 echo "${ECHO_T}no" >&6; }
35216 if test -z "$ac_cv_path_CURL_CONFIG"; then
35217 ac_pt_CURL_CONFIG=$CURL_CONFIG
35218 # Extract the first word of "curl-config", so it can be a program name with args.
35219 set dummy curl-config; ac_word=$2
35220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35222 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
35223 echo $ECHO_N "(cached) $ECHO_C" >&6
35225 case $ac_pt_CURL_CONFIG in
35227 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
35230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35231 for as_dir in $PATH
35234 test -z "$as_dir" && as_dir=.
35235 for ac_exec_ext in '' $ac_executable_extensions; do
35236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35237 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35248 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
35249 if test -n "$ac_pt_CURL_CONFIG"; then
35250 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
35251 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
35253 { echo "$as_me:$LINENO: result: no" >&5
35254 echo "${ECHO_T}no" >&6; }
35257 if test "x$ac_pt_CURL_CONFIG" = x; then
35260 case $cross_compiling:$ac_tool_warned in
35262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35263 whose name does not start with the host triplet. If you think this
35264 configuration is useful to you, please write to autoconf@gnu.org." >&5
35265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35266 whose name does not start with the host triplet. If you think this
35267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35268 ac_tool_warned=yes ;;
35270 CURL_CONFIG=$ac_pt_CURL_CONFIG
35273 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
35276 if test ! x"${CURL_CONFIG}" = xNo; then
35277 # check for version
35278 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
35279 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
35280 CURL_LIB=$(${CURL_CONFIG} --libs)
35282 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
35283 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
35284 saved_cppflags="${CPPFLAGS}"
35285 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
35286 cat >conftest.$ac_ext <<_ACEOF
35289 cat confdefs.h >>conftest.$ac_ext
35290 cat >>conftest.$ac_ext <<_ACEOF
35291 /* end confdefs.h. */
35292 #include <curl/curl.h>
35302 rm -f conftest.$ac_objext
35303 if { (ac_try="$ac_compile"
35304 case "(($ac_try" in
35305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35306 *) ac_try_echo
=$ac_try;;
35308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35309 (eval "$ac_compile") 2>conftest.er1
35311 grep -v '^ *+' conftest.er1
>conftest.err
35313 cat conftest.err
>&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } && {
35316 test -z "$ac_c_werror_flag" ||
35317 test ! -s conftest.err
35318 } && test -s conftest.
$ac_objext; then
35320 { echo "$as_me:$LINENO: result: yes" >&5
35321 echo "${ECHO_T}yes" >&6; }
35325 echo "$as_me: failed program was:" >&5
35326 sed 's/^/| /' conftest.
$ac_ext >&5
35329 { echo "$as_me:$LINENO: result: no" >&5
35330 echo "${ECHO_T}no" >&6; }
35336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35337 CPPFLAGS
="${saved_cppflags}"
35338 if test "${ac_cv_curl_h}" = "yes"; then
35341 cat >>confdefs.h
<<\_ACEOF
35342 #define HAVE_CURL 1
35350 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
35352 cat >confcache
<<\_ACEOF
35353 # This file is a shell script that caches the results of configure
35354 # tests run on this system so they can be shared between configure
35355 # scripts and configure runs, see configure's option --config-cache.
35356 # It is not useful on other systems. If it contains results you don't
35357 # want to keep, you may remove or edit it.
35359 # config.status only pays attention to the cache file if you give it
35360 # the --recheck option to rerun configure.
35362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35364 # following values.
35368 # The following way of writing the cache mishandles newlines in values,
35369 # but we know of no workaround that is simple, portable, and efficient.
35370 # So, we kill variables containing newlines.
35371 # Ultrix sh set writes to stderr and can't be redirected directly,
35372 # and sets the high bit in the cache file unless we assign to the vars.
35374 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35375 eval ac_val
=\$
$ac_var
35379 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35380 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35383 _ | IFS | as_nl
) ;; #(
35384 *) $as_unset $ac_var ;;
35390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35391 *${as_nl}ac_space
=\
*)
35392 # `set' does not quote correctly, so add quotes (double-quote
35393 # substitution turns \\\\ into \\, and sed turns \\ into \).
35396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35399 # `set' quotes correctly as required by POSIX, so do not add quotes.
35400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35413 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35414 if test -w "$cache_file"; then
35415 test "x$cache_file" != "x/dev/null" &&
35416 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35417 echo "$as_me: updating cache $cache_file" >&6;}
35418 cat confcache
>$cache_file
35420 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35421 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35426 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35427 # Let make expand exec_prefix.
35428 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35430 DEFS
=-DHAVE_CONFIG_H
35434 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35435 # 1. Remove the extension, and $U if already installed.
35436 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35437 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35439 # will be set to the directory where LIBOBJS objects are built.
35440 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35441 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35443 LIBOBJS
=$ac_libobjs
35445 LTLIBOBJS
=$ac_ltlibobjs
35449 : ${CONFIG_STATUS=./config.status}
35450 ac_clean_files_save
=$ac_clean_files
35451 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35452 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35453 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35454 cat >$CONFIG_STATUS <<_ACEOF
35456 # Generated by $as_me.
35457 # Run this file to recreate the current configuration.
35458 # Compiler output produced by configure, useful for debugging
35459 # configure, is in config.log if it exists.
35462 ac_cs_recheck=false
35464 SHELL=\${CONFIG_SHELL-$SHELL}
35467 cat >>$CONFIG_STATUS <<\_ACEOF
35468 ## --------------------- ##
35469 ## M4sh Initialization. ##
35470 ## --------------------- ##
35472 # Be more Bourne compatible
35473 DUALCASE
=1; export DUALCASE
# for MKS sh
35474 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35477 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35478 # is contrary to our usage. Disable this feature.
35479 alias -g '${1+"$@"}'='"$@"'
35480 setopt NO_GLOB_SUBST
35482 case `(set -o) 2>/dev/null` in
35483 *posix
*) set -o posix
;;
35492 # Avoid depending upon Character Ranges.
35493 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35494 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35495 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35496 as_cr_digits
='0123456789'
35497 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35499 # The user is always right.
35500 if test "${PATH_SEPARATOR+set}" != set; then
35501 echo "#! /bin/sh" >conf$$.sh
35502 echo "exit 0" >>conf$$.sh
35504 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35512 # Support unset when possible.
35513 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35521 # We need space, tab and new line, in precisely that order. Quoting is
35522 # there to prevent editors from complaining about space-tab.
35523 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35524 # splitting by setting IFS to empty value.)
35529 # Find who we are. Look in the path if we contain no directory separator.
35531 *[\\/]* ) as_myself
=$0 ;;
35532 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35533 for as_dir
in $PATH
35536 test -z "$as_dir" && as_dir
=.
35537 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35543 # We did not find ourselves, most probably we were run as `sh COMMAND'
35544 # in which case we are not to be found in the path.
35545 if test "x$as_myself" = x
; then
35548 if test ! -f "$as_myself"; then
35549 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35550 { (exit 1); exit 1; }
35553 # Work around bugs in pre-3.0 UWIN ksh.
35554 for as_var
in ENV MAIL MAILPATH
35555 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35563 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35564 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35565 LC_TELEPHONE LC_TIME
35567 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35568 eval $as_var=C
; export $as_var
35570 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35574 # Required to use basename.
35575 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35576 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35582 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35583 as_basename
=basename
35589 # Name of the executable.
35590 as_me
=`$as_basename -- "$0" ||
35591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35592 X"$0" : 'X\(//\)$' \| \
35593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35595 sed '/^.*\/\([^/][^/]*\)\/*$/{
35614 as_lineno_1
=$LINENO
35615 as_lineno_2
=$LINENO
35616 test "x$as_lineno_1" != "x$as_lineno_2" &&
35617 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35619 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35620 # uniformly replaced by the line number. The first 'sed' inserts a
35621 # line-number line after each line using $LINENO; the second 'sed'
35622 # does the real work. The second script uses 'N' to pair each
35623 # line-number line with the line containing $LINENO, and appends
35624 # trailing '-' during substitution so that $LINENO is not a special
35625 # case at line end.
35626 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35627 # scripts with optimization help from Paolo Bonzini. Blame Lee
35628 # E. McMahon (1931-1989) for sed's syntax. :-)
35640 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35643 ' >$as_me.lineno
&&
35644 chmod +x
"$as_me.lineno" ||
35645 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35646 { (exit 1); exit 1; }; }
35648 # Don't try to exec as it changes $[0], causing all sort of problems
35649 # (the dirname of $[0] is not the place where we might find the
35650 # original and so on. Autoconf is especially sensitive to this).
35651 .
"./$as_me.lineno"
35652 # Exit status is that of the last command.
35657 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35663 ECHO_C
= ECHO_N
= ECHO_T
=
35664 case `echo -n x` in
35666 case `echo 'x\c'` in
35667 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35674 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35675 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35681 rm -f conf$$ conf$$.exe conf$$.
file
35682 if test -d conf$$.dir
; then
35683 rm -f conf$$.dir
/conf$$.
file
35689 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35691 # ... but there are two gotchas:
35692 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35693 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35694 # In both cases, we have to default to `cp -p'.
35695 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35697 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35702 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35703 rmdir conf$$.dir
2>/dev
/null
35705 if mkdir
-p .
2>/dev
/null
; then
35708 test -d .
/-p && rmdir .
/-p
35712 if test -x / >/dev
/null
2>&1; then
35713 as_test_x
='test -x'
35715 if ls -dL / >/dev
/null
2>&1; then
35722 if test -d "$1"; then
35728 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35729 ???[sx]*):;;*)false;;esac;fi
35733 as_executable_p
=$as_test_x
35735 # Sed expression to map a string onto a valid CPP name.
35736 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35738 # Sed expression to map a string onto a valid variable name.
35739 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35744 # Save the log message, to keep $[0] and so on meaningful, and to
35745 # report actual input values of CONFIG_FILES etc. instead of their
35746 # values after options handling.
35748 This file was extended by asterisk $as_me 1.4, which was
35749 generated by GNU Autoconf 2.61. Invocation command line was
35751 CONFIG_FILES = $CONFIG_FILES
35752 CONFIG_HEADERS = $CONFIG_HEADERS
35753 CONFIG_LINKS = $CONFIG_LINKS
35754 CONFIG_COMMANDS = $CONFIG_COMMANDS
35757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35762 cat >>$CONFIG_STATUS <<_ACEOF
35763 # Files that config.status was made for.
35764 config_files="$ac_config_files"
35765 config_headers="$ac_config_headers"
35769 cat >>$CONFIG_STATUS <<\_ACEOF
35771 \`$as_me' instantiates files from templates according to the
35772 current configuration.
35774 Usage: $0 [OPTIONS] [FILE]...
35776 -h, --help print this help, then exit
35777 -V, --version print version number and configuration settings, then exit
35778 -q, --quiet do not print progress messages
35779 -d, --debug don't remove temporary files
35780 --recheck update $as_me by reconfiguring in the same conditions
35781 --file=FILE[:TEMPLATE]
35782 instantiate the configuration file FILE
35783 --header=FILE[:TEMPLATE]
35784 instantiate the configuration header FILE
35786 Configuration files:
35789 Configuration headers:
35792 Report bugs to <bug-autoconf@gnu.org>."
35795 cat >>$CONFIG_STATUS <<_ACEOF
35797 asterisk config.status 1.4
35798 configured by $0, generated by GNU Autoconf 2.61,
35799 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35801 Copyright (C) 2006 Free Software Foundation, Inc.
35802 This config.status script is free software; the Free Software Foundation
35803 gives unlimited permission to copy, distribute and modify it."
35810 cat >>$CONFIG_STATUS <<\_ACEOF
35811 # If no file are specified by the user, then we need to provide default
35812 # value. By we need to know if files were specified by the user.
35818 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35819 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35830 # Handling of the options.
35831 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35833 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35834 echo "$ac_cs_version"; exit ;;
35835 --debug |
--debu |
--deb |
--de |
--d |
-d )
35837 --file |
--fil |
--fi |
--f )
35839 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35840 ac_need_defaults
=false
;;
35841 --header |
--heade |
--head |
--hea )
35843 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35844 ac_need_defaults
=false
;;
35846 # Conflict between --help and --header
35847 { echo "$as_me: error: ambiguous option: $1
35848 Try \`$0 --help' for more information." >&2
35849 { (exit 1); exit 1; }; };;
35850 --help |
--hel |
-h )
35851 echo "$ac_cs_usage"; exit ;;
35852 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35853 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35856 # This is an error.
35857 -*) { echo "$as_me: error: unrecognized option: $1
35858 Try \`$0 --help' for more information." >&2
35859 { (exit 1); exit 1; }; } ;;
35861 *) ac_config_targets
="$ac_config_targets $1"
35862 ac_need_defaults
=false
;;
35868 ac_configure_extra_args
=
35870 if $ac_cs_silent; then
35872 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35876 cat >>$CONFIG_STATUS <<_ACEOF
35877 if \$ac_cs_recheck; then
35878 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35879 CONFIG_SHELL=$SHELL
35880 export CONFIG_SHELL
35881 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35885 cat >>$CONFIG_STATUS <<\_ACEOF
35889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35890 ## Running $as_me. ##
35896 cat >>$CONFIG_STATUS <<_ACEOF
35899 cat >>$CONFIG_STATUS <<\_ACEOF
35901 # Handling of arguments.
35902 for ac_config_target
in $ac_config_targets
35904 case $ac_config_target in
35905 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35906 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
35907 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
35908 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
35910 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35911 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35912 { (exit 1); exit 1; }; };;
35917 # If the user did not use the arguments to specify the items to instantiate,
35918 # then the envvar interface is used. Set only those that are not.
35919 # We use the long form for the default assignment because of an extremely
35920 # bizarre bug on SunOS 4.1.3.
35921 if $ac_need_defaults; then
35922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35926 # Have a temporary directory for convenience. Make it in the build tree
35927 # simply because there is no reason against having it here, and in addition,
35928 # creating and moving files from /tmp can sometimes cause problems.
35929 # Hook for its removal unless debugging.
35930 # Note that there is a small window in which the directory will not be cleaned:
35931 # after its creation but before its name has been assigned to `$tmp'.
35935 trap 'exit_status=$?
35936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35938 trap '{ (exit 1); exit 1; }' 1 2 13 15
35940 # Create a (secure) tmp directory for tmp files.
35943 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35944 test -n "$tmp" && test -d "$tmp"
35947 tmp
=.
/conf$$
-$RANDOM
35948 (umask 077 && mkdir
"$tmp")
35951 echo "$me: cannot create a temporary directory in ." >&2
35952 { (exit 1); exit 1; }
35956 # Set up the sed scripts for CONFIG_FILES section.
35959 # No need to generate the scripts if there are no CONFIG_FILES.
35960 # This happens for instance when ./config.status config.h
35961 if test -n "$CONFIG_FILES"; then
35968 for ac_last_try
in false false false false false
:; do
35969 cat >conf$
$subs.
sed <<_ACEOF
35970 SHELL!$SHELL$ac_delim
35971 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35972 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35973 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35974 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35975 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35976 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35977 exec_prefix!$exec_prefix$ac_delim
35978 prefix!$prefix$ac_delim
35979 program_transform_name!$program_transform_name$ac_delim
35980 bindir!$bindir$ac_delim
35981 sbindir!$sbindir$ac_delim
35982 libexecdir!$libexecdir$ac_delim
35983 datarootdir!$datarootdir$ac_delim
35984 datadir!$datadir$ac_delim
35985 sysconfdir!$sysconfdir$ac_delim
35986 sharedstatedir!$sharedstatedir$ac_delim
35987 localstatedir!$localstatedir$ac_delim
35988 includedir!$includedir$ac_delim
35989 oldincludedir!$oldincludedir$ac_delim
35990 docdir!$docdir$ac_delim
35991 infodir!$infodir$ac_delim
35992 htmldir!$htmldir$ac_delim
35993 dvidir!$dvidir$ac_delim
35994 pdfdir!$pdfdir$ac_delim
35995 psdir!$psdir$ac_delim
35996 libdir!$libdir$ac_delim
35997 localedir!$localedir$ac_delim
35998 mandir!$mandir$ac_delim
35999 DEFS!$DEFS$ac_delim
36000 ECHO_C!$ECHO_C$ac_delim
36001 ECHO_N!$ECHO_N$ac_delim
36002 ECHO_T!$ECHO_T$ac_delim
36003 LIBS!$LIBS$ac_delim
36004 build_alias!$build_alias$ac_delim
36005 host_alias!$host_alias$ac_delim
36006 target_alias!$target_alias$ac_delim
36007 build!$build$ac_delim
36008 build_cpu!$build_cpu$ac_delim
36009 build_vendor!$build_vendor$ac_delim
36010 build_os!$build_os$ac_delim
36011 host!$host$ac_delim
36012 host_cpu!$host_cpu$ac_delim
36013 host_vendor!$host_vendor$ac_delim
36014 host_os!$host_os$ac_delim
36016 CFLAGS!$CFLAGS$ac_delim
36017 LDFLAGS!$LDFLAGS$ac_delim
36018 CPPFLAGS!$CPPFLAGS$ac_delim
36019 ac_ct_CC!$ac_ct_CC$ac_delim
36020 EXEEXT!$EXEEXT$ac_delim
36021 OBJEXT!$OBJEXT$ac_delim
36023 GREP!$GREP$ac_delim
36024 EGREP!$EGREP$ac_delim
36025 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
36026 BUILD_CPU!$BUILD_CPU$ac_delim
36027 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
36028 BUILD_OS!$BUILD_OS$ac_delim
36029 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
36030 HOST_CPU!$HOST_CPU$ac_delim
36031 HOST_VENDOR!$HOST_VENDOR$ac_delim
36032 HOST_OS!$HOST_OS$ac_delim
36033 OSARCH!$OSARCH$ac_delim
36034 UNAME!$UNAME$ac_delim
36035 PBX_OSREV!$PBX_OSREV$ac_delim
36038 RANLIB!$RANLIB$ac_delim
36039 CXXFLAGS!$CXXFLAGS$ac_delim
36040 ac_ct_CXX!$ac_ct_CXX$ac_delim
36041 CXXCPP!$CXXCPP$ac_delim
36044 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36045 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36046 INSTALL_DATA!$INSTALL_DATA$ac_delim
36047 LN_S!$LN_S$ac_delim
36048 GNU_MAKE!$GNU_MAKE$ac_delim
36049 STRIP!$STRIP$ac_delim
36051 GNU_LD!$GNU_LD$ac_delim
36052 FIND!$FIND$ac_delim
36053 COMPRESS!$COMPRESS$ac_delim
36054 BASENAME!$BASENAME$ac_delim
36056 DIRNAME!$DIRNAME$ac_delim
36059 WGET!$WGET$ac_delim
36060 FETCH!$FETCH$ac_delim
36061 DOWNLOAD!$DOWNLOAD$ac_delim
36062 SOXMIX!$SOXMIX$ac_delim
36063 acx_pthread_config!$acx_pthread_config$ac_delim
36064 PTHREAD_CC!$PTHREAD_CC$ac_delim
36065 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
36066 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
36069 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36071 elif $ac_last_try; then
36072 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36073 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36074 { (exit 1); exit 1; }; }
36076 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36080 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36081 if test -n "$ac_eof"; then
36082 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36083 ac_eof
=`expr $ac_eof + 1`
36086 cat >>$CONFIG_STATUS <<_ACEOF
36087 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36091 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36092 s/^/s,@/; s/!/@,|#_!!_#|/
36095 s/'"$ac_delim"'$/,g/; t
36097 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36098 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36099 rm -f conf$
$subs.
sed
36100 cat >>$CONFIG_STATUS <<_ACEOF
36106 for ac_last_try
in false false false false false
:; do
36107 cat >conf$
$subs.
sed <<_ACEOF
36108 AST_DEVMODE!$AST_DEVMODE$ac_delim
36109 ALSA_LIB!$ALSA_LIB$ac_delim
36110 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
36111 ALSA_DIR!$ALSA_DIR$ac_delim
36112 PBX_ALSA!$PBX_ALSA$ac_delim
36113 CURL_LIB!$CURL_LIB$ac_delim
36114 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
36115 CURL_DIR!$CURL_DIR$ac_delim
36116 PBX_CURL!$PBX_CURL$ac_delim
36117 CAP_LIB!$CAP_LIB$ac_delim
36118 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
36119 CAP_DIR!$CAP_DIR$ac_delim
36120 PBX_CAP!$PBX_CAP$ac_delim
36121 CURSES_LIB!$CURSES_LIB$ac_delim
36122 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
36123 CURSES_DIR!$CURSES_DIR$ac_delim
36124 PBX_CURSES!$PBX_CURSES$ac_delim
36125 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
36126 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
36127 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
36128 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
36129 GSM_LIB!$GSM_LIB$ac_delim
36130 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
36131 GSM_DIR!$GSM_DIR$ac_delim
36132 PBX_GSM!$PBX_GSM$ac_delim
36133 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
36134 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
36135 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
36136 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
36137 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
36138 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
36139 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
36140 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
36141 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
36142 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
36143 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
36144 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
36145 KDE_LIB!$KDE_LIB$ac_delim
36146 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
36147 KDE_DIR!$KDE_DIR$ac_delim
36148 PBX_KDE!$PBX_KDE$ac_delim
36149 LTDL_LIB!$LTDL_LIB$ac_delim
36150 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
36151 LTDL_DIR!$LTDL_DIR$ac_delim
36152 PBX_LTDL!$PBX_LTDL$ac_delim
36153 MISDN_LIB!$MISDN_LIB$ac_delim
36154 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
36155 MISDN_DIR!$MISDN_DIR$ac_delim
36156 PBX_MISDN!$PBX_MISDN$ac_delim
36157 NBS_LIB!$NBS_LIB$ac_delim
36158 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
36159 NBS_DIR!$NBS_DIR$ac_delim
36160 PBX_NBS!$PBX_NBS$ac_delim
36161 NCURSES_LIB!$NCURSES_LIB$ac_delim
36162 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
36163 NCURSES_DIR!$NCURSES_DIR$ac_delim
36164 PBX_NCURSES!$PBX_NCURSES$ac_delim
36165 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
36166 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
36167 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
36168 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
36169 NEWT_LIB!$NEWT_LIB$ac_delim
36170 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
36171 NEWT_DIR!$NEWT_DIR$ac_delim
36172 PBX_NEWT!$PBX_NEWT$ac_delim
36173 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
36174 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
36175 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
36176 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
36177 OGG_LIB!$OGG_LIB$ac_delim
36178 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
36179 OGG_DIR!$OGG_DIR$ac_delim
36180 PBX_OGG!$PBX_OGG$ac_delim
36181 OSPTK_LIB!$OSPTK_LIB$ac_delim
36182 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
36183 OSPTK_DIR!$OSPTK_DIR$ac_delim
36184 PBX_OSPTK!$PBX_OSPTK$ac_delim
36185 OSS_LIB!$OSS_LIB$ac_delim
36186 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
36187 OSS_DIR!$OSS_DIR$ac_delim
36188 PBX_OSS!$PBX_OSS$ac_delim
36189 POPT_LIB!$POPT_LIB$ac_delim
36190 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
36191 POPT_DIR!$POPT_DIR$ac_delim
36192 PBX_POPT!$PBX_POPT$ac_delim
36193 PGSQL_LIB!$PGSQL_LIB$ac_delim
36194 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
36195 PGSQL_DIR!$PGSQL_DIR$ac_delim
36196 PBX_PGSQL!$PBX_PGSQL$ac_delim
36197 PRI_LIB!$PRI_LIB$ac_delim
36198 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
36199 PRI_DIR!$PRI_DIR$ac_delim
36200 PBX_PRI!$PBX_PRI$ac_delim
36201 PWLIB_LIB!$PWLIB_LIB$ac_delim
36202 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
36203 PWLIB_DIR!$PWLIB_DIR$ac_delim
36204 PBX_PWLIB!$PBX_PWLIB$ac_delim
36207 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36209 elif $ac_last_try; then
36210 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36212 { (exit 1); exit 1; }; }
36214 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36218 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36219 if test -n "$ac_eof"; then
36220 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36221 ac_eof
=`expr $ac_eof + 1`
36224 cat >>$CONFIG_STATUS <<_ACEOF
36225 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36230 s/^/s,@/; s/!/@,|#_!!_#|/
36233 s/'"$ac_delim"'$/,g/; t
36235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36236 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36237 rm -f conf$
$subs.
sed
36238 cat >>$CONFIG_STATUS <<_ACEOF
36244 for ac_last_try
in false false false false false
:; do
36245 cat >conf$
$subs.
sed <<_ACEOF
36246 OPENH323_LIB!$OPENH323_LIB$ac_delim
36247 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
36248 OPENH323_DIR!$OPENH323_DIR$ac_delim
36249 PBX_OPENH323!$PBX_OPENH323$ac_delim
36250 RADIUS_LIB!$RADIUS_LIB$ac_delim
36251 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
36252 RADIUS_DIR!$RADIUS_DIR$ac_delim
36253 PBX_RADIUS!$PBX_RADIUS$ac_delim
36254 SPEEX_LIB!$SPEEX_LIB$ac_delim
36255 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
36256 SPEEX_DIR!$SPEEX_DIR$ac_delim
36257 PBX_SPEEX!$PBX_SPEEX$ac_delim
36258 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
36259 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
36260 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
36261 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
36262 SQLITE_LIB!$SQLITE_LIB$ac_delim
36263 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
36264 SQLITE_DIR!$SQLITE_DIR$ac_delim
36265 PBX_SQLITE!$PBX_SQLITE$ac_delim
36266 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
36267 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
36268 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
36269 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
36270 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
36271 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
36272 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
36273 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
36274 FREETDS_LIB!$FREETDS_LIB$ac_delim
36275 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
36276 FREETDS_DIR!$FREETDS_DIR$ac_delim
36277 PBX_FREETDS!$PBX_FREETDS$ac_delim
36278 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
36279 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
36280 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
36281 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
36282 TINFO_LIB!$TINFO_LIB$ac_delim
36283 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
36284 TINFO_DIR!$TINFO_DIR$ac_delim
36285 PBX_TINFO!$PBX_TINFO$ac_delim
36286 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
36287 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
36288 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
36289 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
36290 USB_LIB!$USB_LIB$ac_delim
36291 USB_INCLUDE!$USB_INCLUDE$ac_delim
36292 USB_DIR!$USB_DIR$ac_delim
36293 PBX_USB!$PBX_USB$ac_delim
36294 VORBIS_LIB!$VORBIS_LIB$ac_delim
36295 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
36296 VORBIS_DIR!$VORBIS_DIR$ac_delim
36297 PBX_VORBIS!$PBX_VORBIS$ac_delim
36298 VPB_LIB!$VPB_LIB$ac_delim
36299 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
36300 VPB_DIR!$VPB_DIR$ac_delim
36301 PBX_VPB!$PBX_VPB$ac_delim
36302 ZLIB_LIB!$ZLIB_LIB$ac_delim
36303 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
36304 ZLIB_DIR!$ZLIB_DIR$ac_delim
36305 PBX_ZLIB!$PBX_ZLIB$ac_delim
36306 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
36307 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
36308 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
36309 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
36310 ALLOCA!$ALLOCA$ac_delim
36311 LIBOBJS!$LIBOBJS$ac_delim
36312 POW_LIB!$POW_LIB$ac_delim
36313 GC_CFLAGS!$GC_CFLAGS$ac_delim
36314 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
36315 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
36316 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
36317 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
36318 KDEINIT!$KDEINIT$ac_delim
36319 KDEDIR!$KDEDIR$ac_delim
36320 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
36321 PG_CONFIG!$PG_CONFIG$ac_delim
36322 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
36323 PWLIBDIR!$PWLIBDIR$ac_delim
36324 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
36325 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
36326 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
36327 OPENH323DIR!$OPENH323DIR$ac_delim
36328 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
36329 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
36330 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
36331 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
36332 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
36333 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
36334 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
36335 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
36336 PBX_H323!$PBX_H323$ac_delim
36337 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
36338 GTKCONFIG!$GTKCONFIG$ac_delim
36339 PBX_GTK!$PBX_GTK$ac_delim
36340 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
36341 GTK_LIB!$GTK_LIB$ac_delim
36342 PKGCONFIG!$PKGCONFIG$ac_delim
36345 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36347 elif $ac_last_try; then
36348 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36349 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36350 { (exit 1); exit 1; }; }
36352 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36356 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36357 if test -n "$ac_eof"; then
36358 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36359 ac_eof
=`expr $ac_eof + 1`
36362 cat >>$CONFIG_STATUS <<_ACEOF
36363 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36368 s/^/s,@/; s/!/@,|#_!!_#|/
36371 s/'"$ac_delim"'$/,g/; t
36373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36374 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36375 rm -f conf$
$subs.
sed
36376 cat >>$CONFIG_STATUS <<_ACEOF
36382 for ac_last_try
in false false false false false
:; do
36383 cat >conf$
$subs.
sed <<_ACEOF
36384 PBX_GTK2!$PBX_GTK2$ac_delim
36385 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
36386 GTK2_LIB!$GTK2_LIB$ac_delim
36387 CURL_CONFIG!$CURL_CONFIG$ac_delim
36388 LTLIBOBJS!$LTLIBOBJS$ac_delim
36391 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
36393 elif $ac_last_try; then
36394 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36395 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36396 { (exit 1); exit 1; }; }
36398 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36402 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36403 if test -n "$ac_eof"; then
36404 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36405 ac_eof
=`expr $ac_eof + 1`
36408 cat >>$CONFIG_STATUS <<_ACEOF
36409 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
36410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36413 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36414 s/^/s,@/; s/!/@,|#_!!_#|/
36417 s/'"$ac_delim"'$/,g/; t
36419 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36420 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36421 rm -f conf$
$subs.
sed
36422 cat >>$CONFIG_STATUS <<_ACEOF
36429 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36430 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36431 # trailing colons and then remove the whole line if VPATH becomes empty
36432 # (actually we leave an empty line to preserve line numbers).
36433 if test "x$srcdir" = x.
; then
36434 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36435 s/:*\$(srcdir):*/:/
36436 s/:*\${srcdir}:*/:/
36438 s/^\([^=]*=[ ]*\):*/\1/
36444 cat >>$CONFIG_STATUS <<\_ACEOF
36445 fi # test -n "$CONFIG_FILES"
36448 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
36451 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36453 case $ac_mode$ac_tag in
36455 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36456 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36457 { (exit 1); exit 1; }; };;
36458 :[FH
]-) ac_tag
=-:-;;
36459 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36476 -) ac_f
="$tmp/stdin";;
36477 *) # Look for the file first in the build tree, then in the source tree
36478 # (if the path is not absolute). The absolute path cannot be DOS-style,
36479 # because $ac_f cannot contain `:'.
36483 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36485 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36486 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36487 { (exit 1); exit 1; }; };;
36489 ac_file_inputs
="$ac_file_inputs $ac_f"
36492 # Let's still pretend it is `configure' which instantiates (i.e., don't
36493 # use $as_me), people would be surprised to read:
36494 # /* config.h. Generated by config.status. */
36495 configure_input
="Generated from "`IFS=:
36496 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36497 if test x
"$ac_file" != x-
; then
36498 configure_input
="$ac_file. $configure_input"
36499 { echo "$as_me:$LINENO: creating $ac_file" >&5
36500 echo "$as_me: creating $ac_file" >&6;}
36504 *:-:* |
*:-) cat >"$tmp/stdin";;
36509 ac_dir
=`$as_dirname -- "$ac_file" ||
36510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36511 X"$ac_file" : 'X\(//\)[^/]' \| \
36512 X"$ac_file" : 'X\(//\)$' \| \
36513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36519 /^X\(\/\/\)[^/].*/{
36534 -*) as_dir
=.
/$as_dir;;
36536 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36540 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36541 *) as_qdir
=$as_dir;;
36543 as_dirs
="'$as_qdir' $as_dirs"
36544 as_dir
=`$as_dirname -- "$as_dir" ||
36545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36546 X"$as_dir" : 'X\(//\)[^/]' \| \
36547 X"$as_dir" : 'X\(//\)$' \| \
36548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36554 /^X\(\/\/\)[^/].*/{
36567 test -d "$as_dir" && break
36569 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36570 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36571 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36572 { (exit 1); exit 1; }; }; }
36576 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36578 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36579 # A ".." for each directory in $ac_dir_suffix.
36580 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36581 case $ac_top_builddir_sub in
36582 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36583 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36586 ac_abs_top_builddir
=$ac_pwd
36587 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36588 # for backward compatibility:
36589 ac_top_builddir
=$ac_top_build_prefix
36592 .
) # We are building in place.
36594 ac_top_srcdir
=$ac_top_builddir_sub
36595 ac_abs_top_srcdir
=$ac_pwd ;;
36596 [\\/]* | ?
:[\\/]* ) # Absolute name.
36597 ac_srcdir
=$srcdir$ac_dir_suffix;
36598 ac_top_srcdir
=$srcdir
36599 ac_abs_top_srcdir
=$srcdir ;;
36600 *) # Relative name.
36601 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36602 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36603 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36605 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36615 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36616 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36620 cat >>$CONFIG_STATUS <<\_ACEOF
36621 # If the template does not know about datarootdir, expand it.
36622 # FIXME: This hack should be removed a few years after 2.60.
36623 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36625 case `sed -n '/datarootdir/ {
36634 ' $ac_file_inputs` in
36635 *datarootdir
*) ac_datarootdir_seen
=yes;;
36636 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36637 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36638 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36640 cat >>$CONFIG_STATUS <<_ACEOF
36641 ac_datarootdir_hack='
36642 s&@datadir@&$datadir&g
36643 s&@docdir@&$docdir&g
36644 s&@infodir@&$infodir&g
36645 s&@localedir@&$localedir&g
36646 s&@mandir@&$mandir&g
36647 s&\\\${datarootdir}&$datarootdir&g' ;;
36651 # Neutralize VPATH when `$srcdir' = `.'.
36652 # Shell code in configure.ac might set extrasub.
36653 # FIXME: do we really want to maintain this feature?
36654 cat >>$CONFIG_STATUS <<_ACEOF
36658 cat >>$CONFIG_STATUS <<\_ACEOF
36660 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36661 s
&@configure_input@
&$configure_input&;t t
36662 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36663 s
&@srcdir@
&$ac_srcdir&;t t
36664 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36665 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36666 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36667 s
&@builddir@
&$ac_builddir&;t t
36668 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36669 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36670 s
&@INSTALL@
&$ac_INSTALL&;t t
36671 $ac_datarootdir_hack
36672 " $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
36674 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36675 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36677 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36678 which seems to be undefined. Please make sure it is defined." >&5
36679 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36680 which seems to be undefined. Please make sure it is defined." >&2;}
36684 -) cat "$tmp/out"; rm -f "$tmp/out";;
36685 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36694 # Transform confdefs.h into a sed script `conftest.defines', that
36695 # substitutes the proper values into config.h.in to produce config.h.
36696 rm -f conftest.defines conftest.
tail
36697 # First, append a space to every undef/define line, to ease matching.
36698 echo 's/$/ /' >conftest.defines
36699 # Then, protect against being on the right side of a sed subst, or in
36700 # an unquoted here document, in config.status. If some macros were
36701 # called several times there might be several #defines for the same
36702 # symbol, which is useless. But do not sort them, since the last
36703 # AC_DEFINE must be honored.
36704 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36705 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36706 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36707 # PARAMS is the parameter list in the macro definition--in most cases, it's
36708 # just an empty string.
36709 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36710 ac_dB
='\\)[ (].*,\\1define\\2'
36718 s/^[ ]*#[ ]*define[ ][ ]*//
36723 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36724 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36725 ' >>conftest.defines
36727 # Remove the space that was appended to ease matching.
36728 # Then replace #undef with comments. This is necessary, for
36729 # example, in the case of _POSIX_SOURCE, which is predefined and required
36730 # on some systems where configure will not decide to define it.
36731 # (The regexp can be short, since the line contains either #define or #undef.)
36733 s,^[ #]*u.*,/* & */,' >>conftest.defines
36735 # Break up conftest.defines:
36736 ac_max_sed_lines
=50
36738 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36739 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36740 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36742 ac_in
='$ac_file_inputs'
36743 ac_out
='"$tmp/out1"'
36744 ac_nxt
='"$tmp/out2"'
36748 # Write a here document:
36749 cat >>$CONFIG_STATUS <<_ACEOF
36750 # First, check the format of the line:
36751 cat >"\$tmp/defines.sed" <<\\CEOF
36752 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36753 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36757 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36759 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36760 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36761 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36762 grep . conftest.
tail >/dev
/null ||
break
36763 rm -f conftest.defines
36764 mv conftest.
tail conftest.defines
36766 rm -f conftest.defines conftest.
tail
36768 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36769 cat >>$CONFIG_STATUS <<\_ACEOF
36770 if test x
"$ac_file" != x-
; then
36771 echo "/* $configure_input */" >"$tmp/config.h"
36772 cat "$ac_result" >>"$tmp/config.h"
36773 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36774 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36775 echo "$as_me: $ac_file is unchanged" >&6;}
36778 mv "$tmp/config.h" $ac_file
36781 echo "/* $configure_input */"
36793 { (exit 0); exit 0; }
36795 chmod +x
$CONFIG_STATUS
36796 ac_clean_files
=$ac_clean_files_save
36799 # configure is writing to config.log, and then calls config.status.
36800 # config.status does its own redirection, appending to config.log.
36801 # Unfortunately, on DOS this fails, as config.log is still kept open
36802 # by configure, so config.status won't be able to write to it; its
36803 # output is simply discarded. So we exec the FD to /dev/null,
36804 # effectively closing config.log, so it can be properly (re)opened and
36805 # appended to by config.status. When coming back to configure, we
36806 # need to make the FD available again.
36807 if test "$no_create" != yes; then
36809 ac_config_status_args
=
36810 test "$silent" = yes &&
36811 ac_config_status_args
="$ac_config_status_args --quiet"
36813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36816 # would make configure fail if this is the last instruction.
36817 $ac_cs_success ||
{ (exit 1); exit 1; }
36821 if test "x${silent}" != "xyes" ; then
36823 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
36824 echo " .\$7\$7.. .7\$\$7:. "
36825 echo " .\$\$:. ,\$7.7 "
36826 echo " .\$7. 7\$\$\$\$ .\$\$77 "
36827 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
36828 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
36829 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
36830 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
36831 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
36832 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
36833 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
36834 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
36835 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
36836 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
36837 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
36838 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
36839 echo " \$\$\$\$\$ \$\$\$ "
36840 echo " \$\$\$\$7. \$\$ (TM) "
36841 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
36842 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
36843 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
36847 { echo "$as_me:$LINENO: Package configured for: " >&5
36848 echo "$as_me: Package configured for: " >&6;}
36849 { echo "$as_me:$LINENO: OS type : $host_os" >&5
36850 echo "$as_me: OS type : $host_os" >&6;}
36851 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
36852 echo "$as_me: Host CPU : $host_cpu" >&6;}
36853 if test "${cross_compiling}" = "yes"; then
36854 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
36855 echo "$as_me: Cross Compilation = YES" >&6;}