[asterisk-commits] rizzo: trunk r89448 - in /trunk: acinclude.m4 configure

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 20 08:54:52 CST 2007


Author: rizzo
Date: Tue Nov 20 08:54:52 2007
New Revision: 89448

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89448
Log:
comment a bit the code in acinclude.m4
There is still a lot of code to clean up there, but hopefully
this should clarify what goes on in there.

Modified:
    trunk/acinclude.m4
    trunk/configure

Modified: trunk/acinclude.m4
URL: http://svn.digium.com/view/asterisk/trunk/acinclude.m4?view=diff&rev=89448&r1=89447&r2=89448
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Tue Nov 20 08:54:52 2007
@@ -1,3 +1,7 @@
+# Various support functions for configure.ac in asterisk
+#
+
+# Helper function to check for gcc attributes.
 # AST_GCC_ATTRIBUTE([attribute name])
 
 AC_DEFUN([AST_GCC_ATTRIBUTE],
@@ -11,35 +15,43 @@
 	AC_MSG_RESULT(no))
 ])
 
-# AST_EXT_LIB_SETUP([package symbol name], [package friendly name], [package option name], [additional help text])
+# Helper function to setup variables for a package.
+# $1 -> the package name. Used in configure.ac and also as a prefix
+#	for the variables ($1_DIR, $1_INCLUDE, $1_LIB) in makeopts
+# $3 ->	option name, used in --with-$3 or --without-$3 when calling configure.
+# $2 and $4 are just text describing the package (short and long form)
+
+# AST_EXT_LIB_SETUP([package], [short description], [configure option name], [long description])
 
 AC_DEFUN([AST_EXT_LIB_SETUP],
 [
-$1_DESCRIP="$2"
-$1_OPTION="$3"
-AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),[
-case ${withval} in
-     n|no)
-     USE_$1=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} $1"
-     ;;
-     *)
-     $1_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} $1"
-     ;;
-esac
-])
-PBX_$1=0
-AC_SUBST([$1_LIB])
-AC_SUBST([$1_INCLUDE])
-AC_SUBST([$1_DIR])
-AC_SUBST([PBX_$1])
+    $1_DESCRIP="$2"
+    $1_OPTION="$3"
+    AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),
+    [
+	case ${withval} in
+	n|no)
+	USE_$1=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} $1"
+	;;
+	*)
+	$1_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} $1"
+	;;
+	esac
+    ])
+    PBX_$1=0
+    AC_SUBST([$1_LIB])
+    AC_SUBST([$1_INCLUDE])
+    AC_SUBST([$1_DIR])
+    AC_SUBST([PBX_$1])
 ])
 
 # Check whether any of the mandatory modules are not present, and
-# print error messages in case.
+# print error messages in case. The mandatory list is built using
+# --with-* arguments when invoking configure.
 
 AC_DEFUN([AST_CHECK_MANDATORY],
 [
@@ -61,16 +73,22 @@
 	AC_MSG_RESULT(ok)
 ])
 
-#-- The following two tests are only performed if PBX_$1 != 1,
-#   so you can use multiple tests and stop at the first matching one.
-#   On success, set PBX_$1 = 1, and also #define HAVE_$1 1
-#   and #define HAVE_$1_VERSION ${last_argument} so you can tell which
-#   test succeeded.
-#   They should be called after AST_EXT_LIB_SETUP($1, ...)
+# The next three functions check for the availability of a given package.
+# AST_C_DEFINE_CHECK looks for the presence of a #define in a header file,
+# AST_EXT_LIB_CHECK looks for a symbol in a given library, or at least
+#	for the presence of a header file.
+# AST_EXT_TOOL_CHECK looks for a symbol in using $1-config to determine CFLAGS and LIBS
+#
+# They are only run if PBX_$1 != 1 (where $1 is the package),
+# so you can call them multiple times and stop at the first matching one.
+# On success, they both set PBX_$1 = 1, set $1_INCLUDE and $1_LIB as applicable,
+# and also #define HAVE_$1 1 and #define HAVE_$1_VERSION ${last_argument}
+# in autoconfig.h so you can tell which test succeeded.
+# They should be called after AST_EXT_LIB_SETUP($1, ...)
 
 # Check if a given macro is defined in a certain header.
 
