[asterisk-commits] trunk r37066 - in /trunk: ./ apps/ build_tools/ include/asterisk/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 5 12:59:34 MST 2006


Author: kpfleming
Date: Wed Jul  5 14:59:34 2006
New Revision: 37066

URL: http://svn.digium.com/view/asterisk?rev=37066&view=rev
Log:
massive rework of configure script, and split of AST_EXT_LIB into separate macros, reducing code duplication

Modified:
    trunk/acinclude.m4
    trunk/apps/app_voicemail.c
    trunk/build_tools/menuselect-deps.in
    trunk/configure
    trunk/configure.ac
    trunk/include/asterisk/autoconfig.h.in
    trunk/makeopts.in

Modified: trunk/acinclude.m4
URL: http://svn.digium.com/view/asterisk/trunk/acinclude.m4?rev=37066&r1=37065&r2=37066&view=diff
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Wed Jul  5 14:59:34 2006
@@ -1,73 +1,83 @@
-# AST_EXT_LIB([NAME], [FUNCTION], [package header], [package symbol name], [package friendly name], [additional LIB data])
+# AST_EXT_LIB_SETUP([package symbol name], [package friendly name], [package option name], [additional help text])
 
-AC_DEFUN([AST_EXT_LIB],
+AC_DEFUN([AST_EXT_LIB_SETUP],
 [
-AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PATH],[use $5 files in PATH]),[
+$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_$4=no
+     USE_$1=no
      ;;
      y|ye|yes)
-     $4_MANDATORY="yes"
+     $1_MANDATORY="yes"
      ;;
      *)
-     $4_DIR="${withval}"
-     $4_MANDATORY="yes"
+     $1_DIR="${withval}"
+     $1_MANDATORY="yes"
      ;;
 esac
 ])
+PBX_$1=0
+AC_SUBST([$1_LIB])
+AC_SUBST([$1_INCLUDE])
+AC_SUBST([PBX_$1])
+])
 
-PBX_LIB$4=0
+# AST_EXT_LIB_CHECK([package symbol name], [package library name], [function to check], [package header], [additional LIB data])
 
-if test "${USE_$4}" != "no"; then
+AC_DEFUN([AST_EXT_LIB_CHECK],
+[
+if test "${USE_$1}" != "no"; then
    pbxlibdir=""
-   if test "x${$4_DIR}" != "x"; then
-      pbxlibdir="-L${$1_DIR} -L${$1_DIR}/lib"
+   if test "x${$1_DIR}" != "x"; then
+      if test -d ${$1_DIR}/lib; then
+      	 pbxlibdir="-L${$1_DIR}/lib"
+      else
+      	 pbxlibdir="-L${$1_DIR}"
+      fi
    fi
-   AC_CHECK_LIB([$1], [$2], [AST_$4_FOUND=yes], [AST_$4_FOUND=no], ${pbxlibdir} $6)
+   AC_CHECK_LIB([$2], [$3], [AST_$1_FOUND=yes], [AST_$1_FOUND=no], ${pbxlibdir} $5)
 
-   if test "${AST_$4_FOUND}" = "yes"; then
-      $4_LIB="-l$1 $6"
-      $4_HEADER_FOUND="1"
-      if test "x${$4_DIR}" != "x"; then
-         $4_LIB="${pbxlibdir} ${$4_LIB}"
-	 $4_INCLUDE="-I${$4_DIR}/include"
-	 if test "x$3" != "x" ; then
-	    AC_CHECK_HEADER([${$4_DIR}/include/$3], [$4_HEADER_FOUND=1], [$4_HEADER_FOUND=0] )
+   if test "${AST_$1_FOUND}" = "yes"; then
+      $1_LIB="-l$2 $5"
+      $1_HEADER_FOUND="1"
+      if test "x${$1_DIR}" != "x"; then
+         $1_LIB="${pbxlibdir} ${$1_LIB}"
+	 $1_INCLUDE="-I${$1_DIR}/include"
+	 if test "x$4" != "x" ; then
+	    AC_CHECK_HEADER([${$1_DIR}/include/$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0] )
 	 fi
       else
-	 if test "x$3" != "x" ; then
-            AC_CHECK_HEADER([$3], [$4_HEADER_FOUND=1], [$4_HEADER_FOUND=0] )
+	 if test "x$4" != "x" ; then
+            AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0] )
 	 fi
       fi
