Skip to content
Snippets Groups Projects
configure 940 KiB
Newer Older
  • Learn to ignore specific revisions
  • Joshua Colp's avatar
    Joshua Colp committed
    if test "${with_uriparser+set}" = set; then :
      withval=$with_uriparser;
    	case ${withval} in
    	n|no)
    	USE_URIPARSER=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_URIPARSER=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} URIPARSER"
    	;;
    	*)
    	URIPARSER_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} URIPARSER"
    	;;
    	esac
    
    fi
    
    
    
    
    
    
    
    
    
        KQUEUE_DESCRIP="kqueue support"
        KQUEUE_OPTION="kqueue"
        PBX_KQUEUE=0
    
    # Check whether --with-kqueue was given.
    
    if test "${with_kqueue+set}" = set; then :
    
      withval=$with_kqueue;
    	case ${withval} in
    	n|no)
    	USE_KQUEUE=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_KQUEUE=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} KQUEUE"
    	;;
    	*)
    	KQUEUE_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} KQUEUE"
    	;;
    	esac
    
    
        LDAP_DESCRIP="OpenLDAP"
        LDAP_OPTION="ldap"
        PBX_LDAP=0
    
    # Check whether --with-ldap was given.
    
    if test "${with_ldap+set}" = set; then :
    
      withval=$with_ldap;
    	case ${withval} in
    	n|no)
    	USE_LDAP=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_LDAP=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} LDAP"
    	;;
    	*)
    	LDAP_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} LDAP"
    	;;
    
    # Check whether --with-libcurl was given.
    
    if test "${with_libcurl+set}" = set; then :
    
      withval=$with_libcurl; _libcurl_with=$withval
    
      _libcurl_with=yes
    fi
    
    
      if test "$_libcurl_with" != "no" ; then
    
         for ac_prog in gawk mawk nawk awk
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_AWK+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$AWK"; then
      ac_cv_prog_AWK="$AWK" # Let the user override the test.
    
    else
    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
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_AWK="$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    AWK=$ac_cv_prog_AWK
    if test -n "$AWK"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
    
    $as_echo "$AWK" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
      test -n "$AWK" && break
    done
    
    
         _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
    
         _libcurl_try_link=yes
    
         if test -d "$_libcurl_with" ; then
            CURL_INCLUDE="-I$withval/include"
            _libcurl_ldflags="-L$withval/lib"
            # Extract the first word of "curl-config", so it can be a program name with args.
    set dummy curl-config; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path__libcurl_config+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $_libcurl_config in
      [\\/]* | ?:[\\/]*)
      ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in "$withval/bin"
    
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      ;;
    esac
    fi
    _libcurl_config=$ac_cv_path__libcurl_config
    if test -n "$_libcurl_config"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
    
    $as_echo "$_libcurl_config" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
         else
            # Extract the first word of "curl-config", so it can be a program name with args.
    set dummy curl-config; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path__libcurl_config+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
      case $_libcurl_config in
      [\\/]* | ?:[\\/]*)
      ac_cv_path__libcurl_config="$_libcurl_config" # 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
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    _libcurl_config=$ac_cv_path__libcurl_config
    if test -n "$_libcurl_config"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
    
    $as_echo "$_libcurl_config" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
         if test x$_libcurl_config != "x" ; then
    
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
    
    $as_echo_n "checking for the version of libcurl... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${libcurl_cv_lib_curl_version+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
    
    $as_echo "$libcurl_cv_lib_curl_version" >&6; }
    
            _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
            _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
    
            if test $_libcurl_wanted -gt 0 ; then
    
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
    
    $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${libcurl_cv_lib_version_ok+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
                  if test $_libcurl_version -ge $_libcurl_wanted ; then
                     libcurl_cv_lib_version_ok=yes
                  else
                     libcurl_cv_lib_version_ok=no
                  fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
    
    $as_echo "$libcurl_cv_lib_version_ok" >&6; }
    
            if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
               if test x"$CURL_INCLUDE" = "x" ; then
                  CURL_INCLUDE=`$_libcurl_config --cflags`
               fi
               if test x"$CURL_LIB" = "x" ; then
                  CURL_LIB=`$_libcurl_config --libs`
    
                  # This is so silly, but Apple actually has a bug in their
                  # curl-config script.  Fixed in Tiger, but there are still
                  # lots of Panther installs around.
                  case "${host}" in
                     powerpc-apple-darwin7*)
                        CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
                     ;;
                  esac
               fi
    
               # All curl-config scripts support --feature
               _libcurl_features=`$_libcurl_config --feature`
    
               # Is it modern enough to have --protocols? (7.12.4)
               if test $_libcurl_version -ge 461828 ; then
                  _libcurl_protocols=`$_libcurl_config --protocols`
               fi
            else
               _libcurl_try_link=no
            fi
    
            unset _libcurl_wanted
         fi
    
         if test $_libcurl_try_link = yes ; then
    
            # we didn't find curl-config, so let's see if the user-supplied
            # link line (or failing that, "-lcurl") is enough.
            CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
    
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
    
    $as_echo_n "checking whether libcurl is usable... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${libcurl_cv_lib_curl_usable+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
               _libcurl_save_cppflags=$CPPFLAGS
               CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
               _libcurl_save_libs=$LIBS
               LIBS="$CURL_LIB $LIBS"
    
    
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    #include <curl/curl.h>
    
    
    /* Try and use a few common options to force a failure if we are
       missing symbols or can't link. */
    int x;
    curl_easy_setopt(NULL,CURLOPT_URL,NULL);
    x=CURL_ERROR_SIZE;
    x=CURLOPT_WRITEFUNCTION;
    
    x=CURLOPT_ERRORBUFFER;
    x=CURLOPT_STDERR;
    x=CURLOPT_VERBOSE;
    
    if ac_fn_c_try_link "$LINENO"; then :
    
      libcurl_cv_lib_curl_usable=yes
    else
    
      libcurl_cv_lib_curl_usable=no
    
    rm -f core conftest.err conftest.$ac_objext \
        conftest$ac_exeext conftest.$ac_ext
    
    
               CPPFLAGS=$_libcurl_save_cppflags
               LIBS=$_libcurl_save_libs
               unset _libcurl_save_cppflags
               unset _libcurl_save_libs
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
    
    $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
    
    
            if test $libcurl_cv_lib_curl_usable = yes ; then
    
               # Does curl_free() exist in this version of libcurl?
               # If not, fake it with free()
    
               _libcurl_save_cppflags=$CPPFLAGS
               CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
               _libcurl_save_libs=$LIBS
               LIBS="$LIBS $CURL_LIB"
    
    
               ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
    
    David M. Lee's avatar
    David M. Lee committed
    if test "x$ac_cv_func_curl_free" = xyes; then :
    
    $as_echo "#define curl_free free" >>confdefs.h
    
               CPPFLAGS=$_libcurl_save_cppflags
               LIBS=$_libcurl_save_libs
               unset _libcurl_save_cppflags
               unset _libcurl_save_libs
    
    
    
    $as_echo "#define HAVE_CURL 1" >>confdefs.h
    
    
               PBX_CURL=1
    
               for _libcurl_feature in $_libcurl_features ; do
                  cat >>confdefs.h <<_ACEOF
    
    #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
    
                  eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
    
               if test "x$_libcurl_protocols" = "x" ; then
    
                  # We don't have --protocols, so just assume that all
                  # protocols are available
    
                  _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
    
    
                  if test x$libcurl_feature_SSL = xyes ; then
                     _libcurl_protocols="$_libcurl_protocols HTTPS"
    
                     # FTPS wasn't standards-compliant until version
    
                     if test $_libcurl_version -ge 461568; then
                        _libcurl_protocols="$_libcurl_protocols FTPS"
                     fi
                  fi
    
    
                  # RTSP, IMAP, POP3 and SMTP were added in
                  # 7.20.0 (0x071400 == 463872)
                  if test $_libcurl_version -ge 463872; then
                     _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
                  fi
    
               fi
    
               for _libcurl_protocol in $_libcurl_protocols ; do
                  cat >>confdefs.h <<_ACEOF
    
    #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
    
                  eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
    
               done
            else
               unset CURL_LIB
               unset CURL_INCLUDE
            fi
         fi
    
         unset _libcurl_try_link
         unset _libcurl_version_parse
         unset _libcurl_config
         unset _libcurl_feature
         unset _libcurl_features
         unset _libcurl_protocol
         unset _libcurl_protocols
         unset _libcurl_version
         unset _libcurl_ldflags
      fi
    
      if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
         # This is the IF-NO path
         :
      else
         # This is the IF-YES path
         :
    
      unset _libcurl_with
    
        LIBEDIT_DESCRIP="NetBSD Editline library"
        LIBEDIT_OPTION="libedit"
        PBX_LIBEDIT=0
    
    # Check whether --with-libedit was given.
    
    if test "${with_libedit+set}" = set; then :
    
      withval=$with_libedit;
    	case ${withval} in
    	n|no)
    	USE_LIBEDIT=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_LIBEDIT=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
    	;;
    	*)
    	LIBEDIT_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
    	;;
    	esac
    
    fi
    
    
    
    
    
    
    
    
    
    LIBEDIT_IS_UNICODE_DESCRIP="Libedit compiled for unicode"
    LIBEDIT_IS_UNICODE_OPTION=libedit
    LIBEDIT_IS_UNICODE_DIR=${LIBEDIT_DIR}
    
    PBX_LIBEDIT_IS_UNICODE=0
    
    
    
    
    
    
    
    
        LIBXML2_DESCRIP="LibXML2"
        LIBXML2_OPTION="libxml2"
        PBX_LIBXML2=0
    
    # Check whether --with-libxml2 was given.
    
    if test "${with_libxml2+set}" = set; then :
    
      withval=$with_libxml2;
    	case ${withval} in
    	n|no)
    	USE_LIBXML2=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_LIBXML2=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} LIBXML2"
    	;;
    	*)
    	LIBXML2_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} LIBXML2"
    	;;
    	esac
    
        LIBXSLT_DESCRIP="LibXSLT"
        LIBXSLT_OPTION="libxslt"
        PBX_LIBXSLT=0
    
    # Check whether --with-libxslt was given.
    if test "${with_libxslt+set}" = set; then :
      withval=$with_libxslt;
    	case ${withval} in
    	n|no)
    	USE_LIBXSLT=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_LIBXSLT=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
    	;;
    	*)
    	LIBXSLT_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
    	;;
    	esac
    
    fi
    
    
    
    
    
    
    
    
    
    LIBXSLT_CLEANUP_DESCRIP="LibXSLT Library Cleanup Function"
    LIBXSLT_CLEANUP_OPTION=libxslt
    LIBXSLT_CLEANUP_DIR=${LIBXSLT_DIR}
    
    PBX_LIBXSLT_CLEANUP=0
    
    
    
    
    
    
    
    
        LUA_DESCRIP="Lua"
        LUA_OPTION="lua"
        PBX_LUA=0
    
    # Check whether --with-lua was given.
    
    if test "${with_lua+set}" = set; then :
    
      withval=$with_lua;
    	case ${withval} in
    	n|no)
    	USE_LUA=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_LUA=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} LUA"
    	;;
    	*)
    	LUA_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} LUA"
    	;;
    	esac
    
        MYSQLCLIENT_DESCRIP="MySQL client"
        MYSQLCLIENT_OPTION="mysqlclient"
        PBX_MYSQLCLIENT=0
    
    # Check whether --with-mysqlclient was given.
    
    if test "${with_mysqlclient+set}" = set; then :
    
      withval=$with_mysqlclient;
    	case ${withval} in
    	n|no)
    	USE_MYSQLCLIENT=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_MYSQLCLIENT=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
    	;;
    	*)
    	MYSQLCLIENT_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
    	;;
    	esac
    
        NEON_DESCRIP="neon"
        NEON_OPTION="neon"
        PBX_NEON=0
    
    # Check whether --with-neon was given.
    
    if test "${with_neon+set}" = set; then :
    
      withval=$with_neon;
    	case ${withval} in
    	n|no)
    	USE_NEON=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_NEON=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} NEON"
    	;;
    	*)
    	NEON_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} NEON"
    	;;
    	esac
    
    fi
    
    
    
    
    
    
    
    
        NEON29_DESCRIP="neon29"
        NEON29_OPTION="neon29"
        PBX_NEON29=0
    
    # Check whether --with-neon29 was given.
    
    if test "${with_neon29+set}" = set; then :
    
      withval=$with_neon29;
    	case ${withval} in
    	n|no)
    	USE_NEON29=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_NEON29=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} NEON29"
    	;;
    	*)
    	NEON29_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} NEON29"
    	;;
    	esac
    
        NETSNMP_DESCRIP="Net-SNMP"
        NETSNMP_OPTION="netsnmp"
        PBX_NETSNMP=0
    
    # Check whether --with-netsnmp was given.
    
    if test "${with_netsnmp+set}" = set; then :
    
      withval=$with_netsnmp;
    	case ${withval} in
    	n|no)
    	USE_NETSNMP=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_NETSNMP=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} NETSNMP"
    	;;
    	*)
    	NETSNMP_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} NETSNMP"
    	;;
    	esac
    
        NEWT_DESCRIP="newt"
        NEWT_OPTION="newt"
        PBX_NEWT=0
    
    # Check whether --with-newt was given.
    
    if test "${with_newt+set}" = set; then :
    
      withval=$with_newt;
    	case ${withval} in
    	n|no)
    	USE_NEWT=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_NEWT=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} NEWT"
    	;;
    	*)
    	NEWT_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} NEWT"
    	;;
    	esac
    
        OGG_DESCRIP="OGG"
        OGG_OPTION="ogg"
        PBX_OGG=0
    
    # Check whether --with-ogg was given.
    
    if test "${with_ogg+set}" = set; then :
    
      withval=$with_ogg;
    	case ${withval} in
    	n|no)
    	USE_OGG=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_OGG=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} OGG"
    	;;
    	*)
    	OGG_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} OGG"
    	;;
    	esac
    
        OPENR2_DESCRIP="MFR2"
        OPENR2_OPTION="openr2"
        PBX_OPENR2=0
    
    # Check whether --with-openr2 was given.
    
    if test "${with_openr2+set}" = set; then :
    
      withval=$with_openr2;
    	case ${withval} in
    	n|no)
    	USE_OPENR2=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_OPENR2=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} OPENR2"
    	;;
    	*)
    	OPENR2_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} OPENR2"
    	;;
    	esac
    
        OPUS_DESCRIP="Opus"
        OPUS_OPTION="opus"
        PBX_OPUS=0
    
    # Check whether --with-opus was given.
    if test "${with_opus+set}" = set; then :
      withval=$with_opus;
    	case ${withval} in
    	n|no)
    	USE_OPUS=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_OPUS=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} OPUS"
    	;;
    	*)
    	OPUS_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} OPUS"
    	;;
    	esac
    
    fi
    
    
    
    
    
    
    
    
    
        OPUSFILE_DESCRIP="Opusfile"
        OPUSFILE_OPTION="opusfile"
        PBX_OPUSFILE=0
    
    # Check whether --with-opusfile was given.
    if test "${with_opusfile+set}" = set; then :
      withval=$with_opusfile;
    	case ${withval} in
    	n|no)
    	USE_OPUSFILE=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_OPUSFILE=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} OPUSFILE"
    	;;
    	*)
    	OPUSFILE_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} OPUSFILE"
    	;;
    	esac
    
    fi
    
    
    
    
    
    
    
    
    
        OSPTK_DESCRIP="OSP Toolkit"
        OSPTK_OPTION="osptk"
        PBX_OSPTK=0
    
    # Check whether --with-osptk was given.
    
    if test "${with_osptk+set}" = set; then :
    
      withval=$with_osptk;
    	case ${withval} in
    	n|no)
    	USE_OSPTK=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_OSPTK=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} OSPTK"
    	;;
    	*)
    	OSPTK_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} OSPTK"
    	;;
    	esac
    
        PGSQL_DESCRIP="PostgreSQL"
        PGSQL_OPTION="postgres"
        PBX_PGSQL=0
    
    # Check whether --with-postgres was given.
    
    if test "${with_postgres+set}" = set; then :
    
      withval=$with_postgres;
    	case ${withval} in
    	n|no)
    	USE_PGSQL=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_PGSQL=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} PGSQL"
    	;;
    	*)
    	PGSQL_DIR="${withval}"
    	ac_mandatory_list="${ac_mandatory_list} PGSQL"
    	;;
    	esac
    
        BEANSTALK_DESCRIP="Beanstalk Job Queue"
        BEANSTALK_OPTION="beanstalk"
        PBX_BEANSTALK=0
    
    # Check whether --with-beanstalk was given.
    if test "${with_beanstalk+set}" = set; then :
      withval=$with_beanstalk;
    	case ${withval} in
    	n|no)
    	USE_BEANSTALK=no
    	# -1 is a magic value used by menuselect to know that the package
    	# was disabled, other than 'not found'
    	PBX_BEANSTALK=-1
    	;;
    	y|ye|yes)
    	ac_mandatory_list="${ac_mandatory_list} BEANSTALK"
    	;;