-# AST_C_DEFINE_CHECK([package symbol name], [macro name], [header file], [version])
+# AST_C_DEFINE_CHECK([package], [macro name], [header file], [version])
 AC_DEFUN([AST_C_DEFINE_CHECK],
 [
     if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
@@ -99,7 +117,7 @@
 # in a library, or, if no function is supplied, only check for the
 # existence of the header files.
 
-# AST_EXT_LIB_CHECK([package symbol name], [package library name], [function to check], [package header], [additional LIB data], [version])
+# AST_EXT_LIB_CHECK([package], [library], [function], [header], [additional LIB data], [version])
 AC_DEFUN([AST_EXT_LIB_CHECK],
 [
 if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
@@ -152,21 +170,22 @@
 ])
 
 
-# check for a tool using xxx-config
-# AST_EXT_TOOL_CHECK([package symbol name], [package library name], [symbol], [version])
+# Check for a package using $2-config. Similar to AST_EXT_LIB_CHECK,
+# but use $2-config to determine cflags and libraries to use.
+
+# AST_EXT_TOOL_CHECK([package], [tool name], [symbol], [version])
 AC_DEFUN([AST_EXT_TOOL_CHECK],
 [
-PBX_$1=0
-AC_CHECK_TOOL(CONFIG_$1, $2-config, No)
-if test ! "x${CONFIG_$1}" = xNo; then
-   $1_INCLUDE=$(${CONFIG_$1} --cflags $3)
-   $1_LIB=$(${CONFIG_$1} --libs $3)
-   PBX_$1=1
-   AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])
-fi
-AC_SUBST(PBX_$1)
-AC_SUBST($1_INCLUDE)
-AC_SUBST($1_LIB)
+    if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
+	PBX_$1=0
+	AC_CHECK_TOOL(CONFIG_$1, $2-config, No)
+	if test ! "x${CONFIG_$1}" = xNo; then
+	    $1_INCLUDE=$(${CONFIG_$1} --cflags $3)
+	    $1_LIB=$(${CONFIG_$1} --libs $3)
+	    PBX_$1=1
+	    AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])
+	fi
+    fi
 ])
 
 AC_DEFUN(
@@ -830,7 +849,8 @@
 dnl @version 2006-05-29
 dnl @license GPLWithACException
 
-AC_DEFUN([ACX_PTHREAD], [
+AC_DEFUN([ACX_PTHREAD],
+[
 AC_REQUIRE([AC_CANONICAL_HOST])
 AC_LANG_SAVE
 AC_LANG_C

Modified: trunk/configure
URL: http://svn.digium.com/view/asterisk/trunk/configure?view=diff&rev=89448&r1=89447&r2=89448
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Tue Nov 20 08:54:52 2007
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 89394 .
+# From configure.ac Revision: 89395 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61.
 #
@@ -7674,28 +7674,28 @@
 # by the --with option name, to make things easier for the users :-)
 
 
-ALSA_DESCRIP="Advanced Linux Sound Architecture"
-ALSA_OPTION="asound"
+    ALSA_DESCRIP="Advanced Linux Sound Architecture"
+    ALSA_OPTION="asound"
 
 # Check whether --with-asound was given.
 if test "${with_asound+set}" = set; then
   withval=$with_asound;
-case ${withval} in
-     n|no)
-     USE_ALSA=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} ALSA"
-     ;;
-     *)
-     ALSA_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} ALSA"
-     ;;
-esac
-
-fi
-
-PBX_ALSA=0
+	case ${withval} in
+	n|no)
+	USE_ALSA=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} ALSA"
+	;;
+	*)
+	ALSA_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} ALSA"
+	;;
+	esac
+
+fi
+
+    PBX_ALSA=0
 
 
 
@@ -7705,1345 +7705,1345 @@
 # BKTR is used for backtrace support on platforms that do not
 # have it natively.
 
-BKTR_DESCRIP="Stack Backtrace support"
-BKTR_OPTION="execinfo"
+    BKTR_DESCRIP="Stack Backtrace support"
+    BKTR_OPTION="execinfo"
 
 # Check whether --with-execinfo was given.
 if test "${with_execinfo+set}" = set; then
   withval=$with_execinfo;
-case ${withval} in
-     n|no)
-     USE_BKTR=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} BKTR"
-     ;;
-     *)
-     BKTR_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} BKTR"
-     ;;
-esac
-
-fi
-
-PBX_BKTR=0
-
-
-
-
-
-
-CAP_DESCRIP="POSIX 1.e capabilities"
-CAP_OPTION="cap"
+	case ${withval} in
+	n|no)
+	USE_BKTR=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} BKTR"
+	;;
+	*)
+	BKTR_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} BKTR"
+	;;
+	esac
+
+fi
+
+    PBX_BKTR=0
+
+
+
+
+
+
+    CAP_DESCRIP="POSIX 1.e capabilities"
+    CAP_OPTION="cap"
 
 # Check whether --with-cap was given.
 if test "${with_cap+set}" = set; then
   withval=$with_cap;
-case ${withval} in
-     n|no)
-     USE_CAP=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} CAP"
-     ;;
-     *)
-     CAP_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} CAP"
-     ;;
-esac
-
-fi
-
-PBX_CAP=0
-
-
-
-
-
-
-CURL_DESCRIP="cURL"
-CURL_OPTION="curl"
+	case ${withval} in
+	n|no)
+	USE_CAP=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} CAP"
+	;;
+	*)
+	CAP_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} CAP"
+	;;
+	esac
+
+fi
+
+    PBX_CAP=0
+
+
+
+
+
+
+    CURL_DESCRIP="cURL"
+    CURL_OPTION="curl"
 
 # Check whether --with-curl was given.
 if test "${with_curl+set}" = set; then
   withval=$with_curl;
-case ${withval} in
-     n|no)
-     USE_CURL=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} CURL"
-     ;;
-     *)
-     CURL_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} CURL"
-     ;;
-esac
-
-fi
-
-PBX_CURL=0
-
-
-
-
-
-
-CURSES_DESCRIP="curses"
-CURSES_OPTION="curses"
+	case ${withval} in
+	n|no)
+	USE_CURL=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} CURL"
+	;;
+	*)
+	CURL_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} CURL"
+	;;
+	esac
+
+fi
+
+    PBX_CURL=0
+
+
+
+
+
+
+    CURSES_DESCRIP="curses"
+    CURSES_OPTION="curses"
 
 # Check whether --with-curses was given.
 if test "${with_curses+set}" = set; then
   withval=$with_curses;
-case ${withval} in
-     n|no)
-     USE_CURSES=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} CURSES"
-     ;;
-     *)
-     CURSES_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} CURSES"
-     ;;
-esac
-
-fi
-
-PBX_CURSES=0
-
-
-
-
-
-
-CRYPTO_DESCRIP="OpenSSL Cryptography support"
-CRYPTO_OPTION="crypto"
+	case ${withval} in
+	n|no)
+	USE_CURSES=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} CURSES"
+	;;
+	*)
+	CURSES_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} CURSES"
+	;;
+	esac
+
+fi
+
+    PBX_CURSES=0
+
+
+
+
+
+
+    CRYPTO_DESCRIP="OpenSSL Cryptography support"
+    CRYPTO_OPTION="crypto"
 
 # Check whether --with-crypto was given.
 if test "${with_crypto+set}" = set; then
   withval=$with_crypto;