-      if test "x${$4_HEADER_FOUND}" = "x0" ; then
-         if test ! -z "${$4_MANDATORY}" ;
+      if test "x${$1_HEADER_FOUND}" = "x0" ; then
+         if test ! -z "${$1_MANDATORY}" ;
          then
             echo " ***"
-            echo " *** It appears that you do not have the $1 development package installed."
-            echo " *** Please install it to include $5 support, or re-run configure"
-            echo " *** without explicitly specifying --with-$1"
+            echo " *** It appears that you do not have the $2 development package installed."
+            echo " *** Please install it to include ${$1_DESCRIP} support, or re-run configure"
+            echo " *** without explicitly specifying --with-${$1_OPTION}"
             exit 1
          fi
-         $4_LIB=""
-         $4_INCLUDE=""
-         PBX_LIB$4=0
+         $1_LIB=""
+         $1_INCLUDE=""
+         PBX_$1=0
       else
-         PBX_LIB$4=1
-         AC_DEFINE_UNQUOTED([HAVE_$4], 1, [Define to indicate the $5 library])
+         PBX_$1=1
+         AC_DEFINE_UNQUOTED([HAVE_$1], 1, [Define to indicate the ${$1_DESCRIP} library])
       fi
-   elif test ! -z "${$4_MANDATORY}";
+   elif test ! -z "${$1_MANDATORY}";
    then
       echo "***"
-      echo "*** The $5 installation on this system appears to be broken."
+      echo "*** The ${$1_DESCRIP} installation on this system appears to be broken."
       echo "*** Either correct the installation, or run configure"
-      echo "*** without explicity specifying --with-$1"
+      echo "*** without explicitly specifying --with-${$1_OPTION}"
       exit 1
    fi
 fi
-AC_SUBST([$4_LIB])
-AC_SUBST([$4_INCLUDE])
-AC_SUBST([PBX_LIB$4])
 ])
 
 

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=37066&r1=37065&r2=37066&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Wed Jul  5 14:59:34 2006
@@ -50,6 +50,10 @@
 	</member>
 	<member name="EXTENDED_ODBC_STORAGE" displayname="Storage of Voicemail using ODBC (extended)">
 		<depend>unixodbc</depend>
+		<defaultenabled>no</defaultenabled>
+	</member>
+	<member name="IMAP_STORAGE" displayname="Storage of Voicemail using IMAP4">
+		<depend>imap_tk</depend>
 		<defaultenabled>no</defaultenabled>
 	</member>
 </category>

Modified: trunk/build_tools/menuselect-deps.in
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/menuselect-deps.in?rev=37066&r1=37065&r2=37066&view=diff
==============================================================================
--- trunk/build_tools/menuselect-deps.in (original)
+++ trunk/build_tools/menuselect-deps.in Wed Jul  5 14:59:34 2006
@@ -1,30 +1,31 @@
-ASOUND=@PBX_LIBALSA@
+ASOUND=@PBX_ALSA@
 CURL=@PBX_CURL@
-FREETDS=@PBX_LIBFREETDS@
+FREETDS=@PBX_FREETDS@
 GTK=@PBX_GTK@
 H323=@PBX_H323@
 KDE=@PBX_KDE@
