mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
do the check for VoiceTronix support using C++
set the library/header include parameters properly for the search git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
20
configure.ac
20
configure.ac
@@ -319,6 +319,8 @@ AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [
|
|||||||
])
|
])
|
||||||
AC_SUBST(PBX_IXJUSER)
|
AC_SUBST(PBX_IXJUSER)
|
||||||
|
|
||||||
|
AC_LANG_PUSH(C++)
|
||||||
|
|
||||||
AC_ARG_WITH([vpb], AC_HELP_STRING([--with-vpb=PATH],[use vpb files in PATH]),[
|
AC_ARG_WITH([vpb], AC_HELP_STRING([--with-vpb=PATH],[use vpb files in PATH]),[
|
||||||
case ${withval} in
|
case ${withval} in
|
||||||
n|no)
|
n|no)
|
||||||
@@ -335,12 +337,17 @@ esac
|
|||||||
])
|
])
|
||||||
if test "${USE_VPB}" != "no"; then
|
if test "${USE_VPB}" != "no"; then
|
||||||
echo -n "checking for vpb_open in -lvpb..."
|
echo -n "checking for vpb_open in -lvpb..."
|
||||||
saved_ldflags="${LDFLAGS}"
|
saved_libs="${LIBS}"
|
||||||
LDFLAGS="${LDFLAGS} -L${VPB_DIR} -lvpb"
|
saved_cppflags="${CPPFLAGS}"
|
||||||
|
if test "x${VPB_DIR}" != "x" ; then
|
||||||
|
LIBS="${LIBS} -L${VPB_DIR}/lib"
|
||||||
|
CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
|
||||||
|
fi
|
||||||
|
LIBS="${LIBS} -lvpb -lpthread"
|
||||||
AC_LINK_IFELSE(
|
AC_LINK_IFELSE(
|
||||||
[
|
[
|
||||||
AC_LANG_PROGRAM(
|
AC_LANG_PROGRAM(
|
||||||
[#include "${VPB_DIR}vpbapi.h"],
|
[#include <vpbapi.h>],
|
||||||
[int q = vpb_open(0,0);])
|
[int q = vpb_open(0,0);])
|
||||||
],
|
],
|
||||||
[ AC_MSG_RESULT(yes)
|
[ AC_MSG_RESULT(yes)
|
||||||
@@ -350,8 +357,8 @@ if test "${USE_VPB}" != "no"; then
|
|||||||
ac_cv_lib_vpb_vpb_open="no"
|
ac_cv_lib_vpb_vpb_open="no"
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
LDFLAGS="${saved_ldflags}"
|
LIBS="${saved_libs}"
|
||||||
|
CPPFLAGS="${saved_cppflags}"
|
||||||
PBX_LIBvpb=0
|
PBX_LIBvpb=0
|
||||||
if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
|
if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
|
||||||
VPB_LIB="-lvpb"
|
VPB_LIB="-lvpb"
|
||||||
@@ -374,9 +381,6 @@ if test "${USE_VPB}" != "no"; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST([PBX_LIBvpb])
|
AC_SUBST([PBX_LIBvpb])
|
||||||
|
|
||||||
|
|
||||||
AC_LANG_PUSH(C++)
|
|
||||||
|
|
||||||
AC_ARG_WITH([qt], AC_HELP_STRING([--with-qt=PATH],[use Qt files in PATH]),[
|
AC_ARG_WITH([qt], AC_HELP_STRING([--with-qt=PATH],[use Qt files in PATH]),[
|
||||||
case ${withval} in
|
case ${withval} in
|
||||||
n|no)
|
n|no)
|
||||||
|
Reference in New Issue
Block a user