-case ${withval} in
-     n|no)
-     USE_CRYPTO=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} CRYPTO"
-     ;;
-     *)
-     CRYPTO_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} CRYPTO"
-     ;;
-esac
-
-fi
-
-PBX_CRYPTO=0
-
-
-
-
-
-
-GSM_DESCRIP="GSM"
-GSM_OPTION="gsm"
+	case ${withval} in
+	n|no)
+	USE_CRYPTO=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} CRYPTO"
+	;;
+	*)
+	CRYPTO_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} CRYPTO"
+	;;
+	esac
+
+fi
+
+    PBX_CRYPTO=0
+
+
+
+
+
+
+    GSM_DESCRIP="GSM"
+    GSM_OPTION="gsm"
 
 # Check whether --with-gsm was given.
 if test "${with_gsm+set}" = set; then
   withval=$with_gsm;
-case ${withval} in
-     n|no)
-     USE_GSM=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} GSM"
-     ;;
-     *)
-     GSM_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} GSM"
-     ;;
-esac
-
-fi
-
-PBX_GSM=0
-
-
-
-
-
-
-IKSEMEL_DESCRIP="Iksemel Jabber Library"
-IKSEMEL_OPTION="iksemel"
+	case ${withval} in
+	n|no)
+	USE_GSM=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} GSM"
+	;;
+	*)
+	GSM_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} GSM"
+	;;
+	esac
+
+fi
+
+    PBX_GSM=0
+
+
+
+
+
+
+    IKSEMEL_DESCRIP="Iksemel Jabber Library"
+    IKSEMEL_OPTION="iksemel"
 
 # Check whether --with-iksemel was given.
 if test "${with_iksemel+set}" = set; then
   withval=$with_iksemel;
-case ${withval} in
-     n|no)
-     USE_IKSEMEL=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
-     ;;
-     *)
-     IKSEMEL_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
-     ;;
-esac
-
-fi
-
-PBX_IKSEMEL=0
-
-
-
-
-
-
-IMAP_TK_DESCRIP="UW IMAP Toolkit"
-IMAP_TK_OPTION="imap"
+	case ${withval} in
+	n|no)
+	USE_IKSEMEL=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
+	;;
+	*)
+	IKSEMEL_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
+	;;
+	esac
+
+fi
+
+    PBX_IKSEMEL=0
+
+
+
+
+
+
+    IMAP_TK_DESCRIP="UW IMAP Toolkit"
+    IMAP_TK_OPTION="imap"
 
 # Check whether --with-imap was given.
 if test "${with_imap+set}" = set; then
   withval=$with_imap;
-case ${withval} in
-     n|no)
-     USE_IMAP_TK=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
-     ;;
-     *)
-     IMAP_TK_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
-     ;;
-esac
-
-fi
-
-PBX_IMAP_TK=0
-
-
-
-
-
-
-ISDNNET_DESCRIP="ISDN4Linux Library"
-ISDNNET_OPTION="isdnnet"
+	case ${withval} in
+	n|no)
+	USE_IMAP_TK=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
+	;;
+	*)
+	IMAP_TK_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
+	;;
+	esac
+
+fi
+
+    PBX_IMAP_TK=0
+
+
+
+
+
+
+    ISDNNET_DESCRIP="ISDN4Linux Library"
+    ISDNNET_OPTION="isdnnet"
 
 # Check whether --with-isdnnet was given.
 if test "${with_isdnnet+set}" = set; then
   withval=$with_isdnnet;
-case ${withval} in
-     n|no)
-     USE_ISDNNET=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} ISDNNET"
-     ;;
-     *)
-     ISDNNET_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} ISDNNET"
-     ;;
-esac
-
-fi
-
-PBX_ISDNNET=0
-
-
-
-
-
-
-KDE_DESCRIP="KDE"
-KDE_OPTION="kde"
+	case ${withval} in
+	n|no)
+	USE_ISDNNET=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} ISDNNET"
+	;;
+	*)
+	ISDNNET_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} ISDNNET"
+	;;
+	esac
+
+fi
+
+    PBX_ISDNNET=0
+
+
+
+
+
+
+    KDE_DESCRIP="KDE"
+    KDE_OPTION="kde"
 
 # Check whether --with-kde was given.
 if test "${with_kde+set}" = set; then
   withval=$with_kde;
-case ${withval} in
-     n|no)
-     USE_KDE=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} KDE"
-     ;;
-     *)
-     KDE_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} KDE"
-     ;;
-esac
-
-fi
-
-PBX_KDE=0
-
-
-
-
-
-
-LTDL_DESCRIP="libtool"
-LTDL_OPTION="ltdl"
+	case ${withval} in
+	n|no)
+	USE_KDE=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} KDE"
+	;;
+	*)
+	KDE_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} KDE"
+	;;
+	esac
+
+fi
+
+    PBX_KDE=0
+
+
+
+
+
+
+    LTDL_DESCRIP="libtool"
+    LTDL_OPTION="ltdl"
 
 # Check whether --with-ltdl was given.
 if test "${with_ltdl+set}" = set; then
   withval=$with_ltdl;
