Added enable and disable configure options for Zaptel and Wanpipe.

git-svn-id: http://voip.null.ro/svn/yate@1521 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-12-06 14:42:19 +00:00
parent a798d3dc05
commit cb37d2f114
1 changed files with 8 additions and 0 deletions

View File

@ -286,6 +286,8 @@ AC_SUBST(MYSQL_VER)
HAVE_ZAP=no
ZAP_FLAGS=""
AC_ARG_ENABLE(zaptel,AC_HELP_STRING([--enable-zaptel],[Enable Zaptel driver (default: yes)]),want_zaptel=$enableval,want_zaptel=yes)
if [[ "x$want_zaptel" = "xyes" ]]; then
AC_MSG_CHECKING([for Zaptel generic headers])
AC_TRY_COMPILE([
#include <zaptel/zaptel.h>
@ -303,10 +305,13 @@ HAVE_ZAP="yes"
)
AC_MSG_RESULT([$HAVE_ZAP])
fi
fi
AC_SUBST(HAVE_ZAP)
AC_SUBST(ZAP_FLAGS)
HAVE_WANPIPE=no
AC_ARG_ENABLE(wanpipe,AC_HELP_STRING([--enable-wanpipe],[Enable Wanpipe driver (default: yes)]),want_wanpipe=$enableval,want_wanpipe=yes)
if [[ "x$want_wanpipe" = "xyes" ]]; then
AC_MSG_CHECKING([for Wanpipe linux headers])
AC_TRY_COMPILE([
#define __LINUX__
@ -324,10 +329,12 @@ AC_TRY_COMPILE([
HAVE_WANPIPE="yes"
)
AC_MSG_RESULT([$HAVE_WANPIPE])
fi
AC_SUBST(HAVE_WANPIPE)
WANPIPE_HWEC_INC=""
AC_ARG_WITH(wphwec,AC_HELP_STRING([--with-wphwec=DIR],[use Wanpipe/Octasic headers from DIR]),[ac_cv_use_wphwec=$withval],[ac_cv_use_wphwec=no])
if [[ "x$HAVE_WANPIPE" = "xyes" ]]; then
if [[ "x$ac_cv_use_wphwec" != "xno" ]]; then
AC_MSG_CHECKING([for Wanpipe/Octasic headers])
if [[ -f "$ac_cv_use_wphwec/wanec_iface.h" -a -f "$ac_cv_use_wphwec/oct6100_api/oct6100api/oct6100_api.h" ]]; then
@ -338,6 +345,7 @@ else
fi
AC_MSG_RESULT([$ac_cv_use_wphwec])
fi
fi
AC_SUBST(WANPIPE_HWEC_INC)
HAVE_SOUNDCARD=no