-LIBNEWT=@PBX_LIBNEWT@
-LIBOSPTK=@PBX_LIBOSPTK@
-LIBPOPT=@PBX_LIBPOPT@
-LIBPRI=@PBX_LIBLIBPRI@
-LIBSPEEX=@PBX_LIBSPEEX@
-LIBVORBIS=@PBX_LIBVORBIS@
-NBS=@PBX_LIBNBS@
-LIBOGG=@PBX_LIBOGG@
-OSSAUDIO=@PBX_LIBOSS@
-PGSQL=@PBX_LIBpq@
+NEWT=@PBX_NEWT@
+OSPTK=@PBX_OSPTK@
+POPT=@PBX_POPT@
+PRI=@PBX_PRI@
+SPEEX=@PBX_SPEEX@
+VORBIS=@PBX_VORBIS@
+NBS=@PBX_NBS@
+OGG=@PBX_OGG@
+OSSAUDIO=@PBX_OSS@
+PGSQL=@PBX_PGSQL@
 QT=@PBX_QT@
-RADIUSCLIENT=@PBX_LIBRADIUSCLIENT@
-SQLITE=@PBX_LIBSQLITE@
-SSL=@PBX_LIBOPENSSL@
-UNIXODBC=@PBX_LIBUNIXODBC@
-VPBAPI=@PBX_LIBvpb@
+RADIUS=@PBX_RADIUS@
+SQLITE=@PBX_SQLITE@
+SSL=@PBX_OPENSSL@
+UNIXODBC=@PBX_UNIXODBC@
+VPBAPI=@PBX_VPB@
 WIN32=@OSISWIN32@
-ZLIB=@PBX_LIBZLIB@
-TONEZONE=@PBX_LIBTONEZONE@
+ZLIB=@PBX_ZLIB@
+TONEZONE=@PBX_TONEZONE@
 ZAPTEL=@PBX_ZAPTEL@
-LIBGSM=@PBX_LIBgsm@
-IKSEMEL=@PBX_LIBIKSEMEL@
+GSM=@PBX_GSM@
+IKSEMEL=@PBX_IKSEMEL@
 IXJUSER=@PBX_IXJUSER@
 NETSNMP=@PBX_NETSNMP@
+IMAP_TK=@PBX_IMAP_TK@

Modified: trunk/configure
URL: http://svn.digium.com/view/asterisk/trunk/configure?rev=37066&r1=37065&r2=37066&view=diff
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Wed Jul  5 14:59:34 2006
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 36960 .
+# From configure.ac Revision: 37027 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59e.
 #
@@ -690,100 +690,109 @@
 LN
 DOT
 AST_DEVMODE
-EGREP
 ALSA_LIB
 ALSA_INCLUDE
-PBX_LIBALSA
+PBX_ALSA
 CURSES_LIB
 CURSES_INCLUDE
-PBX_LIBCURSES
-gsm_LIB
-gsm_INCLUDE
-PBX_LIBgsm
-KDE_INCLUDE
-KDE_LIB
-PBX_KDE
-KDEINIT
-KDEDIR
+PBX_CURSES
+GSM_LIB
+GSM_INCLUDE
+PBX_GSM
 IKSEMEL_LIB
 IKSEMEL_INCLUDE
-PBX_LIBIKSEMEL
+PBX_IKSEMEL
+IMAP_TK_LIB
+IMAP_TK_INCLUDE
+PBX_IMAP_TK
+KDE_LIB
+KDE_INCLUDE
+PBX_KDE
 NBS_LIB
 NBS_INCLUDE
-PBX_LIBNBS
+PBX_NBS
 NCURSES_LIB
 NCURSES_INCLUDE
-PBX_LIBNCURSES
-NETSNMP_CONFIG
+PBX_NCURSES
 NETSNMP_LIB
+NETSNMP_INCLUDE
 PBX_NETSNMP
 NEWT_LIB
 NEWT_INCLUDE
-PBX_LIBNEWT
+PBX_NEWT
 UNIXODBC_LIB
 UNIXODBC_INCLUDE
-PBX_LIBUNIXODBC
+PBX_UNIXODBC
 OGG_LIB
 OGG_INCLUDE
-PBX_LIBOGG
+PBX_OGG
 OSPTK_LIB
 OSPTK_INCLUDE