-case ${withval} in
-     n|no)
-     USE_LTDL=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} LTDL"
-     ;;
-     *)
-     LTDL_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} LTDL"
-     ;;
-esac
-
-fi
-
-PBX_LTDL=0
-
-
-
-
-
-
-LUA_DESCRIP="Lua"
-LUA_OPTION="lua"
+	case ${withval} in
+	n|no)
+	USE_LTDL=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} LTDL"
+	;;
+	*)
+	LTDL_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} LTDL"
+	;;
+	esac
+
+fi
+
+    PBX_LTDL=0
+
+
+
+
+
+
+    LUA_DESCRIP="Lua"
+    LUA_OPTION="lua"
 
 # Check whether --with-lua was given.
 if test "${with_lua+set}" = set; then
   withval=$with_lua;
-case ${withval} in
-     n|no)
-     USE_LUA=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} LUA"
-     ;;
-     *)
-     LUA_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} LUA"
-     ;;
-esac
-
-fi
-
-PBX_LUA=0
-
-
-
-
-
-
-MISDN_DESCRIP="mISDN User Library"
-MISDN_OPTION="misdn"
+	case ${withval} in
+	n|no)
+	USE_LUA=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} LUA"
+	;;
+	*)
+	LUA_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} LUA"
+	;;
+	esac
+
+fi
+
+    PBX_LUA=0
+
+
+
+
+
+
+    MISDN_DESCRIP="mISDN User Library"
+    MISDN_OPTION="misdn"
 
 # Check whether --with-misdn was given.
 if test "${with_misdn+set}" = set; then
   withval=$with_misdn;
-case ${withval} in
-     n|no)
-     USE_MISDN=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} MISDN"
-     ;;
-     *)
-     MISDN_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} MISDN"
-     ;;
-esac
-
-fi
-
-PBX_MISDN=0
-
-
-
-
-
-
-NBS_DESCRIP="Network Broadcast Sound"
-NBS_OPTION="nbs"
+	case ${withval} in
+	n|no)
+	USE_MISDN=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} MISDN"
+	;;
+	*)
+	MISDN_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} MISDN"
+	;;
+	esac
+
+fi
+
+    PBX_MISDN=0
+
+
+
+
+
+
+    NBS_DESCRIP="Network Broadcast Sound"
+    NBS_OPTION="nbs"
 
 # Check whether --with-nbs was given.
 if test "${with_nbs+set}" = set; then
   withval=$with_nbs;
-case ${withval} in
-     n|no)
-     USE_NBS=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} NBS"
-     ;;
-     *)
-     NBS_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} NBS"
-     ;;
-esac
-
-fi
-
-PBX_NBS=0
-
-
-
-
-
-
-NCURSES_DESCRIP="ncurses"
-NCURSES_OPTION="ncurses"
+	case ${withval} in
+	n|no)
+	USE_NBS=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} NBS"
+	;;
+	*)
+	NBS_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} NBS"
+	;;
+	esac
+
+fi
+
+    PBX_NBS=0
+
+
+
+
+
+
+    NCURSES_DESCRIP="ncurses"
+    NCURSES_OPTION="ncurses"
 
 # Check whether --with-ncurses was given.
 if test "${with_ncurses+set}" = set; then
   withval=$with_ncurses;
-case ${withval} in
-     n|no)
-     USE_NCURSES=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} NCURSES"
-     ;;
-     *)
-     NCURSES_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} NCURSES"
-     ;;
-esac
-
-fi
-
-PBX_NCURSES=0
-
-
-
-
-
-
-NETSNMP_DESCRIP="Net-SNMP"
-NETSNMP_OPTION="netsnmp"
+	case ${withval} in
+	n|no)
+	USE_NCURSES=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} NCURSES"
+	;;
+	*)
+	NCURSES_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} NCURSES"
+	;;
+	esac
+
+fi
+
+    PBX_NCURSES=0
+
+
+
+
+
+
+    NETSNMP_DESCRIP="Net-SNMP"
+    NETSNMP_OPTION="netsnmp"
 
 # Check whether --with-netsnmp was given.
 if test "${with_netsnmp+set}" = set; then
   withval=$with_netsnmp;
-case ${withval} in
-     n|no)
-     USE_NETSNMP=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} NETSNMP"
-     ;;
-     *)
-     NETSNMP_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} NETSNMP"
-     ;;
-esac
-
-fi
-
-PBX_NETSNMP=0
-
-
-
-
-
-
-NEWT_DESCRIP="newt"
-NEWT_OPTION="newt"
+	case ${withval} in
+	n|no)
+	USE_NETSNMP=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} NETSNMP"
+	;;
+	*)
+	NETSNMP_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} NETSNMP"
+	;;
+	esac
+
+fi
+
+    PBX_NETSNMP=0
+
+
+
+
+
+
+    NEWT_DESCRIP="newt"
+    NEWT_OPTION="newt"
 
 # Check whether --with-newt was given.
 if test "${with_newt+set}" = set; then
   withval=$with_newt;
-case ${withval} in
-     n|no)
-     USE_NEWT=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} NEWT"
-     ;;
-     *)
-     NEWT_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} NEWT"
-     ;;
-esac
-
-fi
-
-PBX_NEWT=0
-
-
-
-
-
-
-UNIXODBC_DESCRIP="unixODBC"
-UNIXODBC_OPTION="odbc"
+	case ${withval} in
+	n|no)
+	USE_NEWT=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} NEWT"
+	;;
+	*)
+	NEWT_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} NEWT"
+	;;
+	esac
+
+fi
+
+    PBX_NEWT=0
+
+
+
+
+
+
+    UNIXODBC_DESCRIP="unixODBC"
+    UNIXODBC_OPTION="odbc"
 
 # Check whether --with-odbc was given.
 if test "${with_odbc+set}" = set; then
   withval=$with_odbc;
