#! /bin/sh
-# From configure.ac Revision: 217638 .
+# From configure.ac Revision: 242857 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for asterisk 1.6.
#
STRIP
AR
GNU_LD
+BISON
+FLEX
FIND
COMPRESS
BASENAME
XMLSTARLET
FETCH
DOWNLOAD
+PBX_BISON
+PBX_FLEX
SOXMIX
MD5
acx_pthread_config
PRI_INCLUDE
PRI_DIR
PBX_PRI
+PRI_SUBADDR_LIB
+PRI_SUBADDR_INCLUDE
+PRI_SUBADDR_DIR
+PBX_PRI_SUBADDR
+PRI_CALL_HOLD_LIB
+PRI_CALL_HOLD_INCLUDE
+PRI_CALL_HOLD_DIR
+PBX_PRI_CALL_HOLD
+PRI_CALL_REROUTING_LIB
+PRI_CALL_REROUTING_INCLUDE
+PRI_CALL_REROUTING_DIR
+PBX_PRI_CALL_REROUTING
+PRI_SETUP_KEYPAD_LIB
+PRI_SETUP_KEYPAD_INCLUDE
+PRI_SETUP_KEYPAD_DIR
+PBX_PRI_SETUP_KEYPAD
PRI_VERSION_LIB
PRI_VERSION_INCLUDE
PRI_VERSION_DIR
EDITLINE_LIB
PBX_H323
PBX_IXJUSER
+PBX_MSG_NOSIGNAL
+PBX_SO_NOSIGPIPE
CONFIG_SDL
CONFIG_GTK
PKGCONFIG
OSARCH=cygwin
PBX_WINARCH=1
;;
+ linux-gnueabi)
+ OSARCH=linux-gnu
+ ;;
*)
OSARCH=${host_os}
;;
fi
+# Extract the first word of "bison", so it can be a program name with args.
+set dummy bison; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_BISON+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $BISON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
+ ;;
+esac
+fi
+BISON=$ac_cv_path_BISON
+if test -n "$BISON"; then
+ { echo "$as_me:$LINENO: result: $BISON" >&5
+echo "${ECHO_T}$BISON" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+# Extract the first word of "flex", so it can be a program name with args.
+set dummy flex; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_FLEX+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $FLEX in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
+ ;;
+esac
+fi
+FLEX=$ac_cv_path_FLEX
+if test -n "$FLEX"; then
+ { echo "$as_me:$LINENO: result: $FLEX" >&5
+echo "${ECHO_T}$FLEX" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
# Extract the first word of "grep", so it can be a program name with args.
set dummy grep; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
fi
+{ echo "$as_me:$LINENO: checking for bison that supports parse-param" >&5
+echo $ECHO_N "checking for bison that supports parse-param... $ECHO_C" >&6; }
+if test "${ac_cv_path_BISON2+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ if test "x$BISON" != "x:" ; then
+ # Create a temporary directory $tmp in $TMPDIR (default /tmp).
+ # Use mktemp if possible; otherwise fall back on mkdir,
+ # with $RANDOM to make collisions less likely.
+ : ${TMPDIR=/tmp}
+ {
+ tmp=`
+ (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
+ ` &&
+ test -n "$tmp" && test -d "$tmp"
+ } || {
+ tmp=$TMPDIR/foo$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+ } || exit $?
+ cat >$tmp/test.y <<__EOL__
+%parse-param {struct parse_io *parseio}
+%%
+file : { \$\$ = parseio->pval = 1; }
+ ;
+%%
+__EOL__
+ ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
+ if test -e "${tmp}/test.tab.c"; then
+ ac_cv_path_BISON2=${BISON}
+ fi
+ rm -rf ${tmp}
+ fi
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_path_BISON2" >&5
+echo "${ECHO_T}$ac_cv_path_BISON2" >&6; }
+if test "x${ac_cv_path_BISON2}" = "x" ; then
+ BISON=:
+ PBX_BISON=0
+else
+ PBX_BISON=1
+fi
+
+if test "x${FLEX}" = "x:" ; then
+ PBX_FLEX=0
+else
+ PBX_FLEX=1
+fi
+
+
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
set dummy ${ac_tool_prefix}soxmix; ac_word=$2
+PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
+PRI_SUBADDR_OPTION=pri
+
+for i in ${ac_mandatory_list}; do
+ if test "xPRI" = "x$i"; then
+ ac_mandatory_list="${ac_mandatory_list} PRI_SUBADDR"
+ break
+ fi
+done
+
+PBX_PRI_SUBADDR=0
+
+
+
+
+
+
+
+
+PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
+PRI_CALL_HOLD_OPTION=pri
+
+for i in ${ac_mandatory_list}; do
+ if test "xPRI" = "x$i"; then
+ ac_mandatory_list="${ac_mandatory_list} PRI_CALL_HOLD"
+ break
+ fi
+done
+
+PBX_PRI_CALL_HOLD=0
+
+
+
+
+
+
+
+
+PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
+PRI_CALL_REROUTING_OPTION=pri
+
+for i in ${ac_mandatory_list}; do
+ if test "xPRI" = "x$i"; then
+ ac_mandatory_list="${ac_mandatory_list} PRI_CALL_REROUTING"
+ break
+ fi
+done
+
+PBX_PRI_CALL_REROUTING=0
+
+
+
+
+
+
+
+
+PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
+PRI_SETUP_KEYPAD_OPTION=pri
+
+for i in ${ac_mandatory_list}; do
+ if test "xPRI" = "x$i"; then
+ ac_mandatory_list="${ac_mandatory_list} PRI_SETUP_KEYPAD"
+ break
+ fi
+done
+
+PBX_PRI_SETUP_KEYPAD=0
+
+
+
+
+
+
+
+# ------------------------------------v
+# TODO: The code can be changed to always include these features now.
+# These features will always be present if pri_connected_line_update is available.
+
PRI_VERSION_DESCRIP="ISDN PRI get_version"
PRI_VERSION_OPTION=pri
+# ------------------------------------^
RESAMPLE_DESCRIP="LIBRESAMPLE"
RESAMPLE_OPTION="resample"
-for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
+
+
+
+for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob htonll ioperm inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap ntohll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
fi
-
- if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
- { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
-echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
- PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
-
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
+{ echo "$as_me:$LINENO: checking if PTHREAD_ONCE_INIT needs braces" >&5
+echo $ECHO_N "checking if PTHREAD_ONCE_INIT needs braces... $ECHO_C" >&6; }
+saved_CFLAGS="${CFLAGS}"
+CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <pthread.h>
+ void empty(){}
int
main ()
{
-#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
-
+pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
;
return 0;
}
+
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
-_ACEOF
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+ ac_cv_pthread_once_needsbraces="no"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- fi
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ ac_cv_pthread_once_needsbraces="yes"
-#if test "${cross_compiling}" = "no";
-#then
-#AC_MSG_CHECKING(for working epoll support)
-#AC_LINK_IFELSE(
-#AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
-# if (res < 0)
-# return 1;
-# close (res);
-# return 0;]),
-#AC_MSG_RESULT(yes)
-#AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
-#AC_MSG_RESULT(no)
-#)
-#fi
-
-{ echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
-echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
+fi
-int
-main ()
-{
-int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+CFLAGS="${saved_CFLAGS}"
+if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
cat >>confdefs.h <<\_ACEOF
-#define HAVE_GCC_ATOMICS 1
+#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1
_ACEOF
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-
fi
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
-echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
-saved_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
+ if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
+ { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
+echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
+ saved_cppflags="${CPPFLAGS}"
+ if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
+ PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
+ fi
+ CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
-if test "x" = "x"
-then
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
+#include <pthread.h>
+int
+main ()
+{
+#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
+ int foo = 0;
+ #else
+ int foo = bar;
+ #endif
+ 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
+_ACEOF
+
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="${saved_cppflags}"
+ fi
+
+
+
+#if test "${cross_compiling}" = "no";
+#then
+#AC_MSG_CHECKING(for working epoll support)
+#AC_LINK_IFELSE(
+#AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
+# if (res < 0)
+# return 1;
+# close (res);
+# return 0;]),
+#AC_MSG_RESULT(yes)
+#AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
+#AC_MSG_RESULT(no)
+#)
+#fi
+
+{ echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
+echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_GCC_ATOMICS 1
+_ACEOF
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+
+
+{ echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
+echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
+saved_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
+
+if test "x" = "x"
+then
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+ void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
int
main ()
{
fi
-if test "x${host_os}" = "xlinux-gnu" ; then
+if test "x${OSARCH}" = "xlinux-gnu" ; then
if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
pbxlibdir=""
fi
+ { echo "$as_me:$LINENO: checking for Q931_info_t.redirect_dn" >&5
+echo $ECHO_N "checking for Q931_info_t.redirect_dn... $ECHO_C" >&6; }
+if test "${ac_cv_member_Q931_info_t_redirect_dn+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <mISDNuser/mISDNlib.h>
+
+int
+main ()
+{
+static Q931_info_t ac_aggr;
+if (ac_aggr.redirect_dn)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_member_Q931_info_t_redirect_dn=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <mISDNuser/mISDNlib.h>
+
+int
+main ()
+{
+static Q931_info_t ac_aggr;
+if (sizeof ac_aggr.redirect_dn)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_member_Q931_info_t_redirect_dn=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_member_Q931_info_t_redirect_dn=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_member_Q931_info_t_redirect_dn" >&5
+echo "${ECHO_T}$ac_cv_member_Q931_info_t_redirect_dn" >&6; }
+if test $ac_cv_member_Q931_info_t_redirect_dn = yes; then
+ :
+else
+ PBX_MISDN=0
+fi
+
fi
fi
-# ------------------------------------v
-# TODO: The code can be changed to always include these features now.
-# These features will always be present if pri_connected_line_update is available.
-
-if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
+if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
pbxlibdir=""
- # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
- if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
- if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
- pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
+ # if --with-PRI_SUBADDR=DIR has been specified, use it.
+ if test "x${PRI_SUBADDR_DIR}" != "x"; then
+ if test -d ${PRI_SUBADDR_DIR}/lib; then
+ pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
else
- pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
+ pbxlibdir="-L${PRI_SUBADDR_DIR}"
fi
fi
- pbxfuncname="pri_progress_with_cause"
+ pbxfuncname="pri_sr_set_called_subaddress"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_PROG_W_CAUSE_FOUND=yes
+ AST_PRI_SUBADDR_FOUND=yes
else
as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- AST_PRI_PROG_W_CAUSE_FOUND=yes
+ AST_PRI_SUBADDR_FOUND=yes
else
- AST_PRI_PROG_W_CAUSE_FOUND=no
+ AST_PRI_SUBADDR_FOUND=no
fi
fi
# now check for the header.
- if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
- PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
- if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
- PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
+ if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
+ PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_SUBADDR=DIR has been specified, use it.
+ if test "x${PRI_SUBADDR_DIR}" != "x"; then
+ PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
fi
- PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
+ PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_PROG_W_CAUSE_HEADER_FOUND="1"
+ PRI_SUBADDR_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
if test "${ac_cv_header_libpri_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for libpri.h" >&5
echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
fi
if test $ac_cv_header_libpri_h = yes; then
- PRI_PROG_W_CAUSE_HEADER_FOUND=1
+ PRI_SUBADDR_HEADER_FOUND=1
else
- PRI_PROG_W_CAUSE_HEADER_FOUND=0
+ PRI_SUBADDR_HEADER_FOUND=0
fi
CPPFLAGS="${saved_cppflags}"
fi
- if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
- PRI_PROG_W_CAUSE_LIB=""
- PRI_PROG_W_CAUSE_INCLUDE=""
+ if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
+ PRI_SUBADDR_LIB=""
+ PRI_SUBADDR_INCLUDE=""
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_PROG_W_CAUSE_LIB=""
+ PRI_SUBADDR_LIB=""
fi
- PBX_PRI_PROG_W_CAUSE=1
+ PBX_PRI_SUBADDR=1
cat >>confdefs.h <<_ACEOF
-#define HAVE_PRI_PROG_W_CAUSE 1
-#define HAVE_PRI_PROG_W_CAUSE_VERSION
+#define HAVE_PRI_SUBADDR 1
+#define HAVE_PRI_SUBADDR_VERSION
_ACEOF
fi
fi
fi
-if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
+if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
pbxlibdir=""
- # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
- if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
- if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
- pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
+ # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
+ if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
+ if test -d ${PRI_CALL_HOLD_DIR}/lib; then
+ pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
else
- pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
+ pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
fi
fi
- pbxfuncname="pri_set_inbanddisconnect"
+ pbxfuncname="pri_hold_enable"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_INBANDDISCONNECT_FOUND=yes
+ AST_PRI_CALL_HOLD_FOUND=yes
else
as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- AST_PRI_INBANDDISCONNECT_FOUND=yes
+ AST_PRI_CALL_HOLD_FOUND=yes
else
- AST_PRI_INBANDDISCONNECT_FOUND=no
+ AST_PRI_CALL_HOLD_FOUND=no
fi
fi
# now check for the header.
- if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
- PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
- if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
- PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
+ if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
+ PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
+ if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
+ PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
fi
- PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
+ PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_INBANDDISCONNECT_HEADER_FOUND="1"
+ PRI_CALL_HOLD_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
if test "${ac_cv_header_libpri_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for libpri.h" >&5
echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
fi
if test $ac_cv_header_libpri_h = yes; then
- PRI_INBANDDISCONNECT_HEADER_FOUND=1
+ PRI_CALL_HOLD_HEADER_FOUND=1
else
- PRI_INBANDDISCONNECT_HEADER_FOUND=0
+ PRI_CALL_HOLD_HEADER_FOUND=0
fi
CPPFLAGS="${saved_cppflags}"
fi
- if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
- PRI_INBANDDISCONNECT_LIB=""
- PRI_INBANDDISCONNECT_INCLUDE=""
+ if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
+ PRI_CALL_HOLD_LIB=""
+ PRI_CALL_HOLD_INCLUDE=""
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_INBANDDISCONNECT_LIB=""
+ PRI_CALL_HOLD_LIB=""
fi
- PBX_PRI_INBANDDISCONNECT=1
+ PBX_PRI_CALL_HOLD=1
cat >>confdefs.h <<_ACEOF
-#define HAVE_PRI_INBANDDISCONNECT 1
-#define HAVE_PRI_INBANDDISCONNECT_VERSION
+#define HAVE_PRI_CALL_HOLD 1
+#define HAVE_PRI_CALL_HOLD_VERSION
_ACEOF
fi
fi
fi
-if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
+if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
pbxlibdir=""
- # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
- if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
- if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
- pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
+ # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
+ if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
+ if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
+ pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
else
- pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
+ pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
fi
fi
- pbxfuncname="pri_maintenance_service"
+ pbxfuncname="pri_reroute_enable"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_SERVICE_MESSAGES_FOUND=yes
+ AST_PRI_CALL_REROUTING_FOUND=yes
else
as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- AST_PRI_SERVICE_MESSAGES_FOUND=yes
+ AST_PRI_CALL_REROUTING_FOUND=yes
else
- AST_PRI_SERVICE_MESSAGES_FOUND=no
+ AST_PRI_CALL_REROUTING_FOUND=no
fi
fi
# now check for the header.
- if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
- PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
- if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
- PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
+ if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
+ PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
+ if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
+ PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
fi
- PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
+ PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
+ PRI_CALL_REROUTING_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
if test "${ac_cv_header_libpri_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for libpri.h" >&5
echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
fi
if test $ac_cv_header_libpri_h = yes; then
- PRI_SERVICE_MESSAGES_HEADER_FOUND=1
+ PRI_CALL_REROUTING_HEADER_FOUND=1
else
- PRI_SERVICE_MESSAGES_HEADER_FOUND=0
+ PRI_CALL_REROUTING_HEADER_FOUND=0
fi
CPPFLAGS="${saved_cppflags}"
fi
- if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
- PRI_SERVICE_MESSAGES_LIB=""
- PRI_SERVICE_MESSAGES_INCLUDE=""
+ if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
+ PRI_CALL_REROUTING_LIB=""
+ PRI_CALL_REROUTING_INCLUDE=""
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_SERVICE_MESSAGES_LIB=""
+ PRI_CALL_REROUTING_LIB=""
fi
- PBX_PRI_SERVICE_MESSAGES=1
+ PBX_PRI_CALL_REROUTING=1
cat >>confdefs.h <<_ACEOF
-#define HAVE_PRI_SERVICE_MESSAGES 1
-#define HAVE_PRI_SERVICE_MESSAGES_VERSION
+#define HAVE_PRI_CALL_REROUTING 1
+#define HAVE_PRI_CALL_REROUTING_VERSION
_ACEOF
fi
fi
fi
-if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
+if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
pbxlibdir=""
- # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
- if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
- if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
- pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
+ # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
+ if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
+ if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
+ pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
else
- pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
+ pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
fi
fi
- pbxfuncname="pri_sr_set_reversecharge"
+ pbxfuncname="pri_sr_set_keypad_digits"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_REVERSE_CHARGE_FOUND=yes
+ AST_PRI_SETUP_KEYPAD_FOUND=yes
else
as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- AST_PRI_REVERSE_CHARGE_FOUND=yes
+ AST_PRI_SETUP_KEYPAD_FOUND=yes
else
- AST_PRI_REVERSE_CHARGE_FOUND=no
+ AST_PRI_SETUP_KEYPAD_FOUND=no
fi
fi
# now check for the header.
- if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
- PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
- if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
- PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
+ if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
+ PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
+ if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
+ PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
fi
- PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
+ PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_REVERSE_CHARGE_HEADER_FOUND="1"
+ PRI_SETUP_KEYPAD_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
if test "${ac_cv_header_libpri_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for libpri.h" >&5
echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
fi
if test $ac_cv_header_libpri_h = yes; then
- PRI_REVERSE_CHARGE_HEADER_FOUND=1
+ PRI_SETUP_KEYPAD_HEADER_FOUND=1
else
- PRI_REVERSE_CHARGE_HEADER_FOUND=0
+ PRI_SETUP_KEYPAD_HEADER_FOUND=0
fi
CPPFLAGS="${saved_cppflags}"
fi
- if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
- PRI_REVERSE_CHARGE_LIB=""
- PRI_REVERSE_CHARGE_INCLUDE=""
+ if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
+ PRI_SETUP_KEYPAD_LIB=""
+ PRI_SETUP_KEYPAD_INCLUDE=""
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_REVERSE_CHARGE_LIB=""
+ PRI_SETUP_KEYPAD_LIB=""
fi
- PBX_PRI_REVERSE_CHARGE=1
+ PBX_PRI_SETUP_KEYPAD=1
cat >>confdefs.h <<_ACEOF
-#define HAVE_PRI_REVERSE_CHARGE 1
-#define HAVE_PRI_REVERSE_CHARGE_VERSION
+#define HAVE_PRI_SETUP_KEYPAD 1
+#define HAVE_PRI_SETUP_KEYPAD_VERSION
_ACEOF
fi
fi
fi
-# ------------------------------------^
+# ------------------------------------v
+# TODO: The code can be changed to always include these features now.
+# These features will always be present if pri_connected_line_update is available.
-if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
+if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
pbxlibdir=""
- # if --with-RESAMPLE=DIR has been specified, use it.
- if test "x${RESAMPLE_DIR}" != "x"; then
- if test -d ${RESAMPLE_DIR}/lib; then
- pbxlibdir="-L${RESAMPLE_DIR}/lib"
+ # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
+ if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
+ if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
+ pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
else
- pbxlibdir="-L${RESAMPLE_DIR}"
+ pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
fi
fi
- pbxfuncname="resample_open"
+ pbxfuncname="pri_progress_with_cause"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_RESAMPLE_FOUND=yes
+ AST_PRI_PROG_W_CAUSE_FOUND=yes
else
- as_ac_Lib=`echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lresample" >&5
-echo $ECHO_N "checking for ${pbxfuncname} in -lresample... $ECHO_C" >&6; }
+ as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lresample ${pbxlibdir} -lm $LIBS"
+LIBS="-lpri ${pbxlibdir} $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- AST_RESAMPLE_FOUND=yes
+ AST_PRI_PROG_W_CAUSE_FOUND=yes
else
- AST_RESAMPLE_FOUND=no
+ AST_PRI_PROG_W_CAUSE_FOUND=no
fi
fi
# now check for the header.
- if test "${AST_RESAMPLE_FOUND}" = "yes"; then
- RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
- # if --with-RESAMPLE=DIR has been specified, use it.
- if test "x${RESAMPLE_DIR}" != "x"; then
- RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
+ if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
+ PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
+ if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
+ PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
fi
- RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
- if test "xlibresample.h" = "x" ; then # no header, assume found
- RESAMPLE_HEADER_FOUND="1"
+ PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
+ if test "xlibpri.h" = "x" ; then # no header, assume found
+ PRI_PROG_W_CAUSE_HEADER_FOUND="1"
else # check for the header
saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
- if test "${ac_cv_header_libresample_h+set}" = set; then
- { echo "$as_me:$LINENO: checking for libresample.h" >&5
-echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_libresample_h+set}" = set; then
+ CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
+ if test "${ac_cv_header_libpri_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
-echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
else
# Is the header compilable?
-{ echo "$as_me:$LINENO: checking libresample.h usability" >&5
-echo $ECHO_N "checking libresample.h usability... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking libpri.h usability" >&5
+echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-#include <libresample.h>
+#include <libpri.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
-{ echo "$as_me:$LINENO: checking libresample.h presence" >&5
-echo $ECHO_N "checking libresample.h presence... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking libpri.h presence" >&5
+echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <libresample.h>
+#include <libpri.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
- { echo "$as_me:$LINENO: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: libresample.h: proceeding with the compiler's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
- { echo "$as_me:$LINENO: WARNING: libresample.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: libresample.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: libresample.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: libresample.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: libresample.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: libresample.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: libresample.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: libresample.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: libresample.h: in the future, the compiler will take precedence" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## ------------------------------- ##
## Report this to www.asterisk.org ##
) | sed "s/^/$as_me: WARNING: /" >&2
;;
esac
-{ echo "$as_me:$LINENO: checking for libresample.h" >&5
-echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_libresample_h+set}" = set; then
+{ echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_header_libresample_h=$ac_header_preproc
+ ac_cv_header_libpri_h=$ac_header_preproc
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
-echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
fi
-if test $ac_cv_header_libresample_h = yes; then
- RESAMPLE_HEADER_FOUND=1
+if test $ac_cv_header_libpri_h = yes; then
+ PRI_PROG_W_CAUSE_HEADER_FOUND=1
else
- RESAMPLE_HEADER_FOUND=0
+ PRI_PROG_W_CAUSE_HEADER_FOUND=0
fi
CPPFLAGS="${saved_cppflags}"
fi
- if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
- RESAMPLE_LIB=""
- RESAMPLE_INCLUDE=""
+ if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
+ PRI_PROG_W_CAUSE_LIB=""
+ PRI_PROG_W_CAUSE_INCLUDE=""
else
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- RESAMPLE_LIB=""
+ PRI_PROG_W_CAUSE_LIB=""
fi
- PBX_RESAMPLE=1
+ PBX_PRI_PROG_W_CAUSE=1
cat >>confdefs.h <<_ACEOF
-#define HAVE_RESAMPLE 1
-#define HAVE_RESAMPLE_VERSION
+#define HAVE_PRI_PROG_W_CAUSE 1
+#define HAVE_PRI_PROG_W_CAUSE_VERSION
_ACEOF
fi
fi
fi
-
- if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
- if test "xminimum version of SpanDSP" != "x"; then
- { echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5
-echo $ECHO_N "checking for minimum version of SpanDSP... $ECHO_C" >&6; }
- else
- { echo "$as_me:$LINENO: checking if \"
- #if SPANDSP_RELEASE_DATE < 20080516
- #error \"spandsp 0.0.5 or greater is required\"
- #endif
- \" compiles using spandsp/version.h" >&5
-echo $ECHO_N "checking if \"
- #if SPANDSP_RELEASE_DATE < 20080516
- #error \"spandsp 0.0.5 or greater is required\"
- #endif
- \" compiles using spandsp/version.h... $ECHO_C" >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${SPANDSP_DIR}" != "x"; then
- SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
-
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <spandsp/version.h>
-int
-main ()
-{
-
- #if SPANDSP_RELEASE_DATE < 20080516
- #error "spandsp 0.0.5 or greater is required"
- #endif
- ;
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- PBX_SPANDSP=1
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_SPANDSP 1
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_SPANDSP_VERSION
-_ACEOF
-
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- fi
-
-
-if test "x${PBX_SPANDSP}" = "x1" ; then
- # We found the correct version in the header, now let's make sure it links
- # properly, and that libtiff is available
- PBX_SPANDSP=0
-
-if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
+if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
pbxlibdir=""
- # if --with-SPANDSP=DIR has been specified, use it.
- if test "x${SPANDSP_DIR}" != "x"; then
- if test -d ${SPANDSP_DIR}/lib; then
- pbxlibdir="-L${SPANDSP_DIR}/lib"
+ # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
+ if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
+ if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
+ pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
else
- pbxlibdir="-L${SPANDSP_DIR}"
+ pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
fi
fi
- pbxfuncname="span_set_message_handler"
+ pbxfuncname="pri_set_inbanddisconnect"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SPANDSP_FOUND=yes
+ AST_PRI_INBANDDISCONNECT_FOUND=yes
else
- as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
-echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
+ as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
+LIBS="-lpri ${pbxlibdir} $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ${pbxfuncname} ();
+int
+main ()
+{
+return ${pbxfuncname} ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Lib=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+ac_res=`eval echo '${'$as_ac_Lib'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+ AST_PRI_INBANDDISCONNECT_FOUND=yes
+else
+ AST_PRI_INBANDDISCONNECT_FOUND=no
+fi
+
+ fi
+
+ # now check for the header.
+ if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
+ PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
+ if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
+ PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
+ fi
+ PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
+ if test "xlibpri.h" = "x" ; then # no header, assume found
+ PRI_INBANDDISCONNECT_HEADER_FOUND="1"
+ else # check for the header
+ saved_cppflags="${CPPFLAGS}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
+ if test "${ac_cv_header_libpri_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking libpri.h usability" >&5
+echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <libpri.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking libpri.h presence" >&5
+echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libpri.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------- ##
+## Report this to www.asterisk.org ##
+## ------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_libpri_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
+
+fi
+if test $ac_cv_header_libpri_h = yes; then
+ PRI_INBANDDISCONNECT_HEADER_FOUND=1
+else
+ PRI_INBANDDISCONNECT_HEADER_FOUND=0
+fi
+
+
+ CPPFLAGS="${saved_cppflags}"
+ fi
+ if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
+ PRI_INBANDDISCONNECT_LIB=""
+ PRI_INBANDDISCONNECT_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ PRI_INBANDDISCONNECT_LIB=""
+ fi
+ PBX_PRI_INBANDDISCONNECT=1
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PRI_INBANDDISCONNECT 1
+#define HAVE_PRI_INBANDDISCONNECT_VERSION
+_ACEOF
+ fi
+ fi
+fi
+
+
+if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
+ pbxlibdir=""
+ # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
+ if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
+ if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
+ pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
+ else
+ pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
+ fi
+ fi
+ pbxfuncname="pri_maintenance_service"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_PRI_SERVICE_MESSAGES_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
+if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpri ${pbxlibdir} $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ${pbxfuncname} ();
+int
+main ()
+{
+return ${pbxfuncname} ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Lib=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+ac_res=`eval echo '${'$as_ac_Lib'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+ AST_PRI_SERVICE_MESSAGES_FOUND=yes
+else
+ AST_PRI_SERVICE_MESSAGES_FOUND=no
+fi
+
+ fi
+
+ # now check for the header.
+ if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
+ PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
+ if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
+ PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
+ fi
+ PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
+ if test "xlibpri.h" = "x" ; then # no header, assume found
+ PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
+ else # check for the header
+ saved_cppflags="${CPPFLAGS}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
+ if test "${ac_cv_header_libpri_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking libpri.h usability" >&5
+echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <libpri.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking libpri.h presence" >&5
+echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libpri.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------- ##
+## Report this to www.asterisk.org ##
+## ------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_libpri_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
+
+fi
+if test $ac_cv_header_libpri_h = yes; then
+ PRI_SERVICE_MESSAGES_HEADER_FOUND=1
+else
+ PRI_SERVICE_MESSAGES_HEADER_FOUND=0
+fi
+
+
+ CPPFLAGS="${saved_cppflags}"
+ fi
+ if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
+ PRI_SERVICE_MESSAGES_LIB=""
+ PRI_SERVICE_MESSAGES_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ PRI_SERVICE_MESSAGES_LIB=""
+ fi
+ PBX_PRI_SERVICE_MESSAGES=1
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PRI_SERVICE_MESSAGES 1
+#define HAVE_PRI_SERVICE_MESSAGES_VERSION
+_ACEOF
+ fi
+ fi
+fi
+
+
+if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
+ pbxlibdir=""
+ # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
+ if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
+ if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
+ pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
+ else
+ pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
+ fi
+ fi
+ pbxfuncname="pri_sr_set_reversecharge"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_PRI_REVERSE_CHARGE_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
+if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpri ${pbxlibdir} $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ${pbxfuncname} ();
+int
+main ()
+{
+return ${pbxfuncname} ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Lib=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+ac_res=`eval echo '${'$as_ac_Lib'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+ AST_PRI_REVERSE_CHARGE_FOUND=yes
+else
+ AST_PRI_REVERSE_CHARGE_FOUND=no
+fi
+
+ fi
+
+ # now check for the header.
+ if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
+ PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
+ # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
+ if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
+ PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
+ fi
+ PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
+ if test "xlibpri.h" = "x" ; then # no header, assume found
+ PRI_REVERSE_CHARGE_HEADER_FOUND="1"
+ else # check for the header
+ saved_cppflags="${CPPFLAGS}"
+ CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
+ if test "${ac_cv_header_libpri_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking libpri.h usability" >&5
+echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <libpri.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking libpri.h presence" >&5
+echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libpri.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------- ##
+## Report this to www.asterisk.org ##
+## ------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for libpri.h" >&5
+echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libpri_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_libpri_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
+echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
+
+fi
+if test $ac_cv_header_libpri_h = yes; then
+ PRI_REVERSE_CHARGE_HEADER_FOUND=1
+else
+ PRI_REVERSE_CHARGE_HEADER_FOUND=0
+fi
+
+
+ CPPFLAGS="${saved_cppflags}"
+ fi
+ if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
+ PRI_REVERSE_CHARGE_LIB=""
+ PRI_REVERSE_CHARGE_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ PRI_REVERSE_CHARGE_LIB=""
+ fi
+ PBX_PRI_REVERSE_CHARGE=1
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PRI_REVERSE_CHARGE 1
+#define HAVE_PRI_REVERSE_CHARGE_VERSION
+_ACEOF
+ fi
+ fi
+fi
+
+# ------------------------------------^
+
+
+if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
+ pbxlibdir=""
+ # if --with-RESAMPLE=DIR has been specified, use it.
+ if test "x${RESAMPLE_DIR}" != "x"; then
+ if test -d ${RESAMPLE_DIR}/lib; then
+ pbxlibdir="-L${RESAMPLE_DIR}/lib"
+ else
+ pbxlibdir="-L${RESAMPLE_DIR}"
+ fi
+ fi
+ pbxfuncname="resample_open"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_RESAMPLE_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lresample" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lresample... $ECHO_C" >&6; }
+if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lresample ${pbxlibdir} -lm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ${pbxfuncname} ();
+int
+main ()
+{
+return ${pbxfuncname} ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Lib=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+ac_res=`eval echo '${'$as_ac_Lib'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+ AST_RESAMPLE_FOUND=yes
+else
+ AST_RESAMPLE_FOUND=no
+fi
+
+ fi
+
+ # now check for the header.
+ if test "${AST_RESAMPLE_FOUND}" = "yes"; then
+ RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
+ # if --with-RESAMPLE=DIR has been specified, use it.
+ if test "x${RESAMPLE_DIR}" != "x"; then
+ RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
+ fi
+ RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
+ if test "xlibresample.h" = "x" ; then # no header, assume found
+ RESAMPLE_HEADER_FOUND="1"
+ else # check for the header
+ saved_cppflags="${CPPFLAGS}"
+ CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
+ if test "${ac_cv_header_libresample_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for libresample.h" >&5
+echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libresample_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
+echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking libresample.h usability" >&5
+echo $ECHO_N "checking libresample.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <libresample.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking libresample.h presence" >&5
+echo $ECHO_N "checking libresample.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libresample.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: libresample.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: libresample.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: libresample.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libresample.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: libresample.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libresample.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: libresample.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libresample.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: libresample.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: libresample.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------- ##
+## Report this to www.asterisk.org ##
+## ------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for libresample.h" >&5
+echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_libresample_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_libresample_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
+echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
+
+fi
+if test $ac_cv_header_libresample_h = yes; then
+ RESAMPLE_HEADER_FOUND=1
+else
+ RESAMPLE_HEADER_FOUND=0
+fi
+
+
+ CPPFLAGS="${saved_cppflags}"
+ fi
+ if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
+ RESAMPLE_LIB=""
+ RESAMPLE_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ RESAMPLE_LIB=""
+ fi
+ PBX_RESAMPLE=1
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_RESAMPLE 1
+#define HAVE_RESAMPLE_VERSION
+_ACEOF
+ fi
+ fi
+fi
+
+
+
+ if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
+ if test "xminimum version of SpanDSP" != "x"; then
+ { echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5
+echo $ECHO_N "checking for minimum version of SpanDSP... $ECHO_C" >&6; }
+ else
+ { echo "$as_me:$LINENO: checking if \"
+ #if SPANDSP_RELEASE_DATE < 20080516
+ #error \"spandsp 0.0.5 or greater is required\"
+ #endif
+ \" compiles using spandsp/version.h" >&5
+echo $ECHO_N "checking if \"
+ #if SPANDSP_RELEASE_DATE < 20080516
+ #error \"spandsp 0.0.5 or greater is required\"
+ #endif
+ \" compiles using spandsp/version.h... $ECHO_C" >&6; }
+ fi
+ saved_cppflags="${CPPFLAGS}"
+ if test "x${SPANDSP_DIR}" != "x"; then
+ SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
+ fi
+ CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
+
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <spandsp/version.h>
+int
+main ()
+{
+
+ #if SPANDSP_RELEASE_DATE < 20080516
+ #error "spandsp 0.0.5 or greater is required"
+ #endif
+ ;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ PBX_SPANDSP=1
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SPANDSP 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SPANDSP_VERSION
+_ACEOF
+
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="${saved_cppflags}"
+ fi
+
+
+if test "x${PBX_SPANDSP}" = "x1" ; then
+ # We found the correct version in the header, now let's make sure it links
+ # properly, and that libtiff is available
+ PBX_SPANDSP=0
+
+if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
+ pbxlibdir=""
+ # if --with-SPANDSP=DIR has been specified, use it.
+ if test "x${SPANDSP_DIR}" != "x"; then
+ if test -d ${SPANDSP_DIR}/lib; then
+ pbxlibdir="-L${SPANDSP_DIR}/lib"
+ else
+ pbxlibdir="-L${SPANDSP_DIR}"
+ fi
+ fi
+ pbxfuncname="span_set_message_handler"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_SPANDSP_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
+if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
#include <osp/osp.h>
int main(void) {
int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
- int req = 3 * 10000 + 5 * 100 + 0;
+ int req = 3 * 10000 + 6 * 100 + 0;
return (ver < req) ? 1 : 0;
}
elif test "x$NCURSES_LIB" != "x" ; then
EDITLINE_LIB="$NCURSES_LIB"
else
- { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
-echo "$as_me: error: *** termcap support not found" >&2;}
+ { { echo "$as_me:$LINENO: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" >&5
+echo "$as_me: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" >&2;}
{ (exit 1); exit 1; }; }
fi
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
- { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------- ##
+## Report this to www.asterisk.org ##
+## ------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for h323.h" >&5
+echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_h323_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_h323_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
+echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
+
+fi
+if test $ac_cv_header_h323_h = yes; then
+ PBX_H323=1
+else
+ PBX_H323=0
+fi
+
+
+
+
+if test "${ac_cv_header_linux_compiler_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
+echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_compiler_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
+echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <linux/compiler.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
+echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <linux/compiler.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
- { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## ------------------------------- ##
## Report this to www.asterisk.org ##
) | sed "s/^/$as_me: WARNING: /" >&2
;;
esac
-{ echo "$as_me:$LINENO: checking for h323.h" >&5
-echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_h323_h+set}" = set; then
+{ echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
+echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_compiler_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_header_h323_h=$ac_header_preproc
+ ac_cv_header_linux_compiler_h=$ac_header_preproc
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
-echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
fi
-if test $ac_cv_header_h323_h = yes; then
- PBX_H323=1
-else
- PBX_H323=0
-fi
+if test $ac_cv_header_linux_compiler_h = yes; then
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LINUX_COMPILER_H 1
+_ACEOF
+fi
-if test "${ac_cv_header_linux_compiler_h+set}" = set; then
- { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
-echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_linux_compiler_h+set}" = set; then
+
+{ echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
+echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
-echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
-echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
-#include <linux/compiler.h>
+
+ #include <linux/version.h>
+ #ifdef HAVE_LINUX_COMPILER_H
+ #include <linux/compiler.h>
+ #endif
+
+
+#include <linux/ixjuser.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
+ ac_cv_header_linux_ixjuser_h=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
+ ac_cv_header_linux_ixjuser_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
+echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
+if test $ac_cv_header_linux_ixjuser_h = yes; then
+ PBX_IXJUSER=1
+else
+ PBX_IXJUSER=0
+fi
-# Is the header present?
-{ echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
-echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
+
+
+
+# Used in res/res_pktccops
+
+ if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
+ { echo "$as_me:$LINENO: checking for MSG_NOSIGNAL in sys/socket.h" >&5
+echo $ECHO_N "checking for MSG_NOSIGNAL in sys/socket.h... $ECHO_C" >&6; }
+ saved_cppflags="${CPPFLAGS}"
+ if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
+ MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
+ fi
+ CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
+
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <linux/compiler.h>
+#include <sys/socket.h>
+int
+main ()
+{
+#if defined(MSG_NOSIGNAL)
+ int foo = 0;
+ #else
+ int foo = bar;
+ #endif
+ 0
+
+ ;
+ return 0;
+}
_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ (eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ } && test -s conftest.$ac_objext; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ PBX_MSG_NOSIGNAL=1
- ac_header_preproc=no
-fi
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_MSG_NOSIGNAL 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_MSG_NOSIGNAL_VERSION
+_ACEOF
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## ------------------------------- ##
-## Report this to www.asterisk.org ##
-## ------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
-echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_linux_compiler_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_header_linux_compiler_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
-echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
-if test $ac_cv_header_linux_compiler_h = yes; then
-cat >>confdefs.h <<_ACEOF
-#define HAVE_LINUX_COMPILER_H 1
-_ACEOF
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="${saved_cppflags}"
+ fi
-fi
+ if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
+ { echo "$as_me:$LINENO: checking for SO_NOSIGPIPE in sys/socket.h" >&5
+echo $ECHO_N "checking for SO_NOSIGPIPE in sys/socket.h... $ECHO_C" >&6; }
+ saved_cppflags="${CPPFLAGS}"
+ if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
+ SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
+ fi
+ CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
-{ echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
-echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <sys/socket.h>
+int
+main ()
+{
+#if defined(SO_NOSIGPIPE)
+ int foo = 0;
+ #else
+ int foo = bar;
+ #endif
+ 0
- #include <linux/version.h>
- #ifdef HAVE_LINUX_COMPILER_H
- #include <linux/compiler.h>
- #endif
-
-
-#include <linux/ixjuser.h>
+ ;
+ return 0;
+}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- ac_cv_header_linux_ixjuser_h=yes
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ PBX_SO_NOSIGPIPE=1
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SO_NOSIGPIPE 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SO_NOSIGPIPE_VERSION
+_ACEOF
+
+
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_header_linux_ixjuser_h=no
-fi
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
-echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
-if test $ac_cv_header_linux_ixjuser_h = yes; then
- PBX_IXJUSER=1
-else
- PBX_IXJUSER=0
fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="${saved_cppflags}"
+ fi
STRIP!$STRIP$ac_delim
AR!$AR$ac_delim
GNU_LD!$GNU_LD$ac_delim
+BISON!$BISON$ac_delim
+FLEX!$FLEX$ac_delim
FIND!$FIND$ac_delim
COMPRESS!$COMPRESS$ac_delim
BASENAME!$BASENAME$ac_delim
WGET!$WGET$ac_delim
CURL!$CURL$ac_delim
RUBBER!$RUBBER$ac_delim
-KPATHSEA!$KPATHSEA$ac_delim
-XMLSTARLET!$XMLSTARLET$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+KPATHSEA!$KPATHSEA$ac_delim
+XMLSTARLET!$XMLSTARLET$ac_delim
FETCH!$FETCH$ac_delim
DOWNLOAD!$DOWNLOAD$ac_delim
+PBX_BISON!$PBX_BISON$ac_delim
+PBX_FLEX!$PBX_FLEX$ac_delim
SOXMIX!$SOXMIX$ac_delim
MD5!$MD5$ac_delim
acx_pthread_config!$acx_pthread_config$ac_delim
ISDNNET_LIB!$ISDNNET_LIB$ac_delim
ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
ISDNNET_DIR!$ISDNNET_DIR$ac_delim
-PBX_ISDNNET!$PBX_ISDNNET$ac_delim
-JACK_LIB!$JACK_LIB$ac_delim
-JACK_INCLUDE!$JACK_INCLUDE$ac_delim
-JACK_DIR!$JACK_DIR$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+PBX_ISDNNET!$PBX_ISDNNET$ac_delim
+JACK_LIB!$JACK_LIB$ac_delim
+JACK_INCLUDE!$JACK_INCLUDE$ac_delim
+JACK_DIR!$JACK_DIR$ac_delim
PBX_JACK!$PBX_JACK$ac_delim
LDAP_LIB!$LDAP_LIB$ac_delim
LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
PRI_INCLUDE!$PRI_INCLUDE$ac_delim
PRI_DIR!$PRI_DIR$ac_delim
PBX_PRI!$PBX_PRI$ac_delim
+PRI_SUBADDR_LIB!$PRI_SUBADDR_LIB$ac_delim
+PRI_SUBADDR_INCLUDE!$PRI_SUBADDR_INCLUDE$ac_delim
+PRI_SUBADDR_DIR!$PRI_SUBADDR_DIR$ac_delim
+PBX_PRI_SUBADDR!$PBX_PRI_SUBADDR$ac_delim
+PRI_CALL_HOLD_LIB!$PRI_CALL_HOLD_LIB$ac_delim
+PRI_CALL_HOLD_INCLUDE!$PRI_CALL_HOLD_INCLUDE$ac_delim
+PRI_CALL_HOLD_DIR!$PRI_CALL_HOLD_DIR$ac_delim
+PBX_PRI_CALL_HOLD!$PBX_PRI_CALL_HOLD$ac_delim
+PRI_CALL_REROUTING_LIB!$PRI_CALL_REROUTING_LIB$ac_delim
+PRI_CALL_REROUTING_INCLUDE!$PRI_CALL_REROUTING_INCLUDE$ac_delim
+PRI_CALL_REROUTING_DIR!$PRI_CALL_REROUTING_DIR$ac_delim
+PBX_PRI_CALL_REROUTING!$PBX_PRI_CALL_REROUTING$ac_delim
+PRI_SETUP_KEYPAD_LIB!$PRI_SETUP_KEYPAD_LIB$ac_delim
+PRI_SETUP_KEYPAD_INCLUDE!$PRI_SETUP_KEYPAD_INCLUDE$ac_delim
+PRI_SETUP_KEYPAD_DIR!$PRI_SETUP_KEYPAD_DIR$ac_delim
+PBX_PRI_SETUP_KEYPAD!$PBX_PRI_SETUP_KEYPAD$ac_delim
PRI_VERSION_LIB!$PRI_VERSION_LIB$ac_delim
PRI_VERSION_INCLUDE!$PRI_VERSION_INCLUDE$ac_delim
PRI_VERSION_DIR!$PRI_VERSION_DIR$ac_delim
PBX_PRI_VERSION!$PBX_PRI_VERSION$ac_delim
-PRI_INBANDDISCONNECT_LIB!$PRI_INBANDDISCONNECT_LIB$ac_delim
-PRI_INBANDDISCONNECT_INCLUDE!$PRI_INBANDDISCONNECT_INCLUDE$ac_delim
-PRI_INBANDDISCONNECT_DIR!$PRI_INBANDDISCONNECT_DIR$ac_delim
-PBX_PRI_INBANDDISCONNECT!$PBX_PRI_INBANDDISCONNECT$ac_delim
-PRI_PROG_W_CAUSE_LIB!$PRI_PROG_W_CAUSE_LIB$ac_delim
-PRI_PROG_W_CAUSE_INCLUDE!$PRI_PROG_W_CAUSE_INCLUDE$ac_delim
-PRI_PROG_W_CAUSE_DIR!$PRI_PROG_W_CAUSE_DIR$ac_delim
-PBX_PRI_PROG_W_CAUSE!$PBX_PRI_PROG_W_CAUSE$ac_delim
-PRI_SERVICE_MESSAGES_LIB!$PRI_SERVICE_MESSAGES_LIB$ac_delim
-PRI_SERVICE_MESSAGES_INCLUDE!$PRI_SERVICE_MESSAGES_INCLUDE$ac_delim
-PRI_SERVICE_MESSAGES_DIR!$PRI_SERVICE_MESSAGES_DIR$ac_delim
-PBX_PRI_SERVICE_MESSAGES!$PBX_PRI_SERVICE_MESSAGES$ac_delim
-PRI_REVERSE_CHARGE_LIB!$PRI_REVERSE_CHARGE_LIB$ac_delim
-PRI_REVERSE_CHARGE_INCLUDE!$PRI_REVERSE_CHARGE_INCLUDE$ac_delim
-PRI_REVERSE_CHARGE_DIR!$PRI_REVERSE_CHARGE_DIR$ac_delim
-PBX_PRI_REVERSE_CHARGE!$PBX_PRI_REVERSE_CHARGE$ac_delim
-RESAMPLE_LIB!$RESAMPLE_LIB$ac_delim
-RESAMPLE_INCLUDE!$RESAMPLE_INCLUDE$ac_delim
-RESAMPLE_DIR!$RESAMPLE_DIR$ac_delim
-PBX_RESAMPLE!$PBX_RESAMPLE$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+PRI_INBANDDISCONNECT_LIB!$PRI_INBANDDISCONNECT_LIB$ac_delim
+PRI_INBANDDISCONNECT_INCLUDE!$PRI_INBANDDISCONNECT_INCLUDE$ac_delim
+PRI_INBANDDISCONNECT_DIR!$PRI_INBANDDISCONNECT_DIR$ac_delim
+PBX_PRI_INBANDDISCONNECT!$PBX_PRI_INBANDDISCONNECT$ac_delim
+PRI_PROG_W_CAUSE_LIB!$PRI_PROG_W_CAUSE_LIB$ac_delim
+PRI_PROG_W_CAUSE_INCLUDE!$PRI_PROG_W_CAUSE_INCLUDE$ac_delim
+PRI_PROG_W_CAUSE_DIR!$PRI_PROG_W_CAUSE_DIR$ac_delim
+PBX_PRI_PROG_W_CAUSE!$PBX_PRI_PROG_W_CAUSE$ac_delim
+PRI_SERVICE_MESSAGES_LIB!$PRI_SERVICE_MESSAGES_LIB$ac_delim
+PRI_SERVICE_MESSAGES_INCLUDE!$PRI_SERVICE_MESSAGES_INCLUDE$ac_delim
+PRI_SERVICE_MESSAGES_DIR!$PRI_SERVICE_MESSAGES_DIR$ac_delim
+PBX_PRI_SERVICE_MESSAGES!$PBX_PRI_SERVICE_MESSAGES$ac_delim
+PRI_REVERSE_CHARGE_LIB!$PRI_REVERSE_CHARGE_LIB$ac_delim
+PRI_REVERSE_CHARGE_INCLUDE!$PRI_REVERSE_CHARGE_INCLUDE$ac_delim
+PRI_REVERSE_CHARGE_DIR!$PRI_REVERSE_CHARGE_DIR$ac_delim
+PBX_PRI_REVERSE_CHARGE!$PBX_PRI_REVERSE_CHARGE$ac_delim
+RESAMPLE_LIB!$RESAMPLE_LIB$ac_delim
+RESAMPLE_INCLUDE!$RESAMPLE_INCLUDE$ac_delim
+RESAMPLE_DIR!$RESAMPLE_DIR$ac_delim
+PBX_RESAMPLE!$PBX_RESAMPLE$ac_delim
SPANDSP_LIB!$SPANDSP_LIB$ac_delim
SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
SPANDSP_DIR!$SPANDSP_DIR$ac_delim
TINFO_DIR!$TINFO_DIR$ac_delim
PBX_TINFO!$PBX_TINFO$ac_delim
TONEZONE_LIB!$TONEZONE_LIB$ac_delim
-TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
-TONEZONE_DIR!$TONEZONE_DIR$ac_delim
-PBX_TONEZONE!$PBX_TONEZONE$ac_delim
-UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
-UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
-UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
-PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
-USB_LIB!$USB_LIB$ac_delim
-USB_INCLUDE!$USB_INCLUDE$ac_delim
-USB_DIR!$USB_DIR$ac_delim
-PBX_USB!$PBX_USB$ac_delim
-VORBIS_LIB!$VORBIS_LIB$ac_delim
-VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
-VORBIS_DIR!$VORBIS_DIR$ac_delim
-PBX_VORBIS!$PBX_VORBIS$ac_delim
-VPB_LIB!$VPB_LIB$ac_delim
-VPB_INCLUDE!$VPB_INCLUDE$ac_delim
-VPB_DIR!$VPB_DIR$ac_delim
-PBX_VPB!$PBX_VPB$ac_delim
-X11_LIB!$X11_LIB$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
+TONEZONE_DIR!$TONEZONE_DIR$ac_delim
+PBX_TONEZONE!$PBX_TONEZONE$ac_delim
+UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
+UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
+UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
+PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
+USB_LIB!$USB_LIB$ac_delim
+USB_INCLUDE!$USB_INCLUDE$ac_delim
+USB_DIR!$USB_DIR$ac_delim
+PBX_USB!$PBX_USB$ac_delim
+VORBIS_LIB!$VORBIS_LIB$ac_delim
+VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
+VORBIS_DIR!$VORBIS_DIR$ac_delim
+PBX_VORBIS!$PBX_VORBIS$ac_delim
+VPB_LIB!$VPB_LIB$ac_delim
+VPB_INCLUDE!$VPB_INCLUDE$ac_delim
+VPB_DIR!$VPB_DIR$ac_delim
+PBX_VPB!$PBX_VPB$ac_delim
+X11_LIB!$X11_LIB$ac_delim
X11_INCLUDE!$X11_INCLUDE$ac_delim
X11_DIR!$X11_DIR$ac_delim
PBX_X11!$PBX_X11$ac_delim
EDITLINE_LIB!$EDITLINE_LIB$ac_delim
PBX_H323!$PBX_H323$ac_delim
PBX_IXJUSER!$PBX_IXJUSER$ac_delim
+PBX_MSG_NOSIGNAL!$PBX_MSG_NOSIGNAL$ac_delim
+PBX_SO_NOSIGPIPE!$PBX_SO_NOSIGPIPE$ac_delim
CONFIG_SDL!$CONFIG_SDL$ac_delim
CONFIG_GTK!$CONFIG_GTK$ac_delim
PKGCONFIG!$PKGCONFIG$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5