-PBX_LIBOSPTK
+PBX_OSPTK
 OSS_LIB
 OSS_INCLUDE
+PBX_OSS
+POPT_LIB
+POPT_INCLUDE
+PBX_POPT
+PGSQL_LIB
+PGSQL_INCLUDE
+PBX_PGSQL
+PRI_LIB
+PRI_INCLUDE
+PBX_PRI
+PWLIB_LIB
+PWLIB_INCLUDE
+PBX_PWLIB
+QT_LIB
+QT_INCLUDE
+PBX_QT
+RADIUS_LIB
+RADIUS_INCLUDE
+PBX_RADIUS
+SPEEX_LIB
+SPEEX_INCLUDE
+PBX_SPEEX
+SQLITE_LIB
+SQLITE_INCLUDE
+PBX_SQLITE
+OPENSSL_LIB
+OPENSSL_INCLUDE
+PBX_OPENSSL
+FREETDS_LIB
+FREETDS_INCLUDE
+PBX_FREETDS
+TERMCAP_LIB
+TERMCAP_INCLUDE
+PBX_TERMCAP
+TINFO_LIB
+TINFO_INCLUDE
+PBX_TINFO
+TONEZONE_LIB
+TONEZONE_INCLUDE
+PBX_TONEZONE
+VORBIS_LIB
+VORBIS_INCLUDE
+PBX_VORBIS
+VPB_LIB
+VPB_INCLUDE
+PBX_VPB
+ZLIB_LIB
+ZLIB_INCLUDE
+PBX_ZLIB
+ZAPTEL_LIB
+ZAPTEL_INCLUDE
+PBX_ZAPTEL
+ALLOCA
+EGREP
+LIBOBJS
+POW_LIB
+KDEINIT
+KDEDIR
+NETSNMP_CONFIG
 PBX_LIBOSS
 PG_CONFIG
-pq_INCLUDE
-pq_LIB
-PBX_LIBpq
-POPT_LIB
-POPT_INCLUDE
-PBX_LIBPOPT
-LIBPRI_LIB
-LIBPRI_INCLUDE
-PBX_LIBLIBPRI
-PWLIB_INCLUDE
-PWLIB_LIB
-PBX_LIBPWLIB
-QT_INCLUDE
-QT_LIB
 QTMOC
-PBX_QT
-RADIUSCLIENT_LIB
-RADIUSCLIENT_INCLUDE
-PBX_LIBRADIUSCLIENT
-SPEEX_LIB
-SPEEX_INCLUDE
-PBX_LIBSPEEX
-SQLITE_LIB
-SQLITE_INCLUDE
-PBX_LIBSQLITE
-OPENSSL_LIB
-OPENSSL_INCLUDE
-PBX_LIBOPENSSL
-FREETDS_LIB
-FREETDS_INCLUDE
-PBX_LIBFREETDS
-TERMCAP_LIB
-TERMCAP_INCLUDE
-PBX_LIBTERMCAP
-TINFO_LIB
-TINFO_INCLUDE
-PBX_LIBTINFO
-TONEZONE_LIB
-TONEZONE_INCLUDE
-PBX_LIBTONEZONE
-VORBIS_LIB
-VORBIS_INCLUDE
-PBX_LIBVORBIS
-VPB_INCLUDE
-VPB_LIB
-PBX_LIBvpb
-ZLIB_LIB
-ZLIB_INCLUDE
-PBX_LIBZLIB
-ZAPTEL_INCLUDE
-PBX_ZAPTEL
 EDITLINE_LIB
 PBX_H323
 PBX_IXJUSER
@@ -794,9 +803,6 @@
 CURL
 PBX_CURL
 CURLLIB
-ALLOCA
-LIBOBJS
-POW_LIB
 LTLIBOBJS'
 ac_subst_files=''
       ac_precious_vars='build_alias
@@ -1392,24 +1398,24 @@
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
   --with-curses=PATH      use curses files in PATH