-case ${withval} in
-     n|no)
-     USE_UNIXODBC=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
-     ;;
-     *)
-     UNIXODBC_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
-     ;;
-esac
-
-fi
-
-PBX_UNIXODBC=0
-
-
-
-
-
-
-OGG_DESCRIP="OGG"
-OGG_OPTION="ogg"
+	case ${withval} in
+	n|no)
+	USE_UNIXODBC=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
+	;;
+	*)
+	UNIXODBC_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
+	;;
+	esac
+
+fi
+
+    PBX_UNIXODBC=0
+
+
+
+
+
+
+    OGG_DESCRIP="OGG"
+    OGG_OPTION="ogg"
 
 # Check whether --with-ogg was given.
 if test "${with_ogg+set}" = set; then
   withval=$with_ogg;
-case ${withval} in
-     n|no)
-     USE_OGG=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} OGG"
-     ;;
-     *)
-     OGG_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} OGG"
-     ;;
-esac
-
-fi
-
-PBX_OGG=0
-
-
-
-
-
-
-OSPTK_DESCRIP="OSP Toolkit"
-OSPTK_OPTION="osptk"
+	case ${withval} in
+	n|no)
+	USE_OGG=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} OGG"
+	;;
+	*)
+	OGG_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} OGG"
+	;;
+	esac
+
+fi
+
+    PBX_OGG=0
+
+
+
+
+
+
+    OSPTK_DESCRIP="OSP Toolkit"
+    OSPTK_OPTION="osptk"
 
 # Check whether --with-osptk was given.
 if test "${with_osptk+set}" = set; then
   withval=$with_osptk;
-case ${withval} in
-     n|no)
-     USE_OSPTK=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} OSPTK"
-     ;;
-     *)
-     OSPTK_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} OSPTK"
-     ;;
-esac
-
-fi
-
-PBX_OSPTK=0
-
-
-
-
-
-
-OSS_DESCRIP="Open Sound System"
-OSS_OPTION="oss"
+	case ${withval} in
+	n|no)
+	USE_OSPTK=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} OSPTK"
+	;;
+	*)
+	OSPTK_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} OSPTK"
+	;;
+	esac
+
+fi
+
+    PBX_OSPTK=0
+
+
+
+
+
+
+    OSS_DESCRIP="Open Sound System"
+    OSS_OPTION="oss"
 
 # Check whether --with-oss was given.
 if test "${with_oss+set}" = set; then
   withval=$with_oss;
-case ${withval} in
-     n|no)
-     USE_OSS=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} OSS"
-     ;;
-     *)
-     OSS_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} OSS"
-     ;;
-esac
-
-fi
-
-PBX_OSS=0
-
-
-
-
-
-
-POPT_DESCRIP="popt"
-POPT_OPTION="popt"
+	case ${withval} in
+	n|no)
+	USE_OSS=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} OSS"
+	;;
+	*)
+	OSS_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} OSS"
+	;;
+	esac
+
+fi
+
+    PBX_OSS=0
+
+
+
+
+
+
+    POPT_DESCRIP="popt"
+    POPT_OPTION="popt"
 
 # Check whether --with-popt was given.
 if test "${with_popt+set}" = set; then
   withval=$with_popt;
-case ${withval} in
-     n|no)
-     USE_POPT=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} POPT"
-     ;;
-     *)
-     POPT_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} POPT"
-     ;;
-esac
-
-fi
-
-PBX_POPT=0
-
-
-
-
-
-
-PGSQL_DESCRIP="PostgreSQL"
-PGSQL_OPTION="postgres"
+	case ${withval} in
+	n|no)
+	USE_POPT=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} POPT"
+	;;
+	*)
+	POPT_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} POPT"
+	;;
+	esac
+
+fi
+
+    PBX_POPT=0
+
+
+
+
+
+
+    PGSQL_DESCRIP="PostgreSQL"
+    PGSQL_OPTION="postgres"
 
 # Check whether --with-postgres was given.
 if test "${with_postgres+set}" = set; then
   withval=$with_postgres;
-case ${withval} in
-     n|no)
-     USE_PGSQL=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} PGSQL"
-     ;;
-     *)
-     PGSQL_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} PGSQL"
-     ;;
-esac
-
-fi
-
-PBX_PGSQL=0
-
-
-
-
-
-
-PRI_DESCRIP="ISDN PRI"
-PRI_OPTION="pri"
+	case ${withval} in
+	n|no)
+	USE_PGSQL=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} PGSQL"
+	;;
+	*)
+	PGSQL_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} PGSQL"
+	;;
+	esac
+
+fi
+
+    PBX_PGSQL=0
+
+
+
+
+
+
+    PRI_DESCRIP="ISDN PRI"
+    PRI_OPTION="pri"
 
 # Check whether --with-pri was given.
 if test "${with_pri+set}" = set; then
   withval=$with_pri;
-case ${withval} in
-     n|no)
-     USE_PRI=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} PRI"
-     ;;
-     *)
-     PRI_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} PRI"
-     ;;
-esac
-
-fi
-
-PBX_PRI=0
-
-
-
-
-
-
-SS7_DESCRIP="ISDN SS7"
-SS7_OPTION="ss7"
+	case ${withval} in
+	n|no)
+	USE_PRI=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} PRI"
+	;;
+	*)
+	PRI_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} PRI"
+	;;
+	esac
+
+fi
+
+    PBX_PRI=0
+
+
+
+
+
+
+    SS7_DESCRIP="ISDN SS7"
+    SS7_OPTION="ss7"
 
 # Check whether --with-ss7 was given.
 if test "${with_ss7+set}" = set; then
   withval=$with_ss7;
-case ${withval} in
-     n|no)
-     USE_SS7=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} SS7"
-     ;;
-     *)
-     SS7_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} SS7"
-     ;;
-esac
-
-fi
-
-PBX_SS7=0
-
-
-
-
-
-
-PWLIB_DESCRIP="PWlib"
-PWLIB_OPTION="pwlib"
+	case ${withval} in
+	n|no)
+	USE_SS7=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} SS7"
+	;;
+	*)
+	SS7_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} SS7"
+	;;
+	esac
+
+fi
+
+    PBX_SS7=0
+
+
+
+
+
+
+    PWLIB_DESCRIP="PWlib"
+    PWLIB_OPTION="pwlib"
 
 # Check whether --with-pwlib was given.
 if test "${with_pwlib+set}" = set; then
   withval=$with_pwlib;
-case ${withval} in
-     n|no)
-     USE_PWLIB=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} PWLIB"
-     ;;
-     *)
-     PWLIB_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} PWLIB"
-     ;;
-esac
-
-fi
-
-PBX_PWLIB=0
-
-
-
-
-
-
-OPENH323_DESCRIP="OpenH323"
-OPENH323_OPTION="h323"
+	case ${withval} in
+	n|no)
+	USE_PWLIB=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} PWLIB"
+	;;
+	*)
+	PWLIB_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} PWLIB"
+	;;
+	esac
+
+fi
+
+    PBX_PWLIB=0
+
+
+
+
+
+
+    OPENH323_DESCRIP="OpenH323"
+    OPENH323_OPTION="h323"
 
 # Check whether --with-h323 was given.
 if test "${with_h323+set}" = set; then
   withval=$with_h323;
-case ${withval} in
-     n|no)
-     USE_OPENH323=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} OPENH323"
-     ;;
-     *)
-     OPENH323_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} OPENH323"
-     ;;
-esac
-
-fi
-
-PBX_OPENH323=0
-
-
-
-
-
-
-QT_DESCRIP="Qt"
-QT_OPTION="qt"
+	case ${withval} in
+	n|no)
+	USE_OPENH323=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} OPENH323"
+	;;
+	*)
+	OPENH323_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} OPENH323"
+	;;
+	esac
+
+fi
+
+    PBX_OPENH323=0
+
+
+
+
+
+
+    QT_DESCRIP="Qt"
+    QT_OPTION="qt"
 
 # Check whether --with-qt was given.
 if test "${with_qt+set}" = set; then
   withval=$with_qt;
-case ${withval} in
-     n|no)
-     USE_QT=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} QT"
-     ;;
-     *)
-     QT_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} QT"
-     ;;
-esac
-
-fi
-
-PBX_QT=0
-
-
-
-
-
-
-RADIUS_DESCRIP="Radius Client"
-RADIUS_OPTION="radius"
+	case ${withval} in
+	n|no)
+	USE_QT=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} QT"
+	;;
+	*)
+	QT_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} QT"
+	;;
+	esac
+
+fi
+
+    PBX_QT=0
+
+
+
+
+
+
+    RADIUS_DESCRIP="Radius Client"
+    RADIUS_OPTION="radius"
 
 # Check whether --with-radius was given.
 if test "${with_radius+set}" = set; then
   withval=$with_radius;
-case ${withval} in
-     n|no)
-     USE_RADIUS=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} RADIUS"
-     ;;
-     *)
-     RADIUS_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} RADIUS"
-     ;;
-esac
-
-fi
-
-PBX_RADIUS=0
-
-
-
-
-
-
-SPEEX_DESCRIP="Speex"
-SPEEX_OPTION="speex"
+	case ${withval} in
+	n|no)
+	USE_RADIUS=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} RADIUS"
+	;;
+	*)
+	RADIUS_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} RADIUS"
+	;;
+	esac
+
+fi
+
+    PBX_RADIUS=0
+
+
+
+
+
+
+    SPEEX_DESCRIP="Speex"
+    SPEEX_OPTION="speex"
 
 # Check whether --with-speex was given.
 if test "${with_speex+set}" = set; then
   withval=$with_speex;
-case ${withval} in
-     n|no)
-     USE_SPEEX=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} SPEEX"
-     ;;
-     *)
-     SPEEX_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} SPEEX"
-     ;;
-esac
-
-fi
-
-PBX_SPEEX=0
-
-
-
-
-
-
-SQLITE_DESCRIP="SQLite"
-SQLITE_OPTION="sqlite"
+	case ${withval} in
+	n|no)
+	USE_SPEEX=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} SPEEX"
+	;;
+	*)
+	SPEEX_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} SPEEX"
+	;;
+	esac
+
+fi
+
+    PBX_SPEEX=0
+
+
+
+
+
+
+    SQLITE_DESCRIP="SQLite"
+    SQLITE_OPTION="sqlite"
 
 # Check whether --with-sqlite was given.
 if test "${with_sqlite+set}" = set; then
   withval=$with_sqlite;
-case ${withval} in
-     n|no)
-     USE_SQLITE=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} SQLITE"
-     ;;
-     *)
-     SQLITE_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} SQLITE"
-     ;;
-esac
-
-fi
-
-PBX_SQLITE=0
-
-
-
-
-
-
-SQLITE3_DESCRIP="SQLite"
-SQLITE3_OPTION="sqlite3"
+	case ${withval} in
+	n|no)
+	USE_SQLITE=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} SQLITE"
+	;;
+	*)
+	SQLITE_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} SQLITE"
+	;;
+	esac
+
+fi
+
+    PBX_SQLITE=0
+
+
+
+
+
+
+    SQLITE3_DESCRIP="SQLite"
+    SQLITE3_OPTION="sqlite3"
 
 # Check whether --with-sqlite3 was given.
 if test "${with_sqlite3+set}" = set; then
   withval=$with_sqlite3;