-  --with-gsm=PATH         use libgsm files in PATH, or 'internal'
+  --with-gsm=PATH         use GSM files in PATH , or 'internal'
+  --with-iksemel=PATH     use Iksemel Jabber Library files in PATH
+  --with-imap=PATH        use UW IMAP Toolkit files in PATH
   --with-kde=PATH         use KDE files in PATH
-  --with-iksemel=PATH     use Iksemel Jabber Library files in PATH
   --with-nbs=PATH         use Network Broadcast Sound files in PATH
   --with-ncurses=PATH     use ncurses files in PATH
-  --with-netsnmp=PATH     use Net-SNMP in PATH
+  --with-netsnmp=PATH     use Net-SNMP files in PATH
   --with-newt=PATH        use newt files in PATH
   --with-odbc=PATH        use unixODBC files in PATH
   --with-ogg=PATH         use OGG files in PATH
   --with-osptk=PATH       use OSP Toolkit files in PATH
-  --with-ossaudio=PATH    use Open Sound System files in PATH
-  --with-pq=PATH          use PostgreSQL files in PATH
+  --with-oss=PATH         use Open Sound System files in PATH
   --with-popt=PATH        use popt files in PATH
+  --with-postgres=PATH    use PostgreSQL files in PATH
   --with-pri=PATH         use ISDN PRI files in PATH
-  --with-pwlib=PATH       use PWLib files in PATH
+  --with-pwlib=PATH       use PWlib files in PATH
   --with-qt=PATH          use Qt files in PATH
-  --with-radiusclient-ng=PATH
-                          use Radius Client files in PATH
+  --with-radius=PATH      use Radius Client files in PATH
   --with-speex=PATH       use Speex files in PATH
   --with-sqlite=PATH      use SQLite files in PATH
   --with-ssl=PATH         use OpenSSL files in PATH
@@ -1418,7 +1424,7 @@
   --with-tinfo=PATH       use Term Info files in PATH
   --with-tonezone=PATH    use tonezone files in PATH
   --with-vorbis=PATH      use Vorbis files in PATH
-  --with-vpb=PATH         use vpb files in PATH
+  --with-vpb=PATH         use Voicetronix API files in PATH
   --with-z=PATH           use zlib files in PATH
   --with-zaptel=PATH      use Zaptel files in PATH
 
@@ -2226,10 +2232,10 @@
     # XXX temporary hack to let FreeBSD use the default paths
     # for local stuff. We need a better solution.
     if test x"${CPPFLAGS}" = x; then
-        CPPFLAGS="-I /usr/local/include"
+        CPPFLAGS="-I/usr/local/include"
     fi
     if test x"${LDFLAGS}" = x; then
-        LDFLAGS="-L /usr/local/lib"
+        LDFLAGS="-L/usr/local/lib"
     fi
     ;;
   *openbsd*)
@@ -5546,8 +5552,849 @@
 
 
 
-# from here on down, library checking should be done in alphabetical order
+# package option names should be in alphabetical order
 # by the --with option name, to make things easier for the users :-)