-case ${withval} in
-     n|no)
-     USE_SQLITE3=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} SQLITE3"
-     ;;
-     *)
-     SQLITE3_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} SQLITE3"
-     ;;
-esac
-
-fi
-
-PBX_SQLITE3=0
-
-
-
-
-
-
-SUPPSERV_DESCRIP="mISDN Supplemental Services"
-SUPPSERV_OPTION="suppserv"
+	case ${withval} in
+	n|no)
+	USE_SQLITE3=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} SQLITE3"
+	;;
+	*)
+	SQLITE3_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} SQLITE3"
+	;;
+	esac
+
+fi
+
+    PBX_SQLITE3=0
+
+
+
+
+
+
+    SUPPSERV_DESCRIP="mISDN Supplemental Services"
+    SUPPSERV_OPTION="suppserv"
 
 # Check whether --with-suppserv was given.
 if test "${with_suppserv+set}" = set; then
   withval=$with_suppserv;
-case ${withval} in
-     n|no)
-     USE_SUPPSERV=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
-     ;;
-     *)
-     SUPPSERV_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
-     ;;
-esac
-
-fi
-
-PBX_SUPPSERV=0
-
-
-
-
-
-
-OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
-OPENSSL_OPTION="ssl"
+	case ${withval} in
+	n|no)
+	USE_SUPPSERV=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
+	;;
+	*)
+	SUPPSERV_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
+	;;
+	esac
+
+fi
+
+    PBX_SUPPSERV=0
+
+
+
+
+
+
+    OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
+    OPENSSL_OPTION="ssl"
 
 # Check whether --with-ssl was given.
 if test "${with_ssl+set}" = set; then
   withval=$with_ssl;
-case ${withval} in
-     n|no)
-     USE_OPENSSL=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} OPENSSL"
-     ;;
-     *)
-     OPENSSL_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} OPENSSL"
-     ;;
-esac
-
-fi
-
-PBX_OPENSSL=0
-
-
-
-
-
-
-FREETDS_DESCRIP="FreeTDS"
-FREETDS_OPTION="tds"
+	case ${withval} in
+	n|no)
+	USE_OPENSSL=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} OPENSSL"
+	;;
+	*)
+	OPENSSL_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} OPENSSL"
+	;;
+	esac
+
+fi
+
+    PBX_OPENSSL=0
+
+
+
+
+
+
+    FREETDS_DESCRIP="FreeTDS"
+    FREETDS_OPTION="tds"
 
 # Check whether --with-tds was given.
 if test "${with_tds+set}" = set; then
   withval=$with_tds;
-case ${withval} in
-     n|no)
-     USE_FREETDS=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} FREETDS"
-     ;;
-     *)
-     FREETDS_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} FREETDS"
-     ;;
-esac
-
-fi
-
-PBX_FREETDS=0
-
-
-
-
-
-
-TERMCAP_DESCRIP="Termcap"
-TERMCAP_OPTION="termcap"
+	case ${withval} in
+	n|no)
+	USE_FREETDS=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} FREETDS"
+	;;
+	*)
+	FREETDS_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} FREETDS"
+	;;
+	esac
+
+fi
+
+    PBX_FREETDS=0
+
+
+
+
+
+
+    TERMCAP_DESCRIP="Termcap"
+    TERMCAP_OPTION="termcap"
 
 # Check whether --with-termcap was given.
 if test "${with_termcap+set}" = set; then
   withval=$with_termcap;
-case ${withval} in
-     n|no)
-     USE_TERMCAP=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} TERMCAP"
-     ;;
-     *)
-     TERMCAP_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} TERMCAP"
-     ;;
-esac
-
-fi
-
-PBX_TERMCAP=0
-
-
-
-
-
-
-TINFO_DESCRIP="Term Info"
-TINFO_OPTION="tinfo"
+	case ${withval} in
+	n|no)
+	USE_TERMCAP=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} TERMCAP"
+	;;
+	*)
+	TERMCAP_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} TERMCAP"
+	;;
+	esac
+
+fi
+
+    PBX_TERMCAP=0
+
+
+
+
+
+
+    TINFO_DESCRIP="Term Info"
+    TINFO_OPTION="tinfo"
 
 # Check whether --with-tinfo was given.
 if test "${with_tinfo+set}" = set; then
   withval=$with_tinfo;
-case ${withval} in
-     n|no)
-     USE_TINFO=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} TINFO"
-     ;;
-     *)
-     TINFO_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} TINFO"
-     ;;
-esac
-
-fi
-
-PBX_TINFO=0
-
-
-
-
-
-
-TONEZONE_DESCRIP="tonezone"
-TONEZONE_OPTION="tonezone"
+	case ${withval} in
+	n|no)
+	USE_TINFO=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} TINFO"
+	;;
+	*)
+	TINFO_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} TINFO"
+	;;
+	esac
+
+fi
+
+    PBX_TINFO=0
+
+
+
+
+
+
+    TONEZONE_DESCRIP="tonezone"
+    TONEZONE_OPTION="tonezone"
 
 # Check whether --with-tonezone was given.
 if test "${with_tonezone+set}" = set; then
   withval=$with_tonezone;
-case ${withval} in
-     n|no)
-     USE_TONEZONE=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} TONEZONE"
-     ;;
-     *)
-     TONEZONE_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} TONEZONE"
-     ;;
-esac
-
-fi
-
-PBX_TONEZONE=0
-
-
-
-
-
-
-USB_DESCRIP="usb"
-USB_OPTION="usb"
+	case ${withval} in
+	n|no)
+	USE_TONEZONE=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} TONEZONE"
+	;;
+	*)
+	TONEZONE_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} TONEZONE"
+	;;
+	esac
+
+fi
+
+    PBX_TONEZONE=0
+
+
+
+
+
+
+    USB_DESCRIP="usb"
+    USB_OPTION="usb"
 
 # Check whether --with-usb was given.
 if test "${with_usb+set}" = set; then
   withval=$with_usb;
-case ${withval} in
-     n|no)
-     USE_USB=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} USB"
-     ;;
-     *)
-     USB_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} USB"
-     ;;
-esac
-
-fi
-
-PBX_USB=0
-
-
-
-
-
-
-VORBIS_DESCRIP="Vorbis"
-VORBIS_OPTION="vorbis"
+	case ${withval} in
+	n|no)
+	USE_USB=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} USB"
+	;;
+	*)
+	USB_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} USB"
+	;;
+	esac
+
+fi
+
+    PBX_USB=0
+
+
+
+
+
+
+    VORBIS_DESCRIP="Vorbis"
+    VORBIS_OPTION="vorbis"
 
 # Check whether --with-vorbis was given.
 if test "${with_vorbis+set}" = set; then
   withval=$with_vorbis;
-case ${withval} in
-     n|no)
-     USE_VORBIS=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} VORBIS"
-     ;;
-     *)
-     VORBIS_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} VORBIS"
-     ;;
-esac
-
-fi
-
-PBX_VORBIS=0
-
-
-
-
-
-
-VPB_DESCRIP="Voicetronix API"
-VPB_OPTION="vpb"
+	case ${withval} in
+	n|no)
+	USE_VORBIS=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} VORBIS"
+	;;
+	*)
+	VORBIS_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} VORBIS"
+	;;
+	esac
+
+fi
+
+    PBX_VORBIS=0
+
+
+
+
+
+
+    VPB_DESCRIP="Voicetronix API"
+    VPB_OPTION="vpb"
 
 # Check whether --with-vpb was given.
 if test "${with_vpb+set}" = set; then
   withval=$with_vpb;
-case ${withval} in
-     n|no)
-     USE_VPB=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} VPB"
-     ;;
-     *)
-     VPB_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} VPB"
-     ;;
-esac
-
-fi
-
-PBX_VPB=0
-
-
-
-
-
-
-ZLIB_DESCRIP="zlib"
-ZLIB_OPTION="z"
+	case ${withval} in
+	n|no)
+	USE_VPB=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} VPB"
+	;;
+	*)
+	VPB_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} VPB"
+	;;
+	esac
+
+fi
+
+    PBX_VPB=0
+
+
+
+
+
+
+    ZLIB_DESCRIP="zlib"
+    ZLIB_OPTION="z"
 
 # Check whether --with-z was given.
 if test "${with_z+set}" = set; then
   withval=$with_z;
-case ${withval} in
-     n|no)
-     USE_ZLIB=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} ZLIB"
-     ;;
-     *)
-     ZLIB_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} ZLIB"
-     ;;
-esac
-
-fi
-
-PBX_ZLIB=0
-
-
-
-
-
-
-ZAPTEL_DESCRIP="Zaptel"
-ZAPTEL_OPTION="zaptel"
+	case ${withval} in
+	n|no)
+	USE_ZLIB=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} ZLIB"
+	;;
+	*)
+	ZLIB_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} ZLIB"
+	;;
+	esac
+
+fi
+
+    PBX_ZLIB=0
+
+
+
+
+
+
+    ZAPTEL_DESCRIP="Zaptel"
+    ZAPTEL_OPTION="zaptel"
 
 # Check whether --with-zaptel was given.
 if test "${with_zaptel+set}" = set; then
   withval=$with_zaptel;
-case ${withval} in
-     n|no)
-     USE_ZAPTEL=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
-     ;;
-     *)
-     ZAPTEL_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
-     ;;
-esac
-
-fi
-
-PBX_ZAPTEL=0
-
-
-
-
-
-
-ZAPTEL_TRANSCODE_DESCRIP="Zaptel_transcode"
-ZAPTEL_TRANSCODE_OPTION="zaptel_transcode"
+	case ${withval} in
+	n|no)
+	USE_ZAPTEL=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
+	;;
+	*)
+	ZAPTEL_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
+	;;
+	esac
+
+fi
+
+    PBX_ZAPTEL=0
+
+
+
+
+
+
+    ZAPTEL_TRANSCODE_DESCRIP="Zaptel_transcode"
+    ZAPTEL_TRANSCODE_OPTION="zaptel_transcode"
 
 # Check whether --with-zaptel_transcode was given.
 if test "${with_zaptel_transcode+set}" = set; then
   withval=$with_zaptel_transcode;
-case ${withval} in
-     n|no)
-     USE_ZAPTEL_TRANSCODE=no
-     ;;
-     y|ye|yes)
-     ac_mandatory_list="${ac_mandatory_list} ZAPTEL_TRANSCODE"
-     ;;
-     *)
-     ZAPTEL_TRANSCODE_DIR="${withval}"
-     ac_mandatory_list="${ac_mandatory_list} ZAPTEL_TRANSCODE"
-     ;;
-esac
-
-fi
-
-PBX_ZAPTEL_TRANSCODE=0
-
-
-
-
-
-
-ZAPTEL_VLDTMF_DESCRIP="Zaptel_vldtmf"
-ZAPTEL_VLDTMF_OPTION="zaptel_vldtmf"
+	case ${withval} in
+	n|no)
+	USE_ZAPTEL_TRANSCODE=no
+	;;
+	y|ye|yes)
+	ac_mandatory_list="${ac_mandatory_list} ZAPTEL_TRANSCODE"
+	;;
+	*)
+	ZAPTEL_TRANSCODE_DIR="${withval}"
+	ac_mandatory_list="${ac_mandatory_list} ZAPTEL_TRANSCODE"
+	;;
+	esac
+
+fi
+
+    PBX_ZAPTEL_TRANSCODE=0

[... 276 lines stripped ...]



More information about the asterisk-commits mailing list