+
+
+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)
+     ALSA_MANDATORY="yes"
+     ;;
+     *)
+     ALSA_DIR="${withval}"
+     ALSA_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_ALSA=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)
+     CURSES_MANDATORY="yes"
+     ;;
+     *)
+     CURSES_DIR="${withval}"
+     CURSES_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_CURSES=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)
+     GSM_MANDATORY="yes"
+     ;;
+     *)
+     GSM_DIR="${withval}"
+     GSM_MANDATORY="yes"
+     ;;
+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)
+     IKSEMEL_MANDATORY="yes"
+     ;;
+     *)
+     IKSEMEL_DIR="${withval}"
+     IKSEMEL_MANDATORY="yes"
+     ;;
+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)
+     IMAP_TK_MANDATORY="yes"
+     ;;
+     *)
+     IMAP_TK_DIR="${withval}"
+     IMAP_TK_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_IMAP_TK=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)
+     KDE_MANDATORY="yes"
+     ;;
+     *)
+     KDE_DIR="${withval}"
+     KDE_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_KDE=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)
+     NBS_MANDATORY="yes"
+     ;;
+     *)
+     NBS_DIR="${withval}"
+     NBS_MANDATORY="yes"
+     ;;
+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)
+     NCURSES_MANDATORY="yes"
+     ;;
+     *)
+     NCURSES_DIR="${withval}"
+     NCURSES_MANDATORY="yes"
+     ;;
+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)
+     NETSNMP_MANDATORY="yes"
+     ;;
+     *)
+     NETSNMP_DIR="${withval}"
+     NETSNMP_MANDATORY="yes"
+     ;;
+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)
+     NEWT_MANDATORY="yes"
+     ;;
+     *)
+     NEWT_DIR="${withval}"
+     NEWT_MANDATORY="yes"
+     ;;
+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)
+     UNIXODBC_MANDATORY="yes"
+     ;;
+     *)
+     UNIXODBC_DIR="${withval}"
+     UNIXODBC_MANDATORY="yes"
+     ;;
+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)
+     OGG_MANDATORY="yes"
+     ;;
+     *)
+     OGG_DIR="${withval}"
+     OGG_MANDATORY="yes"
+     ;;
+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)
+     OSPTK_MANDATORY="yes"
+     ;;
+     *)
+     OSPTK_DIR="${withval}"
+     OSPTK_MANDATORY="yes"
+     ;;
+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)
+     OSS_MANDATORY="yes"
+     ;;
+     *)
+     OSS_DIR="${withval}"
+     OSS_MANDATORY="yes"
+     ;;
+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)
+     POPT_MANDATORY="yes"
+     ;;
+     *)
+     POPT_DIR="${withval}"
+     POPT_MANDATORY="yes"
+     ;;
+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)
+     PGSQL_MANDATORY="yes"
+     ;;
+     *)
+     PGSQL_DIR="${withval}"
+     PGSQL_MANDATORY="yes"
+     ;;
+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)
+     PRI_MANDATORY="yes"
+     ;;
+     *)
+     PRI_DIR="${withval}"
+     PRI_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_PRI=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)
+     PWLIB_MANDATORY="yes"
+     ;;
+     *)
+     PWLIB_DIR="${withval}"
+     PWLIB_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_PWLIB=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)
+     QT_MANDATORY="yes"
+     ;;
+     *)
+     QT_DIR="${withval}"
+     QT_MANDATORY="yes"
+     ;;
+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)
+     RADIUS_MANDATORY="yes"
+     ;;
+     *)
+     RADIUS_DIR="${withval}"
+     RADIUS_MANDATORY="yes"
+     ;;
+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)
+     SPEEX_MANDATORY="yes"
+     ;;
+     *)
+     SPEEX_DIR="${withval}"
+     SPEEX_MANDATORY="yes"
+     ;;
+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)
+     SQLITE_MANDATORY="yes"
+     ;;
+     *)
+     SQLITE_DIR="${withval}"
+     SQLITE_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_SQLITE=0
+
+
+
+
+
+OPENSSL_DESCRIP="OpenSSL"
+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)
+     OPENSSL_MANDATORY="yes"
+     ;;
+     *)
+     OPENSSL_DIR="${withval}"
+     OPENSSL_MANDATORY="yes"
+     ;;
+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)
+     FREETDS_MANDATORY="yes"
+     ;;
+     *)
+     FREETDS_DIR="${withval}"
+     FREETDS_MANDATORY="yes"
+     ;;
+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)
+     TERMCAP_MANDATORY="yes"
+     ;;
+     *)
+     TERMCAP_DIR="${withval}"
+     TERMCAP_MANDATORY="yes"
+     ;;
+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)
+     TINFO_MANDATORY="yes"
+     ;;
+     *)
+     TINFO_DIR="${withval}"
+     TINFO_MANDATORY="yes"
+     ;;
+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)
+     TONEZONE_MANDATORY="yes"
+     ;;
+     *)
+     TONEZONE_DIR="${withval}"
+     TONEZONE_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_TONEZONE=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)
+     VORBIS_MANDATORY="yes"
+     ;;
+     *)
+     VORBIS_DIR="${withval}"
+     VORBIS_MANDATORY="yes"
+     ;;
+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)
+     VPB_MANDATORY="yes"
+     ;;
+     *)
+     VPB_DIR="${withval}"
+     VPB_MANDATORY="yes"
+     ;;
+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)
+     ZLIB_MANDATORY="yes"
+     ;;
+     *)
+     ZLIB_DIR="${withval}"
+     ZLIB_MANDATORY="yes"
+     ;;
+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)
+     ZAPTEL_MANDATORY="yes"
+     ;;
+     *)
+     ZAPTEL_DIR="${withval}"
+     ZAPTEL_MANDATORY="yes"
+     ;;
+esac
+
+fi
+
+PBX_ZAPTEL=0
+
+
+
+
+
+# check for basic system features and functionality before
+# checking for package libraries
 
 
 
@@ -5988,13486 +6835,6 @@
 fi
 
 done
-
-
-
-
-# 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)
-     ALSA_MANDATORY="yes"
-     ;;
-     *)
-     ALSA_DIR="${withval}"
-     ALSA_MANDATORY="yes"
-     ;;
-esac
-
-fi
-
-
-PBX_LIBALSA=0
-
-if test "${USE_ALSA}" != "no"; then
-   pbxlibdir=""
-   if test "x${ALSA_DIR}" != "x"; then
-      pbxlibdir="-L${asound_DIR} -L${asound_DIR}/lib"
-   fi
-   { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
-echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
-if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lasound ${pbxlibdir} -lm -ldl $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 snd_spcm_init ();
-int
-main ()
-{
-return snd_spcm_init ();
-  ;
-  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); } &&
-	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
-  { (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_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest$ac_exeext'
-  { (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_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_lib_asound_snd_spcm_init=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_cv_lib_asound_snd_spcm_init=no
-fi
-
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
-echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
-if test $ac_cv_lib_asound_snd_spcm_init = yes; then
-  AST_ALSA_FOUND=yes
-else
-  AST_ALSA_FOUND=no
-fi
-
-
-   if test "${AST_ALSA_FOUND}" = "yes"; then
-      ALSA_LIB="-lasound -lm -ldl"
-      ALSA_HEADER_FOUND="1"
-      if test "x${ALSA_DIR}" != "x"; then
-         ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
-	 ALSA_INCLUDE="-I${ALSA_DIR}/include"
-	 if test "xalsa/asoundlib.h" != "x" ; then
-	    as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
-echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-	       { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
-echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.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 <${ALSA_DIR}/include/alsa/asoundlib.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); } &&
-	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
-  { (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_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (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_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; 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 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 ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
-echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.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 <${ALSA_DIR}/include/alsa/asoundlib.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; then
-  if test -s conftest.err; then
-    ac_cpp_err=$ac_c_preproc_warn_flag
-    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
-  else
-    ac_cpp_err=
-  fi
-else
-  ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_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: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
-
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
-echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-	       { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  ALSA_HEADER_FOUND=1
-else
-  ALSA_HEADER_FOUND=0
-fi
-
-
-	 fi
-      else
-	 if test "xalsa/asoundlib.h" != "x" ; then
-            if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
-  { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
-echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
-echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
-echo $ECHO_N "checking alsa/asoundlib.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 <alsa/asoundlib.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); } &&
-	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
-  { (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_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (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_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; 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 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 alsa/asoundlib.h presence" >&5
-echo $ECHO_N "checking alsa/asoundlib.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 <alsa/asoundlib.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; then
-  if test -s conftest.err; then
-    ac_cpp_err=$ac_c_preproc_warn_flag
-    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
-  else
-    ac_cpp_err=
-  fi
-else
-  ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_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: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
-
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
-echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else

[... 26744 lines stripped ...]


More information about the asterisk-commits mailing list