From eb204ebd9d5c7af06e69103cedea0ed24adbcd9a Mon Sep 17 00:00:00 2001 From: Steve N4IRS Date: Tue, 17 Apr 2018 13:52:08 -0400 Subject: [PATCH 01/39] Test for devtree --- allstar/scripts/host-info.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/allstar/scripts/host-info.sh b/allstar/scripts/host-info.sh index 101a8a75..6b33061c 100755 --- a/allstar/scripts/host-info.sh +++ b/allstar/scripts/host-info.sh @@ -56,8 +56,10 @@ release=$(lsb_release -rs) codename=$(lsb_release -cs) # If exists /proc/device-tree/ -DEVTREE_MODEL=$(awk '{print $1} {print $2} {print $3} {print $4} {print $5} {print $6}' /proc/device-tree/model) -DEVTREE_COMPATABLE=$(awk '{print $1} {print $2} {print $3} {print $4} {print $5} {print $6}' /proc/device-tree/compatible) +if [[ -d "/proc/device-tree" && ! -L " /proc/device-tree" ]] ; then + DEVTREE_MODEL=$(awk '{print $1} {print $2} {print $3} {print $4} {print $5} {print $6}' /proc/device-tree/model) + DEVTREE_COMPATABLE=$(awk '{print $1} {print $2} {print $3} {print $4} {print $5} {print $6}' /proc/device-tree/compatible) +fi # If exists /proc/cpuinfo CPUINFO_MODEL=$(awk '/model name/ {print $4}' /proc/cpuinfo) From aea58d510b6db7e6dbdc22f1555c13aca47948a6 Mon Sep 17 00:00:00 2001 From: n8thn <37700646+n8thn@users.noreply.github.com> Date: Fri, 20 Apr 2018 23:54:40 -0400 Subject: [PATCH 02/39] Update net-setup --- allstar/post_install/net-setup | 64 +++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/allstar/post_install/net-setup b/allstar/post_install/net-setup index e1c9af8b..e7c72d2c 100755 --- a/allstar/post_install/net-setup +++ b/allstar/post_install/net-setup @@ -1,23 +1,32 @@ #!/bin/bash # Origianl by N4IRS # mod4whip N8THN -# V1.2 Feb 25 -#date 20180324 +# V2.0 Apr 2018 + +# release date 20180420 + # Network interface setup script # -# Function calculates number of bit in a netmask # DHCPCDPATH=/etc/dhcpcd.conf INTPATH=/etc/network/interfaces IFUPDPATH=/etc/network/if-up.d/touchfile RESOLVPATH=/etc/resolv.conf -HOSTN=$(cat /etc/hostname) -FQDN=$(hostname -f) -DOMN=$(hostname -d) -HOSTNAME=`echo $FQDN |awk -F. '{ print $1 }'` +#HOSTN=$(cat /etc/hostname) +#FQDN=$(hostname -f) +#DOMN=$(hostname -d) +#HOSTNAME=`echo $FQDN |awk -F. '{ print $1 }'` DPKG_QUERY=$(which dpkg-query) +ETHS=$(ip -o link show | awk -F': ' '{print $2}' | grep ^en) +MULTI=$(ip -o link show | awk -F': ' '{print $2}' | grep -c ^en) +if [ $MULTI -gt 1 ]; then +MULTIETH="YES" +else +MULTIETH="NO" +fi + ETH=$(ip -o link show | awk -F': ' '{print $2}' | grep ^en) if [ $? = "1" ]; then ETH=eth0 @@ -37,16 +46,15 @@ mask2cidr() { 224) let nbits+=3 ; break ;; 192) let nbits+=2 ; break ;; 128) let nbits+=1 ; break ;; - 0);; - *) echo "Error: $dec is not recognised"; exit 1 + 0) let nbits+=0 ; break ;; + *) whiptail --msgbox "Error: parsing netmask $dec is not recognised" 20 60 1; exit 1 esac done -# echo "$nbits" } + do_dhcpcd_yn() { -#$DPKG_QUERY -l | grep dhcpcd > /dev/null -systemctl status dhcpcd > /dev/null +systemctl status dhcpcd 2> /dev/null 1> /dev/null if [ $? = 0 ]; then DHCPCD_YN=YES else @@ -77,46 +85,55 @@ do_static_dhcp_menu() { do_set_static() { -IPADDR=$(whiptail --inputbox "Enter the IP address in the form XXX.XXX.XXX.XXX: " 8 78 3>&1 1>&2 2>&3) +if [ $MULTIETH = "YES" ]; then +ETH_IFACE=$(whiptail --inputbox "Enter Ethernet interface to use:\n$ETHS \n" 20 78 3>&1 1>&2 2>&3) +ETH=$ETH_IFACE +fi +IPADDR=$(whiptail --inputbox "Enter the IP address for interface $ETH \nin the form XXX.XXX.XXX.XXX: " 8 78 3>&1 1>&2 2>&3) NETMASK=$(whiptail --inputbox "Enter the netmask in the form XXX.XXX.XXX.XXX: " 8 78 3>&1 1>&2 2>&3) +mask2cidr $NETMASK +numbits=$nbits DGW=$(whiptail --inputbox "Enter the default gateway in the form XXX.XXX.XXX.XXX: " 8 78 3>&1 1>&2 2>&3) PDNS=$(whiptail --inputbox "Enter the address of the primary nameserver in the form XXX.XXX.XXX.XXX: " 8 78 3>&1 1>&2 2>&3) SDNS=$(whiptail --inputbox "Enter the address of the secondary nameserver in the form XXX.XXX.XXX.XXX: " 8 78 3>&1 1>&2 2>&3) -if (whiptail --yesno "So we have: \n\nIP Address : $IPADDR\nNetmask : $NETMASK\nDefault Gateway : $DGW\nPrimary DNS : $PDNS\nSecondary DNS : $SDNS\nhostname is $HOSTN\nDomain Name is $DOMN\nFQDN is $FQDN\n\nSelect yes to continue or no to start over." 30 80); then +if (whiptail --yesno "So we have: \n\nIP Address/CIDR : $IPADDR/$numbits\nNetmask : $NETMASK\nDefault Gateway : $DGW\nPrimary DNS : $PDNS\nSecondary DNS : $SDNS\n\nSelect yes to continue or no to start over." 30 80); then # yes, write it -mask2cidr $NETMASK do_static_write else # no, re-enter do_set_static fi - } do_static_write() { -#numbits=$(mask2cidr $NETMASK) -numbits=$nbits if [ "$DHCPCD_YN" = "YES" ]; then # write dhcpd.conf cp -r /etc/dhcpcd.conf /etc/dhcpcd.conf.orig + whiptail --msgbox "Removing any previous static entries" 20 60 2 + sed -i '/^profile static/d' /etc/dhcpcd.conf sed -i '/^interface/d' /etc/dhcpcd.conf sed -i '/^static/d' /etc/dhcpcd.conf + whiptail --msgbox "Writing static settings in /etc/dhcpcd.conf" 20 60 2 echo "# define static profile for eth0" >> /etc/dhcpcd.conf + echo "profile static_$ETH" >> /etc/dhcpcd.conf echo "interface $ETH" >> /etc/dhcpcd.conf echo "static ip_address=$IPADDR/$numbits" >> /etc/dhcpcd.conf echo "static routers=$DGW" >> /etc/dhcpcd.conf echo "static domain_name_servers=$PDNS, $SDNS" >> /etc/dhcpcd.conf ip link show | grep wlan > /dev/null if [ $? = 0 ]; then + whiptail --msgbox "Wireless interface found Writing settings for wlan0 also" 20 60 1 echo "# define static profile for wlan " >> /etc/dhcpcd.conf + echo "profile static_wlan0" >> /etc/dhcpcd.conf echo "interface wlan0" >> /etc/dhcpcd.conf echo "static ip_address=$IPADDR/$numbits" >> /etc/dhcpcd.conf echo "static routers=$DGW" >> /etc/dhcpcd.conf echo "static domain_name_servers=$PDNS, $SDNS" >> /etc/dhcpcd.conf fi - whiptail --msgbox "Finished writing DHCPCD settings for static IP addressing." 10 78 + whiptail --msgbox "Finished writing DHCPCD settings for static IP addressing\nChanges will take effect after reboot" 10 78 else # rewrite /etc/network/interfaces + whiptail --msgbox "DHCPCD not used, writing settings to /etc/network/interfaces" 20 60 2 sed -i '/address/d' /etc/network/interfaces sed -i '/netmask/d' /etc/network/interfaces sed -i '/gateway/d' /etc/network/interfaces @@ -127,7 +144,7 @@ else sed -i "/iface wlan0 inet/c\iface $ETH inet static" /etc/network/interfaces sed -i "/iface wlan0 inet static/a address $IPADDR \nnetmask $NETMASK \ngateway $DGW" /etc/network/interfaces fi - whiptail --msgbox "Finished writing settings in interfaces file for static IP addressing." 10 78 + whiptail --msgbox "Finished writing settings in interfaces file for static IP addressing\nChanges will take effect after reboot" 10 78 fi } @@ -146,7 +163,7 @@ if [ "$DHCPCD_YN" = "YES" ]; then # static domain_name_servers=192.168.1.1 sed -i 's/^static domain_nam*/#&/' /etc/dhcpcd.conf - whiptail --msgbox "Commented out any static IP settings in /etc/dhcpcd.conf \nreturning to DHCP IP addressing." 10 78 + whiptail --msgbox "Commented out any static IP settings in /etc/dhcpcd.conf \nreturning to DHCP IP addressing\nChanges will take effect after reboot" 10 78 else # rewrite /etc/network/interfaces sed -i "/iface $ETH inet/c\iface $ETH inet dhcp" /etc/network/interfaces @@ -157,7 +174,7 @@ else sed -i '/address/d' /etc/network/interfaces sed -i '/netmask/d' /etc/network/interfaces sed -i '/gateway/d' /etc/network/interfaces - whiptail --msgbox "Finished writing settings in interfaces for DHCP addressing." 10 78 + whiptail --msgbox "Finished writing settings in interfaces for DHCP addressing\nChanges will take effect after reboot" 10 78 fi } @@ -171,10 +188,9 @@ fi if [ $ANSWER = 1 ] then - whiptail --msgbox "You may set up your IP address settings later." 8 78 + whiptail --msgbox "You may set up your IP address settings later" 8 78 exit 0 else do_dhcpcd_yn do_static_dhcp_menu fi - From 5648d5a87430fdbb337e46aaf72e441ec43a5407 Mon Sep 17 00:00:00 2001 From: n8thn <37700646+n8thn@users.noreply.github.com> Date: Sat, 21 Apr 2018 00:18:38 -0400 Subject: [PATCH 03/39] Update set-host --- allstar/post_install/set-host | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allstar/post_install/set-host b/allstar/post_install/set-host index 2e3970ce..a085068e 100755 --- a/allstar/post_install/set-host +++ b/allstar/post_install/set-host @@ -13,8 +13,8 @@ if [ `whoami` != root ]; then fi # set variables for current values ############################################## -hostfile=/tmp/hosts -hostnamefile=/tmp/hostname +hostfile=/etc/hosts +hostnamefile=/etc/hostname # returns empty if currently DHCP IP=$(grep Address= /etc/systemd/network/eth0.network | awk -F'=' '{print $2}' | awk -F'/' '{print $1}') From c26ce818b0907125451941d8b8b163a74a47dfb8 Mon Sep 17 00:00:00 2001 From: n8thn <37700646+n8thn@users.noreply.github.com> Date: Thu, 3 May 2018 23:15:38 -0400 Subject: [PATCH 04/39] Update asl-menu --- allstar/post_install/asl-menu | 57 ++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/allstar/post_install/asl-menu b/allstar/post_install/asl-menu index 9398e76d..17bafe47 100755 --- a/allstar/post_install/asl-menu +++ b/allstar/post_install/asl-menu @@ -1,9 +1,9 @@ #!/bin/bash #ASL-MENU -#V2.0 -#2018 March +#V2.1 +#2018 May #By N8THN -#release date 20180323-1 +#release date 20180503 clear # define variables @@ -372,6 +372,14 @@ clear $ASTERISK -rvvv } +do_bash_shell() { +echo "do_bash_shell" >> $logfile +whiptail --msgbox "Type exit to return to ASL-MENU" 20 60 2 +/bin/bash +} + + + ############### Diagnostics menu sub sections do_ping_google_dns() { @@ -526,6 +534,17 @@ whiptail --msgbox "Uploading diagnostic file to ASL Admin team" 20 60 2 ################### OS subsections +do_sethost() { +echo "do_sethost" >> $logfile +/usr/local/sbin/set-host +} + +do_netsetup() { +echo "do_netsetup" >> $logfile +/usr/local/sbin/net-setup +} + + do_edit_allmon_config() { echo "do_edit_allmon_config" >> $logfile if [ ! -f $WEBROOT/allmon2/allmon.ini.php ]; then @@ -860,7 +879,6 @@ cat << _EOF > $FIREWALLFILE -A fail2ban-asterisk-tcp -j RETURN -A fail2ban-ssh -j RETURN COMMIT - _EOF $IPTABLES_RESTORE < $FIREWALLFILE @@ -901,7 +919,6 @@ cat << _EOF > $FIREWALLFILE -A INPUT -j REJECT --reject-with icmp-port-unreachable -A FORWARD -j REJECT --reject-with icmp-port-unreachable COMMIT - _EOF $IPTABLES_RESTORE < $FIREWALLFILE @@ -939,9 +956,7 @@ whiptail --msgbox "This will install basic fail2ban filter rules to help protect get_node_info cat << _EOF > $FAIL2BANFILE ; use a semi-colon to comment out a line item - [ssh] - enabled = true port = ssh filter = sshd @@ -951,9 +966,7 @@ banaction = iptables-allports findtime = 150 maxretry = 3 ignoreip = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 - [asterisk-tcp] - enabled = true port = $MGRPORT filter = asterisk @@ -963,7 +976,6 @@ banaction = iptables-allports findtime = 300 maxretry = 5 ignoreip = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 - [asterisk] enabled = true filter = asterisk @@ -972,7 +984,6 @@ protocol = all logpath = /var/log/asterisk/messages maxretry = 5 ignoreip = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 - _EOF whiptail --msgbox "File $FAIL2BANFILE created.\nRestarting fail2ban service with the new rules" 20 60 2 @@ -1168,6 +1179,7 @@ RET=0 "8 " "System Security Menu" \ "9 " "System Diagnostics Menu" \ "0 " "Information" \ + "S " "Start a bash shell" \ 3>&1 1>&2 2>&3) RET=$? if [ $RET -eq 1 ]; then @@ -1184,6 +1196,7 @@ RET=0 8\ *) do_sys_security_menu ;; 9\ *) do_sys_diags_menu ;; 0\ *) info_main_menu ;; + S\ *) do_bash_shell ;; *) whiptail --msgbox "Whoooops, script error: unrecognized option" 20 60 1 ;; esac || whiptail --msgbox "There was an error running option $FUN" 20 60 1 else @@ -1248,10 +1261,12 @@ RET=0 "B " "Run apt-get upgrade" \ "C " "Install/upgrade firewall" \ "D " "Install/upgrade fail2ban" \ - "E " "Install ASL Addons Menu" \ - "F " "Change CPU performance (overclocking)" \ - "G " "Use asl-menu at login" \ - "H " "Information" \ + "E " "Set hostname and domain name" \ + "F " "Set DHCP or STATIC IP" \ + "G " "Install ASL Addons Menu" \ + "H " "Change CPU performance (overclocking)" \ + "I " "Use asl-menu at login" \ + "J " "Information" \ 3>&1 1>&2 2>&3) RET=$? if [ $RET -eq 1 ]; then @@ -1262,10 +1277,12 @@ RET=0 B\ *) do_apt_get_upgrade ;; C\ *) do_install_firewall ;; D\ *) do_install_fail2ban ;; - E\ *) do_addon_packages_menu ;; - F\ *) do_cpu_clocking_menu ;; - G\ *) do_use_aslmenu ;; - H\ *) info_OS_menu ;; + E\ *) do_sethost ;; + F\ *) do_netsetup ;; + G\ *) do_addon_packages_menu ;; + H\ *) do_cpu_clocking_menu ;; + I\ *) do_use_aslmenu ;; + J\ *) info_OS_menu ;; *) whiptail --msgbox "Whoooops, script error: unrecognized option" 20 60 1 ;; esac || whiptail --msgbox "There was an error running option $FUN" 20 60 1 else @@ -1488,5 +1505,3 @@ check_config_files do_main_menu clear exit 0 - - From 1f3a3784ca094c5ad868356443945a3edeb0cf22 Mon Sep 17 00:00:00 2001 From: n8thn <37700646+n8thn@users.noreply.github.com> Date: Thu, 3 May 2018 23:17:26 -0400 Subject: [PATCH 05/39] Update net-setup --- allstar/post_install/net-setup | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/allstar/post_install/net-setup b/allstar/post_install/net-setup index e7c72d2c..7911ab81 100755 --- a/allstar/post_install/net-setup +++ b/allstar/post_install/net-setup @@ -1,9 +1,9 @@ #!/bin/bash # Origianl by N4IRS # mod4whip N8THN -# V2.0 Apr 2018 +# V2.1 May 2018 -# release date 20180420 +# release date 20180503 # Network interface setup script # @@ -138,11 +138,11 @@ else sed -i '/netmask/d' /etc/network/interfaces sed -i '/gateway/d' /etc/network/interfaces sed -i "/iface $ETH inet/c\iface $ETH inet static" /etc/network/interfaces - sed -i "/iface $ETH inet static/a address $IPADDR \nnetmask $NETMASK \ngateway $DGW" /etc/network/interfaces + sed -i "/iface $ETH inet static/a address $IPADDR \nnetmask $NETMASK \ngateway $DGW \ndns-nameservers $PDNS $SDNS" /etc/network/interfaces ip link show | grep wlan > /dev/null if [ $? = 0 ] ;then sed -i "/iface wlan0 inet/c\iface $ETH inet static" /etc/network/interfaces - sed -i "/iface wlan0 inet static/a address $IPADDR \nnetmask $NETMASK \ngateway $DGW" /etc/network/interfaces + sed -i "/iface wlan0 inet static/a address $IPADDR \nnetmask $NETMASK \ngateway $DGW \ndns-nameservers $PDNS $SDNS" /etc/network/interfaces fi whiptail --msgbox "Finished writing settings in interfaces file for static IP addressing\nChanges will take effect after reboot" 10 78 fi @@ -174,6 +174,7 @@ else sed -i '/address/d' /etc/network/interfaces sed -i '/netmask/d' /etc/network/interfaces sed -i '/gateway/d' /etc/network/interfaces + sed -i '/dns-nameservers/d' /etc/network/interfaces whiptail --msgbox "Finished writing settings in interfaces for DHCP addressing\nChanges will take effect after reboot" 10 78 fi From f37f135ad4550b3c609ab313d005997c3a1ed682 Mon Sep 17 00:00:00 2001 From: n8thn <37700646+n8thn@users.noreply.github.com> Date: Tue, 16 Oct 2018 07:38:23 -0400 Subject: [PATCH 06/39] Update asl-menu Minor bug fix in configuration checks --- allstar/post_install/asl-menu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allstar/post_install/asl-menu b/allstar/post_install/asl-menu index 17bafe47..477a2c30 100755 --- a/allstar/post_install/asl-menu +++ b/allstar/post_install/asl-menu @@ -171,7 +171,7 @@ USBRADIOMODULE=NO echo "USBRADIOMODULE=NO" >> $logfile fi # is rxchannel -grep '^rxchannel[ \t]*=[ \t]*radio' $CONFIGS/rpt.conf > /dev/null +grep -i '^rxchannel[ \t]*=[ \t]*Radio' $CONFIGS/rpt.conf > /dev/null if [ $? -eq 0 ]; then RXCHUSBRADIO=YES else @@ -194,7 +194,7 @@ SIMPLEUSBMODULE=YES else SIMPLEUSBMODULE=NO fi -grep '^rxchannel[ \t]*=[ \t]*Simple' $CONFIGS/rpt.conf > /dev/null +grep -i '^rxchannel[ \t]*=[ \t]*Simple' $CONFIGS/rpt.conf > /dev/null if [ $? -eq 0 ]; then RXCHSIMPLEUSB=YES else From c5b8abe00e1602650e2e6bcb3720d5c6b4e996d6 Mon Sep 17 00:00:00 2001 From: n8thn <37700646+n8thn@users.noreply.github.com> Date: Tue, 16 Oct 2018 07:39:10 -0400 Subject: [PATCH 07/39] Update asl-menu minor bug fix in configuration checks --- allstar/post_install/asl-menu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allstar/post_install/asl-menu b/allstar/post_install/asl-menu index 477a2c30..6936afc5 100755 --- a/allstar/post_install/asl-menu +++ b/allstar/post_install/asl-menu @@ -3,7 +3,7 @@ #V2.1 #2018 May #By N8THN -#release date 20180503 +#release date 20181016 clear # define variables From d9efad4b8e7d751612e3c42afa0b4050b028713f Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:01:14 -0800 Subject: [PATCH 08/39] Updated README updated to give information on project, license, copyright, how to compile and where to find help. --- README | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/README b/README index 007dc4fd..ff598d9b 100644 --- a/README +++ b/README @@ -1,10 +1,51 @@ -This is the Asterisk source package for AllStarLink +# Asterisk source package for AllStarLink +--------------------------------------------------------------------------------------------------------------------------------- +This is the Asterisk source package for AllStarLink and the files to build the ASL 1.01 distribution. +--------------------------------------------------------------------------------------------------------------------------------- +Updates: +asl-menu has received a few minor updates since the ASL 1.01 distribution was released. +--------------------------------------------------------------------------------------------------------------------------------- -asterisk-1.4.23pre +AllStarLink wiki: https://wiki.allstarlink.org +AllStarLink Portal: https://www.allstarlink.org +Official AllStarLink mailing list - app_rpt-users: http://lists.allstarlink.org +AllStarLink Network/System status: https://grafana.allstarlink.org -This branch will be merged into dev +--------------------------------------------------------------------------------------------------------------------------------- +# License +Asterisk, app_rpt and all associated code/files are licensed, released, and distributed under the GNU General Public License v2 and cannot be relicensed without written permission of Digium and the copyright holders of the app_rpt suite of programs. +# Copyright +Asterisk 1.4.23pre is copyright Digium (https://www.digium.com) +app_rpt and associated programs (app_rpt suite) is copyright Jim Dixon, WB6NIL and contributors +--------------------------------------------------------------------------------------------------------------------------------- +# Prerequisites + +Install gcc 4.9 and g++ 4.9 installed on your system (4.8 will work too). +_Refer to your Linux distribution's documentation for information on how to do this_ + +# Compiling +_Make sure the Asterisk 1.4 prerequisites are installed on your system before attemmptiog to compile_ + +
+git clone https://github.com/AllStarLink/Asterisk.git
+
+cd Asterisk/asterisk
+
+./configure CXX=g++-4.9 CC=gcc-4.9
+
+make
+
+make install
+
+
+ +If all goes well, you will have cloned, configured, compiled and installed the Astersisk 1.4.23pre and app_rpt suite of programs that comprise the ASL 1.01 release onto your system. +--------------------------------------------------------------------------------------------------------------------------------- +# Help + +Refer to the app_rpt-users mailing list and AllStarLink Wiki for information on the app_rpt suite of programs. From 7ef7bee329d4e382c261a7664dd18ad9c5ad0c08 Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:01:57 -0800 Subject: [PATCH 09/39] Delete README Moving to a markdown format --- README | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 README diff --git a/README b/README deleted file mode 100644 index ff598d9b..00000000 --- a/README +++ /dev/null @@ -1,51 +0,0 @@ -# Asterisk source package for AllStarLink ---------------------------------------------------------------------------------------------------------------------------------- -This is the Asterisk source package for AllStarLink and the files to build the ASL 1.01 distribution. ---------------------------------------------------------------------------------------------------------------------------------- -Updates: -asl-menu has received a few minor updates since the ASL 1.01 distribution was released. ---------------------------------------------------------------------------------------------------------------------------------- - -AllStarLink wiki: https://wiki.allstarlink.org -AllStarLink Portal: https://www.allstarlink.org -Official AllStarLink mailing list - app_rpt-users: http://lists.allstarlink.org -AllStarLink Network/System status: https://grafana.allstarlink.org - ---------------------------------------------------------------------------------------------------------------------------------- -# License - -Asterisk, app_rpt and all associated code/files are licensed, released, and distributed under the GNU General Public License v2 and cannot be relicensed without written permission of Digium and the copyright holders of the app_rpt suite of programs. - -# Copyright - -Asterisk 1.4.23pre is copyright Digium (https://www.digium.com) -app_rpt and associated programs (app_rpt suite) is copyright Jim Dixon, WB6NIL and contributors - ---------------------------------------------------------------------------------------------------------------------------------- - -# Prerequisites - -Install gcc 4.9 and g++ 4.9 installed on your system (4.8 will work too). -_Refer to your Linux distribution's documentation for information on how to do this_ - -# Compiling -_Make sure the Asterisk 1.4 prerequisites are installed on your system before attemmptiog to compile_ - -
-git clone https://github.com/AllStarLink/Asterisk.git
-
-cd Asterisk/asterisk
-
-./configure CXX=g++-4.9 CC=gcc-4.9
-
-make
-
-make install
-
-
- -If all goes well, you will have cloned, configured, compiled and installed the Astersisk 1.4.23pre and app_rpt suite of programs that comprise the ASL 1.01 release onto your system. ---------------------------------------------------------------------------------------------------------------------------------- -# Help - -Refer to the app_rpt-users mailing list and AllStarLink Wiki for information on the app_rpt suite of programs. From e2ca6bf837a2946f5bcb8bfcd6251438d3c4314b Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:05:09 -0800 Subject: [PATCH 10/39] Created README.md Created new README file in markdown to allow better formatting. --- README.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..c178b27a --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# Asterisk source package for AllStarLink + +--------------------------------------------------------------------------------------------------------------------------------- + +This is the Asterisk source package for AllStarLink and the files to build the ASL 1.01 distribution. + +--------------------------------------------------------------------------------------------------------------------------------- + +Updates: +asl-menu has received a few minor updates since the ASL 1.01 distribution was released. + +--------------------------------------------------------------------------------------------------------------------------------- + +AllStarLink wiki: https://wiki.allstarlink.org + +AllStarLink Portal: https://www.allstarlink.org + +Official AllStarLink mailing list - app_rpt-users: http://lists.allstarlink.org + +AllStarLink Network/System status: https://grafana.allstarlink.org + +--------------------------------------------------------------------------------------------------------------------------------- + +## Copyright + +Asterisk 1.4.23pre is copyright Digium (https://www.digium.com) +app_rpt and associated programs (app_rpt suite) is copyright Jim Dixon, WB6NIL and contributors + +## License + +Asterisk, app_rpt and all associated code/files are licensed, released, and distributed under the GNU General Public License v2 and cannot be relicensed without written permission of Digium and the copyright holders of the app_rpt suite of programs. + +--------------------------------------------------------------------------------------------------------------------------------- + +## Prerequisites + +Install gcc 4.9 and g++ 4.9 installed on your system (4.8 will work too). +_Refer to your Linux distribution's documentation for information on how to do this_ + +## Compiling +_Make sure the Asterisk 1.4 prerequisites are installed on your system before attemmptiog to compile_ + +
+git clone https://github.com/AllStarLink/Asterisk.git
+
+cd Asterisk/asterisk
+
+./configure CXX=g++-4.9 CC=gcc-4.9
+
+make
+
+make install
+
+
+ +If all goes well, you will have cloned, configured, compiled and installed the Astersisk 1.4.23pre and app_rpt suite of programs that comprise the ASL 1.01 release onto your system. + +--------------------------------------------------------------------------------------------------------------------------------- + +## Help + +Refer to the app_rpt-users mailing list and AllStarLink Wiki for information on the app_rpt suite of programs. From 651bffc1967e2188b3bb22917ea755cdac508bd2 Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:06:04 -0800 Subject: [PATCH 11/39] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c178b27a..12a33f70 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ AllStarLink Network/System status: https://grafana.allstarlink.org ## Copyright Asterisk 1.4.23pre is copyright Digium (https://www.digium.com) + app_rpt and associated programs (app_rpt suite) is copyright Jim Dixon, WB6NIL and contributors ## License From 9ab6b42092ba8537a9a10a1a35e6bb29339c513f Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:06:28 -0800 Subject: [PATCH 12/39] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12a33f70..056c8a54 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ AllStarLink Network/System status: https://grafana.allstarlink.org Asterisk 1.4.23pre is copyright Digium (https://www.digium.com) -app_rpt and associated programs (app_rpt suite) is copyright Jim Dixon, WB6NIL and contributors +app_rpt and associated programs (app_rpt suite) are copyright Jim Dixon, WB6NIL and contributors ## License From 94a17a1b62a7155596c1ffaaa632d7c65413537e Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:12:28 -0800 Subject: [PATCH 13/39] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 056c8a54..9511473b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Asterisk, app_rpt and all associated code/files are licensed, released, and dist ## Prerequisites -Install gcc 4.9 and g++ 4.9 installed on your system (4.8 will work too). +Install gcc 4.9 and g++ 4.9 on your system (4.8 will work too). _Refer to your Linux distribution's documentation for information on how to do this_ ## Compiling From 567a268869d21ce3166b8c4fd3cf3b22d754794c Mon Sep 17 00:00:00 2001 From: AllStarLink Date: Thu, 22 Nov 2018 00:14:14 -0800 Subject: [PATCH 14/39] Update README.md Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9511473b..de269906 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Install gcc 4.9 and g++ 4.9 on your system (4.8 will work too). _Refer to your Linux distribution's documentation for information on how to do this_ ## Compiling -_Make sure the Asterisk 1.4 prerequisites are installed on your system before attemmptiog to compile_ +_Make sure the Asterisk 1.4 prerequisites are installed on your system before attempting to compile_
 git clone https://github.com/AllStarLink/Asterisk.git

From d0e3fe527d8951ab3799b62fe8f54098608f563b Mon Sep 17 00:00:00 2001
From: AllStarLink 
Date: Thu, 22 Nov 2018 00:39:44 -0800
Subject: [PATCH 15/39] Update README.md

Updated copyright.
---
 README.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index de269906..7f68857d 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,8 @@ AllStarLink Network/System status:  https://grafana.allstarlink.org
 
 Asterisk 1.4.23pre is copyright Digium (https://www.digium.com)
 
-app_rpt and associated programs (app_rpt suite) are copyright Jim Dixon, WB6NIL and contributors
+app_rpt and associated programs (app_rpt suite) are copyright Jim Dixon, WB6NIL; AllStarLink, Inc.; and contributors
+_(Refer to each individual's file source code for full copyright information)_
 
 ## License
 

From 5ab991d060b06ed7dcd89c5795af754deb0ffc56 Mon Sep 17 00:00:00 2001
From: AllStarLink 
Date: Thu, 22 Nov 2018 00:40:08 -0800
Subject: [PATCH 16/39] Update README.md

line break/formatting
---
 README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.md b/README.md
index 7f68857d..cdf04220 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,7 @@ AllStarLink Network/System status:  https://grafana.allstarlink.org
 Asterisk 1.4.23pre is copyright Digium (https://www.digium.com)
 
 app_rpt and associated programs (app_rpt suite) are copyright Jim Dixon, WB6NIL; AllStarLink, Inc.; and contributors
+
 _(Refer to each individual's file source code for full copyright information)_
 
 ## License

From 464b79cbd1d263729a1017e20dd9ed457abb969f Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Thu, 22 Nov 2018 08:53:10 -0800
Subject: [PATCH 17/39] Update README.md

Minor update -added section called contributing.
---
 README.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/README.md b/README.md
index cdf04220..e3251b68 100644
--- a/README.md
+++ b/README.md
@@ -63,3 +63,9 @@ If all goes well, you will have cloned, configured, compiled and installed the A
 ## Help
 
 Refer to the app_rpt-users mailing list and AllStarLink Wiki for information on the app_rpt suite of programs.
+
+---------------------------------------------------------------------------------------------------------------------------------
+
+## Contributing
+
+Please refer to the [Contributing](https://wiki.allstarlink.org/wiki/Contributing) page on the AllStarLink Wiki.

From 99bf31e59ba1127ed422ed9345d84d912ad80301 Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Thu, 22 Nov 2018 09:46:04 -0800
Subject: [PATCH 18/39] Update LICENSE

Updated LICENSE to show ASL Inc copyright and info as well as ensure that the Asterisk LICENSE file info is available at the top level.
---
 LICENSE | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 75 insertions(+), 1 deletion(-)

diff --git a/LICENSE b/LICENSE
index e38f43f3..a2c55935 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,5 @@
 Copyright (C) 2010 Stephen A. Rodgers
+Copyright (C) 2018 AllStarLink, Inc.
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -14,9 +15,82 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
-
+AllStarLink, Inc.
+https://wiki.allstarlink.org
+
 
 Stephen A. Rodgers
 4341 Miriam Pl.
 La Mesa CA 91941 USA
+
+
+-----------------------------
+
+Asterisk is distributed under the GNU General Public License version 2
+and is also available under alternative licenses negotiated directly
+with Digium, Inc. If you obtained Asterisk under the GPL, then the GPL
+applies to all loadable Asterisk modules used on your system as well,
+except as defined below. The GPL (version 2) is included in this
+source tree in the file COPYING.
+
+This package also includes various components that are not part of
+Asterisk itself; these components are in the 'contrib' directory
+and its subdirectories. Most of these components are also
+distributed under the GPL version 2 as well, except for the following:
+
+contrib/firmware/iax/iaxy.bin:
+	This file is Copyright (C) Digium, Inc. and is licensed for
+	use with Digium IAXy hardware devices only. It can be
+	distributed freely as long as the distribution is in the
+	original form present in this package (not reformatted or
+	modified).
+
+Digium, Inc. (formerly Linux Support Services) holds copyright
+and/or sufficient licenses to all components of the Asterisk
+package, and therefore can grant, at its sole discretion, the ability
+for companies, individuals, or organizations to create proprietary or
+Open Source (even if not GPL) modules which may be dynamically linked at
+runtime with the portions of Asterisk which fall under our
+copyright/license umbrella, or are distributed under more flexible
+licenses than GPL.
+
+If you wish to use our code in other GPL programs, don't worry --
+there is no requirement that you provide the same exception in your
+GPL'd products (although if you've written a module for Asterisk we
+would strongly encourage you to make the same exception that we do).
+
+Specific permission is also granted to link Asterisk with OpenSSL, OpenH323
+and/or the UW IMAP Toolkit and distribute the resulting binary files.
+
+In addition, Asterisk implements two management/control protocols: the
+Asterisk Manager Interface (AMI) and the Asterisk Gateway Interface
+(AGI). It is our belief that applications using these protocols to
+manage or control an Asterisk instance do not have to be licensed
+under the GPL or a compatible license, as we believe these protocols
+do not create a 'derivative work' as referred to in the GPL. However,
+should any court or other judiciary body find that these protocols do
+fall under the terms of the GPL, then we hereby grant you a license to
+use these protocols in combination with Asterisk in external
+applications licensed under any license you wish.
+
+The 'Asterisk' name and logos are trademarks owned by Digium, Inc.,
+and use of them is subject to our trademark licensing policies. If you
+wish to use these trademarks for purposes other than simple
+redistribution of Asterisk source code obtained from Digium, you
+should contact our licensing department to determine the necessary
+steps you must take. For more information on this policy, please read
+http://www.digium.com/en/company/profile/trademarkpolicy.php
+
+If you have any questions regarding our licensing policy, please
+contact us:
+
++1.877.344.4861 (via telephone in the USA)
++1.256.428.6000 (via telephone outside the USA)
++1.256.864.0464 (via FAX inside or outside the USA)
+IAX2/pbx.digium.com (via IAX2)
+licensing@digium.com (via email)
 
+Digium, Inc.
+445 Jan Davis Drive
+Huntsville, AL  35806
+USA

From f5c60661c55811cd045e32e35d10d2f76588ca11 Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Thu, 30 Apr 2020 13:51:10 -0700
Subject: [PATCH 19/39] Create stale.yml

---
 .github/stale.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 .github/stale.yml

diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 00000000..c9418f67
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,17 @@
+# Number of days of inactivity before an issue becomes stale
+daysUntilStale: 90
+# Number of days of inactivity before a stale issue is closed
+daysUntilClose: 14
+# Issues with these labels will never be considered stale
+exemptLabels:
+  - pinned
+  - security
+# Label to use when marking an issue as stale
+staleLabel: wontfix
+# Comment to post when marking an issue as stale. Set to `false` to disable
+markComment: >
+  This issue has been automatically marked as stale because it has not had
+  recent activity. It will be closed if no further activity occurs. Thank you
+  for your contributions.
+# Comment to post when closing a stale issue. Set to `false` to disable
+closeComment: false

From 1670347117306962e608f06a95585ea3df102d68 Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Thu, 30 Apr 2020 15:40:58 -0700
Subject: [PATCH 20/39] Update stale.yml

Updated label used
---
 .github/stale.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/stale.yml b/.github/stale.yml
index c9418f67..d2f2c284 100644
--- a/.github/stale.yml
+++ b/.github/stale.yml
@@ -7,7 +7,7 @@ exemptLabels:
   - pinned
   - security
 # Label to use when marking an issue as stale
-staleLabel: wontfix
+staleLabel: stale
 # Comment to post when marking an issue as stale. Set to `false` to disable
 markComment: >
   This issue has been automatically marked as stale because it has not had

From 7e725f95c83a445530d84bbf4e4698e5ec3573a8 Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Fri, 1 May 2020 10:41:03 -0700
Subject: [PATCH 21/39] Update issue templates

---
 .github/ISSUE_TEMPLATE/bug_report.md | 50 ++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..9c0b63d8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,50 @@
+---
+name: Bug report
+about: Use this only to report bugs.  Do not submit feature requests using this template.
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+# Expected Behavior
+
+Please describe the behavior you are expecting
+
+# Current Behavior
+
+What is the current behavior?
+
+# Failure Information (for bugs)
+
+Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
+
+## Steps to Reproduce
+
+Please provide detailed steps for reproducing the issue.
+
+1. step 1
+2. step 2
+3. you get it...
+
+## Context
+
+Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
+
+* Distribution (DIAL, ASL 1.01, etc): 
+* Operating System:
+* Kernel version in use: 
+* DAHDI version in use: 
+* Hardware:
+   * Is this a SBC (Raspberry PI, etc)?  If so what model: 
+   * USB sound cards used (Model/Chipset/etc): 
+   * Number of RTCMs in use:
+   * Other hardware in use: 
+
+## Configuration files (with sensitive information removed) ##
+
+Please include your rpt.conf and other configuration files for asterisk that are relevant to the bug you have encountered.   Make sure you remove passwords and other sensitive information first.
+
+## Failure Logs
+
+Please include any relevant log snippets or files here.  You can also include any core dumps well via the ASL ticket system at https://rt.allstarlink.org.

From 67da3330eef36de76495889d632d4acf2e629ebc Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Fri, 1 May 2020 10:58:14 -0700
Subject: [PATCH 22/39] Create PULL_REQUEST_TEMPLATE.md

---
 .../PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 .github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md

diff --git a/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..7b8a0fd2
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,14 @@
+### Description
+Please explain the changes you made here.
+
+### Checklist
+- [ ] Pull submitted to correct branch of repository (develop)
+- [ ] Code compiles correctly
+- [ ] Information on how to compile code included
+- [ ] Created tests which fail without the change (if possible)
+- [ ] All tests passing
+- [ ] Any tests done are included along with their resuts (pass or fail)
+- [ ] Extended/created the README / documentation, if necessary
+- [ ] Added myself / the copyright holder to the AUTHORS file
+- [ ] Developers Certificate of Origin (DCO) included
+

From abb08de25e6098db695e97defdc281c678d6061f Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Mon, 11 May 2020 23:15:00 -0700
Subject: [PATCH 23/39] ASL version 1.02 - Refer to CHANGELOG.md for listing of
 changes made.  Includes telemetry ducking code ported into app_rpt.c from
 DVSWITCH version of app_rpt.c

Signed-off-by: Stacy Olivas 
---
 .gitignore                                    |    1 +
 AUTHORS.md                                    |  119 +
 CHANGELOG.md                                  |  230 +
 CONTRIBUTORS.md                               |   10 +
 asterisk/allstar/mdc_encode.c                 |    2 +-
 .../notch => asterisk/allstar}/rpt_notch.c    |    0
 asterisk/apps/app_gps.c                       |   56 +-
 asterisk/apps/app_rpt.c                       | 2764 ++++++++----
 asterisk/channels/chan_beagle.c               |   57 +-
 asterisk/channels/chan_echolink.c             |   58 +-
 asterisk/channels/chan_pi.c                   |   57 +-
 asterisk/channels/chan_simpleusb.c            |  315 +-
 asterisk/channels/chan_tlb.c                  |   55 +-
 asterisk/channels/chan_usbradio.c             |  226 +-
 asterisk/channels/chan_usrp.c                 |   79 +-
 asterisk/channels/chan_usrp.h                 |   45 +-
 asterisk/channels/chan_voter.c                |   55 +-
 asterisk/channels/chan_voter.c-pre-redundancy | 3716 -----------------
 changelog                                     |   65 -
 19 files changed, 3163 insertions(+), 4747 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 AUTHORS.md
 create mode 100644 CHANGELOG.md
 create mode 100644 CONTRIBUTORS.md
 rename {allstar/extras/notch => asterisk/allstar}/rpt_notch.c (100%)
 delete mode 100644 asterisk/channels/chan_voter.c-pre-redundancy
 delete mode 100644 changelog

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..b25c15b8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*~
diff --git a/AUTHORS.md b/AUTHORS.md
new file mode 100644
index 00000000..0c610b78
--- /dev/null
+++ b/AUTHORS.md
@@ -0,0 +1,119 @@
+This is the official list of AllStar authors for copyright/atttribution purposes.
+
+This file is distinct from the CONTRIBUTORS files.
+See the latter for an explanation.
+
+Names should be added to this file under the respective file/module as (note email is optional here. If it
+is not listed then it should be included in the header of the corresponding file.)
+ 
+Stacy Olivas, KG7QIN  - Updated app_rpt.c to version 0.340.  See CHANGESLOG.md for information on changes
+
+----
+
+AllStar is based upon the Asterisk Open Source PBX software by Digium.
+
+ASL 1.01 and later are based upon Asterisk 1.4.23 which has the following license/copyright:
+
+  /*
+   * Asterisk -- An open source telephony toolkit.
+   *
+   * Copyright (C) 1999 - 2005, Digium, Inc.
+   *
+   * Mark Spencer 
+   *
+   * See http://www.asterisk.org for more information about
+   * the Asterisk project. Please do not directly contact
+   * any of the maintainers of this project for assistance;
+   * the project provides a web site, mailing lists and IRC
+   * channels for your use.
+   *
+   * This program is free software, distributed under the terms of
+   * the GNU General Public License Version 2. See the LICENSE file
+   * at the top of the source tree.
+   */
+
+Note:  AllStarLink, Inc was assigned Jim Dixon, WB6NIL's copyright by his remaining heir.
+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+Here is an inevitably incomplete list of AUTHORS for the various pieces of AllStar software
+that have submitted patches or code that has been included in the listed modules.  
+
+By virtue of the GNU General Public License (GPL) they hold copyrights to the code
+that has been added to the modules listed unless otherwise indicated.
+
+In many case the individuals listed have made too numerous of contributions to list here.
+Refer to the change log on github to find a detailed listing of their contributions. 
+
+Additionally, you may refer to the file CHANGES for a list of changes that have been made
+between each version of app_rpt.c released.
+
+----
+
+* app_rpt.c:
+ 
+Jim Dixon, WB6NIL - Original author
+Steve Rodgers, WA6ZFT - Major contributor to program development
+Steve Heinke, W9SH - Major contributor to program development
+Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release
+Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release
+Adam Paulm KC1KCC - Ported ducking code over from XIPAR release of app_rpt.c
+Stacy Olivas, KG7QIN - bumped version to 0.340.  See CHANGELOG.md for complete list for changes.
+
+* app_gps.c:
+
+Jim Dixon, WB6NIL - Original author
+
+* chan_beagle.c:
+
+Jim Dixon, WB6NIL - Original author
+Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release
+Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release
+
+* chan_echolink.c:
+
+Scott Lawson, KI4LKF - Original author
+
+* chan_pi.c:
+
+Jim Dixon, WB6NIL - Original author
+Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release
+Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release
+
+* chan_simpleusb.c:
+
+Jim Dixon, WB6NIL - Original author
+Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release
+Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release
+Stacy Olivas, KG7QIN - CM119B fixes, options to override detected (force) chip type
+
+* chan_tlb.c:
+
+Scott Lawson, KI4LKF - Original author (copyright)
+Jim Dixon, Wb6NIL - Author credits in source
+
+* chan_usbradio.c:
+
+Jim Dixon, WB6NIL - Original author
+Steve Henke, W9SH - Major contributions and included xpmr routines from XELATEC, LLC's Xipar release.
+Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release
+Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release
+Stacy Olivas, KG7QIN - CM119B fixes 
+
+* chan_usrp.c:
+
+Max Parke, KA1RBI - Original author (copyright)
+Jim Dixon, WB6NIL - Author credits in source
+Michael Zingman, N4IRR - Added text support
+
+* chan_voter.c:
+
+Jim Dixon, WB6NIL - Original author
+Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release
+Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release
+
+* asl-menu
+
+Nathan Hardman, N8THN - Original author
+
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..27812c79
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,230 @@
+# CHANGELOG.md
+
+The following file will serve as a record to explain the changes that have been made to the app_rpt and related
+programs for the AllStar software. 
+
+Released versions will correspond to ASL releases (e.g, ASL 1.02, etc.) and be lised below their respective sections.
+
+Any changes/updates that hapen after a release will be listed under the Unreleased section.  Once a new release is made and those changes are merged in, they will be moved under the corresponding release header.
+
+## Unreleased
+
+No unrelesaed changes at this time.
+
+##### Housekeeping
+##### Internal code additions/modifications
+##### Config file additions/modifications
+
+
+## Released
+
+### ASL 1.02 - 05/11/2020
+
+#### app_rpt - v0.340 - 05/11/2020
+
+##### Housekeeping
+
+Cleaned up compile time warnings for app_rpt.c  These warnings have been around for a very long time and needed to be fixed.
+
+
+##### Asterisk CLI additions/modifications
+
+1.  Added rpt utils command with the following functions:
+
+    a.  sayip   - will use a version of LOCALPLAY that says the local IP address for the interface specified (if found).  By default will play on all nodes if no  is specified.  Use 0 to turn off audio playback and just print IP address only.
+
+    b.   pubip  - like sayip but will query a remote site (default:  ifconfig.me/ip) to find out public IP address.  By default will play on all nodes if no  is specified.  Use 0 to turn off audio playback and just print IP address only.
+
+2.  Added rpt globals command with the following functions:
+
+    a.  show - shows the settings from [globals] from rpt.conf stanza
+
+    b.  set - allows setting of items from [globals] from rpt.conf stanza
+
+      * maxlinks - change between 32 and 256.  If conslock > 0 cannot be set.
+      * notchfilter - 0 = off/ 1=on
+      * mdcencode - 0=off/ 1=on
+      * mdcdecode - 0=off/ 1=on
+      * localchannels - 0=off/ 1=on.  If conslock >0 cannot be set.
+      * fakeserial - 0=off/ 1=on
+      * noremotemdc - 0=off/ 1=on
+      * nocdrpost - 0=off/ 1=on.  If conslost >0 cannot be set.
+      * mdcsay - 0=off/ 1=on
+      * linkclip - 0=off/ 1=on
+      * zoption - 0=off/ 1=on
+      *  alttune - 0=off/ 1=on
+      * linkdtmf - 0=off/ 1=on
+      * setic706ctcss - 0=off/ 1=on
+      * dtmftimeout - 3 to 100
+
+    c.  list - displays a listing of variables that can be manipulated using set
+
+
+##### Internal code additions/modifications
+
+1.  Added libcurl support.   Basic routines from func_curl.c for this feature.
+
+2.  Curl user agent will include app_rpt vX.Y if version # present in tdesc var.  It will also include the Linux version from /proc/version
+	asterisk-libcurl-agent/1.0 (app_rpt v0.340)(Linux version 4.9.0-8-amd64) or
+	asterisk-libcurl-agent/1.0 (-)(Linux version 4.9.0-8-amd64) if version isn’t present in tdesc. 
+
+3.  Added ALPHANUM_LOCAL to rpt telemetry state machine as a function.  ARB_ALPHA says (plays) alpha numeric strings over both local and remote audio on nodes (as well as sending telemetry data). ALPHANUM_LOCAL will say (play) whatever is passed just locally on nodes similar to what LOCALPLAY does without passing any telemetry.  Used by rpt utils [sayip|pubip] functions.
+
+4.  Replaced conditional compilation of certain code with run time configurable ability to change or turn on/off options/code in app_rpt.  Configured via [globals] section in rpt.conf and using rpt globals on CLI.
+
+    a.  maxlinks - change between 32 and 256.  Changes number of linked nodes enumerated/reported in telemetry status.  If conslock > 0 cannot be changed (set) via CLI.
+
+    b.  notchfilter - 0 = off/ 1=on.   Turns notch filter on/off.
+
+    c.  mdcencode - 0=off/ 1=on.  Turns mdeencode on/off.
+
+    d.  mdcdecode - 0=off/ 1=on.  Turns mdedecode on/off.
+
+    e.  localchannels - 0=off/ 1=on.  If conslock >0 cannot be changed (set) via CLI.  Turns the local channel type on/off.
+
+    f.  fakeserial - 0=off/ 1=on.  Turns fakeserial (prints to console) on/off.
+
+
+    g.  noremotemdc - 0=off/ 1=on.  Turns on/off remotemdc code.
+
+    h.  nocdrpost - 0=off/ 1=on.  If conslock >0 cannot be changed (set) via CLI..  Turns CDR posting on/off.
+
+    i.  mdcsay - 0=off/ 1=on. Turns mdcsay on/off.
+
+    j.  linkclip - 0=off/ 1=on.  Turns linkclip on/off.
+
+    k.  zoption - 0=off/ 1=on.  Enabled/disabled Z option in app_rpt.
+
+    l.  alttune - 0=off/ 1=on.  Turns “alternate tune” function on/off.
+
+    m.  linkdtmf - 0=off/ 1=on.  Turns linkdtmf on/off.
+
+    n.  setic706ctcss - 0=off/ 1=on.  Turns CTCSS code for IC706 on/off.
+
+    o.  dtmftimeout - 3 to ????.  Changes DTMF timeout.
+
+5.  Changed how statpost reporting works.
+
+    a.  Can be globally disabled for all nodes (statpost=0 in globals)
+
+    b.  Can be set to use ASL stat server only (statpost=1 in globals - default)
+
+    c.  Can be use to use custom statpost server URL (statpost=2 and statpost_url is set in globals)
+
+    d.  Can be diabled for a single node (statpost_override=0 in node stanza)
+
+    e.  Can be disabled globally (statpost=0 in globals) and enabled per node with statpost_override=1, statpost_custom=1, and statpost_url set in each node’s stanza.
+
+   f.  By default does not report nodes under 2000 (private nodes) unless three conditions are met (statpost_url for node, statpost_override=128, statpost_custom=2 -- this is a per node setting in the node stanzas)
+
+6.  Porting of DVSWITCH telemetry ducking port done by N4IRR and KC1KCC from the now defunct XiPAR release.  (https://github.com/AllStarLink/Asterisk/pull/53)
+
+7.  Added three additional status commands for IP address reporting using DTMF tones over the air.
+
+    a.  status,20 = Say remote (public) IP (global)
+
+    b.  status,21 = Say remote (public) IP (local only)
+
+    c.  status,22 = Say local network interface IP (local only)
+
+8.  Replaced dependency on WGET in statpost with libcurl.  This eliminates the need to constantly fork a new copy of wget for each and every stats update.
+
+9.  Fixed old issue with how PLAYBACK and LOCALPLAY work.  Per the app_rpt.c code, LOCALPLAY is supposed to play audio locally while PLAYBACK plays it globally. This was swapped, and use of LOCALPLAY ended up playing back audio globally.  LOCALPLAY is once again only for playing audio locally, while PLAYBACK plays it globally.
+
+10. Set alignment of structures used in app_rpt.c to improve performance and memory utilization.
+
+
+##### Config file additions/modifications
+
+* /etc/asterisk/rpt.conf additions/changes/modifications
+
+1.  Added [globals] stanza.
+
+2.  Added the following config items to the [globals] stanza:
+
+    a.  conslock - console lock for updating .  0=off (default), 1=lock maxlinks, nocdrpost, and localchannels, 2=lock all
+
+    b.  maxlinks - changes MAXSTATLINKS.  Default is 32.  Max is 256.
+
+    c.  notchfilter - 0 = off/ 1=on.   Turns notch filter on/off.  Default=0
+
+    d.  mdcencode - 0=off/ 1=on.  Turns mdeencode on/off. Default=0
+
+    e.  mdcdecode - 0=off/ 1=on.  Turns mdedecode on/off. Default=0
+
+    f.  localchannels - 0=off/ 1=on.  If conslock >0 cannot be set.  Turns the local channel type on/off. Default=1
+
+    g.  fakeserial - 0=off/ 1=on.  Turns fakeserial (prints to console) on/off. Default=0
+
+    h.  noremotemdc - 0=off/ 1=on.  Turns on/off remotemdc code. Don't notify MDC1200 on remote bases.  Default=1
+
+    i.  nocdrpost - 0=off/ 1=on.  If conslost >0 cannot be set..  Turns CDR posting on/off. Default=1
+
+    j.  mdcsay - 0=off/ 1=on. Turns mdcsay on/off. MDC say when doing CT off - only works when MDC decode is enabled. Default=0
+
+    k.  linkclip - 0=off/ 1=on.  Turns linkclip on/off. Code that causes clipping of first syllable on link. Default=0
+
+    l.  zoption - 0=off/ 1=on.  Enabled/disabled Z option in app_rpt. Default=0
+
+    m.  alttune - 0=off/ 1=on.  Turns “alternate tune” function on/off. Default=0
+
+    n.  linkdtmf - 0=off/ 1=on.  Turns linkdtmf on/off. Extra link DTMF code. Default=0
+
+    o.  setic706ctcss - 0=off/ 1=on.  Turns CTCSS code for IC706 on/off. Set IC706 CTCSS TX/RX Frequencies. Default=0
+
+    p.  dtmftimeout - 3 to ????.  Changes DTMF timeout.  Default=3
+
+    q.  remoteip_url - URL for fetching remote IP in rpt utils pubip (default:  http://ifconfig.me/ip)
+
+    r.  statpost_url - Global statpost URL (default http://stats.allstarlink.org/uhandler.php)
+
+    s.  statpost - Global control us turning update of stats via statpost_url on/off.  0=off, 1=Use AllStarLink (uses default and ignores statpost_url change), 2=use custom (statpost_url must be set)
+
+3.  The following are changes to the individual node stanza configs:
+
+    a.  Removed statpost_program.  Deprecated and removed due to use of libcurl now for stats reporting and [globals] section config options.
+
+    b.  Individual node reporting can be disabled by setting statpost_override=0.
+
+    c.  When global statpost reporting is disabled, individual node reporting can be enabled by setting statpost_override=1.
+
+    d.  Changed individual node use of statpost_url.  All nodes will use the statpost_url defined in the [globals] section uless statpost_custom is set to 1.  Then the individual nodes can specify their own unique statport_url for use.
+
+    e.  By default, nodes below 2000 (private nodes) will no longer be able to send updates to the statpost_url.  This behavior can be overridden on a per node basis by setting statpost_custom=2,statpost_override=128, and specifying a statpost_url.
+
+
+#### chan_simpleusb.c - 05/11/2020
+
+##### Housekeeping
+
+Removed exta mutex unlock from code.
+
+
+##### Internal code additions/modifications
+
+Fixed audio support for CM119B chips.
+
+
+##### Config file additions/modifications
+
+1.  Added ctype option for device selection of audio. 0=auto; 1=C108; 2=C108AH; 3=N1KDO; 4=C119/C119A; 5=C119B.
+
+2.  Added forceinit option to force USB device to attemp initilization. 0=off, 1=on. Must be used with ctype!
+
+
+#### chan_usbradio.c - 05/11/2020
+
+##### Housekeeping
+
+N/A
+
+
+##### Internal code additions/modifications
+
+Fixed support for audio with CM119B.
+
+
+##### Config file additions/modifications
+
+N/A
+
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
new file mode 100644
index 00000000..d58446b0
--- /dev/null
+++ b/CONTRIBUTORS.md
@@ -0,0 +1,10 @@
+AllStar Contributors (sorted alphabetically)
+============================================
+The following is a list of known contributors to the app_rpt programs that make up the AllStar software.
+This list is very likley incomplete.
+----
+See AUTHORS for listing of known authors/copyright holders
+----
+
+**[Full contributors list][https://github.com/AllStarLink/Asterisk/graphs/contributors]**
+
diff --git a/asterisk/allstar/mdc_encode.c b/asterisk/allstar/mdc_encode.c
index 706a5403..ebe4caa1 100644
--- a/asterisk/allstar/mdc_encode.c
+++ b/asterisk/allstar/mdc_encode.c
@@ -247,7 +247,7 @@ static unsigned char * _enc_str(unsigned char *data)
 }
 
 int mdc_encoder_set_packet(mdc_encoder_t *encoder,
-                           unsigned char op,
+                           unsigned short op,
 			   unsigned char arg,
 			   unsigned short unitID)
 {
diff --git a/allstar/extras/notch/rpt_notch.c b/asterisk/allstar/rpt_notch.c
similarity index 100%
rename from allstar/extras/notch/rpt_notch.c
rename to asterisk/allstar/rpt_notch.c
diff --git a/asterisk/apps/app_gps.c b/asterisk/apps/app_gps.c
index b2f44c3e..d4101ae3 100644
--- a/asterisk/apps/app_gps.c
+++ b/asterisk/apps/app_gps.c
@@ -1,21 +1,45 @@
 /* #define	OLD_ASTERISK */
 /*
- * Asterisk -- An open source telephony toolkit.
+ * app_gps.c - based upon Asterisk -- An open source telephony toolkit.
  *
- * Copyright (C) 1999 - 2006, Digium, Inc.
+ * Copyright (C) 2010-2017, Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 AllStarLink, Inc. and contributors
  *
- * Copyright (C) 2010, Jim Dixon/WB6NIL
- * Jim Dixon, WB6NIL 
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2006, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
  */
 
 /*! \file
@@ -131,7 +155,6 @@ z - WinAPRS
 | - reserved (Stream Switch)
 } - diamond 
 ~ - reserved (Stream Switch)
-
 */
 
 #include "asterisk.h"
@@ -156,6 +179,7 @@ z - WinAPRS
 #include 
 #include 
 #include 
+#include 
 
 #include "asterisk/lock.h"
 #include "asterisk/channel.h"
@@ -169,6 +193,14 @@ z - WinAPRS
 #include "asterisk/translate.h"
 #include "asterisk/cli.h"
 
+/*
+ * Please change this revision number when you make a edit
+ * use the simple format YYMMDD (better for sort)
+*/
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision 200511")
+// ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
+
 #ifdef OLD_ASTERISK
 #define ast_free free
 #define ast_malloc malloc
diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c
index cf02208e..38586540 100644
--- a/asterisk/apps/app_rpt.c
+++ b/asterisk/apps/app_rpt.c
@@ -1,20 +1,45 @@
 /*
- * Asterisk -- An open source telephony toolkit.
+ * app_rpt.c - based upon Asterisk -- An open source telephony toolkit.
  *
- * Copyright (C) 2002-2014, Jim Dixon, WB6NIL
+ * Copyright (C) 2002-2017, Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
+ * Copyright (C) 2018-2020 Stacy Olivas, KG7QIN and contributors 
  *
- * Jim Dixon, WB6NIL 
- * Serious contributions by Steve RoDgers, WA6ZFT 
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
+ *
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2006, Digium, Inc.
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
  *
  * -------------------------------------
  * Notes on app_rpt.c
@@ -45,7 +70,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program
- *  version 0.330 01/12/2018
+ *  version 0.340 05/11/2020
  *
  * \author Jim Dixon, WB6NIL 
  *
@@ -53,6 +78,11 @@
  * \note contributions by Steven Henke, W9SH, 
  * \note contributions by Mike Zingman, N4IRR
  * \note contributions by Steve Zingman, N4IRS
+ * \note contributions by Stacy Olivas, KG7QIN
+ * 
+ * \note Allison ducking code by W9SH
+ * \note ported by Adam Paul, KC1KCC
+ * \note ported by Michael Zingman, N4IRR
  *
  * See http://www.zapatatelephony.org/app_rpt.html
  *
@@ -86,6 +116,10 @@
  *  5 - Last (dtmf) user
  *  11 - Force ID (local only)
  *  12 - Give Time of Day (local only)
+ *  20 - 
+ *  21 - 
+ *  22 -
+ *  99 - 
  *
  * cop (control operator) cmds:
  *
@@ -280,7 +314,8 @@
 
 /*** MODULEINFO
 	tonezone
-	no
+	curl
+	yes
  ***/
 
 /* maximum digits in DTMF buffer, and seconds after * for DTMF command timeout */
@@ -297,7 +332,7 @@
 #define	KEYTIMERTIME 250
 #define	MACROTIME 100
 #define	MACROPTIME 500
-#define	DTMF_TIMEOUT 3
+#define	DEFAULT_DTMF_TIMEOUT 3
 #define	KENWOOD_RETRIES 5
 #define	TOPKEYN 32
 #define	TOPKEYWAIT 3
@@ -429,13 +464,29 @@
 
 #define	STATPOST_PROGRAM "/usr/bin/wget,-q,--output-document=/dev/null,--no-check-certificate"
 
-#define	ALLOW_LOCAL_CHANNELS
+//Define noop equivalent
+#define noop ((void)0)
+
+//#define	ALLOW_LOCAL_CHANNELS
 
 #define EL_DB_ROOT "echolink"
 
 #define	DEFAULT_LITZ_TIME 3000
 #define	DEFAULT_LITZ_CHAR "0"
 
+#define TELETHREAD_PRI		70
+#define RPTTHREAD_PRI		40
+#define RPTCALLTHREAD_PRI	70
+#define RPTMASTERTHREAD_PRI	40
+#define SCHED_POLICY		SCHED_FIFO
+
+
+/*
+ *  * Defaults for [globals] stanza in rpt.conf
+ */
+#define DEFAULT_MIN_STAT_LINKS 32
+#define DEFAULT_MAX_STAT_LINKS 256
+
 /*
  * DAQ subsystem
  */
@@ -464,7 +515,8 @@ enum{ID,PROC,TERM,COMPLETE,UNKEY,REMDISC,REMALREADY,REMNOTFOUND,REMGO,
 	REMLONGSTATUS, LOGINREQ, SCAN, SCANSTAT, TUNE, SETREMOTE, TOPKEY,
 	TIMEOUT_WARNING, ACT_TIMEOUT_WARNING, LINKUNKEY, UNAUTHTX, PARROT,
 	STATS_TIME_LOCAL, VARCMD, LOCUNKEY, METER, USEROUT, PAGE,
-	STATS_GPS,STATS_GPS_LEGACY, MDC1200, LASTUSER, REMCOMPLETE, PFXTONE};
+	STATS_GPS,STATS_GPS_LEGACY, MDC1200, LASTUSER, REMCOMPLETE, PFXTONE, 
+	ALPHANUM_LOCAL, REMIP, REMIP_LOCAL, SAYIP_LOCAL};
 
 
 enum {REM_SIMPLEX,REM_MINUS,REM_PLUS};
@@ -492,9 +544,7 @@ enum{DAQ_SUB_CUR = 0, DAQ_SUB_MIN, DAQ_SUB_MAX, DAQ_SUB_STMIN, DAQ_SUB_STMAX, DA
 enum{DAQ_PT_INADC = 1, DAQ_PT_INP, DAQ_PT_IN, DAQ_PT_OUT};
 enum{DAQ_TYPE_UCHAMELEON};
 
-
-
-
+#define DEFAULT_TELEMDUCKDB "-9"
 #define	DEFAULT_RPT_TELEMDEFAULT 1
 #define	DEFAULT_RPT_TELEMDYNAMIC 1
 #define	DEFAULT_GUI_LINK_MODE LINKMODE_ON
@@ -530,7 +580,7 @@ enum{DAQ_TYPE_UCHAMELEON};
  * use the simple format YYMMDD (better for sort)
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision 200511")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
@@ -554,6 +604,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
 #include 
 #include 
 #include 
+#include 
+#include 
+#include 
+#include 
 
 #include "asterisk/utils.h"
 #include "asterisk/lock.h"
@@ -576,6 +630,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
 #include "asterisk/astdb.h"
 #include "asterisk/app.h"
 #include "asterisk/indications.h"
+#include "asterisk/acl.h"
+#include "asterisk/threadstorage.h"
 #include 
 
 #ifdef	NEW_ASTERISK
@@ -592,14 +648,14 @@ struct ast_flags config_flags = { CONFIG_FLAG_WITHCOMMENTS };
 
 /* Un-comment the following to include support for notch filters in the
    rx audio stream (using Tony Fisher's mknotch (mkfilter) implementation) */
-/* #include "rpt_notch.c" */
+#include "../allstar/rpt_notch.c"
 
 
-#ifdef	__RPT_NOTCH
+//#ifdef	__RPT_NOTCH
 #define	MAXFILTERS 10
-#endif
+//#endif
 
-#ifdef	_MDC_ENCODE_H_
+//#ifdef	_MDC_ENCODE_H_
 
 #define	MDCGEN_BUFSIZE 2000
 
@@ -610,7 +666,7 @@ struct mdcgen_pvt
 	struct ast_frame f;
 	char buf[(MDCGEN_BUFSIZE * 2) + AST_FRIENDLY_OFFSET];
 	unsigned char cbuf[MDCGEN_BUFSIZE];
-} ;
+} __attribute__((aligned));
 
 struct mdcparams
 {
@@ -618,12 +674,12 @@ struct mdcparams
 	short	UnitID;
 	short	DestID;
 	short	subcode;
-} ;
+} __attribute__((aligned));
 
 static int mdc1200gen(struct ast_channel *chan, char *type, short UnitID, short destID, short subcode);
 static int mdc1200gen_start(struct ast_channel *chan, char *type, short UnitID, short destID, short subcode);
 
-#endif
+//#endif
 
 
 #ifdef	OLD_ASTERISK
@@ -639,7 +695,7 @@ int ast_playtones_start(struct ast_channel *chan, int vol, const char* tonelist,
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.327 11/24/2016";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.340 5/11/2020";
 
 static char *app = "Rpt";
 
@@ -723,7 +779,7 @@ struct rpt_chan_stat
 	unsigned long count;
 	unsigned long largest;
 	struct timeval largest_time;
-};
+} __attribute__((aligned));
 
 char *discstr = "!!DISCONNECT!!";
 char *newkeystr = "!NEWKEY!";
@@ -779,7 +835,6 @@ LOCAL_USER_DECL;
 #define	TOTIME 180000
 #define	IDTIME 300000
 #define	MAXRPTS 500
-#define MAX_STAT_LINKS 32
 #define POLITEID 30000
 #define FUNCTDELAY 1500
 
@@ -791,6 +846,9 @@ LOCAL_USER_DECL;
 #define FT897_SERIAL_DELAY 75000		/* # of usec to wait between some serial commands on FT-897 */
 #define FT100_SERIAL_DELAY 75000		/* # of usec to wait between some serial commands on FT-897 */
 
+static int MAX_STAT_LINKS = DEFAULT_MIN_STAT_LINKS;
+static int DTMF_TIMEOUT = DEFAULT_DTMF_TIMEOUT;
+
 struct vox {
 	float	speech_energy;
 	float	noise_energy;
@@ -799,7 +857,7 @@ struct vox {
 	char	lastvox;
 	int	offdebcnt;
 	int	ondebcnt;
-} ;
+} __attribute__((aligned));
 
 #define	mymax(x,y) ((x > y) ? x : y)
 #define	mymin(x,y) ((x < y) ? x : y)
@@ -809,7 +867,7 @@ struct rpt_topkey
 char	node[TOPKEYMAXSTR];
 int	timesince;
 int	keyed;
-} ;
+} __attribute__((aligned));
 
 struct rpt_xlat
 {
@@ -819,7 +877,7 @@ char	passchars[MAXXLAT];
 int	funcindex;
 int	endindex;
 time_t	lastone;
-} ;
+} __attribute__((aligned));
 
 static time_t	starttime = 0;
 
@@ -897,7 +955,7 @@ struct rpt_link
 #else
 	AST_LIST_HEAD_NOLOCK(, ast_frame) textq;
 #endif
-} ;
+} __attribute__((aligned));
 
 /*
  * Structure used to manage link status
@@ -914,7 +972,7 @@ struct rpt_lstat
 	char	thisconnected;
 	long long	connecttime;
 	struct	rpt_chan_stat chan_stat[NRPTSTAT];
-} ;
+} __attribute__((aligned));
 
 struct rpt_tele
 {
@@ -933,14 +991,14 @@ struct rpt_tele
 	unsigned int parrot;
 	char killed;
 	pthread_t threadid;
-} ;
+} __attribute__((aligned));
 
 struct function_table_tag
 {
 	char action[ACTIONSIZE];
 	int (*function)(struct rpt *myrpt, char *param, char *digitbuf, 
 		int command_source, struct rpt_link *mylink);
-} ;
+} __attribute__((aligned));
 
 /*
  * Structs used in the DAQ code
@@ -951,7 +1009,7 @@ struct daq_tx_entry_tag{
 	char txbuff[32];
 	struct daq_tx_entry_tag *prev;
 	struct daq_tx_entry_tag *next;
-};
+} __attribute__((aligned));
 
 struct daq_pin_entry_tag{
 	int num;
@@ -968,7 +1026,7 @@ struct daq_pin_entry_tag{
 	char alarmargs[64];
 	void (*monexec)(struct daq_pin_entry_tag *);
 	struct daq_pin_entry_tag *next;
-};
+} __attribute__((aligned));
 
 
 struct daq_entry_tag{
@@ -984,12 +1042,12 @@ struct daq_entry_tag{
 	struct daq_tx_entry_tag *txtail;
 	struct daq_pin_entry_tag *pinhead;
 	struct daq_entry_tag *next;
-};
+} __attribute__((aligned));
 
 struct daq_tag{
 	int ndaqs;
 	struct daq_entry_tag *hw;
-};
+} __attribute__((aligned));
 
 
 /* Used to store the morse code patterns */
@@ -998,13 +1056,13 @@ struct morse_bits
 {		  
 	int len;
 	int ddcomb;
-} ;
+} __attribute__((aligned));
 
 struct telem_defaults
 {
 	char name[20];
 	char value[200];
-} ;
+} __attribute__((aligned));
 
 
 struct sysstate
@@ -1018,7 +1076,7 @@ struct sysstate
 	char alternatetail;
 	char noincomingconns;
 	char sleepena;
-};
+} __attribute__((aligned));
 
 /* rpt cmd support */
 #define CMD_DEPTH 1
@@ -1034,9 +1092,9 @@ struct rpt_cmd_struct
     char param[MAXDTMF];
     char digits[MAXDTMF];
     int command_source;
-};
+} __attribute__((aligned));
 
-typedef struct {
+typedef struct  __attribute__((aligned)) {
 	int v2;
 	int v3;
 	int chunky;
@@ -1044,7 +1102,7 @@ typedef struct {
 	int samples;
 } goertzel_state_t;
 
-typedef struct {
+typedef struct __attribute__((aligned)) {
 	int value;
 	int power;
 } goertzel_result_t;
@@ -1065,7 +1123,7 @@ typedef struct
 	int hit_count;		/* How many successive blocks we consider tone present */
 	int last_hit;		/* Indicates if the last processed block was a hit */
 
-} tone_detect_state_t;
+}  __attribute__((aligned)) tone_detect_state_t;
 
 /*
  * Populate rpt structure with data
@@ -1089,9 +1147,9 @@ static struct rpt
 	char *remoterig;
 	struct	rpt_chan_stat chan_stat[NRPTSTAT];
 	unsigned int scram;
-#ifdef	_MDC_DECODE_H_
+//#ifdef	_MDC_DECODE_H_
 	mdc_decoder_t *mdc;
-#endif
+//#endif
 
 	struct {
 		char *ourcontext;
@@ -1172,11 +1230,15 @@ static struct rpt
 		char lnkactenable;
 		char *statpost_program;
 		char *statpost_url;
+		int statpost_override;
+		int statpost_custom;
 		char linkmode[10];
 		char linkmodedynamic[10];
 		char *locallist[16];
 		int nlocallist;
 		char ctgroup[16];
+		float telemnomgain;		/*!< \brief nominal gain adjust for telemetry */
+		float telemduckgain;	/*!< \brief duck on busy gain adjust for telemetry */
 		float erxgain;
 		float etxgain;
 		float linkmongain;
@@ -1217,7 +1279,7 @@ static struct rpt
 		char *ldisc[MAX_LSTUFF];
 		int nldisc;
 		char *timezone;
-	} p;
+	} __attribute__((aligned)) p;
 	struct rpt_link links;
 	int unkeytocttimer;
 	time_t lastkeyedtime;
@@ -1254,6 +1316,8 @@ static struct rpt
 	int telemmode;
 	struct ast_channel *rxchannel,*txchannel, *monchannel, *parrotchannel;
 	struct ast_channel *pchannel,*txpchannel, *zaprxchannel, *zaptxchannel;
+	struct ast_channel *telechannel;  	/*!< \brief pseudo channel between telemetry conference and txconf */
+	struct ast_channel *btelechannel;  	/*!< \brief pseudo channel buffer between telemetry conference and txconf */
 	struct ast_channel *voxchannel;
 	struct ast_frame *lastf1,*lastf2;
 	struct rpt_tele tele;
@@ -1265,6 +1329,7 @@ static struct rpt
 	int mustid,tailid;
 	int rptinacttimer;
 	int tailevent;
+	int teleconf;								/*!< \brief telemetry conference id */
 	int telemrefcount;
 	int dtmfidx,rem_dtmfidx;
 	int dailytxtime,dailykerchunks,totalkerchunks,dailykeyups,totalkeyups,timeouts;
@@ -1341,6 +1406,8 @@ static struct rpt
 	char reallykeyed;
 	char dtmfkeyed;
 	char dtmfkeybuf[MAXDTMF];
+	char localteleminhibit;		/*!< \brief local telemetry inhibit */
+	char noduck;				/*!< \brief no ducking of telemetry  */
 	char sleepreq;
 	char sleep;
 	char lastdtmfuser[MAXNODESTR];
@@ -1365,7 +1432,7 @@ static struct rpt
 	AST_LIST_HEAD_NOLOCK(, ast_frame) rxq;
 #endif
 	char txrealkeyed;
-#ifdef	__RPT_NOTCH
+//#ifdef	__RPT_NOTCH
 	struct rptfilter
 	{
 		char	desc[100];
@@ -1379,26 +1446,86 @@ static struct rpt
 		float	const0;
 		float	const1;
 		float	const2;
-	} filters[MAXFILTERS];
-#endif
-#ifdef	_MDC_DECODE_H_
+	} __attribute__((aligned)) filters[MAXFILTERS];
+//#endif
+//#ifdef	_MDC_DECODE_H_
 	unsigned short lastunit;
 	char lastmdc[32];
-#endif
+//#endif
 	struct rpt_cmd_struct cmdAction;
 	struct timeval paging;
 	char deferid;
 	struct timeval lastlinktime;
-} rpt_vars[MAXRPTS];
+} __attribute__((aligned)) rpt_vars[MAXRPTS];
 
 struct nodelog {
-struct nodelog *next;
-struct nodelog *prev;
-time_t	timestamp;
-char archivedir[MAXNODESTR];
-char str[MAXNODESTR * 2];
-} nodelog;
+	struct nodelog *next;
+	struct nodelog *prev;
+	time_t	timestamp;
+	char archivedir[MAXNODESTR];
+	char str[MAXNODESTR * 2];
+}  __attribute__((aligned)) nodelog;
+
+/*
+ * Global config options
+ */
+
+struct rpt_globals_pvt {
+	int conslock;		// Console lock for updating globals via rpt globals command 0=off/1=non sensitive/2=none
+	int notchfilter;	// Notch filter 0=off/1=on
+	int mdc_encode;		// MDC Encoder  0=off/1=on
+	int mdc_decode;		// MDC Decoder	0=off/1=on
+	int localchannels;	// Localchannels 0=off/1=on
+	int fake_serial;	// Fake Serial 0=off/1=on
+	int noremotemdc;	// No remote MDC 0=off/1=on
+	int no_cdr_post;	// No Call Detail Record (CDR) posting 0=off/1=on
+	int mdc_say;		// MDC Say 0=off/1=on
+	int link_clip;		// Link clip 0=off/1=on
+	int z_opt;		// Z option 0=off/1=on
+	int alt_tune;		// Alt TUNE 0=off/1=on
+	int link_dtmf;		// Link DTMF 0=off/1=on
+	int set_ic706_ctcss;	// IC706 CTCSS 0=off/1=on
+	char *remoteip_url;	// URL of remote IP provider
+	char *statpost_url;	// URL to report stats to
+	int statpost;		// Report stats 0=off; 1=AllStarLink, 2=custom
+	char net_if[50];	// Network interface to report in status 22 messages
+} __attribute__((aligned));
+
+#define ASL_STATPOST_URL "http://stats.allstarlink.org/uhandler.php"
+#define	REMOTEIP_URL	 "http://ifconfig.me/ip"
+
+static struct rpt_globals_pvt rpt_globals = {
+	.conslock = 0,	      				/* Console lock off */
+	.notchfilter = 0,     				/* Notch filter off */
+	.mdc_encode = 0,      				/* MDC encode off */
+	.mdc_decode = 0,      				/* MDC decode off */ 
+	.localchannels = 1,   				/* Local channel on */
+	.fake_serial = 0,     				/* Fake serial off */
+	.noremotemdc = 1,     				/* Don't notify MDC1200 on remote bases */
+	.no_cdr_post = 1,     				/* CDR post off */
+	.mdc_say = 0,         				/* MDC say when doing CT off - only works when MDC decode is enabled */
+	.link_clip = 0,       				/* Code that causes clipping of first syllable on link off */
+	.z_opt = 0,           				/* app_rpt Z option off */
+	.alt_tune = 0,        				/* Alternative TUNE option off */
+	.link_dtmf = 0,       				/* Extra link DTMF code off */
+	.set_ic706_ctcss = 0, 				/* Set IC706 CTCSS TX/RX Frequencies off */
+	.remoteip_url = REMOTEIP_URL, 			/* Service to lookup remote (public) ip */
+	.statpost_url = ASL_STATPOST_URL,		/* Default URL is for AllStarLink */
+	.statpost = 1,					/* Report stats default is AlilStarLink */
+	.net_if="ens192",				/* Default network interface to report stats 22 IP addresses on */
+};
+
+struct sysinfo_pvt {
+	char vers[200];
+	char cvers[40];
+} __attribute__((aligned));
+
+static struct sysinfo_pvt sysinfo = { 
+	.vers = "Unknown",
+	.cvers = "Unknown"
+};
 
+/* Declarations for everyting else */
 static int service_scan(struct rpt *myrpt);
 static int set_mode_ft897(struct rpt *myrpt, char newmode);
 static int set_mode_ft100(struct rpt *myrpt, char newmode);
@@ -1411,6 +1538,8 @@ static int channel_revert(struct rpt *myrpt);
 static int channel_steer(struct rpt *myrpt, char *data);
 static void rpt_telemetry(struct rpt *myrpt,int mode, void *data);
 static void rpt_manager_trigger(struct rpt *myrpt, char *event, char *value);
+static char *cfg_stat(int val);
+static void rpt_show_globals(int fd, int i);
 
 AST_MUTEX_DEFINE_STATIC(nodeloglock);
 
@@ -1431,7 +1560,7 @@ struct lockthread
 	int lockcount;
 	int lastlock;
 	int lastunlock;
-} lockthreads[MAXLOCKTHREAD];
+}  __attribute__((aligned)) lockthreads[MAXLOCKTHREAD];
 
 
 struct by_lightning
@@ -1440,7 +1569,7 @@ struct by_lightning
 	struct timeval tv;
 	struct rpt *rpt;
 	struct lockthread lockthread;
-} lock_ring[32];
+}  __attribute__((aligned)) lock_ring[32];
 
 int lock_ring_index = 0;
 
@@ -1602,8 +1731,7 @@ pthread_t id;
 
 #endif  /* APP_RPT_LOCK_DEBUG */
 
-
-#ifdef	_MDC_DECODE_H_
+//#ifdef	_MDC_DECODE_H_
 static const char *my_variable_match(const struct ast_config *config, const char *category, const char *variable)
 {
 	struct ast_variable *v;
@@ -1619,7 +1747,7 @@ static const char *my_variable_match(const struct ast_config *config, const char
 	}
 	return NULL;
 }
-#endif
+//#endif
 
 /* Return 1 if a web transceiver node */
 static int iswebtransceiver(struct  rpt_link *l)
@@ -1860,6 +1988,94 @@ int	ms;
 }
 
 
+/* from func_curl.c -- why recreate the wheel? Plus making sure this works for now */
+struct MemoryStruct {
+        char *memory;
+        size_t size;
+};
+static void *myrealloc(void *ptr, size_t size)
+{
+        /* There might be a realloc() out there that doesn't like reallocing
+           NULL pointers, so we take care of it here */
+        if (ptr)
+                return ast_realloc(ptr, size);
+        else
+                return ast_malloc(size);
+}
+
+static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
+{
+        register int realsize = size * nmemb;
+        struct MemoryStruct *mem = (struct MemoryStruct *)data;
+
+        mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);
+        if (mem->memory) {
+                memcpy(&(mem->memory[mem->size]), ptr, realsize);
+                mem->size += realsize; 
+                mem->memory[mem->size] = 0;
+        }
+        return realsize;
+}
+
+static void curl_instance_cleanup(void *data)
+{
+        CURL **curl = data;
+
+        curl_easy_cleanup(*curl);
+
+        free(data);
+}
+
+AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);
+
+static int curl_internal(struct MemoryStruct *chunk, char *url, char *post)
+{
+	const char crl_agnt[] = "asterisk-libcurl-agent/1.0";
+	char curl_agent_string[50]="";
+        int ret, vmajor, vminor;
+        char *skzy;
+        CURL **curl;
+
+        if (!(curl = ast_threadstorage_get(&curl_instance, sizeof(*curl))))
+                return -1;
+	
+
+        if (!*curl) {
+                if (!(*curl = curl_easy_init()))
+                        return -1;
+
+		skzy = strstr(tdesc, "version");
+		sprintf(curl_agent_string, "%s (-; Linux %s; gcc %s)",crl_agnt,sysinfo.cvers, __VERSION__); 
+                if(skzy) 
+                	if(sscanf(skzy, "version %d.%d", &vmajor, &vminor) == 2) 
+				sprintf(curl_agent_string, "%s (app_rpt v%d.%d; Linux %s; gcc %s)",crl_agnt,vmajor,vminor,sysinfo.cvers, __VERSION__);
+
+		curl_easy_setopt(*curl, CURLOPT_NOSIGNAL, 1);
+
+		curl_easy_setopt(*curl, CURLOPT_TIMEOUT, 30);
+	        curl_easy_setopt(*curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
+	        curl_easy_setopt(*curl, CURLOPT_USERAGENT, curl_agent_string);
+	        curl_easy_setopt(*curl, CURLOPT_SSL_VERIFYHOST, 0);
+        	curl_easy_setopt(*curl, CURLOPT_SSL_VERIFYPEER, 0);
+        }
+
+        curl_easy_setopt(*curl, CURLOPT_URL, url);
+        curl_easy_setopt(*curl, CURLOPT_WRITEDATA, (void *) chunk);
+
+        if (post) {
+                curl_easy_setopt(*curl, CURLOPT_POST, 1);
+                curl_easy_setopt(*curl, CURLOPT_POSTFIELDS, post);
+        }
+
+        ret = curl_easy_perform(*curl);
+
+        if (post)
+                curl_easy_setopt(*curl, CURLOPT_POST, 0);
+
+        return ret ? -1 : 0;
+}
+
+
 /*
 * CLI extensions
 */
@@ -1883,8 +2099,9 @@ static int rpt_do_fun1(int fd, int argc, char *argv[]);
 static int rpt_do_cmd(int fd, int argc, char *argv[]);
 static int rpt_do_setvar(int fd, int argc, char *argv[]);
 static int rpt_do_showvars(int fd, int argc, char *argv[]);
-static int rpt_do_asl(int fd, int argc, char *argv[]);
 static int rpt_do_page(int fd, int argc, char *argv[]);
+static int rpt_do_globals(int fd, int argc, char *argv[]);
+static int rpt_do_utils(int fd, int argc, char *argv[]);
 
 static char debug_usage[] =
 "Usage: rpt debug level {0-7}\n"
@@ -1956,98 +2173,133 @@ static char showvars_usage[] =
 "Usage: rpt showvars \n"
 "       Display all the Asterisk channel variables for a node.\n";
 
-static char asl_usage[] =
-"Usage: asl [Unused value]\n"
-"       Do ASL Stuff\n";
-
 static char page_usage[] =
 "Usage: rpt page    <[ANT]Text....>\n"
 "       Send an page to a user on a node, specifying capcode and type/text\n";
 
+static char globals_usage[] =
+"Usage: rpt globals\n"
+"       Display or modify globally configured options for this system.\n\n"
+"       Examples:\n"
+"         - rpt globals show - to show current settings\n"
+"         - rpt global set   - to change a setting\n"
+"	  - tpy globals list - display list of variables that can be set\n"
+"\n";
+
+static char utils_usage[] =
+"Usage: rpt utils   ... \n"
+"       Execute app_rpt utility function and specified parameters.\n\n"
+"       Examples:\n"
+"         - rpt utils sayip   - says IP address of  over all nodes locally\n"
+"                                                Specify specific node to play over by including \n"
+"	  - rpt utils pubip              - fetches remote ip address from ifconfig.me and says it over\n"
+"                                                all nodes locally.  Specify specific node to play over by\n"
+"                                                including \n\n"
+"						  = 0 to turn off local announcement and display on-screen only\n"
+"\n";
+
 
 #ifndef	NEW_ASTERISK
 
-static struct ast_cli_entry  cli_debug =
-        { { "rpt", "debug", "level" }, rpt_do_debug, 
-		"Enable app_rpt debugging", debug_usage };
+static struct ast_cli_entry cli_rpt[] = {
+	{ { "rpt", "debug", "level", NULL }, 
+	rpt_do_debug, "Enable app_rpt debugging", 
+	debug_usage, NULL, NULL },
+
+        { { "rpt", "dump", NULL }, 
+	rpt_do_dump,"Dump app_rpt structs for debugging", 
+	dump_usage, NULL, NULL },
+
+        { { "rpt", "stats", NULL }, 
+	rpt_do_stats,"Dump node statistics", 
+	dump_stats, NULL, NULL },
 
-static struct ast_cli_entry  cli_dump =
-        { { "rpt", "dump" }, rpt_do_dump,
-		"Dump app_rpt structs for debugging", dump_usage };
+        { { "rpt", "nodes", NULL }, 
+	rpt_do_nodes, "Dump node list", 
+	dump_nodes, NULL, NULL },
 
-static struct ast_cli_entry  cli_stats =
-        { { "rpt", "stats" }, rpt_do_stats,
-		"Dump node statistics", dump_stats };
+        { { "rpt", "xnode", NULL },
+	 rpt_do_xnode, "Dump extended info", 
+	dump_xnode, NULL, NULL },
 
-static struct ast_cli_entry  cli_nodes =
-        { { "rpt", "nodes" }, rpt_do_nodes,
-		"Dump node list", dump_nodes };
+        { { "rpt", "localnodes", NULL },
+	 rpt_do_local_nodes, "Dump list of local node numbers", 
+	usage_local_nodes, NULL, NULL},
 
-static struct ast_cli_entry  cli_xnode =
-        { { "rpt", "xnode" }, rpt_do_xnode,
-		"Dump extended info", dump_xnode };
+        { { "rpt", "lstats", NULL },
+	 rpt_do_lstats, "Dump link statistics", 
+	dump_lstats, NULL, NULL },
 
-static struct ast_cli_entry  cli_local_nodes =
-        { { "rpt", "localnodes" }, rpt_do_local_nodes,
-		"Dump list of local node numbers", usage_local_nodes };
+        { { "rpt", "reload", NULL },
+	 rpt_do_reload,"Reload app_rpt config", 
+	reload_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_lstats =
-        { { "rpt", "lstats" }, rpt_do_lstats,
-		"Dump link statistics", dump_lstats };
+        { { "rpt", "restart", NULL },
+	 rpt_do_restart, "Restart app_rpt", 
+	restart_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_reload =
-        { { "rpt", "reload" }, rpt_do_reload,
-		"Reload app_rpt config", reload_usage };
+        { { "rpt", "playback", NULL }, 
+	rpt_do_playback,"Play Back an Audio File Globally", 
+	playback_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_restart =
-        { { "rpt", "restart" }, rpt_do_restart,
-		"Restart app_rpt", restart_usage };
+        { { "rpt", "localplay", NULL },
+	 rpt_do_localplay, "Play Back an Audio File Locally", 
+	localplay_usage, NULL, NULL },
+	
+        { { "rpt", "sendtext", NULL },
+	 rpt_do_sendtext, "Send a Text message to specific node", 
+	sendtext_usage, NULL, NULL },
+
+        { { "rpt", "sendall", NULL },
+	 rpt_do_sendall, "Send a Text message to all", 
+	sendall_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_playback =
-        { { "rpt", "playback" }, rpt_do_playback,
-		"Play Back an Audio File Globally", playback_usage };
+        { { "rpt", "fun", NULL }, 
+	rpt_do_fun,"Execute a DTMF function", 
+	fun_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_localplay =
-        { { "rpt", "localplay" }, rpt_do_localplay,
-                "Play Back an Audio File Locally", localplay_usage };
+        { { "rpt", "fun1", NULL },
+	 rpt_do_fun1, "Execute a DTMF function", 
+	fun_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_sendtext =
-        { { "rpt", "sendtext" }, rpt_do_sendtext,
-                "Send a Text message to specific node", sendtext_usage };
+        { { "rpt", "cmd", NULL }, 
+	rpt_do_cmd, "Execute a DTMF function", 
+	cmd_usage, NULL, NULL },
 
+        { { "rpt", "setvar", NULL },
+	 rpt_do_setvar, "Set an Asterisk channel variable", 
+	setvar_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_sendall =
-        { { "rpt", "sendall" }, rpt_do_sendall,
-                "Send a Text message to all", sendall_usage };
+        { { "rpt", "showvars", NULL },
+	 rpt_do_showvars,"Display Asterisk channel variables", 
+	showvars_usage, NULL, NULL },
 
+        { { "rpt", "page", NULL }, 
+	rpt_do_page,"Page a user on a node", 
+	page_usage, NULL, NULL },
 
-static struct ast_cli_entry  cli_fun =
-        { { "rpt", "fun" }, rpt_do_fun,
-		"Execute a DTMF function", fun_usage };
+        { { "rpt", "globals", "show", NULL },
+	 rpt_do_globals,"Display or modofy rpt globally configured options", 
+	globals_usage, NULL, NULL},
 
-static struct ast_cli_entry  cli_fun1 =
-        { { "rpt", "fun1" }, rpt_do_fun1,
-		"Execute a DTMF function", fun_usage };
+        { { "rpt", "globals", "set", NULL },
+	 rpt_do_globals,"Display or modofy rpt globally configured options", 
+	globals_usage, NULL, NULL},
 
-static struct ast_cli_entry  cli_cmd =
-        { { "rpt", "cmd" }, rpt_do_cmd,
-		"Execute a DTMF function", cmd_usage };
+        { { "rpt", "globals", "list", NULL },
+	 rpt_do_globals,"Display or modofy rpt globally configured options", 
+	globals_usage, NULL, NULL},
 
-static struct ast_cli_entry  cli_setvar =
-        { { "rpt", "setvar" }, rpt_do_setvar,
-		"Set an Asterisk channel variable", setvar_usage };
+        { { "rpt", "utils", "sayip", NULL }, 
+	rpt_do_utils,"Utility functions in app_rpt", 
+	utils_usage, NULL, NULL},
 
-static struct ast_cli_entry  cli_showvars =
-        { { "rpt", "showvars" }, rpt_do_showvars,
-		"Display Asterisk channel variables", showvars_usage };
+        { { "rpt", "utils", "pubip", NULL }, 
+	rpt_do_utils,"Utility functions in app_rpt", 
+	utils_usage, NULL, NULL},
 
-static struct ast_cli_entry  cli_asl =
-        { { "asl" }, rpt_do_asl,
-               "Do ASL stuff", asl_usage };
 
-static struct ast_cli_entry  cli_page =
-        { { "rpt", "page" }, rpt_do_page,
-		"Page a user on a node", page_usage };
+};
 
 #endif
 
@@ -2293,7 +2545,6 @@ static int setrbi_check(struct rpt *myrpt);
 static int setxpmr(struct rpt *myrpt, int dotx);
 
 
-
 /*
 * Define function protos for function table here
 */
@@ -2557,6 +2808,7 @@ static int uchameleon_thread_start(struct daq_entry_tag *t)
  	*/
 
        	pthread_attr_init(&attr);
+	pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
         pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 	res = ast_pthread_create(&t->threadid,&attr,uchameleon_monitor_thread,(void *) t);
 	if(res){
@@ -2600,7 +2852,7 @@ static int uchameleon_connect(struct daq_entry_tag *t)
         }
 	if(debug >= 3)
         	ast_log(LOG_NOTICE,"count = %d, rxbuf = %s\n",count,rxbuf);
-	if((count != 13)||(strncmp(expect, rxbuf+4, sizeof(expect)))){
+	if((count != 13)||(strncmp(expect, rxbuf+4, sizeof(*expect)))){
 		ast_log(LOG_WARNING, "%s is not a uchameleon device\n", t->name);
 		close(t->fd);
 		t->fd = -1;
@@ -3444,7 +3696,6 @@ static int saynum(struct ast_channel *mychannel, int num);
 static int sayfile(struct ast_channel *mychannel,char *fname);
 static int wait_interval(struct rpt *myrpt, int type, struct ast_channel *chan);
 static void rpt_telem_select(struct rpt *myrpt, int command_source, struct rpt_link *mylink);
-static void rpt_telem_select(struct rpt *myrpt, int command_source, struct rpt_link *mylink);
 
 /*
  * Open a daq device
@@ -3580,7 +3831,7 @@ static int daq_reset_minmax(char *device, int pin, int minmax)
 	struct daq_entry_tag *t;
 	
 	if(!(t = daq_devtoentry(device)))
-		return -1;
+		return res;
 	switch(t->type){
 		case DAQ_TYPE_UCHAMELEON:
 			res = uchameleon_reset_minmax(t, pin, minmax);
@@ -4258,7 +4509,8 @@ int	nonlocals;
         {
                 while(tlist != &myrpt->tele)
 		{
-                        if ((tlist->mode == PLAYBACK) || 
+                        //if ((tlist->mode == PLAYBACK) || 
+                        if ((tlist->mode == LOCALPLAY) || 
 			    (tlist->mode == STATS_GPS_LEGACY) ||
 			      (tlist->mode == ID1) || 
 				(tlist->mode == TEST_TONE)) nonlocals++;
@@ -4292,10 +4544,10 @@ struct	ast_frame *f1;
 static int linkcount(struct rpt *myrpt)
 {
 	struct	rpt_link *l;
-	char *reverse_patch_state;
+	//char *reverse_patch_state;
  	int numoflinks;
 
-	reverse_patch_state = "DOWN";
+	//reverse_patch_state = "DOWN";
 	numoflinks = 0;
 	l = myrpt->links.next;
 	while(l && (l != &myrpt->links)){
@@ -4513,7 +4765,7 @@ char	datestr[100];
 }
 
 /* must be called locked */
-static void do_dtmf_local(struct rpt *myrpt, char c)
+inline static void do_dtmf_local(struct rpt *myrpt, char c)
 {
 int	i;
 char	digit;
@@ -4652,7 +4904,7 @@ static int openserial(struct rpt *myrpt,char *fname)
  * Process DTMF keys passed
  */ 
 
-static void local_dtmfkey_helper(struct rpt *myrpt,char c)
+inline static void local_dtmfkey_helper(struct rpt *myrpt,char c)
 {
 int	i;
 char	*val;
@@ -4717,8 +4969,6 @@ static void mdc1200_notify(struct rpt *myrpt,char *fromnode, char *data)
 	}
 }
 
-#ifdef	_MDC_DECODE_H_
-
 static void mdc1200_send(struct rpt *myrpt, char *data)
 {
 struct rpt_link *l;
@@ -4793,8 +5043,6 @@ static void mdc1200_cmd(struct rpt *myrpt, char *data)
 	return;
 }
 
-#ifdef	_MDC_ENCODE_H_
-
 static void mdc1200_ack_status(struct rpt *myrpt, short UnitID)
 {
 struct	mdcparams *mdcp;
@@ -4805,15 +5053,13 @@ struct	mdcparams *mdcp;
 		ast_log(LOG_ERROR,"Cannot alloc!!\n");
 		return;
 	}
-	memset(mdcp,0,sizeof(mdcp));
+	memset(mdcp,0,sizeof(*mdcp));
 	mdcp->type[0] = 'A';
 	mdcp->UnitID = UnitID;
 	rpt_telemetry(myrpt,MDC1200,(void *)mdcp);
 	return;
 }
 
-#endif
-#endif
 
 /*
  * Translate function
@@ -4864,7 +5110,7 @@ int	gotone;
  * Return a pointer to the first non-whitespace character
  */
 
-static char *eatwhite(char *s)
+inline static char *eatwhite(char *s)
 {
 	while((*s == ' ') || (*s == 0x09)){ /* get rid of any leading white space */
 		if(!*s)
@@ -5028,12 +5274,12 @@ int     i,l,inquo;
 	
 
 
-static int finddelim(char *str, char *strp[], int limit)
+inline static int finddelim(char *str, char *strp[], int limit)
 {
 	return explode_string(str, strp, limit, DELIMCHR, QUOTECHR);
 }
 
-static char *string_toupper(char *str)
+inline static char *string_toupper(char *str)
 {
 int	i;
 
@@ -5478,7 +5724,7 @@ struct ast_var_t *newvariable;
  */
  
 
-static void rpt_update_boolean(struct rpt *myrpt,char *varname, int newval)
+inline static void rpt_update_boolean(struct rpt *myrpt,char *varname, int newval)
 {
 char	buf[10];
 
@@ -5572,42 +5818,98 @@ int	i;
 	return;
 }
 
-
+/*
+ * Send node telemetry status to stats server using libcurl
+ */
 static void statpost(struct rpt *myrpt,char *pairs)
 {
-char *str,*astr;
-char *astrs[100];
-int	n,pid;
+char *str,*astr,*bstr;
+int success = 0;
 time_t	now;
 unsigned int seq;
+struct MemoryStruct chunk = { NULL, 0 };
+AST_DECLARE_APP_ARGS(args,
+	AST_APP_ARG(url);
+	AST_APP_ARG(postdata););
 
-	if (!myrpt->p.statpost_url) return;
-	str = ast_malloc(strlen(pairs) + strlen(myrpt->p.statpost_url) + 200);
-	astr = ast_strdup(myrpt->p.statpost_program);
-	if ((!str) || (!astr)) return;
-	n = finddelim(astr,astrs,100);
-	if (n < 1)
-	{
-		ast_free(str);
-		ast_free(astr);
+	// Turned off globally, no per node override
+	if(rpt_globals.statpost==0 && myrpt->p.statpost_override==0) return;
+
+	// Enabled globally, turned off for this node
+	if(myrpt->p.statpost_override==0) {
+		if(debug >= 128) ast_log(LOG_WARNING,"No statpost reporting for node %s\n\n", myrpt->name);
 		return;
 	}
+
+	// If custom is set, do we have a URL?
+	if(myrpt->p.statpost_custom>0)
+		if (!myrpt->p.statpost_url) 
+		{
+			if(debug >= 128) ast_log(LOG_WARNING,"No statpost for node %s: node statpost_custom is set, node statpost_url is blank\n\n", myrpt->name);
+			return;
+		}
+
+	// Enabled globally, if node is a private node is it enabled using a custom statpost_url for node?
+	if(strtoul(myrpt->name,NULL,10) < 2000) 
+	{
+		if ((myrpt->p.statpost_override==128) && (myrpt->p.statpost_custom==2) && !(!myrpt->p.statpost_url))
+			ast_log(LOG_NOTICE,"Statpost reporting for private node %s\n\n", myrpt->name);
+		else
+			return;
+	}
+
+	// If set, use per node statpost_url or fallback to globally defined statpost_url
+	if(myrpt->p.statpost_custom>0)
+		str = ast_malloc(strlen(pairs) + strlen(myrpt->p.statpost_url) + 200);
+	else
+		str = ast_malloc(strlen(pairs) + strlen(rpt_globals.statpost_url) + 200);
+
 	ast_mutex_lock(&myrpt->statpost_lock);
 	seq = ++myrpt->statpost_seqno;
 	ast_mutex_unlock(&myrpt->statpost_lock);
-	astrs[n++] = str;
-	astrs[n] = NULL;
 	time(&now);
-	sprintf(str,"%s?node=%s&time=%u&seqno=%u",myrpt->p.statpost_url,
-		myrpt->name,(unsigned int) now,seq);
+
+	sprintf(str,"?node=%s&time=%u&seqno=%u",myrpt->name,(unsigned int) now,seq);
+
 	if (pairs) sprintf(str + strlen(str),"&%s",pairs);
-	if (!(pid = fork()))
+
+	if(rpt_globals.statpost==1)
+		astr = ast_strdup(rpt_globals.statpost_url);
+	else
+		astr = ast_strdup(myrpt->p.statpost_url);
+
+	bstr=ast_malloc(strlen(str)+strlen(astr)+200);
+	if(!bstr) {
+		ast_log(LOG_ERROR, "Statpost update failed to allocate memory!\n");
+		return;
+	}
+
+	sprintf(bstr,"%s%s", astr, str);
+
+	AST_STANDARD_APP_ARGS(args, bstr);
+	if(debug >= 64)
+		ast_log(LOG_NOTICE, "Performing statpost update. URL %s  Telem Data: %s\n\n", astr, str);
+
+	if(!curl_internal(&chunk,args.url,args.postdata ))
 	{
-		execv(astrs[0],astrs);
-		ast_log(LOG_ERROR, "exec of %s failed.\n", astrs[0]);
-		perror("asterisk");
-		exit(0);
+		if(chunk.memory)
+		{
+			success=1;
+			chunk.memory[chunk.size] = '\0';
+			if(chunk.memory[chunk.size -1] == 10)
+				chunk.memory[chunk.size -1] = '\0';
+			ast_copy_string(str,chunk.memory,20);
+			ast_free(chunk.memory);
+		}
 	}
+
+	if(!success)
+	{
+		ast_log(LOG_ERROR, "[!] Statpost update failed.\n");
+		ast_log(LOG_ERROR, "[!] URL: %s\n", astr);
+		ast_log(LOG_ERROR, "[!] Telem data: %s\n\n", str);
+	}
+	ast_free(bstr);
 	ast_free(astr);
 	ast_free(str);
 	return;
@@ -5836,7 +6138,7 @@ static struct ast_config *ourcfg;
 * If param is passed in non-null, then it will be set to the first character past the match
 */
 
-static int matchkeyword(char *string, char **param, char *keywords[])
+inline static int matchkeyword(char *string, char **param, char *keywords[])
 {
 int	i,ls;
 	for( i = 0 ; keywords[i] ; i++){
@@ -5862,7 +6164,7 @@ int	i,ls;
 * first non-matching character
 */
 
-static char *skipchars(char *string, char *charlist)
+inline static char *skipchars(char *string, char *charlist)
 {
 int i;	
 	while(*string){
@@ -5880,7 +6182,7 @@ int i;
 					
 
 
-static int myatoi(char *str)
+inline static int myatoi(char *str)
 {
 int	ret;
 
@@ -5890,7 +6192,7 @@ int	ret;
 	return ret;
 }
 
-static int mycompar(const void *a, const void *b)
+inline static int mycompar(const void *a, const void *b)
 {
 char	**x = (char **) a;
 char	**y = (char **) b;
@@ -5901,7 +6203,7 @@ int	xoff,yoff;
 	return(strcmp((*x) + xoff,(*y) + yoff));
 }
 
-static int topcompar(const void *a, const void *b)
+inline static int topcompar(const void *a, const void *b)
 {
 struct rpt_topkey *x = (struct rpt_topkey *) a;
 struct rpt_topkey *y = (struct rpt_topkey *) b;
@@ -5909,10 +6211,8 @@ struct rpt_topkey *y = (struct rpt_topkey *) b;
 	return(x->timesince - y->timesince);
 }
 
-#ifdef	__RPT_NOTCH
-
 /* rpt filter routine */
-static void rpt_filter(struct rpt *myrpt, volatile short *buf, int len)
+inline static void rpt_filter(struct rpt *myrpt, volatile short *buf, int len)
 {
 int	i,j;
 struct	rptfilter *f;
@@ -5933,9 +6233,6 @@ struct	rptfilter *f;
 	}
 }
 
-#endif
-
-
 /*
  Get the time for the machine's time zone
  Note: Asterisk requires a copy of localtime
@@ -5953,7 +6250,7 @@ struct	rptfilter *f;
 */
 
 #ifdef	NEW_ASTERISK
-static void rpt_localtime( time_t *t, struct ast_tm *lt, char *tz)
+inline static void rpt_localtime( time_t *t, struct ast_tm *lt, char *tz)
 {
 struct timeval tv;
 
@@ -5963,7 +6260,7 @@ struct timeval tv;
 
 }
 
-static time_t rpt_mktime(struct ast_tm *tm,char *zone)
+inline static time_t rpt_mktime(struct ast_tm *tm,char *zone)
 {
 struct timeval now;
 
@@ -5974,7 +6271,7 @@ struct timeval now;
 
 #else
 
-static void rpt_localtime( time_t *t, struct tm *lt, char *tz)
+inline static void rpt_localtime( time_t *t, struct tm *lt, char *tz)
 {
 #ifdef OLD_ASTERISK
 	localtime_r(t, lt);
@@ -6040,7 +6337,6 @@ char *strs[100];
 char s1[256];
 static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis","totena","totdis","skena","skdis",
 				"ufena","ufdis","atena","atdis","noice","noicd","slpen","slpds",NULL};
-
 	if (option_verbose > 2)
 		ast_verbose(VERBOSE_PREFIX_3 "%s config for repeater %s\n",
 			(init) ? "Loading initial" : "Re-Loading",rpt_vars[n].name);
@@ -6072,10 +6368,11 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis
 		rpt_vars[n].rpt_thread = AST_PTHREADT_NULL;
 		rpt_vars[n].tailmessagen = 0;
 	}
-#ifdef	__RPT_NOTCH
-	/* zot out filters stuff */
-	memset(&rpt_vars[n].filters,0,sizeof(rpt_vars[n].filters));
-#endif
+	if(rpt_globals.notchfilter)
+	{
+		/* zot out filters stuff */
+		memset(&rpt_vars[n].filters,0,sizeof(rpt_vars[n].filters));
+	}
 	val = (char *) ast_variable_retrieve(cfg,this,"context");
 	if (val) rpt_vars[n].p.ourcontext = val;
 	else rpt_vars[n].p.ourcontext = this;
@@ -6108,11 +6405,23 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis
 	val = (char *) ast_variable_retrieve(cfg,this,"simplexphonedelay");
 	if (val) rpt_vars[n].p.simplexphonedelay = atoi(val);
 		else rpt_vars[n].p.simplexphonedelay = SIMPLEX_PHONE_DELAY;
-	val = (char *) ast_variable_retrieve(cfg,this,"statpost_program");
-	if (val) rpt_vars[n].p.statpost_program = val;
-		else rpt_vars[n].p.statpost_program = STATPOST_PROGRAM;
-	rpt_vars[n].p.statpost_url = 
-		(char *) ast_variable_retrieve(cfg,this,"statpost_url");
+	val = (char *) ast_variable_retrieve(cfg,this,"statpost_custom");
+	if (val) rpt_vars[n].p.statpost_custom = atoi(val);
+		else rpt_vars[n].p.statpost_custom = 0;
+
+	val = (char *) ast_variable_retrieve(cfg,this,"statpost_override");
+	if (val) rpt_vars[n].p.statpost_override = atoi(val);
+		else rpt_vars[n].p.statpost_override = 0;
+
+	if(rpt_vars[n].p.statpost_custom>0) {
+		val = (char *) ast_variable_retrieve(cfg,this,"statpost_url");
+		if (val) rpt_vars[n].p.statpost_url = val;
+			else {
+				rpt_vars[n].p.statpost_custom = 0;
+				ast_log(LOG_ERROR,"statpost_custom set for node %s, statpost_url blank or missing.  Disabling statpost_custom for node.\n\n", rpt_vars[n].name);
+			}
+	}
+
 	rpt_vars[n].p.tailmessagetime = retrieve_astcfgint(&rpt_vars[n],this, "tailmessagetime", 0, 200000000, 0);		
 	rpt_vars[n].p.tailsquashedtime = retrieve_astcfgint(&rpt_vars[n],this, "tailsquashedtime", 0, 200000000, 0);		
 	rpt_vars[n].p.duplex = retrieve_astcfgint(&rpt_vars[n],this,"duplex",0,4,(ISRANGER(rpt_vars[n].name) ? 0 : 2));
@@ -6334,24 +6643,33 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis
 	val = (char *) ast_variable_retrieve(cfg,this,"timezone");
 	rpt_vars[n].p.timezone = val;
 
-#ifdef	__RPT_NOTCH
-	val = (char *) ast_variable_retrieve(cfg,this,"rxnotch");
-	if (val) {
-		i = finddelim(val,strs,MAXFILTERS * 2);
-		i &= ~1; /* force an even number, rounded down */
-		if (i >= 2) for(j = 0; j < i; j += 2)
-		{
-			rpt_mknotch(atof(strs[j]),atof(strs[j + 1]),
-			  &rpt_vars[n].filters[j >> 1].gain,
-			    &rpt_vars[n].filters[j >> 1].const0,
-				&rpt_vars[n].filters[j >> 1].const1,
-				    &rpt_vars[n].filters[j >> 1].const2);
-			sprintf(rpt_vars[n].filters[j >> 1].desc,"%s Hz, BW = %s",
-				strs[j],strs[j + 1]);
-		}
+//#ifdef	__RPT_NOTCH
+	if(rpt_globals.notchfilter)
+	{
+		val = (char *) ast_variable_retrieve(cfg,this,"rxnotch");
+		if (val) {
+			i = finddelim(val,strs,MAXFILTERS * 2);
+			i &= ~1; /* force an even number, rounded down */
+			if (i >= 2) for(j = 0; j < i; j += 2)
+			{
+				rpt_mknotch(atof(strs[j]),atof(strs[j + 1]),
+				  &rpt_vars[n].filters[j >> 1].gain,
+				    &rpt_vars[n].filters[j >> 1].const0,
+					&rpt_vars[n].filters[j >> 1].const1,
+					    &rpt_vars[n].filters[j >> 1].const2);
+				sprintf(rpt_vars[n].filters[j >> 1].desc,"%s Hz, BW = %s",
+					strs[j],strs[j + 1]);
+			}
 
+		}
 	}
-#endif
+//#endif
+        val = (char *) ast_variable_retrieve(cfg,this,"telemnomdb");
+        if (!val) val = "0";
+        rpt_vars[n].p.telemnomgain = pow(10.0,atof(val) / 20.0);
+        val = (char *) ast_variable_retrieve(cfg,this,"telemduckdb");
+        if (!val) val = DEFAULT_TELEMDUCKDB;
+        rpt_vars[n].p.telemduckgain = pow(10.0,atof(val) / 20.0);
 	val = (char *) ast_variable_retrieve(cfg,this,"telemdefault");
 	if (val) rpt_vars[n].p.telemdefault = atoi(val);
 	else rpt_vars[n].p.telemdefault = DEFAULT_RPT_TELEMDEFAULT;
@@ -6649,74 +6967,516 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis
 	ast_mutex_unlock(&rpt_vars[n].lock);
 }
 
-/*
-* Enable or disable debug output at a given level at the console
-*/
-                                                                                                                                 
-static int rpt_do_debug(int fd, int argc, char *argv[])
+static void get_sys_info (void)
 {
-	int newlevel;
-
-        if (argc != 4)
-                return RESULT_SHOWUSAGE;
-        newlevel = myatoi(argv[3]);
-        if((newlevel < 0) || (newlevel > 7))
-                return RESULT_SHOWUSAGE;
-        if(newlevel)
-                ast_cli(fd, "app_rpt Debugging enabled, previous level: %d, new level: %d\n", debug, newlevel);
-        else
-                ast_cli(fd, "app_rpt Debugging disabled\n");
-
-        debug = newlevel;                                                                                                                          
-        return RESULT_SUCCESS;
+	FILE *fp;
+	char tmp[200];
+	fp = fopen("/proc/version", "r");
+	if(!fp) return;
+	if((!fgets(tmp,sizeof(tmp)-1, fp)))
+	{
+		fclose(fp);
+		return;
+	}
+	strncpy(sysinfo.vers,tmp,sizeof(sysinfo.vers)-1);
+	if(sscanf(tmp,"Linux version %s", sysinfo.cvers) !=1)
+	{
+		strcpy(sysinfo.cvers,"Unknown");
+	}
+	return;
 }
 
+
 /*
-* Dump rpt struct debugging onto console
+* Utility functions
 */
-                                                                                                                                 
-static int rpt_do_dump(int fd, int argc, char *argv[])
+
+static int rpt_do_utils(int fd, int argc, char *argv[])
 {
 	int i;
+	char myip[100] = "";
+	char myiface[25] = "";
+	struct in_addr ia;
 
-        if (argc != 3)
-                return RESULT_SHOWUSAGE;
 
-	for(i = 0; i < nrpts; i++)
+	if (argc < 3)
+		return RESULT_SHOWUSAGE;
+
+	/* Get IP of local interface and print and say it locally */
+	if(!strcasecmp(argv[2], "SAYIP"))
 	{
-		if (!strcmp(argv[2],rpt_vars[i].name))
+		if(argc < 4)
+			return RESULT_SHOWUSAGE;
+
+		strncpy(myiface,argv[3],24);
+		i = ast_lookup_iface(myiface, &ia);
+
+		if(i) {
+			ast_log(LOG_ERROR, "Interface %s not found!\n\n", myiface);
+			return RESULT_FAILURE;
+		}
+
+		strncpy(myip,ast_inet_ntoa(ia),sizeof(myip)-1);
+
+		/* Show IP on console */
+		ast_cli(fd, "\n* Local interface %s IP address is %s\n\n", myiface, myip);
+
+		
+		/* Now say it on local nodes */
+		if(argc < 5) {
+			for(i=0; i DEFAULT_MAX_STAT_LINKS)) {
+	                   nulevel = DEFAULT_MIN_STAT_LINKS;
+	                   ast_log(LOG_WARNING, "maxlinks exceeds minimum or maximum allowed stat links.  Defaulting to %d\n\n", DEFAULT_MIN_STAT_LINKS);
+	                }
+	                MAX_STAT_LINKS = nulevel;
+        	        ast_log(LOG_NOTICE, "MAX_STAT_LINKS = %d\n", MAX_STAT_LINKS);
+		
+			return RESULT_SUCCESS;
+		} else {
+			ast_log(LOG_WARNING, "Console lock setting prevents setting maxlinks on this system.\n\n");
+			return RESULT_FAILURE;
+		}
+	}
+
+	if(!strcasecmp(argv[3],"NOTCHFILTER"))
+	{
+		i = myatoi(argv[4]);
+		if (i == 0 || i == 1) rpt_globals.notchfilter = i;
+		ast_log(LOG_NOTICE, "Notch Filter: %s\n",cfg_stat(rpt_globals.notchfilter));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"MDCENCODE"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.mdc_encode = i;
+		ast_log(LOG_NOTICE, "MDC Encode: %s\n",cfg_stat(rpt_globals.mdc_encode));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"MDCDECODE"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.mdc_decode = i;
+		ast_log(LOG_NOTICE, "MDC Decode: %s\n",cfg_stat(rpt_globals.mdc_decode));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"LOCALCHANNELS"))
+	{
+		if (rpt_globals.conslock < 1) {
+	                i = myatoi(argv[4]);
+	                if (i == 0 || i == 1) rpt_globals.localchannels = i;
+			ast_log(LOG_NOTICE, "Local Channels: %s\n",cfg_stat(rpt_globals.localchannels));
+			return RESULT_SUCCESS;
+		} else {
+			ast_log(LOG_WARNING,"Console lock setting prevents setting localchannels on this system.\n\n");
+			return RESULT_FAILURE;
+		}
+	}
+
+	if(!strcasecmp(argv[3],"FAKESERIAL"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.fake_serial = i;
+		ast_log(LOG_NOTICE, "Fake Serial: %s\n",cfg_stat(rpt_globals.fake_serial));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"NOREMOTEMDC"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.noremotemdc = i;
+		ast_log(LOG_NOTICE, "No Remote MDC: %s\n",cfg_stat(rpt_globals.noremotemdc));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"NOCDRPOST"))
+	{
+		if(rpt_globals.conslock < 1) {
+	                i = myatoi(argv[4]);
+	                if (i == 0 || i == 1) rpt_globals.no_cdr_post = i;
+			ast_log(LOG_NOTICE, "No CDR Post: %s\n",cfg_stat(rpt_globals.no_cdr_post));
+			return RESULT_SUCCESS;
+		} else {
+			ast_log(LOG_WARNING, "Console lock setting prevents setting nocdrpost on this system.\n\n");
+			return RESULT_FAILURE;
+		}
+	}
+
+	if(!strcasecmp(argv[3],"MDCSAY"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.mdc_say = i;
+		ast_log(LOG_NOTICE, "MDC Say on CT: %s\n",cfg_stat(rpt_globals.mdc_say));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"LINKCLIP"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.link_clip = i;
+		ast_log(LOG_NOTICE, "Link Clip: %s\n",cfg_stat(rpt_globals.link_clip));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"ZOPTION"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.z_opt = i;
+		ast_log(LOG_NOTICE, "Enable Z opt: %s\n",cfg_stat(rpt_globals.z_opt));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"ALTTUNE"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.alt_tune = i;
+		ast_log(LOG_NOTICE, "Alternate TUNE: %s\n",cfg_stat(rpt_globals.alt_tune));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"LINKDTMF"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.link_dtmf = i;
+		ast_log(LOG_NOTICE, "Extra Link DTMF: %s\n",cfg_stat(rpt_globals.link_dtmf));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"SETIC706CTCSS"))
+	{
+                i = myatoi(argv[4]);
+                if (i == 0 || i == 1) rpt_globals.set_ic706_ctcss = i;
+		ast_log(LOG_NOTICE, "Alt IC706 CTCSS: %s\n",cfg_stat(rpt_globals.set_ic706_ctcss));
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"DTMFTIMEOUT"))
+	{
+                i = atoi(argv[4]);
+                if(i < DEFAULT_DTMF_TIMEOUT) 
+			i = DEFAULT_DTMF_TIMEOUT;
+		DTMF_TIMEOUT = i;
+		ast_log(LOG_NOTICE, "DTMF Timeout: %d\n",DTMF_TIMEOUT);
+		return RESULT_SUCCESS;
+	}
+
+	if(!strcasecmp(argv[3],"STATPOST"))
+	{
+                i = atoi(argv[4]);
+                if((i < 0) || (i >2))
+			i = 1;
+		rpt_globals.statpost=i;
+		ast_log(LOG_NOTICE, "Global statpost: %d\n", rpt_globals.statpost);
+		return RESULT_SUCCESS;
+	}
+
+
+    }
+
+    return RESULT_SHOWUSAGE;
+
+show_stats:
+    rpt_show_globals(fd, 1);
+    return RESULT_SUCCESS;
+}
+
+
+
+/*
+* Enable or disable debug output at a given level at the console
+*/
+                                                                                                                                 
+static int rpt_do_debug(int fd, int argc, char *argv[])
+{
+	int newlevel;
+
+        if (argc != 4)
+                return RESULT_SHOWUSAGE;
+        newlevel = myatoi(argv[3]);
+        if(((newlevel < 0) || (newlevel > 7)) && newlevel != 128)
+                return RESULT_SHOWUSAGE;
+        if(newlevel)
+                ast_cli(fd, "app_rpt Debugging enabled, previous level: %d, new level: %d\n", debug, newlevel);
+        else
+                ast_cli(fd, "app_rpt Debugging disabled\n");
+
+        debug = newlevel;                                                                                                                          
+        return RESULT_SUCCESS;
+}
+
+/*
+* Dump rpt struct debugging onto console
+*/
+                                                                                                                                 
+static int rpt_do_dump(int fd, int argc, char *argv[])
+{
+	int i;
+
+        if (argc != 3)
+                return RESULT_SHOWUSAGE;
+
+	for(i = 0; i < nrpts; i++)
+	{
+		if (!strcmp(argv[2],rpt_vars[i].name))
+		{
+			rpt_vars[i].disgorgetime = time(NULL) + 10; /* Do it 10 seconds later */
+		        ast_cli(fd, "app_rpt struct dump requested for node %s\n",argv[2]);
+		        return RESULT_SUCCESS;
+		}
+	}
+	return RESULT_FAILURE;
+}
+
+/*
+* Dump statistics onto console
+*/
+
+static int rpt_do_stats(int fd, int argc, char *argv[])
+{
+	int i,j,numoflinks;
+	int dailytxtime, dailykerchunks;
+	time_t now;
+	int totalkerchunks, dailykeyups, totalkeyups, timeouts;
+	int totalexecdcommands, dailyexecdcommands, hours, minutes, seconds;
+	int uptime;
+	long long totaltxtime;
+	struct	rpt_link *l;
+	char *listoflinks[MAX_STAT_LINKS];	
+	char *lastdtmfcommand,*parrot_ena;
+	char *tot_state, *ider_state, *patch_state;
+	char *reverse_patch_state, *sys_ena, *tot_ena, *link_ena, *patch_ena;
+	char *sch_ena, *input_signal, *called_number, *user_funs, *tail_type;
+	char *iconns;
+	struct rpt *myrpt;
+
+	static char *not_applicable = "N/A";
 
 	if(argc != 3)
 		return RESULT_SHOWUSAGE;
@@ -6957,7 +7717,8 @@ static int rpt_do_stats(int fd, int argc, char *argv[])
 
 static int rpt_do_lstats(int fd, int argc, char *argv[])
 {
-	int i,j;
+	//int i,j;
+	int i;
 	char *connstate;
 	struct rpt *myrpt;
 	struct rpt_link *l;
@@ -6977,7 +7738,7 @@ static int rpt_do_lstats(int fd, int argc, char *argv[])
 			myrpt = &rpt_vars[i];
 			rpt_mutex_lock(&myrpt->lock); /* LOCK */
 			/* Traverse the list of connected nodes */
-			j = 0;
+			//j = 0;
 			l = myrpt->links.next;
 			while(l && (l != &myrpt->links)){
 				if (l->name[0] == '0'){ /* Skip '0' nodes */
@@ -7758,28 +8519,6 @@ static int rpt_do_showvars(int fd, int argc, char *argv[])
 	return(0);
 }
 
-/*
-* Do ASL Stuff
-*/
-
-
-static int rpt_do_asl(int fd, int argc, char *argv[])
-{
-       double warpone = 75139293848.398696166028333356763;
-       double warpfactor = 1.0;
-
-       if (argc > 2) return RESULT_SHOWUSAGE;
-       if ((argc > 1) && (sscanf(argv[1],"%lf",&warpfactor) != 1))
-                return RESULT_SHOWUSAGE;
-
-       ast_cli(fd, "This command doe not do anything\n");
-       ast_cli(fd, "73 Steve N4IRS\n",
-               warpfactor * warpfactor * warpfactor * warpone,warpfactor);
-       ast_cli(fd,"Replace a command that does nothing but waste space. RIP WB6NIL\n");
-       return RESULT_SUCCESS;
-}
-
-
 static int play_tone_pair(struct ast_channel *chan, int f1, int f2, int duration, int amplitude)
 {
 	int res;
@@ -7819,6 +8558,36 @@ static char *res2cli(int r)
 	}
 }
 
+
+static char *handle_cli_utils(struct ast_cli_entry *e,
+        int cmd, struct ast_cli_args *a)
+{
+        switch (cmd) {
+        case CLI_INIT:
+                e->command = "rpt utils";
+                e->usage = usage_utils;
+                return NULL;
+        case CLI_GENERATE:
+                return NULL;
+        }
+        return res2cli(rpt_do_utils(a->fd,a->argc,a->argv));
+}
+
+
+static char *handle_cli_globals(struct ast_cli_entry *e,
+        int cmd, struct ast_cli_args *a)
+{
+        switch (cmd) {
+        case CLI_INIT:
+                e->command = "rpt globals";
+                e->usage = usage_globals;
+                return NULL;
+        case CLI_GENERATE:
+                return NULL;
+        }
+        return res2cli(rpt_do_globals(a->fd,a->argc,a->argv));
+}
+
 static char *handle_cli_debug(struct ast_cli_entry *e,
 	int cmd, struct ast_cli_args *a)
 {
@@ -8030,20 +8799,6 @@ static char *handle_cli_showvars(struct ast_cli_entry *e,
 	return res2cli(rpt_do_showvars(a->fd,a->argc,a->argv));
 }
 
-static char *handle_cli_asl(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "asl";
-                e->usage = asl_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(rpt_do_asl(a->fd,a->argc,a->argv));
-}
-
 static char *handle_cli_localplay(struct ast_cli_entry *e,
 	int cmd, struct ast_cli_args *a)
 {
@@ -8119,8 +8874,9 @@ static struct ast_cli_entry rpt_cli[] = {
 	AST_CLI_DEFINE(handle_cli_localplay,"Playback an audio file (local)"),
 	AST_CLI_DEFINE(handle_cli_sendall,"Send a Text message to all connected nodes"),
 	AST_CLI_DEFINE(handle_cli_sendtext,"Send a Text message to a specified nodes"),
-	AST_CLI_DEFINE(handle_cli_asl,"Do ASL stuff"),
-	AST_CLI_DEFINE(handle_cli_page,"Send a page to a user on a node")
+	AST_CLI_DEFINE(handle_cli_page,"Send a page to a user on a node"),
+	AST_CLI_DEFINE(handle_cli_globals,"Display rpt globally configured options"),
+	AST_CLI_DEFINE(handle_cli_utils,"Execute utility function")
 };
 
 #endif
@@ -8129,7 +8885,7 @@ static struct ast_cli_entry rpt_cli[] = {
  * End of CLI hooks
  */
 
-static int morse_cat(char *str, int freq, int duration)
+inline static int morse_cat(char *str, int freq, int duration)
 {
 	char *p;
 	int len;
@@ -8683,7 +9439,7 @@ static int split_freq(char *mhz, char *decimals, char *freq);
   *           RELATED TO THREADED OPERATIONS.
   */
  
-static void handle_varcmd_tele(struct rpt *myrpt,struct ast_channel *mychannel,char *varcmd)
+inline static void handle_varcmd_tele(struct rpt *myrpt,struct ast_channel *mychannel,char *varcmd)
 {
 char	*strs[100],*p,buf[100],c;
 int	i,j,k,n,res,vmajor,vminor;
@@ -9017,8 +9773,10 @@ struct  rpt_tele *tlist;
 struct	rpt *myrpt;
 struct	rpt_link *l,*l1,linkbase;
 struct	ast_channel *mychannel;
+struct in_addr ia;
 int id_malloc, vmajor, vminor, m;
-char *p,*ct,*ct_copy,*ident, *nodename,*cp;
+//char *p,*ct,*ct_copy,*ident, *nodename,*cp;
+char *p,*ct,*ct_copy,*ident, *nodename;
 time_t t,t1,was;
 #ifdef	NEW_ASTERISK
 struct ast_tm localtm;
@@ -9026,6 +9784,7 @@ struct ast_tm localtm;
 struct tm localtm;
 #endif
 char lbuf[MAXLINKLIST],*strs[MAXLINKLIST];
+char myip[100] = "";
 int	i,j,k,ns,rbimode;
 unsigned int u;
 char mhz[MAXREMSTR],decimals[MAXREMSTR],mystr[200];
@@ -9034,9 +9793,15 @@ FILE	*fp;
 float	f;
 struct stat mystat;
 struct dahdi_params par;
-#ifdef	_MDC_ENCODE_H_
 struct	mdcparams *mdcp;
-#endif
+struct sched_param      rpttele_sched;
+
+	pthread_t tele_selfid = pthread_self();
+	rpttele_sched.sched_priority=TELETHREAD_PRI;
+	if(pthread_setschedparam(tele_selfid, SCHED_POLICY, &rpttele_sched) != 0)
+	{
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
 
 	/* get a pointer to myrpt */
 	myrpt = mytele->rpt;
@@ -9097,10 +9862,11 @@ struct	mdcparams *mdcp;
 		ast_free(mytele);		
 		pthread_exit(NULL);
 	}
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (mychannel->cdr) 
-		ast_set_flag(mychannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (mychannel->cdr) 
+			ast_set_flag(mychannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(mychannel);
 	rpt_mutex_lock(&myrpt->lock);
 	mytele->chan = mychannel;
@@ -9135,9 +9901,10 @@ struct	mdcparams *mdcp;
 	/* If the telemetry is only intended for a local audience, */
 	/* only connect the ID audio to the local tx conference so */
 	/* linked systems can't hear it */
-	ci.confno = (((mytele->mode == ID1) || (mytele->mode == PLAYBACK) ||
+	//ci.confno = (((mytele->mode == ID1) || (mytele->mode == PLAYBACK) || (mytele->mode == ALPHANUM_LOCAL) ||
+	ci.confno = (((mytele->mode == ID1) || (mytele->mode == LOCALPLAY) || (mytele->mode == ALPHANUM_LOCAL) ||
 	    (mytele->mode == TEST_TONE) || (mytele->mode == STATS_GPS_LEGACY)) ? 
-		myrpt->conf : myrpt->txconf);
+		myrpt->conf : myrpt->teleconf);
 	ci.confmode = DAHDI_CONF_CONFANN;
 	/* first put the channel on the conference in announce mode */
 	if (ioctl(mychannel->fds[0],DAHDI_SETCONF,&ci) == -1)
@@ -9241,6 +10008,7 @@ struct	mdcparams *mdcp;
 			res = -1;
 			if (mytele->submode.p)
 			{
+				myrpt->noduck=1;
 				res = ast_playtones_start(myrpt->txchannel,0,
 					(char *) mytele->submode.p,0);
 				while(myrpt->txchannel->generatordata)
@@ -9256,43 +10024,43 @@ struct	mdcparams *mdcp;
 		}
 		imdone = 1;
 		break;
-#ifdef	_MDC_ENCODE_H_
 	    case MDC1200:
-		mdcp = (struct mdcparams *)mytele->submode.p;
-		if (mdcp)
-		{
-			if (mdcp->type[0] != 'A')
+		if(rpt_globals.mdc_encode) {
+			mdcp = (struct mdcparams *)mytele->submode.p;
+			if (mdcp)
 			{
-				if (wait_interval(myrpt, DLY_TELEM,  mychannel) == -1)
+				if (mdcp->type[0] != 'A')
 				{
-					res = -1;
-					imdone = 1;
-					break;
+					if (wait_interval(myrpt, DLY_TELEM,  mychannel) == -1)
+					{
+						res = -1;
+						imdone = 1;
+						break;
+					}
 				}
-			}
-			else
-			{
-				if (wait_interval(myrpt, DLY_MDC1200,  mychannel) == -1)
+				else
 				{
-					res = -1;
-					imdone = 1;
-					break;
+					if (wait_interval(myrpt, DLY_MDC1200,  mychannel) == -1)
+					{
+						res = -1;
+						imdone = 1;
+						break;
+					}
 				}
-			}
-			res = mdc1200gen_start(myrpt->txchannel,mdcp->type,mdcp->UnitID,mdcp->DestID,mdcp->subcode);
-			ast_free(mdcp);
-			while(myrpt->txchannel->generatordata)
-			{
-				if(ast_safe_sleep(myrpt->txchannel, 50))
+				res = mdc1200gen_start(myrpt->txchannel,mdcp->type,mdcp->UnitID,mdcp->DestID,mdcp->subcode);
+				ast_free(mdcp);
+				while(myrpt->txchannel->generatordata)
 				{
-					res = -1;
-					break;
+					if(ast_safe_sleep(myrpt->txchannel, 50))
+					{
+						res = -1;
+						break;
+					}
 				}
 			}
+			imdone = 1;
+			break;
 		}
-		imdone = 1;
-		break;
-#endif
 	    case UNKEY:
 	    case LOCUNKEY:
 		if(myrpt->patchnoct && myrpt->callmode){ /* If no CT during patch configured, then don't send one */
@@ -9390,7 +10158,8 @@ struct	mdcparams *mdcp;
 		    ((ct = (char *) ast_variable_retrieve(myrpt->cfg, nodename, "localct")))) { /* Local override ct */
 			ct_copy = ast_strdup(ct);
 			if(ct_copy)
-			{
+			{	
+				myrpt->noduck=1;
 				res = telem_lookup(myrpt,mychannel, myrpt->name, ct_copy);
 				ast_free(ct_copy);
 			}
@@ -9448,7 +10217,7 @@ struct	mdcparams *mdcp;
 		}
 		if (haslink)
 		{
-
+			myrpt->noduck=1;
 			res = telem_lookup(myrpt,mychannel, myrpt->name, (!hastx) ? "remotemon" : "remotetx");
 			if(res)
 				ast_log(LOG_WARNING, "telem_lookup:remotexx failed on %s\n", mychannel->name);
@@ -9468,6 +10237,7 @@ struct	mdcparams *mdcp;
 			ct_copy = ast_strdup(ct);
 			if(ct_copy)
 			{
+				myrpt->noduck=1;
 				res = telem_lookup(myrpt,mychannel, myrpt->name, ct_copy);
 				ast_free(ct_copy);
 			}
@@ -9503,6 +10273,7 @@ struct	mdcparams *mdcp;
 				ct_copy = ast_strdup(ct);
 				if(ct_copy)
 				{
+					myrpt->noduck=1;
 					res = telem_lookup(myrpt,mychannel, myrpt->name, ct_copy);
 					ast_free(ct_copy);
 				}
@@ -9513,38 +10284,38 @@ struct	mdcparams *mdcp;
 				 	ast_log(LOG_WARNING, "telem_lookup:ctx failed on %s\n", mychannel->name);		
 			}	
 		}
-#if	defined(_MDC_DECODE_H_) && defined(MDC_SAY_WHEN_DOING_CT)
-		if (myrpt->lastunit)
-		{
-			char mystr[10];
-
-			ast_safe_sleep(mychannel,200);
-			/* set for all to hear */
-			ci.chan = 0;
-			ci.confno = myrpt->txconf;
-			ci.confmode = DAHDI_CONF_CONFANN;
-			/* first put the channel on the conference in announce mode */
-			if (ioctl(mychannel->fds[0],DAHDI_SETCONF,&ci) == -1)
+		if((rpt_globals.mdc_decode && rpt_globals.mdc_say)){
+			if (myrpt->lastunit)
 			{
-				ast_log(LOG_WARNING, "Unable to set conference mode to Announce\n");
-				rpt_mutex_lock(&myrpt->lock);
-				myrpt->active_telem = NULL;
-				remque((struct qelem *)mytele);
-				rpt_mutex_unlock(&myrpt->lock);
-				ast_log(LOG_NOTICE,"Telemetry thread aborted at line %d, mode: %d\n",__LINE__, mytele->mode); /*@@@@@@@@@@@*/
-				ast_free(nodename);
-				if(id_malloc)
-					ast_free(ident);
-				ast_free(mytele);		
-				ast_hangup(mychannel);
-				pthread_exit(NULL);
+				char mystr[10];
+
+				ast_safe_sleep(mychannel,200);
+				/* set for all to hear */
+				ci.chan = 0;
+				ci.confno = myrpt->txconf;
+				ci.confmode = DAHDI_CONF_CONFANN;
+				/* first put the channel on the conference in announce mode */
+				if (ioctl(mychannel->fds[0],DAHDI_SETCONF,&ci) == -1)
+				{
+					ast_log(LOG_WARNING, "Unable to set conference mode to Announce\n");
+					rpt_mutex_lock(&myrpt->lock);
+					myrpt->active_telem = NULL;
+					remque((struct qelem *)mytele);
+					rpt_mutex_unlock(&myrpt->lock);
+					ast_log(LOG_NOTICE,"Telemetry thread aborted at line %d, mode: %d\n",__LINE__, mytele->mode); /*@@@@@@@@@@@*/
+					ast_free(nodename);
+					if(id_malloc)
+						ast_free(ident);
+					ast_free(mytele);		
+					ast_hangup(mychannel);
+					pthread_exit(NULL);
+				}
+				sprintf(mystr,"%04x",myrpt->lastunit);
+				myrpt->lastunit = 0;
+				ast_say_character_str(mychannel,mystr,NULL,mychannel->language);
+				break;
 			}
-			sprintf(mystr,"%04x",myrpt->lastunit);
-			myrpt->lastunit = 0;
-			ast_say_character_str(mychannel,mystr,NULL,mychannel->language);
-			break;
 		}
-#endif
 		imdone = 1;
 		break;
 	    case LINKUNKEY:
@@ -9797,6 +10568,13 @@ struct	mdcparams *mdcp;
 		ast_stopstream(mychannel);
 		imdone = 1;
 		break;
+	    case ALPHANUM_LOCAL:
+                /* wait a little bit */
+                if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break;
+		if(mytele->param)
+			saycharstr(mychannel, mytele->param);
+                imdone = 1;		
+		break;
 	    case TOPKEY:
 		/* wait a little bit */
 		if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break;
@@ -9911,7 +10689,7 @@ struct	mdcparams *mdcp;
 			res = ast_streamfile(mychannel, "rpt/invalid-freq", mychannel->language);
 		break;
 	    case REMMODE:
-		cp = 0;
+		//cp = 0;
 		if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break;
 		switch(myrpt->remmode)
 		{
@@ -10056,31 +10834,32 @@ struct	mdcparams *mdcp;
 			imdone = 1;
 			break;
 		}
-		ast_safe_sleep(mychannel,500);
-		set_mode_ft897(myrpt, REM_MODE_AM);
-		ast_safe_sleep(mychannel,500);
-		myrpt->tunetx = 1;
-		if (play_tone(mychannel, 800, 6000, 8192) == -1) break;
-		myrpt->tunetx = 0;
-		ast_safe_sleep(mychannel,500);
-		set_mode_ft897(myrpt, myrpt->remmode);
-		ast_playtones_stop(mychannel);
-		myrpt->tunerequest = 0;
-		ast_mutex_unlock(&myrpt->remlock);
-		imdone = 1;
-		break;
-#if 0
-		set_mode_ft897(myrpt, REM_MODE_AM);
-		simple_command_ft897(myrpt, 8);
-		if(play_tone(mychannel, 800, 6000, 8192) == -1) break;
-		simple_command_ft897(myrpt, 0x88);
-		ast_safe_sleep(mychannel,500);
-		set_mode_ft897(myrpt, myrpt->remmode);
-		myrpt->tunerequest = 0;
-		ast_mutex_unlock(&myrpt->remlock);
-		imdone = 1;
-		break;
-#endif
+		if(!rpt_globals.alt_tune) {
+			ast_safe_sleep(mychannel,500);
+			set_mode_ft897(myrpt, REM_MODE_AM);
+			ast_safe_sleep(mychannel,500);
+			myrpt->tunetx = 1;
+			if (play_tone(mychannel, 800, 6000, 8192) == -1) break;
+			myrpt->tunetx = 0;
+			ast_safe_sleep(mychannel,500);
+			set_mode_ft897(myrpt, myrpt->remmode);
+			ast_playtones_stop(mychannel);
+			myrpt->tunerequest = 0;
+			ast_mutex_unlock(&myrpt->remlock);
+			imdone = 1;
+			break;
+		} else {
+			set_mode_ft897(myrpt, REM_MODE_AM);
+			simple_command_ft897(myrpt, 8);
+			if(play_tone(mychannel, 800, 6000, 8192) == -1) break;
+			simple_command_ft897(myrpt, 0x88);
+			ast_safe_sleep(mychannel,500);
+			set_mode_ft897(myrpt, myrpt->remmode);
+			myrpt->tunerequest = 0;
+			ast_mutex_unlock(&myrpt->remlock);
+			imdone = 1;
+			break;
+		}
 	    case REMSHORTSTATUS:
 	    case REMLONGSTATUS:	
 		if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break;
@@ -10496,6 +11275,63 @@ struct	mdcparams *mdcp;
 		ast_stopstream(mychannel);		
 		imdone = 1;
 	    	break;
+	    case REMIP:
+	    case REMIP_LOCAL:
+                if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break;
+                struct MemoryStruct chunk = { NULL, 0 };
+		/* Query site for remote IP address */
+		if(debug >= 128) ast_log(LOG_WARNING, "Attempting to fetch public IP from %s\n\n", rpt_globals.remoteip_url);
+		AST_DECLARE_APP_ARGS(args,
+                        AST_APP_ARG(url);
+                        AST_APP_ARG(postdata);
+                );
+                AST_STANDARD_APP_ARGS(args,rpt_globals.remoteip_url);
+
+		if(!curl_internal(&chunk,args.url,args.postdata ))
+                {
+                	if(chunk.memory)
+                	{
+                        	chunk.memory[chunk.size] = '\0';
+                                if(chunk.memory[chunk.size -1] == 10)
+                                        chunk.memory[chunk.size -1] = '\0';
+                                ast_copy_string(myip,chunk.memory,20);
+                                ast_free(chunk.memory);	
+
+	                        /* Show IP on console */
+	                        ast_log(LOG_NOTICE, "[*] Public IP address is %s\n\n", myip);
+				saynode(myrpt,mychannel,myrpt->name);
+				sayfile(mychannel, "system");
+				saycharstr(mychannel, "ip");
+				sayfile(mychannel, "is-set-to");
+				saycharstr(mychannel, myip);
+			}
+		} else {
+			ast_log(LOG_ERROR, "Failed to fetch Public IP address\n\n");
+			sayfile(mychannel, "tt-somethingwrong");
+			sayfile(mychannel, "an-error-has-occurred");
+			break;
+		}
+		imdone = 1;
+		break;
+            case SAYIP_LOCAL:
+                if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break;
+		if(!ast_lookup_iface((char *)rpt_globals.net_if, &ia))
+		{
+			strncpy(myip,ast_inet_ntoa(ia),sizeof(myip)-1);
+			ast_log(LOG_NOTICE,"[*] Local IP address for interface %s is %s\n\n", (char *)rpt_globals.net_if,myip);
+			saycharstr(mychannel, "ip");
+			sayfile(mychannel, "for");
+			saycharstr(mychannel, (char *)rpt_globals.net_if);
+			sayfile(mychannel, "is-set-to");
+			saycharstr(mychannel, myip);
+		} else {
+			ast_log(LOG_ERROR,"Failed to fetch IP address for local interface %s\n\n", (char *)rpt_globals.net_if);
+			sayfile(mychannel, "tt-somethingwrong");
+			sayfile(mychannel, "an-error-has-occurred");
+			break;
+		}
+		imdone = 1;
+		break;
 	    case STATS_VERSION:
 		p = strstr(tdesc, "version");	
 		if(!p)
@@ -10713,6 +11549,7 @@ struct	mdcparams *mdcp;
 		ast_mutex_unlock(&locklock);
 	}			
 #endif
+	myrpt->noduck=0;
 	pthread_exit(NULL);
 }
 
@@ -11009,7 +11846,7 @@ struct rpt_link *l;
 			memcpy(&tele->mylink,mylink,sizeof(struct rpt_link));
 		}
 	}
-	else if ((mode == ARB_ALPHA) || (mode == REV_PATCH) || 
+	else if ((mode == ARB_ALPHA) || (mode == ALPHANUM_LOCAL) || (mode == REV_PATCH) || 
 	    (mode == PLAYBACK) || (mode == LOCALPLAY) ||
             (mode == VARCMD) || (mode == METER) || (mode == USEROUT)) {
 		strncpy(tele->param, (char *) data, TELEPARAMSIZE - 1);
@@ -11019,6 +11856,7 @@ struct rpt_link *l;
 	insque((struct qelem *)tele, (struct qelem *)myrpt->tele.next);
 	rpt_mutex_unlock(&myrpt->lock);
         pthread_attr_init(&attr);
+	pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
         pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 	res = ast_pthread_create(&tele->threadid,&attr,rpt_tele_thread,(void *) tele);
 	if(res < 0){
@@ -11052,6 +11890,15 @@ struct	rpt *myrpt = (struct rpt *)this;
 int	res;
 int stopped,congstarted,dialtimer,lastcidx,aborted,sentpatchconnect;
 struct ast_channel *mychannel,*genchannel,*c;
+struct sched_param      rptcall_sched;
+
+	pthread_t call_selfid = pthread_self();
+	rptcall_sched.sched_priority=RPTCALLTHREAD_PRI;
+	if(pthread_setschedparam(call_selfid, SCHED_POLICY, &rptcall_sched) != 0)
+	{
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
+
 
 	myrpt->mydtmf = 0;
 	/* allocate a pseudo-channel thru asterisk */
@@ -11061,10 +11908,11 @@ struct ast_channel *mychannel,*genchannel,*c;
 		fprintf(stderr,"rpt:Sorry unable to obtain pseudo channel\n");
 		pthread_exit(NULL);
 	}
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (mychannel->cdr)
-		ast_set_flag(mychannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (mychannel->cdr)
+			ast_set_flag(mychannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(mychannel);
 	ci.chan = 0;
 	ci.confno = myrpt->conf; /* use the pseudo conference */
@@ -11085,10 +11933,11 @@ struct ast_channel *mychannel,*genchannel,*c;
 		ast_hangup(mychannel);
 		pthread_exit(NULL);
 	}
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (genchannel->cdr)
-		ast_set_flag(genchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (genchannel->cdr)
+			ast_set_flag(genchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(genchannel);
 	ci.chan = 0;
 	ci.confno = myrpt->conf;
@@ -11325,7 +12174,8 @@ struct ast_channel *mychannel,*genchannel,*c;
 			c && (c->_state == AST_STATE_UP))
 		{
 			sentpatchconnect = 1;			
-			rpt_telemetry(myrpt,PLAYBACK,myrpt->p.patchconnect);
+			//rpt_telemetry(myrpt,PLAYBACK,myrpt->p.patchconnect);
+			rpt_telemetry(myrpt,LOCALPLAY,myrpt->p.patchconnect);
 		}
 		if (myrpt->mydtmf)
 		{
@@ -11501,10 +12351,11 @@ static void send_old_newkey(struct ast_channel *chan)
 
 static int connect_link(struct rpt *myrpt, char* node, int mode, int perma)
 {
-	char *s, *s1, *s2, *tele,*cp;
+	//char *s, *s1, *s2, *tele ,*cp;
+	char *s, *s1, *tele ,*cp;
 	char lstr[MAXLINKLIST],*strs[MAXLINKLIST];
-	char tmp[300], deststr[300] = "",modechange = 0;
-	char sx[320],*sy;
+	char tmp[300] = "", deststr[300] = "",modechange = 0;
+	char sx[320] = "",*sy;
 	struct rpt_link *l;
 	int reconnects = 0;
 	int i,n;
@@ -11565,7 +12416,7 @@ static int connect_link(struct rpt *myrpt, char* node, int mode, int perma)
 			sprintf(sx,"%s:4569/%s",s1,sy + 1);
 			s1 = sx;
 		}
-		s2 = strsep(&s,",");
+		//s2 = strsep(&s,",");
 	}
 	rpt_mutex_lock(&myrpt->lock);
 	l = myrpt->links.next;
@@ -11640,16 +12491,25 @@ static int connect_link(struct rpt *myrpt, char* node, int mode, int perma)
 	l->iaxkey = 0;
 	l->newkey = 2;
 	if (strncasecmp(s1,"echolink/",9) == 0) l->newkey = 0;
-#ifdef ALLOW_LOCAL_CHANNELS
-	if ((strncasecmp(s1,"iax2/", 5) == 0) || (strncasecmp(s1, "local/", 6) == 0) ||
-	    (strncasecmp(s1,"echolink/",9) == 0) || (strncasecmp(s1,"tlb/",4) == 0))
-#else
-	if ((strncasecmp(s1,"iax2/", 5) == 0) || (strncasecmp(s1,"echolink/",9) == 0) ||
-		(strncasecmp(s1,"tlb/",4) == 0))
-#endif
-        	strncpy(deststr, s1, sizeof(deststr));
-	else
-	        snprintf(deststr, sizeof(deststr), "IAX2/%s", s1);
+	if(rpt_globals.localchannels)
+	{		
+		if ((strncasecmp(s1,"iax2/", 5) == 0) || (strncasecmp(s1, "local/", 6) == 0) ||
+		    (strncasecmp(s1,"echolink/",9) == 0) || (strncasecmp(s1,"tlb/",4) == 0))
+			strncpy(deststr, s1, sizeof(deststr));
+		else
+			snprintf(deststr, sizeof(deststr), "IAX2/%s", s1);
+
+	} else {
+		if ((strncasecmp(s1,"iax2/", 5) == 0) || (strncasecmp(s1,"echolink/",9) == 0) ||
+		    (strncasecmp(s1,"tlb/",4) == 0))
+			strncpy(deststr, s1, sizeof(deststr));
+		else
+		        snprintf(deststr, sizeof(deststr), "IAX2/%s", s1);
+
+	}
+//        	strncpy(deststr, s1, sizeof(deststr));
+//	else
+//	        snprintf(deststr, sizeof(deststr), "IAX2/%s", s1);
 	tele = strchr(deststr, '/');
 	if (!tele){
 		ast_log(LOG_WARNING,"link3:Dial number (%s) must be in format tech/number\n",deststr);
@@ -11679,10 +12539,11 @@ static int connect_link(struct rpt *myrpt, char* node, int mode, int perma)
 	if (l->chan){
 		ast_set_read_format(l->chan, AST_FORMAT_SLINEAR);
 		ast_set_write_format(l->chan, AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-		if (l->chan->cdr)
-			ast_set_flag(l->chan->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+		if(!rpt_globals.no_cdr_post)
+		{
+			if (l->chan->cdr)
+				ast_set_flag(l->chan->cdr,AST_CDR_FLAG_POST_DISABLED);
+		}
 #ifndef	NEW_ASTERISK
 		l->chan->whentohangup = 0;
 #endif
@@ -11720,13 +12581,15 @@ static int connect_link(struct rpt *myrpt, char* node, int mode, int perma)
 	}
 	ast_set_read_format(l->pchan, AST_FORMAT_SLINEAR);
 	ast_set_write_format(l->pchan, AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (l->pchan->cdr)
-		ast_set_flag(l->pchan->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (l->pchan->cdr)
+			ast_set_flag(l->pchan->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(l->pchan);
 	/* make a conference for the tx */
 	ci.chan = 0;
+	ci.confno = myrpt->conf;
 	ci.confno = ((l->mode > 1) ? myrpt->txconf : myrpt->conf);
 	ci.confmode = DAHDI_CONF_CONF | DAHDI_CONF_LISTENER | DAHDI_CONF_TALKER;
 	/* first put the channel on the conference in proper mode */
@@ -12042,14 +12905,14 @@ static int function_ilink(struct rpt *myrpt, char *param, char *digits, int comm
 			rpt_telemetry(myrpt, LASTNODEKEY, NULL);
 			break;
 
-#ifdef	_MDC_DECODE_H_
 		case 17:
-			myrpt->lastunit = 0xd00d;
-			mdc1200_cmd(myrpt,"ID00D");
-			mdc1200_notify(myrpt,NULL,"ID00D");
-			mdc1200_send(myrpt,"ID00D");
-			break;
-#endif
+			if(rpt_globals.mdc_decode) {
+				myrpt->lastunit = 0xd00d;
+				mdc1200_cmd(myrpt,"ID00D");
+				mdc1200_notify(myrpt,NULL,"ID00D");
+				mdc1200_send(myrpt,"ID00D");
+				break;
+			}
 		case 9: /* Send Text Message */
 			if (!param) break;
 			s1 = strchr(param,',');
@@ -12238,6 +13101,7 @@ static int function_autopatchup(struct rpt *myrpt, char *param, char *digitbuf,
 	myrpt->exten[myrpt->cidx] = 0;
 	rpt_mutex_unlock(&myrpt->lock);
 	pthread_attr_init(&attr);
+	pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
 	pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 	ast_pthread_create(&myrpt->rpt_call_thread,&attr,rpt_call,(void *) myrpt);
 	return DC_COMPLETE;
@@ -12345,6 +13209,15 @@ static int function_status(struct rpt *myrpt, char *param, char *digitbuf, int c
 	        case 12: /* System Time (local only)*/
 			rpt_telemetry(myrpt, STATS_TIME_LOCAL, NULL);
 			return DC_COMPLETE;
+		case 20: /* Say remote IP (global) */
+			rpt_telemetry(myrpt, REMIP, NULL);
+			return DC_COMPLETE;
+		case 21: /* Say remote IP (local only)*/
+			rpt_telemetry(myrpt, REMIP_LOCAL, NULL);
+			return DC_COMPLETE;
+		case 22: /* Say loca IP of first ethernet interface or as specific in [global] of rpt.conf */
+			rpt_telemetry(myrpt, SAYIP_LOCAL, NULL);
+			return DC_COMPLETE;
 		case 99: /* GPS data announced locally */
 			rpt_telem_select(myrpt,command_source,mylink);
 			rpt_telemetry(myrpt, STATS_GPS_LEGACY, NULL);
@@ -12457,9 +13330,7 @@ static int function_cop(struct rpt *myrpt, char *param, char *digitbuf, int comm
 	char *argv[101],*cp;
 	int i, j, k, r, src;
 	struct rpt_tele *telem;
-#ifdef	_MDC_ENCODE_H_
 	struct mdcparams *mdcp;
-#endif
 
 	if(!param)
 		return DC_ERROR;
@@ -12989,23 +13860,23 @@ static int function_cop(struct rpt *myrpt, char *param, char *digitbuf, int comm
 			rpt_telem_select(myrpt,command_source,mylink);
 			rpt_telemetry(myrpt, ARB_ALPHA, (void *) "TXIPLDIS");
 			return DC_COMPLETE;		
-#ifdef	_MDC_ENCODE_H_
 		case 60: /* play MDC1200 burst */
-			if (argc < 3) break;
-			mdcp = ast_calloc(1,sizeof(struct mdcparams));
-			if (!mdcp) return DC_ERROR;
-			memset(mdcp,0,sizeof(mdcp));
-			if (*argv[1] == 'C')
-			{
-				if (argc < 5) return DC_ERROR;
-				mdcp->DestID = (short) strtol(argv[3],NULL,16);
-				mdcp->subcode = (short) strtol(argv[4],NULL,16);
-			}
-			strncpy(mdcp->type,argv[1],sizeof(mdcp->type) - 1);
-			mdcp->UnitID = (short) strtol(argv[2],NULL,16);
-			rpt_telemetry(myrpt,MDC1200,(void *)mdcp);
-			return DC_COMPLETE;
-#endif
+			if(rpt_globals.mdc_encode) {
+				if (argc < 3) break;
+				mdcp = ast_calloc(1,sizeof(struct mdcparams));
+				if (!mdcp) return DC_ERROR;
+				memset(mdcp,0,sizeof(*mdcp));
+				if (*argv[1] == 'C')
+				{
+					if (argc < 5) return DC_ERROR;
+					mdcp->DestID = (short) strtol(argv[3],NULL,16);
+					mdcp->subcode = (short) strtol(argv[4],NULL,16);
+				}
+				strncpy(mdcp->type,argv[1],sizeof(mdcp->type) - 1);
+				mdcp->UnitID = (short) strtol(argv[2],NULL,16);
+				rpt_telemetry(myrpt,MDC1200,(void *)mdcp);
+				return DC_COMPLETE;
+			}
 		case 61: /* send GPIO change */
 		case 62: /* same, without function complete (quietly, oooooooh baby!) */
 			if (argc < 1) break;
@@ -13168,7 +14039,7 @@ static int collect_function_digits(struct rpt *myrpt, char *digits,
 static void handle_link_data(struct rpt *myrpt, struct rpt_link *mylink,
 	char *str)
 {
-char	tmp[512],tmp1[512],cmd[300] = "",dest[300],src[300],c;
+char	tmp[512],tmp1[512],cmd[300] = "",dest[300] = "",src[300] = "",c;
 int	i,seq, res, ts, rest;
 struct rpt_link *l;
 struct	ast_frame wf;
@@ -13816,13 +14687,13 @@ int	res;
 				rpt_telemetry(myrpt,COMPLETE,NULL);
 				return;
 			}
-#if 0
-			if ((myrpt->rem_dtmfidx < 0) && 
-			    ((myrpt->callmode == 2) || (myrpt->callmode == 3)))
-			{
-				myrpt->mydtmf = c;
+			if(rpt_globals.link_dtmf) {
+				if ((myrpt->rem_dtmfidx < 0) && 
+				    ((myrpt->callmode == 2) || (myrpt->callmode == 3)))
+				{
+					myrpt->mydtmf = c;
+				}
 			}
-#endif
 		}
 	}
 	if (myrpt->cmdnode[0] && strcmp(myrpt->cmdnode,"aprstt"))
@@ -14177,9 +15048,8 @@ static int serial_remote_io(struct rpt *myrpt, unsigned char *txbuf, int txbytes
 	struct dahdi_radio_param prm;
 	char c;
 
-#ifdef	FAKE_SERIAL_RESPONSE
-	printf("String output was %s:\n",txbuf);
-#endif
+	if(rpt_globals.fake_serial)
+		printf("String output was %s:\n",txbuf);
 	 if(debug) {
 	    ast_log(LOG_NOTICE, "ioport=%s baud=%d iofd=0x%x\n",myrpt->p.ioport,myrpt->p.iospeed,myrpt->iofd);
 		printf("String output was %s:\n",txbuf);
@@ -14217,13 +15087,14 @@ static int serial_remote_io(struct rpt *myrpt, unsigned char *txbuf, int txbytes
                         j = serial_rxready(myrpt->iofd,1000);
                         if (j < 1)
                         {
-#ifdef	FAKE_SERIAL_RESPONSE
-				strcpy((char *)rxbuf,(char *)txbuf);
-				return(strlen((char *)rxbuf));
-#else
-                                ast_log(LOG_WARNING,"%d Serial device not responding on node %s\n",j,myrpt->name);
-                                return(j);
-#endif
+				if(rpt_globals.fake_serial)
+				{
+					strcpy((char *)rxbuf,(char *)txbuf);
+					return(strlen((char *)rxbuf));
+				} else {
+                                	ast_log(LOG_WARNING,"%d Serial device not responding on node %s\n",j,myrpt->name);
+	                                return(j);
+				}
                         }
 			j = read(myrpt->iofd,&c,1);
 			if (j < 1) 
@@ -15096,6 +15967,12 @@ double txfreq;
 		rpt_telemetry(myrpt,COMPLETE,NULL);
 		res = 0;
 	}
+	
+	//Dummy use of txpower and txoffset to remove compiler warnings
+	if(txpower || txoffset) noop;
+
+
+
 	return 0;
 }
 
@@ -15549,11 +16426,10 @@ static int check_freq_ft897(int m, int d, int *defmode)
 static int set_freq_ft897(struct rpt *myrpt, char *newfreq)
 {
 	unsigned char cmdstr[5];
-	int fd,m,d;
+	int m,d;
 	char mhz[MAXREMSTR];
 	char decimals[MAXREMSTR];
 
-	fd = 0;
 	if(debug) 
 		printf("New frequency: %s\n",newfreq);
 
@@ -15949,11 +16825,10 @@ static int check_freq_ft100(int m, int d, int *defmode)
 static int set_freq_ft100(struct rpt *myrpt, char *newfreq)
 {
 	unsigned char cmdstr[5];
-	int fd,m,d;
+	int m,d;
 	char mhz[MAXREMSTR];
 	char decimals[MAXREMSTR];
 
-	fd = 0;
 	if(debug) 
 		printf("New frequency: %s\n",newfreq);
 
@@ -16253,11 +17128,10 @@ static int check_freq_ft950(int m, int d, int *defmode)
 static int set_freq_ft950(struct rpt *myrpt, char *newfreq)
 {
 	char cmdstr[20];
-	int fd,m,d;
+	int m,d;
 	char mhz[MAXREMSTR];
 	char decimals[MAXREMSTR];
 
-	fd = 0;
 	if(debug) 
 		printf("New frequency: %s\n",newfreq);
 
@@ -16791,9 +17665,8 @@ static int set_freq_ic706(struct rpt *myrpt, char *newfreq)
 {
 	unsigned char cmdstr[20];
 	char mhz[MAXREMSTR], decimals[MAXREMSTR];
-	int fd,m,d;
+	int m,d;
 
-	fd = 0;
 	if(debug) 
 		ast_log(LOG_NOTICE,"newfreq:%s\n",newfreq); 			
 
@@ -16945,7 +17818,7 @@ static int set_ctcss_mode_ic706(struct rpt *myrpt, char txplon, char rxplon)
 	return(civ_cmd(myrpt,cmdstr,8));
 }
 
-#if 0
+//#if 0
 /* Set transmit and receive ctcss tone frequencies */
 
 static int set_ctcss_freq_ic706(struct rpt *myrpt, char *txtone, char *rxtone)
@@ -16995,7 +17868,7 @@ static int set_ctcss_freq_ic706(struct rpt *myrpt, char *txtone, char *rxtone)
 	cmdstr[8] = 0xfd;
 	return(civ_cmd(myrpt,cmdstr,9));
 }	
-#endif
+//#endif
 
 static int vfo_ic706(struct rpt *myrpt)
 {
@@ -17089,6 +17962,11 @@ static int set_ic706(struct rpt *myrpt)
 			printf("Offset\n");
 		if(!res)
 			res = set_offset_ic706(myrpt, myrpt->offset);	/* Offset if FM */
+		if(rpt_globals.set_ic706_ctcss) {
+			if(debug)
+				printf("CTCSS tone freqs\n");
+			res = set_ctcss_freq_ic706(myrpt, myrpt->txpl, myrpt->rxpl); /* CTCSS freqs if CTCSS is enabled and setic706ctcss is on */
+		}
 		if(!res){
 			if(debug)
 				printf("CTCSS mode\n");
@@ -17220,9 +18098,8 @@ static int set_freq_xcat(struct rpt *myrpt, char *newfreq)
 {
 	unsigned char cmdstr[20];
 	char mhz[MAXREMSTR], decimals[MAXREMSTR];
-	int fd,m,d;
+	int m,d;
 
-	fd = 0;
 	if(debug) 
 		ast_log(LOG_NOTICE,"newfreq:%s\n",newfreq); 			
 
@@ -18503,18 +19380,19 @@ int	seq,res;
 
 	if (tmp[0] == 'T') return 0;
 
-#ifndef	DO_NOT_NOTIFY_MDC1200_ON_REMOTE_BASES
-	if (tmp[0] == 'I')
+	if(!rpt_globals.noremotemdc)	
 	{
-		if (sscanf(tmp,"%s %s %s",cmd,src,dest) != 3)
+		if (tmp[0] == 'I')
 		{
-			ast_log(LOG_WARNING, "Unable to parse ident string %s\n",str);
+			if (sscanf(tmp,"%s %s %s",cmd,src,dest) != 3)
+			{
+				ast_log(LOG_WARNING, "Unable to parse ident string %s\n",str);
+				return 0;
+			}
+			mdc1200_notify(myrpt,src,dest);
 			return 0;
 		}
-		mdc1200_notify(myrpt,src,dest);
-		return 0;
 	}
-#endif
 	if (tmp[0] == 'L') return 0;
 	if (sscanf(tmp,"%s %s %s %d %c",cmd,dest,src,&seq,&c) != 5)
 	{
@@ -18595,7 +19473,7 @@ int	res;
 
 static int attempt_reconnect(struct rpt *myrpt, struct rpt_link *l)
 {
-	char *s, *s1, *s2, *tele;
+	char *s, *s1, *tele;
 	char tmp[300], deststr[300] = "";
 	char sx[320],*sy;
 	struct ast_frame *f1;
@@ -18623,7 +19501,6 @@ static int attempt_reconnect(struct rpt *myrpt, struct rpt_link *l)
 		sprintf(sx,"%s:4569/%s",s1,sy + 1);
 		s1 = sx;
 	}
-	s2 = strsep(&s,",");
 	snprintf(deststr, sizeof(deststr), "IAX2/%s", s1);
 	tele = strchr(deststr, '/');
 	if (!tele) {
@@ -18864,6 +19741,7 @@ char	cmd[MAXDTMF+1] = "",c,tone[10];
 			myrpt->exten[myrpt->cidx] = 0;
 			rpt_mutex_unlock(&myrpt->lock);
 		        pthread_attr_init(&attr);
+			pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
 		        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 			ast_pthread_create(&myrpt->rpt_call_thread,&attr,rpt_call,(void *)myrpt);
 			return;
@@ -19122,6 +20000,14 @@ time_t	t,was;
 struct rpt_link *l,*m;
 struct rpt_tele *telem;
 char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
+struct sched_param      rpt_sched;
+
+        pthread_t tele_selfid = pthread_self();
+        rpt_sched.sched_priority=RPTTHREAD_PRI;
+        if(pthread_setschedparam(tele_selfid, SCHED_POLICY, &rpt_sched) != 0)
+	{
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
 
 
 	if (myrpt->p.archivedir) mkdir(myrpt->p.archivedir,0600);
@@ -19191,10 +20077,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 		}
 		ast_set_read_format(myrpt->rxchannel,AST_FORMAT_SLINEAR);
 		ast_set_write_format(myrpt->rxchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-		if (myrpt->rxchannel->cdr)
-			ast_set_flag(myrpt->rxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+		if(!rpt_globals.no_cdr_post)
+		{
+			if (myrpt->rxchannel->cdr)
+				ast_set_flag(myrpt->rxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+		}
 #ifndef	NEW_ASTERISK
 		myrpt->rxchannel->whentohangup = 0;
 #endif
@@ -19249,10 +20136,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 			}			
 			ast_set_read_format(myrpt->txchannel,AST_FORMAT_SLINEAR);
 			ast_set_write_format(myrpt->txchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-			if (myrpt->txchannel->cdr)
-				ast_set_flag(myrpt->txchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+			if(!rpt_globals.no_cdr_post)
+			{				
+				if (myrpt->txchannel->cdr)
+					ast_set_flag(myrpt->txchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+			}
 #ifndef	NEW_ASTERISK
 			myrpt->txchannel->whentohangup = 0;
 #endif
@@ -19306,10 +20194,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 	}
 	ast_set_read_format(myrpt->pchannel, AST_FORMAT_SLINEAR);
 	ast_set_write_format(myrpt->pchannel, AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (myrpt->pchannel->cdr)
-		ast_set_flag(myrpt->pchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (myrpt->pchannel->cdr)
+			ast_set_flag(myrpt->pchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(myrpt->pchannel);
 	if (!myrpt->zaprxchannel) myrpt->zaprxchannel = myrpt->pchannel;
 	if (!myrpt->zaptxchannel)
@@ -19328,10 +20217,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 		}
 		ast_set_read_format(myrpt->zaptxchannel,AST_FORMAT_SLINEAR);
 		ast_set_write_format(myrpt->zaptxchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-		if (myrpt->zaptxchannel->cdr)
-			ast_set_flag(myrpt->zaptxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+		if(!rpt_globals.no_cdr_post)
+		{
+			if (myrpt->zaptxchannel->cdr)
+				ast_set_flag(myrpt->zaptxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+		}
 		ast_answer(myrpt->zaptxchannel);
 	}
 	/* allocate a pseudo-channel thru asterisk */
@@ -19348,10 +20238,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 	}
 	ast_set_read_format(myrpt->monchannel,AST_FORMAT_SLINEAR);
 	ast_set_write_format(myrpt->monchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (myrpt->monchannel->cdr)
-		ast_set_flag(myrpt->monchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (myrpt->monchannel->cdr)
+			ast_set_flag(myrpt->monchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(myrpt->monchannel);
 	/* make a conference for the tx */
 	ci.chan = 0;
@@ -19445,11 +20336,87 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 	}
 	ast_set_read_format(myrpt->parrotchannel,AST_FORMAT_SLINEAR);
 	ast_set_write_format(myrpt->parrotchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (myrpt->parrotchannel->cdr)
-		ast_set_flag(myrpt->parrotchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{		
+		if (myrpt->parrotchannel->cdr)
+			ast_set_flag(myrpt->parrotchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(myrpt->parrotchannel);
+
+
+	/* Telemetry Channel Resources */
+	/* allocate a pseudo-channel thru asterisk */
+	myrpt->telechannel = ast_request("dahdi",AST_FORMAT_SLINEAR,"pseudo",NULL);
+	if (!myrpt->telechannel)
+	{
+		fprintf(stderr,"rpt:Sorry unable to obtain pseudo channel\n");
+		rpt_mutex_unlock(&myrpt->lock);
+		if (myrpt->txchannel != myrpt->rxchannel)
+			ast_hangup(myrpt->txchannel);
+		ast_hangup(myrpt->rxchannel);
+		myrpt->rpt_thread = AST_PTHREADT_STOP;
+		pthread_exit(NULL);
+	}
+	ast_set_read_format(myrpt->telechannel,AST_FORMAT_SLINEAR);
+	ast_set_write_format(myrpt->telechannel,AST_FORMAT_SLINEAR);
+        if(!rpt_globals.no_cdr_post)
+        {
+		if (myrpt->telechannel->cdr)
+			ast_set_flag(myrpt->telechannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
+ 	/* make a conference for the voice/tone telemetry */
+	ci.chan = 0;
+	ci.confno = -1; // make a new conference
+	ci.confmode = DAHDI_CONF_CONF | DAHDI_CONF_TALKER | DAHDI_CONF_LISTENER;
+ 	/* put the channel on the conference in proper mode */
+	if (ioctl(myrpt->telechannel->fds[0],DAHDI_SETCONF,&ci) == -1)
+	{
+		ast_log(LOG_WARNING, "Unable to set conference mode to Announce\n");
+		rpt_mutex_unlock(&myrpt->lock);
+		ast_hangup(myrpt->txpchannel);
+		ast_hangup(myrpt->monchannel);
+		if (myrpt->txchannel != myrpt->rxchannel)
+			ast_hangup(myrpt->txchannel);
+		ast_hangup(myrpt->rxchannel);
+		myrpt->rpt_thread = AST_PTHREADT_STOP;
+		pthread_exit(NULL);
+	}
+	myrpt->teleconf=ci.confno;
+
+	/* make a channel to connect between the telemetry conference process
+	   and the main tx audio conference. */
+	myrpt->btelechannel = ast_request("dahdi",AST_FORMAT_SLINEAR,"pseudo",NULL);
+	if (!myrpt->btelechannel)
+	{
+		fprintf(stderr,"rtp:Failed to obtain pseudo channel for btelechannel\n");
+		rpt_mutex_unlock(&myrpt->lock);
+		if (myrpt->txchannel != myrpt->rxchannel)
+			ast_hangup(myrpt->txchannel);
+		ast_hangup(myrpt->rxchannel);
+		myrpt->rpt_thread = AST_PTHREADT_STOP;
+		pthread_exit(NULL);
+	}
+	ast_set_read_format(myrpt->btelechannel,AST_FORMAT_SLINEAR);
+	ast_set_write_format(myrpt->btelechannel,AST_FORMAT_SLINEAR);
+	 if(!rpt_globals.no_cdr_post)
+        {
+		if (myrpt->btelechannel->cdr)
+			ast_set_flag(myrpt->btelechannel->cdr,AST_CDR_FLAG_POST_DISABLED);	
+	}
+	/* make a conference linked to the main tx conference */
+	ci.chan = 0;
+	ci.confno = myrpt->txconf;
+	ci.confmode = DAHDI_CONF_CONF | DAHDI_CONF_LISTENER | DAHDI_CONF_TALKER;
+	/* first put the channel on the conference in proper mode */
+	if (ioctl(myrpt->btelechannel->fds[0], DAHDI_SETCONF, &ci) == -1)
+	{
+		ast_log(LOG_ERROR, "Failed to create btelechannel.\n");
+		ast_hangup(myrpt->btelechannel);
+		ast_hangup(myrpt->btelechannel);
+		myrpt->rpt_thread = AST_PTHREADT_STOP;
+		pthread_exit(NULL);
+	}
+
 	/* allocate a pseudo-channel thru asterisk */
 	myrpt->voxchannel = ast_request(DAHDI_CHANNEL_NAME,AST_FORMAT_SLINEAR,"pseudo",NULL);
 	if (!myrpt->voxchannel)
@@ -19464,10 +20431,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 	}
 	ast_set_read_format(myrpt->voxchannel,AST_FORMAT_SLINEAR);
 	ast_set_write_format(myrpt->voxchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (myrpt->voxchannel->cdr)
-		ast_set_flag(myrpt->voxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{		
+		if (myrpt->voxchannel->cdr)
+			ast_set_flag(myrpt->voxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(myrpt->voxchannel);
 	/* allocate a pseudo-channel thru asterisk */
 	myrpt->txpchannel = ast_request(DAHDI_CHANNEL_NAME,AST_FORMAT_SLINEAR,"pseudo",NULL);
@@ -19483,10 +20451,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 		myrpt->rpt_thread = AST_PTHREADT_STOP;
 		pthread_exit(NULL);
 	}
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (myrpt->txpchannel->cdr)
-		ast_set_flag(myrpt->txpchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (myrpt->txpchannel->cdr)
+			ast_set_flag(myrpt->txpchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	ast_answer(myrpt->txpchannel);
 	/* make a conference for the tx */
 	ci.chan = 0;
@@ -19837,7 +20806,8 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 			{
 				tailmessagequeued = 1; /* Tail message telemetry */
 			}
-			else if((telem->mode == STATS_TIME_LOCAL) || (telem->mode == LOCALPLAY))
+			else if((telem->mode == STATS_TIME_LOCAL) || (telem->mode == LOCALPLAY) || (telem->mode == ALPHANUM_LOCAL) || 
+				(telem->mode == REMIP_LOCAL) || (telem->mode == SAYIP_LOCAL))
 			{
 				localmsgqueued = 1; /* Local message */
 			}
@@ -20178,6 +21148,8 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 		cs[n++] = myrpt->rxchannel;
 		cs[n++] = myrpt->pchannel;
 		cs[n++] = myrpt->monchannel;
+		cs[n++] = myrpt->telechannel;
+		cs[n++] = myrpt->btelechannel;
 		if (myrpt->parrotchannel) cs[n++] = myrpt->parrotchannel;
 		if (myrpt->voxchannel) cs[n++] = myrpt->voxchannel;
 		cs[n++] = myrpt->txpchannel;
@@ -20666,6 +21638,7 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 			// get the lock again
 			rpt_mutex_lock(&myrpt->lock);
 			myrpt->cmdAction.state = CMD_STATE_IDLE;
+			if(status) noop;
 		} /* if myrpt->cmdAction.state == CMD_STATE_READY */
 		
 		c = myrpt->macrobuf[0];
@@ -20701,11 +21674,9 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 			}
 			if (f->frametype == AST_FRAME_VOICE)
 			{
-#ifdef	_MDC_DECODE_H_
 				unsigned char ubuf[2560];
 				short *sp;
 				int n;
-#endif
 				if (myrpt->p.rxburstfreq)
 				{
 					if ((!myrpt->reallykeyed) || myrpt->keyed)
@@ -20750,104 +21721,104 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 						myrpt->keyposttimer = KEYPOSTSHORTTIME;
 					}
 				}
-#ifdef	_MDC_DECODE_H_
-				if (!myrpt->reallykeyed)
-				{
-					memset(AST_FRAME_DATAP(f),0,f->datalen);
-				}
-				sp = (short *) AST_FRAME_DATAP(f);
-				/* convert block to unsigned char */
-				for(n = 0; n < f->datalen / 2; n++)
-				{
-					ubuf[n] = (*sp++ >> 8) + 128;
-				}
-				n = mdc_decoder_process_samples(myrpt->mdc,ubuf,f->datalen / 2);
-				if (n == 1)
-				{
-
-					unsigned char op,arg;
-					unsigned short unitID;
-					char ustr[10];
-
-					mdc_decoder_get_packet(myrpt->mdc,&op,&arg,&unitID);
-					if (option_verbose)
-					{
-						ast_verbose("Got MDC-1200 (single-length) packet on node %s:\n",myrpt->name);
-						ast_verbose("op: %02x, arg: %02x, UnitID: %04x\n",
-							op & 255,arg & 255,unitID);
-					}
-					/* if for PTT ID */
-					if ((op == 1) && ((arg == 0) || (arg == 0x80)))
+				if(rpt_globals.mdc_decode) {
+					if (!myrpt->reallykeyed)
 					{
-						myrpt->lastunit = unitID;
-						sprintf(ustr,"I%04X",unitID);
-						mdc1200_notify(myrpt,NULL,ustr);
-						mdc1200_send(myrpt,ustr);
-						mdc1200_cmd(myrpt,ustr);
+						memset(AST_FRAME_DATAP(f),0,f->datalen);
 					}
-					/* if for EMERGENCY */
-					if ((op == 0) && ((arg == 0x81) || (arg == 0x80)))
+					sp = (short *) AST_FRAME_DATAP(f);
+					/* convert block to unsigned char */
+					for(n = 0; n < f->datalen / 2; n++)
 					{
-						myrpt->lastunit = unitID;
-						sprintf(ustr,"E%04X",unitID);
-						mdc1200_notify(myrpt,NULL,ustr);
-						mdc1200_send(myrpt,ustr);
-						mdc1200_cmd(myrpt,ustr);
-					}
-                                        /* if for Stun ACK W9CR */
-                                        if ((op == 0x0b) && (arg == 0x00))
-                                        {
-                                                myrpt->lastunit = unitID;
-                                                sprintf(ustr,"STUN ACK %04X",unitID);
+						ubuf[n] = (*sp++ >> 8) + 128;
 					}
-					/* if for STS (status)  */
-					if (op == 0x46)
+					n = mdc_decoder_process_samples(myrpt->mdc,ubuf,f->datalen / 2);
+					if (n == 1)
 					{
-						myrpt->lastunit = unitID;
-						sprintf(ustr,"S%04X-%X",unitID,arg & 0xf);
 
+						unsigned char op,arg;
+						unsigned short unitID;
+						char ustr[20] = "";
 
-#ifdef	_MDC_ENCODE_H_
-						mdc1200_ack_status(myrpt,unitID);
-#endif
-						mdc1200_notify(myrpt,NULL,ustr);
-						mdc1200_send(myrpt,ustr);
-						mdc1200_cmd(myrpt,ustr);
-					}
-				}
-				if (n == 2)
-				{
-					unsigned char op,arg,ex1,ex2,ex3,ex4;
-					unsigned short unitID;
-					char ustr[20];
+						mdc_decoder_get_packet(myrpt->mdc,&op,&arg,&unitID);
+						if (option_verbose)
+						{
+							ast_verbose("Got MDC-1200 (single-length) packet on node %s:\n",myrpt->name);
+							ast_verbose("op: %02x, arg: %02x, UnitID: %04x\n",
+								op & 255,arg & 255,unitID);
+						}
+						/* if for PTT ID */
+						if ((op == 1) && ((arg == 0) || (arg == 0x80)))
+						{
+							myrpt->lastunit = unitID;
+							sprintf(ustr,"I%04X",unitID);
+							mdc1200_notify(myrpt,NULL,ustr);
+							mdc1200_send(myrpt,ustr);
+							mdc1200_cmd(myrpt,ustr);
+						}
+						/* if for EMERGENCY */
+						if ((op == 0) && ((arg == 0x81) || (arg == 0x80)))
+						{
+							myrpt->lastunit = unitID;
+							sprintf(ustr,"E%04X",unitID);
+							mdc1200_notify(myrpt,NULL,ustr);
+							mdc1200_send(myrpt,ustr);
+							mdc1200_cmd(myrpt,ustr);
+						}
+	                                        /* if for Stun ACK W9CR */
+	                                        if ((op == 0x0b) && (arg == 0x00))
+	                                        {
+	                                                myrpt->lastunit = unitID;
+	                                                sprintf(ustr,"STUN ACK %04X",unitID);
+						}
+						/* if for STS (status)  */
+						if (op == 0x46)
+						{
+							myrpt->lastunit = unitID;
+							sprintf(ustr,"S%04X-%X",unitID,arg & 0xf);
 
-					mdc_decoder_get_double_packet(myrpt->mdc,&op,&arg,&unitID,
-						&ex1,&ex2,&ex3,&ex4);
-					if (option_verbose)
-					{
-						ast_verbose("Got MDC-1200 (double-length) packet on node %s:\n",myrpt->name);
-						ast_verbose("op: %02x, arg: %02x, UnitID: %04x\n",
-							op & 255,arg & 255,unitID);
-						ast_verbose("ex1: %02x, ex2: %02x, ex3: %02x, ex4: %02x\n",
-							ex1 & 255, ex2 & 255, ex3 & 255, ex4 & 255);
-					}
-					/* if for SelCall or Alert */
-					if ((op == 0x35) && (arg = 0x89))
-					{
-						/* if is Alert */
-						if (ex1 & 1) sprintf(ustr,"A%02X%02X-%04X",ex3 & 255,ex4 & 255,unitID);
-						/* otherwise is selcall */
-						else  sprintf(ustr,"S%02X%02X-%04X",ex3 & 255,ex4 & 255,unitID);
+
+						if(rpt_globals.mdc_encode)
+							mdc1200_ack_status(myrpt,unitID);
 						mdc1200_notify(myrpt,NULL,ustr);
 						mdc1200_send(myrpt,ustr);
 						mdc1200_cmd(myrpt,ustr);
+						}
+					}
+					if (n == 2)
+					{
+						unsigned char op,arg,ex1,ex2,ex3,ex4;
+						unsigned short unitID;
+						char ustr[20];
+
+						mdc_decoder_get_double_packet(myrpt->mdc,&op,&arg,&unitID,
+							&ex1,&ex2,&ex3,&ex4);
+						if (option_verbose)
+						{
+							ast_verbose("Got MDC-1200 (double-length) packet on node %s:\n",myrpt->name);
+							ast_verbose("op: %02x, arg: %02x, UnitID: %04x\n",
+								op & 255,arg & 255,unitID);
+							ast_verbose("ex1: %02x, ex2: %02x, ex3: %02x, ex4: %02x\n",
+								ex1 & 255, ex2 & 255, ex3 & 255, ex4 & 255);
+						}
+						/* if for SelCall or Alert */
+						if ((op == 0x35) && (arg = 0x89))
+						{
+							/* if is Alert */
+							if (ex1 & 1) sprintf(ustr,"A%02X%02X-%04X",ex3 & 255,ex4 & 255,unitID);
+							/* otherwise is selcall */
+							else  sprintf(ustr,"S%02X%02X-%04X",ex3 & 255,ex4 & 255,unitID);
+							mdc1200_notify(myrpt,NULL,ustr);
+							mdc1200_send(myrpt,ustr);
+							mdc1200_cmd(myrpt,ustr);
+						}
 					}
 				}
-#endif
-#ifdef	__RPT_NOTCH
-				/* apply inbound filters, if any */
-				rpt_filter(myrpt,AST_FRAME_DATAP(f),f->datalen / 2);
-#endif
+				if(rpt_globals.notchfilter)
+				{
+					/* apply inbound filters, if any */
+					rpt_filter(myrpt,AST_FRAME_DATAP(f),f->datalen / 2);
+				}
 				if ((!myrpt->localtx) && /* (!myrpt->p.linktolink) && */
 				    (!myrpt->localoverride))
 				{
@@ -20897,6 +21868,7 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 					{
 						int bs;
 						bs = write(myrpt->outstreampipe[1],AST_FRAME_DATAP(f1),f1->datalen);
+						if(bs) noop;
 					}
 				}
 			}
@@ -21024,7 +21996,7 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 						// ctcss code autopatch initiate
 						if (strstr((char *)AST_FRAME_DATAP(f),"/M/")&& !myrpt->macropatch)
 						{
-						    char val[16];
+						        char val[16] = "";
 							strcat(val,"*6");
 							myrpt->macropatch=1;
 							rpt_mutex_lock(&myrpt->lock);
@@ -21109,6 +22081,16 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 				char buf[100];
 				int j;
 
+				/* if is a USRP device */
+				if (strncasecmp(myrpt->rxchannel->name,"usrp/", 5) == 0)
+				{
+					char *argv[4];
+					int argc = 4;
+					argv[2] = myrpt->name;
+					argv[3] = AST_FRAME_DATAP(f);
+					rpt_do_sendall(0,argc,argv);
+				}	
+
 				/* if is a USB device */
 				if ((strncasecmp(myrpt->rxchannel->name,"radio/", 6) == 0) || 
 				    (strncasecmp(myrpt->rxchannel->name,"simpleusb/", 10) == 0))
@@ -21338,10 +22320,11 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 				    (!(myrpt->cmdnode[0] || 
 					(myrpt->dtmfidx > -1)));
 				mycalltx = myrpt->callmode;
-#ifdef	DONT_USE__CAUSES_CLIPPING_OF_FIRST_SYLLABLE_ON_LINK
-				if (myrpt->patchvoxalways) 
-					mycalltx = mycalltx && ((!myrpt->voxtostate) && myrpt->wasvox);
-#endif
+				if(rpt_globals.link_clip)
+				{
+					if (myrpt->patchvoxalways) 
+						mycalltx = mycalltx && ((!myrpt->voxtostate) && myrpt->wasvox);
+				}
 				totx = ((l->isremote) ? (remnomute) : 
 					myrpt->localtx || mycalltx) || remrx;
 
@@ -21880,6 +22863,7 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 				{
 					int bs;
 					bs = write(myrpt->outstreampipe[1],AST_FRAME_DATAP(f),f->datalen);
+					if(bs) noop;
 				}
 				fs = ast_frdup(f);
 				fac = 1.0;
@@ -22019,7 +23003,81 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 			ast_frfree(f);
 			continue;
 		}
+
+		/* Handle telemetry conference output */
+		if (who == myrpt->telechannel) /* if is telemetry conference output */
+		{
+			if(debug && debug != 128)ast_log(LOG_NOTICE,"node=%s %p %p %d %d %d\n",myrpt->name,who,myrpt->telechannel,myrpt->keyed,myrpt->remrx,myrpt->noduck);
+			f = ast_read(myrpt->telechannel);
+			if (!f)
+			{
+				if (debug) ast_log(LOG_NOTICE,"node=%s telechannel Hung Up implied\n",myrpt->name);
+				break;
+			}
+			if (f->frametype == AST_FRAME_VOICE)
+			{
+				float gain;
+
+				//if(!myrpt->noduck&&(myrpt->rxchankeyed||myrpt->remrx)) /* This is for when/if simple voter is implemented.  It replaces the line below it. */
+				if(!myrpt->noduck&&(myrpt->keyed||myrpt->remrx))
+					gain = myrpt->p.telemduckgain;
+				else
+					gain = myrpt->p.telemnomgain;
+
+//ast_log(LOG_NOTICE,"node=%s %i %i telem gain set %d %d gain = %f\n",myrpt->name,who,myrpt->telechannel,myrpt->noduck, gain);
+				if(gain!=0)
+				{
+					int n,k;
+					short *sp = (short *) f->data;
+					for(n=0; ndatalen/2; n++)
+					{
+						k=sp[n]*gain;
+						if (k > 32767) k = 32767;
+						else if (k < -32767) k = -32767;
+						sp[n]=k;
+					}
+				}
+				ast_write(myrpt->btelechannel,f);
+			}
+			if (f->frametype == AST_FRAME_CONTROL)
+			{
+				if (f->subclass == AST_CONTROL_HANGUP)
+				{
+					if ( debug>5 ) ast_log(LOG_NOTICE,"node=%s telechannel Hung Up\n",myrpt->name);
+					ast_frfree(f);
+					break;
+				}
+			}
+			ast_frfree(f);
+			continue;
+		}
+		/* if is btelemetry conference output */
+		if (who == myrpt->btelechannel)
+		{
+			f = ast_read(myrpt->btelechannel);
+			if (!f)
+			{
+				if (debug) ast_log(LOG_NOTICE,"node=%s btelechannel Hung Up implied\n",myrpt->name);
+				break;
+			}
+			if (f->frametype == AST_FRAME_CONTROL)
+			{
+				if (f->subclass == AST_CONTROL_HANGUP)
+				{
+					if ( debug>5 ) ast_log(LOG_NOTICE,"node=%s btelechannel Hung Up\n",myrpt->name);
+					ast_frfree(f);
+					break;
+				}
+			}
+			ast_frfree(f);
+			continue;
+		}
+
 	}
+
+/*
+terminate and cleanup app_rpt node instance
+*/
 	myrpt->ready = 0;
 	usleep(100000);
 	/* wait for telem to be done */
@@ -22029,6 +23087,8 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 	if (myrpt->parrotchannel) ast_hangup(myrpt->parrotchannel);
 	myrpt->parrotstate = 0;
 	if (myrpt->voxchannel) ast_hangup(myrpt->voxchannel);
+	ast_hangup(myrpt->btelechannel);
+	ast_hangup(myrpt->telechannel);
 	ast_hangup(myrpt->txpchannel);
 	if (myrpt->txchannel != myrpt->rxchannel) ast_hangup(myrpt->txchannel);
 	if (myrpt->zaptxchannel != myrpt->txchannel) ast_hangup(myrpt->zaptxchannel);
@@ -22060,7 +23120,179 @@ char tmpstr[300],lstr[MAXLINKLIST],lat[100],lon[100],elev[100];
 	return NULL;
 }
 
-	
+#define cfg_vp(s1,val) ast_verbose(VERBOSE_PREFIX_3 "Setting %s to %s\n", s1, val ? "enabled" : "disabled");
+
+static char *cfg_stat(int val)
+{
+	return (val ? "enabled" : "disabled");
+}
+
+static void cfg_globals_init(struct ast_config *cfg)
+{
+        struct ast_variable *var;
+        int i;
+        char *p;
+
+        var = ast_variable_browse(cfg,"globals");
+        if(!var){
+                ast_log(LOG_NOTICE,"No [globals] section defined in rpt.conf -- using defaults\n");
+        } else 	{
+                p = (char *) ast_variable_retrieve(cfg,"globals","maxlinks");  /* max link count allowed */
+                if(p) {
+	                i = myatoi(p);
+		        if ((i < DEFAULT_MIN_STAT_LINKS) || (i > DEFAULT_MAX_STAT_LINKS)) {
+	                        i = DEFAULT_MIN_STAT_LINKS;
+	                        ast_log(LOG_WARNING, "maxlinks exceeds minimum or maximum allowed stat links.  Defaulting to %d\n\n", DEFAULT_MIN_STAT_LINKS);
+	                }
+                        MAX_STAT_LINKS = i; 
+	                ast_log(LOG_NOTICE, "MAX_STAT_LINKS = %d\n", MAX_STAT_LINKS);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","conslock"); /* set rpt globals console lock */
+		if(p)
+		{
+			i = myatoi(p);
+			if ((i < 0) || ( i > 2)) {
+				i = 0;
+				ast_log(LOG_ERROR,"Invalid value for conslock.  Defaulting to 0 (off)\n\n");
+			}
+			rpt_globals.conslock = i;
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","net_if"); /* set global net_if for stats 22 IP messages */
+		if(p) strncpy(rpt_globals.net_if,p,49);
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","remoteip_url"); /* set global remoteip_url */
+		if(p) rpt_globals.remoteip_url = p;
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","statpost"); /* set global statpost */
+		if(p)
+		{
+			i = atoi(p);
+			if((i < 0) || (i > 2))
+			{
+				i = 1;
+				ast_log(LOG_ERROR,"Invalid value for global statpost.  Defaulting to 1 (AllStarLink)\n\n");
+			}
+			rpt_globals.statpost = atoi(p);
+		}
+
+		if(rpt_globals.statpost==2)
+		{
+			p = (char *) ast_variable_retrieve(cfg,"globals","statpost_url"); /* set global statpost_url */
+			if(p) rpt_globals.statpost_url = p;
+				else {
+					rpt_globals.statpost=1;
+					ast_log(LOG_ERROR,"Global statpost is set to 2, global statposr_url is missing or blank.  Defaulting global statpost to 1 (AllStarLink)\n\n");
+				}
+		}
+
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","notchfilter"); /* enable notch filter */
+		if(p)
+		{
+			rpt_globals.notchfilter = atoi(p);
+			cfg_vp("notchfilter",rpt_globals.notchfilter);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","mdcencode"); /* enable MDC encode */
+		if(p)
+		{
+			rpt_globals.mdc_encode = atoi(p);
+			cfg_vp("mdcencode",rpt_globals.mdc_encode);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","mdcdecode"); /* enable MDC decode */
+		if(p)
+		{
+			rpt_globals.mdc_decode = atoi(p);
+			cfg_vp("mdcdecode",rpt_globals.mdc_decode);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","localchannels"); /* allow local channels */
+		if(p)
+		{
+			rpt_globals.localchannels = atoi(p);
+			cfg_vp("localchannels",rpt_globals.localchannels);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","fakeserial"); /* fake serial response */
+		if(p)
+		{
+			rpt_globals.fake_serial = atoi(p);
+			cfg_vp("fakeserial",rpt_globals.fake_serial);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","noremotemdc"); /* no MDC1200 on remote base */
+		if(p)
+		{
+			rpt_globals.noremotemdc = atoi(p);
+			cfg_vp("noremotemdc",rpt_globals.noremotemdc);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","nocdrpost"); /* no cdr post */
+		if(p)
+		{
+			rpt_globals.no_cdr_post = atoi(p);
+			cfg_vp("nocdrpost",rpt_globals.no_cdr_post);
+
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","mdcsay"); /* when mdcdecode enabled, also say mdc on ct */
+		if(p)
+		{
+			rpt_globals.mdc_say = atoi(p);
+			cfg_vp("mdcsay",rpt_globals.mdc_say);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","linkclip"); /* turn on routine that may clip first syllable on link */
+		if(p)
+		{
+			rpt_globals.link_clip = atoi(p);
+			cfg_vp("linkclip",rpt_globals.link_clip);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","zoption"); /* enable "Z" option in app_rpt at starup */
+		if(p)
+		{
+			rpt_globals.z_opt = atoi(p);
+			cfg_vp("zoption",rpt_globals.z_opt);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","alttune"); /* enable alternate TUNE routines in telemetry thread */
+		if(p)
+		{
+			rpt_globals.alt_tune = atoi(p);
+			cfg_vp("alttune",rpt_globals.alt_tune);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","linkdtmf"); /* enable additional link dtmf routine */
+		if(p)
+		{
+			rpt_globals.link_dtmf = atoi(p);
+			cfg_vp("linkdtmf",rpt_globals.link_dtmf);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","setic706ctcss"); /* enable alternate ctcss set routine for IC706 */
+		if(p)
+		{
+			rpt_globals.set_ic706_ctcss = atoi(p);
+			cfg_vp("setic706ctcss",rpt_globals.set_ic706_ctcss);
+		}
+
+		p = (char *) ast_variable_retrieve(cfg,"globals","dtmftimeout"); /* set dtmf timeout */
+		if(p)
+		{
+			int t = atoi(p);
+			if (t < DEFAULT_DTMF_TIMEOUT)
+				t = DEFAULT_DTMF_TIMEOUT;
+			DTMF_TIMEOUT = t;
+			ast_verbose(VERBOSE_PREFIX_3 "Settings dtmftimeout to %d\n", DTMF_TIMEOUT);
+		}	 		    
+	}
+	rpt_show_globals(0, 0);
+}
+
 static void *rpt_master(void *ignore)
 {
 int	i,n;
@@ -22068,6 +23300,16 @@ pthread_attr_t attr;
 struct ast_config *cfg;
 char *this,*val;
 
+struct sched_param      rptmaster_sched;
+
+        pthread_t master_selfid = pthread_self();
+        rptmaster_sched.sched_priority=RPTMASTERTHREAD_PRI;
+        if(pthread_setschedparam(master_selfid, SCHED_POLICY, &rptmaster_sched) != 0)
+        {
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
+
+
 	/* init nodelog queue */
 	nodelog.next = nodelog.prev = &nodelog;
 	/* go thru all the specified repeaters */
@@ -22089,11 +23331,19 @@ char *this,*val;
 		pthread_exit(NULL);
 	}
 
+	ast_verbose("\n>>>---> Initializing %s\n\n", tdesc);
+
 	/*
  	* If there are daq devices present, open and initialize them
  	*/
 	daq_init(cfg);
 
+	/*
+	 * If there is a [globals] stanza, read it
+	 */
+        cfg_globals_init(cfg);
+
+	get_sys_info();
 
 	while((this = ast_category_browse(cfg,this)) != NULL)
 	{
@@ -22132,9 +23382,10 @@ char *this,*val;
 		rpt_vars[n].tele.prev = &rpt_vars[n].tele;
 		rpt_vars[n].rpt_thread = AST_PTHREADT_NULL;
 		rpt_vars[n].tailmessagen = 0;
-#ifdef	_MDC_DECODE_H_
-		rpt_vars[n].mdc = mdc_decoder_new(8000);
-#endif
+//#ifdef	_MDC_DECODE_H_
+		if(rpt_globals.mdc_decode)
+			rpt_vars[n].mdc = mdc_decoder_new(8000);
+//#endif
 		n++;
 	}
 	nrpts = n;
@@ -22191,6 +23442,7 @@ char *this,*val;
 		}
 		rpt_vars[i].ready = 0;
 	        pthread_attr_init(&attr);
+		pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
 	        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 		ast_pthread_create(&rpt_vars[i].rpt_thread,&attr,rpt,(void *) &rpt_vars[i]);
 	}
@@ -22234,6 +23486,7 @@ char *this,*val;
 
 				rpt_vars[i].lastthreadrestarttime = time(NULL);
 			        pthread_attr_init(&attr);
+				pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
 	 		        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 				ast_pthread_create(&rpt_vars[i].rpt_thread,&attr,rpt,(void *) &rpt_vars[i]);
 				/* if (!rpt_vars[i].xlink) */
@@ -22450,16 +23703,17 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 				}
 				/* get his IP from IAX2 module */
 				memset(hisip,0,sizeof(hisip));
-#ifdef ALLOW_LOCAL_CHANNELS
-			        /* set IP address if this is a local connection*/
-			        if (strncmp(chan->name,"Local",5)==0) {
-					strcpy(hisip,"127.0.0.1");
-			        } else {
+				if(rpt_globals.localchannels)
+				{					
+				        /* set IP address if this is a local connection*/
+				        if (strncmp(chan->name,"Local",5)==0) {
+						strcpy(hisip,"127.0.0.1");
+				        } else {
+						pbx_substitute_variables_helper(chan,"${IAXPEER(CURRENTCHANNEL)}",hisip,sizeof(hisip) - 1);
+					}
+				} else {
 					pbx_substitute_variables_helper(chan,"${IAXPEER(CURRENTCHANNEL)}",hisip,sizeof(hisip) - 1);
 				}
-#else
-				pbx_substitute_variables_helper(chan,"${IAXPEER(CURRENTCHANNEL)}",hisip,sizeof(hisip) - 1);
-#endif
 				if (!hisip[0])
 				{
 					ast_log(LOG_WARNING, "Link IP address cannot be determined!!\n");
@@ -22634,14 +23888,13 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 		return(channel_revert(myrpt));
 	}
 
-	#if 0
-	if((altp)&&(*options == 'Z'))
-	{
-		rpt_push_alt_macro(myrpt,altp);
-		return 0;
+	if(rpt_globals.z_opt) {
+		if((altp)&&(*options == 'Z'))
+		{
+			rpt_push_alt_macro(myrpt,altp);
+			return 0;
+		}
 	}
-	#endif
-
 
 	/* if not phone access, must be an IAX connection */
 	if (options && ((*options == 'P') || (*options == 'D') || (*options == 'R') || (*options == 'S')))
@@ -22685,21 +23938,22 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 	}
 	else
 	{
-#ifdef ALLOW_LOCAL_CHANNELS
-	        /* Check to insure the connection is IAX2 or Local*/
-	        if ( (strncmp(chan->name,"IAX2",4)) && (strncmp(chan->name,"Local",5)) &&
-		  (strncasecmp(chan->name,"echolink",8)) && (strncasecmp(chan->name,"tlb",3)) ) {
-	            ast_log(LOG_WARNING, "We only accept links via IAX2, Echolink, TheLinkBox or Local!!\n");
-	            return -1;
-	        }
-#else
-		if (strncmp(chan->name,"IAX2",4) && strncasecmp(chan->name,"Echolink",8) && 
-			strncasecmp(chan->name,"tlb",3))
+		if(rpt_globals.localchannels)
 		{
-			ast_log(LOG_WARNING, "We only accept links via IAX2 or Echolink!!\n");
-			return -1;
+		        /* Check to insure the connection is IAX2 or Local*/
+		        if ( (strncmp(chan->name,"IAX2",4)) && (strncmp(chan->name,"Local",5)) &&
+			  (strncasecmp(chan->name,"echolink",8)) && (strncasecmp(chan->name,"tlb",3)) ) {
+		            ast_log(LOG_WARNING, "We only accept links via IAX2, Echolink, TheLinkBox or Local!!\n");
+		            return -1;
+		        }
+		} else {
+			if (strncmp(chan->name,"IAX2",4) && strncasecmp(chan->name,"Echolink",8) && 
+				strncasecmp(chan->name,"tlb",3))
+			{
+				ast_log(LOG_WARNING, "We only accept links via IAX2 or Echolink!!\n");
+				return -1;
+			}
 		}
-#endif
 	        if((myrpt->p.s[myrpt->p.sysstate_cur].txdisable) || myrpt->p.s[myrpt->p.sysstate_cur].noincomingconns){ /* Do not allow incoming radio connections if disabled or noincomingconns is set */
         	        ast_log(LOG_NOTICE, "Connect attempt to node %s  with tx disabled or NOICE cop function active", myrpt->name);
                 	return -1;
@@ -22837,16 +24091,17 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 		}
 		/* get his IP from IAX2 module */
 		memset(hisip,0,sizeof(hisip));
-#ifdef ALLOW_LOCAL_CHANNELS
-	        /* set IP address if this is a local connection*/
-	        if (strncmp(chan->name,"Local",5)==0) {
-	            strcpy(hisip,"127.0.0.1");
-	        } else {
+		if(rpt_globals.localchannels)
+		{
+		        /* set IP address if this is a local connection*/
+		        if (strncmp(chan->name,"Local",5)==0) {
+		            strcpy(hisip,"127.0.0.1");
+		        } else {
+				pbx_substitute_variables_helper(chan,"${IAXPEER(CURRENTCHANNEL)}",hisip,sizeof(hisip) - 1);
+			}
+		} else {
 			pbx_substitute_variables_helper(chan,"${IAXPEER(CURRENTCHANNEL)}",hisip,sizeof(hisip) - 1);
 		}
-#else
-		pbx_substitute_variables_helper(chan,"${IAXPEER(CURRENTCHANNEL)}",hisip,sizeof(hisip) - 1);
-#endif
 
 		if (!hisip[0])
 		{
@@ -23071,10 +24326,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 		ast_set_read_format(l->pchan,AST_FORMAT_SLINEAR);
 		ast_set_write_format(l->pchan,AST_FORMAT_SLINEAR);
 		ast_answer(l->pchan);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-		if (l->pchan->cdr)
-			ast_set_flag(l->pchan->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+		if(!rpt_globals.no_cdr_post)
+		{
+			if (l->pchan->cdr)
+				ast_set_flag(l->pchan->cdr,AST_CDR_FLAG_POST_DISABLED);
+		}
 		/* make a conference for the tx */
 		ci.chan = 0;
 		ci.confno = myrpt->conf;
@@ -23167,10 +24423,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 				}
 				ast_playtones_stop(chan);
 			}
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-			if (chan->cdr)
-				ast_set_flag(chan->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+			if(!rpt_globals.no_cdr_post)
+			{
+				if (chan->cdr)
+					ast_set_flag(chan->cdr,AST_CDR_FLAG_POST_DISABLED);
+			}
 			return -1;
 		}		
 		rpt_mutex_lock(&myrpt->lock);
@@ -23193,10 +24450,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 				{
 					rpt_mutex_unlock(&myrpt->lock);
 					ast_log(LOG_WARNING, "Trying to use busy link (repeater node %s) on %s\n",rpt_vars[i].name,tmp);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-					if (chan->cdr)
-						ast_set_flag(chan->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+					if(!rpt_globals.no_cdr_post)
+					{
+						if (chan->cdr)
+							ast_set_flag(chan->cdr,AST_CDR_FLAG_POST_DISABLED);
+					}
 					return -1;
 				}
 				while(rpt_vars[i].xlink != 3)
@@ -23210,10 +24468,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 					rpt_mutex_unlock(&myrpt->lock);
 					if (ast_safe_sleep(chan,500) == -1)
 					{
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-						if (chan->cdr)
-							ast_set_flag(chan->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+						if(!rpt_globals.no_cdr_post)
+						{
+							if (chan->cdr)
+								ast_set_flag(chan->cdr,AST_CDR_FLAG_POST_DISABLED);
+						}
 						return -1;
 					}
 					rpt_mutex_lock(&myrpt->lock);
@@ -23262,10 +24521,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 	{
 		ast_set_read_format(myrpt->rxchannel,AST_FORMAT_SLINEAR);
 		ast_set_write_format(myrpt->rxchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-		if (myrpt->rxchannel->cdr)
-			ast_set_flag(myrpt->rxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+		if(!rpt_globals.no_cdr_post)
+		{
+			if (myrpt->rxchannel->cdr)
+				ast_set_flag(myrpt->rxchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+		}
 #ifndef	NEW_ASTERISK
 		myrpt->rxchannel->whentohangup = 0;
 #endif
@@ -23304,10 +24564,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 		{
 			ast_set_read_format(myrpt->txchannel,AST_FORMAT_SLINEAR);
 			ast_set_write_format(myrpt->txchannel,AST_FORMAT_SLINEAR);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-			if (myrpt->txchannel->cdr)
-				ast_set_flag(myrpt->txchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+			if(!rpt_globals.no_cdr_post)
+			{
+				if (myrpt->txchannel->cdr)
+					ast_set_flag(myrpt->txchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+			}
 #ifndef	NEW_ASTERISK
 			myrpt->txchannel->whentohangup = 0;
 #endif
@@ -23351,10 +24612,11 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 	ast_set_read_format(myrpt->pchannel,AST_FORMAT_SLINEAR);
 	ast_set_write_format(myrpt->pchannel,AST_FORMAT_SLINEAR);
 	ast_answer(myrpt->pchannel);
-#ifdef	AST_CDR_FLAG_POST_DISABLED
-	if (myrpt->pchannel->cdr)
-		ast_set_flag(myrpt->pchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
-#endif
+	if(!rpt_globals.no_cdr_post)
+	{
+		if (myrpt->pchannel->cdr)
+			ast_set_flag(myrpt->pchannel->cdr,AST_CDR_FLAG_POST_DISABLED);
+	}
 	if (!myrpt->zaprxchannel) myrpt->zaprxchannel = myrpt->pchannel;
 	if (!myrpt->zaptxchannel) myrpt->zaptxchannel = myrpt->pchannel;
 	/* make a conference for the pseudo */
@@ -23581,6 +24843,8 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 	cs[n++] = chan;
 	cs[n++] = myrpt->rxchannel;
 	cs[n++] = myrpt->pchannel;
+	cs[n++] = myrpt->telechannel;
+	cs[n++] = myrpt->btelechannel;
 	if (myrpt->rxchannel != myrpt->txchannel)
 		cs[n++] = myrpt->txchannel;
 	if (!phone_mode) send_newkey(chan);
@@ -24134,6 +25398,73 @@ static int rpt_exec(struct ast_channel *chan, void *data)
 			ast_frfree(f);
 			continue;
 		}
+
+   	        /* Handle telemetry conference output */
+		if (who == myrpt->telechannel) /* if is telemetry conference output */
+		{
+			f = ast_read(myrpt->telechannel);
+			if (!f)
+			{
+				if (debug) ast_log(LOG_NOTICE,"node=%s telechannel Hung Up implied\n",myrpt->name);
+				break;
+			}
+			if (f->frametype == AST_FRAME_VOICE)
+			{
+				float gain;
+
+				if(myrpt->keyed)
+					gain = myrpt->p.telemduckgain;
+				else
+					gain = myrpt->p.telemnomgain;
+				if(gain)
+				{
+					int n,k;
+					short *sp = (short *) f->data;
+					for(n=0; ndatalen/2; n++)
+					{
+						k=sp[n]*gain;
+						if (k > 32767) k = 32767;
+						else if (k < -32767) k = -32767;
+						sp[n]=k;
+					}
+				}
+				ast_write(myrpt->btelechannel,f);
+			}
+			if (f->frametype == AST_FRAME_CONTROL)
+			{
+				if (f->subclass == AST_CONTROL_HANGUP)
+				{
+					if ( debug>5 ) ast_log(LOG_NOTICE,"node=%s telechannel Hung Up\n",myrpt->name);
+					ast_frfree(f);
+					break;
+				}
+			}
+			ast_frfree(f);
+			continue;
+		}
+		/* if is btelemetry conference output */
+		if (who == myrpt->btelechannel)
+		{
+			f = ast_read(myrpt->btelechannel);
+			if (!f)
+			{
+				if (debug) ast_log(LOG_NOTICE,"node=%s btelechannel Hung Up implied\n",myrpt->name);
+				break;
+			}
+			if (f->frametype == AST_FRAME_CONTROL)
+			{
+				if (f->subclass == AST_CONTROL_HANGUP)
+				{
+					if ( debug>5 ) ast_log(LOG_NOTICE,"node=%s btelechannel Hung Up\n",myrpt->name);
+					ast_frfree(f);
+					break;
+				}
+			}
+			ast_frfree(f);
+			continue;
+		}
+
+
 		if (who == myrpt->pchannel) /* if is remote mix output */
 		{
 			f = ast_read(myrpt->pchannel);
@@ -25072,8 +26403,6 @@ static int manager_rpt_status(struct mansession *s, const struct message *m)
 
 #endif
 
-#ifdef	_MDC_ENCODE_H_
-
 static char *mdc_app = "MDC1200Gen";
 static char *mdc_synopsis = "MDC1200 Generator";
 static char *mdc_descrip = "  MDC1200Gen(Type|UnitID[|DestID|SubCode]):  Generates MDC-1200\n"
@@ -25281,9 +26610,6 @@ static int mdcgen_exec(struct ast_channel *chan, void *data)
 	return res;
 }
 
-
-#endif
-
 #ifdef	OLD_ASTERISK
 int unload_module()
 #else
@@ -25304,32 +26630,15 @@ static int unload_module(void)
                 ast_mutex_destroy(&rpt_vars[i].remlock);
 	}
 	res = ast_unregister_application(app);
-#ifdef	_MDC_ENCODE_H_
-	res |= ast_unregister_application(app);
-#endif
+	if(rpt_globals.mdc_encode)
+		res |= ast_unregister_application(app);
 
 #ifdef	NEW_ASTERISK
 	ast_cli_unregister_multiple(rpt_cli,sizeof(rpt_cli) / 
 		sizeof(struct ast_cli_entry));
 #else
 	/* Unregister cli extensions */
-	ast_cli_unregister(&cli_debug);
-	ast_cli_unregister(&cli_dump);
-	ast_cli_unregister(&cli_stats);
-	ast_cli_unregister(&cli_lstats);
-	ast_cli_unregister(&cli_nodes);
-	ast_cli_unregister(&cli_xnode);
-	ast_cli_unregister(&cli_local_nodes);
-	ast_cli_unregister(&cli_reload);
-	ast_cli_unregister(&cli_restart);
-	ast_cli_unregister(&cli_playback);
-	ast_cli_unregister(&cli_fun);
-	ast_cli_unregister(&cli_fun1);
-	ast_cli_unregister(&cli_setvar);
-	ast_cli_unregister(&cli_showvars);
-	ast_cli_unregister(&cli_asl);
-	ast_cli_unregister(&cli_page);
-	res |= ast_cli_unregister(&cli_cmd);
+	ast_cli_unregister_multiple(cli_rpt, sizeof(cli_rpt) / sizeof(struct ast_cli_entry));
 #endif
 #ifndef OLD_ASTERISK
 	res |= ast_manager_unregister("RptLocalNodes");
@@ -25388,26 +26697,8 @@ static int load_module(void)
 	res = 0;
 #else
 	/* Register cli extensions */
-	ast_cli_register(&cli_debug);
-	ast_cli_register(&cli_dump);
-	ast_cli_register(&cli_stats);
-	ast_cli_register(&cli_lstats);
-	ast_cli_register(&cli_nodes);
-	ast_cli_register(&cli_xnode);
-	ast_cli_register(&cli_local_nodes);
-	ast_cli_register(&cli_reload);
-	ast_cli_register(&cli_restart);
-	ast_cli_register(&cli_playback);
-	ast_cli_register(&cli_localplay);
-	ast_cli_register(&cli_sendtext);
-	ast_cli_register(&cli_sendall);
-	ast_cli_register(&cli_fun);
-	ast_cli_register(&cli_fun1);
-	ast_cli_register(&cli_setvar);
-	ast_cli_register(&cli_showvars);
-	ast_cli_register(&cli_asl);
-	ast_cli_register(&cli_page);
-	res = ast_cli_register(&cli_cmd);
+	ast_cli_register_multiple(cli_rpt, sizeof(cli_rpt) / sizeof(struct ast_cli_entry)); 
+	res = 0;
 #endif
 #ifndef OLD_ASTERISK
 	res |= ast_manager_register("RptLocalNodes", 0, manager_rpt_local_nodes, "List local node numbers");
@@ -25415,10 +26706,8 @@ static int load_module(void)
 #endif
 	res |= ast_register_application(app, rpt_exec, synopsis, descrip);
 
-#ifdef	_MDC_ENCODE_H_
-	res |= ast_register_application(mdc_app, mdcgen_exec, mdc_synopsis, mdc_descrip);
-#endif
-
+	if(rpt_globals.mdc_encode)
+		res |= ast_register_application(mdc_app, mdcgen_exec, mdc_synopsis, mdc_descrip);
 	return res;
 }
 
@@ -25512,9 +26801,8 @@ char	*val,*this;
 			rpt_vars[n].tele.prev = &rpt_vars[n].tele;
 			rpt_vars[n].rpt_thread = AST_PTHREADT_NULL;
 			rpt_vars[n].tailmessagen = 0;
-#ifdef	_MDC_DECODE_H_
-			rpt_vars[n].mdc = mdc_decoder_new(8000);
-#endif
+			if(rpt_globals.mdc_decode)
+				rpt_vars[n].mdc = mdc_decoder_new(8000);
 			rpt_vars[n].reload1 = 1;
 			if (n >= nrpts) nrpts = n + 1;
 		}
diff --git a/asterisk/channels/chan_beagle.c b/asterisk/channels/chan_beagle.c
index 6181b9c6..17d5a4fb 100644
--- a/asterisk/channels/chan_beagle.c
+++ b/asterisk/channels/chan_beagle.c
@@ -1,21 +1,50 @@
 /* #define	NEW_ASTERISK */
-/*
- * Asterisk -- An open source telephony toolkit.
- * * Copyright (C) 1999 - 2005, Digium, Inc.
- * Copyright (C) 2007 - 2010, Jim Dixon
+/* Simple Channel driver for Native Audio/GPIO on Beagleboard for app_rpt/Asterisk
+ *
+ * chan_beagle.c - Version 200511
+ *
+ * Copyright (C) 2007-2010, Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * Jim Dixon, WB6NIL 
- * Based upon work by Mark Spencer  and Luigi Rizzo
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2005, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
-  * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
  */
 
 /*! \file
@@ -38,7 +67,7 @@
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
diff --git a/asterisk/channels/chan_echolink.c b/asterisk/channels/chan_echolink.c
index 995f3d09..18cbf4cd 100644
--- a/asterisk/channels/chan_echolink.c
+++ b/asterisk/channels/chan_echolink.c
@@ -1,22 +1,50 @@
 /* #define	OLD_ASTERISK */
-/*
- * Asterisk -- An open source telephony toolkit.
+/* Echolink Channel Driver for app_rpt/Asterisk
  *
- * Copyright (C) 1999 - 2006, Digium, Inc.
+ * chan_echolink.c - Version 200511
+ *
+ * Copyright (C) 2008 Scott Lawson, Ki4LKF; Jim Dixon, WB6NIL; AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
+ *
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * Copyright (C) 2008, Scott Lawson/KI4LKF
- * ScottLawson/KI4LKF 
- * Jim Dixon, WB6NIL 
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2006, Digium, Inc.
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
  */
 
 /*! \file
@@ -95,7 +123,7 @@ do not use 127.0.0.1
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
@@ -118,6 +146,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
 #include 
 #include 
 #include 
+#include 
+#include 
 
 #include "asterisk/lock.h"
 #include "asterisk/channel.h"
diff --git a/asterisk/channels/chan_pi.c b/asterisk/channels/chan_pi.c
index e43af310..8635a216 100644
--- a/asterisk/channels/chan_pi.c
+++ b/asterisk/channels/chan_pi.c
@@ -1,22 +1,50 @@
 /* #define	NEW_ASTERISK */
-/*
- * Copyright (C) 2016, Jim Dixon
+/* DMK Engineering "PITA" Boaard Channel Driver for app_rpt/Asterisk
  *
- * Asterisk -- An open source telephony toolkit.
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * chan_pi.c - Version 200511
+ *
+ * Copyright (C) 2016 Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
  *
- * Jim Dixon, WB6NIL 
- * Based upon work by Mark Spencer  and Luigi Rizzo
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
+ *
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2005, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
-  * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
  */
 
 /*! \file
@@ -40,7 +68,7 @@
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
@@ -60,6 +88,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
 #include 		//Needed for I2C port
 #include 
 
+
 #define DEBUG_CAPTURES	 		1
 
 #define RX_CAP_RAW_FILE			"/tmp/rx_cap_in.pcm"
diff --git a/asterisk/channels/chan_simpleusb.c b/asterisk/channels/chan_simpleusb.c
index 41495686..d2430baa 100644
--- a/asterisk/channels/chan_simpleusb.c
+++ b/asterisk/channels/chan_simpleusb.c
@@ -1,21 +1,61 @@
-/* #define	NEW_ASTERISK */
-/*
- * Asterisk -- An open source telephony toolkit.
- * * Copyright (C) 1999 - 2005, Digium, Inc.
- * Copyright (C) 2007 - 2008, Jim Dixon
+/* SimpleUSB Radio Channel Driver for app_rpt/Asterisk
+ *
+ * chan_simpleusb.c - Version 200511
+ *
+ * Copyright (C) 2002-2017, Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
+ * Copyright (C) 2018-2020 Stacy Olivas, KG7QIN and contributors 
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * Jim Dixon, WB6NIL 
- * Based upon work by Mark Spencer  and Luigi Rizzo
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2005, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
-  * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
+ *
+ * Changes:
+ * --------
+ * 02/04/19 - Stacy Olivas, KG7QIN 
+ * Fixed audio support for CM119B chipset
+ * (Based upon work by Steve Zingman, N4IRS)
+ *
+ * 08/29/19 - Stacy Olivas, KG7QIN 
+ * Added in code to force usb initalization and device chipset type
+ * override.
+ *
  */
 
 /*! \file
@@ -31,6 +71,8 @@
         yes
  ***/
 
+/* #define      NEW_ASTERISK */
+
 #include "asterisk.h"
 
 /*
@@ -38,8 +80,7 @@
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
-// ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 20511 $")
 
 #include 
 #include 
@@ -78,6 +119,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
 #define	MIXER_PARAM_SPKR_PLAYBACK_SW_NEW "Headphone Playback Switch"
 #define	MIXER_PARAM_SPKR_PLAYBACK_VOL_NEW "Headphone Playback Volume"
 
+#define	TXT_OVERRIDE "Device override:"
+#define TXT_HIDTHREAD1  "chan_simpleusb() hidthread:"
+
 #define	DELIMCHR ','
 #define	QUOTECHR 34
 
@@ -168,6 +212,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
 
 #define	DEFAULT_ECHO_MAX 1000  /* 20 secs of echo buffer, max */
 
+#define HIDTHREAD_PRI		70
+#define SOUNDTHREAD_PRI 	99
+#define PULSERTHREAD_PRI	30
+#define SCHED_POLICY		SCHED_FIFO
+
 #define	PP_MASK 0xbffc
 #define	PP_PORT "/dev/parport0"
 #define	PP_IOPORT 0x378
@@ -226,6 +275,10 @@ START_CONFIG
 
         ; eeprom = no		; no eeprom installed
 
+	; ctype = 0		; CM119/119A and CM119B device selection for audio (0=auto; 1=C108; 2=C108AH; 3=N1KDO; 4=C119/C119A; 5=C119B)
+
+	; forceinit = 0		; Forces a USB device to attempt initalization (0=off, 1=on) Must be used with ctype!
+
     ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
     ; jbenable = yes              ; Enables the use of a jitterbuffer on the receiving side of an
                                   ; simpleusb channel. Defaults to "no". An enabled jitterbuffer will
@@ -377,6 +430,8 @@ static 	char	stoppulser;
 static	char	hasout;
 pthread_t pulserid;
 
+static int force_dev_init = 0;
+
 static int simpleusb_debug;
 
 enum {CD_IGNORE,CD_HID,CD_HID_INVERT,CD_PP,CD_PP_INVERT};
@@ -398,7 +453,7 @@ struct sound {
 	int samplen;
 	int silencelen;
 	int repeat;
-};
+} __attribute__((aligned));
 
 #ifndef	NEW_ASTERISK
 
@@ -414,10 +469,10 @@ static struct sound sounds[] = {
 #endif
 
 struct usbecho {
-struct qelem *q_forw;
-struct qelem *q_prev;
-short data[FRAME_SIZE];
-} ;
+	struct qelem *q_forw;
+	struct qelem *q_prev;
+	short data[FRAME_SIZE];
+} __attribute__((aligned));
 
 /*
  * descriptor for one of our channels.
@@ -445,7 +500,7 @@ struct chan_simpleusb_pvt {
 	int nosound;				/* set to block audio from the PBX */
 #endif
 
-	int devtype;				/* actual type of device */
+	long devtype;				/* actual type of device */
 	int pttkick[2];
 	int total_blocks;			/* total blocks in the output device */
 	int sounddev;
@@ -574,7 +629,7 @@ struct chan_simpleusb_pvt {
 	struct qelem echoq;
 	int echomax;
 
-	int    	hdwtype;
+	int    		hdwtype;
 	int		hid_gpio_ctl;		
 	int		hid_gpio_ctl_loc;	
 	int		hid_io_cor; 		
@@ -591,6 +646,7 @@ struct chan_simpleusb_pvt {
 	int		hid_gpio_pulsetimer[32];
 	int32_t		hid_gpio_pulsemask;
 	int32_t		hid_gpio_lastmask;
+	int		type_override;
 
 	int8_t		last_pp_in;
 	char		had_pp_in;
@@ -601,7 +657,7 @@ struct chan_simpleusb_pvt {
 	    unsigned rxcapraw:1;
 	    unsigned txcapraw:1;
 	    unsigned measure_enabled:1;
-	}b;
+	}__attribute__((aligned)) b;
 	unsigned short eeprom[EEPROM_PHYSICAL_LEN];
 	char eepromctl;
 	ast_mutex_t eepromlock;
@@ -624,7 +680,7 @@ struct chan_simpleusb_pvt {
 	char *gpios[32];
 	char *pps[32];
 	ast_mutex_t usblock;
-};
+} __attribute__((aligned));
 
 static struct chan_simpleusb_pvt simpleusb_default = {
 #ifndef	NEW_ASTERISK
@@ -645,6 +701,7 @@ static struct chan_simpleusb_pvt simpleusb_default = {
 	.usedtmf = 1,
 	.rxondelay = 0,
 	.pager = PAGER_NONE,
+	.type_override = 0,
 };
 
 /*	DECLARE FUNCTION PROTOTYPES	*/
@@ -671,7 +728,7 @@ static int simpleusb_indicate(struct ast_channel *chan, int cond, const void *da
 static int simpleusb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
 static int simpleusb_setoption(struct ast_channel *chan, int option, void *data, int datalen);
 
-static char tdesc[] = "Simple USB (CM108) Radio Channel Driver";
+static char tdesc[] = "Simple USB Radio Channel Driver (rev: 200501)";
 
 static const struct ast_channel_tech simpleusb_tech = {
 	.type = "SimpleUSB",
@@ -695,7 +752,7 @@ int	ppinshift[] = {0,0,0,0,0,0,0,0,0,0,6,7,5,4,0,3};
 
 /* FIR Low pass filter, 2900 Hz passband with 0.5 db ripple, 6300 Hz stopband at 60db */
 
-static short lpass(short input,short *z)
+inline static short lpass(short input,short *z)
 {
     int i;
     int accum;
@@ -722,7 +779,7 @@ static short lpass(short input,short *z)
 
 #define GAIN1   1.745882764e+00
 
-static int16_t hpass6(int16_t input,float *xv,float *yv)
+inline static int16_t hpass6(int16_t input,float *xv,float *yv)
 {
         xv[0] = xv[1]; xv[1] = xv[2]; xv[2] = xv[3]; xv[3] = xv[4]; xv[4] = xv[5]; xv[5] = xv[6];
         xv[6] = ((float)input) / GAIN1;
@@ -737,7 +794,7 @@ static int16_t hpass6(int16_t input,float *xv,float *yv)
 
 
 /* Perform standard 6db/octave de-emphasis */
-static int16_t deemph(int16_t input,int32_t *state)
+inline static int16_t deemph(int16_t input,int32_t *state)
 {
 
 int16_t coeff00 = 6878;
@@ -753,7 +810,7 @@ int32_t accum; /* 32 bit accumulator */
 }
 
 /* Perform standard 6db/octave pre-emphasis */
-static int16_t preemph(int16_t input,int32_t *state)
+inline static int16_t preemph(int16_t input,int32_t *state)
 {
 
 int16_t coeff00 = 17610;
@@ -773,7 +830,7 @@ int32_t y,temp0,temp1;
 
 /* IIR 3 pole High pass filter, 300 Hz corner with 0.5 db ripple */
 
-static int16_t hpass(int16_t input,float *xv,float *yv)
+inline static int16_t hpass(int16_t input,float *xv,float *yv)
 {
 #define GAIN   1.280673652e+00
 
@@ -790,21 +847,32 @@ static int16_t hpass(int16_t input,float *xv,float *yv)
  *
  * wrapper for lround(x)
  */
-long lround(double x)
+inline long lround(double x)
 {
     return (long) ((x - ((long)x) >= 0.5f) ? (((long)x) + 1) : ((long)x));
 }
 
-static int make_spkr_playback_value(struct chan_simpleusb_pvt *o,int val)
+inline static int make_spkr_playback_value(struct chan_simpleusb_pvt *o,int val)
 {
 int	v,rv;
 
-	v = (val * o->spkrmax) / 1000;
-	/* if just the old one, do it the old way */
-	if (o->devtype == C108_PRODUCT_ID) return v;
-	rv = (o->spkrmax + lround(20.0 * log10((float)(v + 1) / (float)(o->spkrmax + 1)) / 0.25));
-	if (rv < 0) rv = 0;
-	return rv;	
+	switch (o->devtype)
+	{
+		case C108_PRODUCT_ID:
+			v = (val * o->spkrmax) / 1000;
+			return v;
+		case C119B_PRODUCT_ID:
+			v = (val * o->spkrmax) / 750;
+			rv = (o->spkrmax + lround(10.0 * log10((float)(v + 1) / (float)(o->spkrmax + 1)) / 0.25));
+			if (rv < 0) rv = 0;
+			return rv;
+		default:
+			v = (val * o->spkrmax) / 1000;
+			rv = (o->spkrmax + lround(20.0 * log10((float)(v + 1) / (float)(o->spkrmax + 1)) / 0.25));
+			if (rv < 0) rv = 0;
+			return rv;
+
+	}
 }
 
 /* Call with:  devnum: alsa major device number, param: ascii Formal
@@ -857,7 +925,7 @@ if only 1 value. Values: 0-99 (percent) or 0-1 for baboon.
 
 Note: must add -lasound to end of linkage */
 
-static int setamixer(int devnum,char *param, int v1, int v2)
+inline static int setamixer(int devnum,char *param, int v1, int v2)
 {
 int	type;
 char	str[100];
@@ -1001,7 +1069,7 @@ static struct usb_device *hid_device_init(char *desired_device)
         for (dev = usb_bus->devices;
              dev;
              dev = dev->next) {
-            if ((dev->descriptor.idVendor
+            if (( (dev->descriptor.idVendor
                   == C108_VENDOR_ID) &&
 		(((dev->descriptor.idProduct & 0xfffc) == C108_PRODUCT_ID) ||
 		(dev->descriptor.idProduct == C108B_PRODUCT_ID) ||
@@ -1009,7 +1077,7 @@ static struct usb_device *hid_device_init(char *desired_device)
 		(dev->descriptor.idProduct == C119A_PRODUCT_ID) ||
 		(dev->descriptor.idProduct == C119B_PRODUCT_ID) ||
 		((dev->descriptor.idProduct & 0xff00)  == N1KDO_PRODUCT_ID) ||
-		(dev->descriptor.idProduct == C119_PRODUCT_ID)))
+		(dev->descriptor.idProduct == C119_PRODUCT_ID))) || force_dev_init == 1)
 		{
                         sprintf(devstr,"%s/%s", usb_bus->dirname,dev->filename);
 			for(i = 0; i < 32; i++)
@@ -1087,7 +1155,7 @@ static int hid_device_mklist(void)
         for (dev = usb_bus->devices;
              dev;
              dev = dev->next) {
-            if ((dev->descriptor.idVendor
+            if (( (dev->descriptor.idVendor
                   == C108_VENDOR_ID) &&
 		(((dev->descriptor.idProduct & 0xfffc) == C108_PRODUCT_ID) ||
 		(dev->descriptor.idProduct == C108B_PRODUCT_ID) ||
@@ -1095,7 +1163,7 @@ static int hid_device_mklist(void)
 		(dev->descriptor.idProduct == C119A_PRODUCT_ID) ||
 		(dev->descriptor.idProduct == C119B_PRODUCT_ID) ||
 		((dev->descriptor.idProduct & 0xff00)  == N1KDO_PRODUCT_ID) ||
-		(dev->descriptor.idProduct == C119_PRODUCT_ID)))
+		(dev->descriptor.idProduct == C119_PRODUCT_ID))) || force_dev_init == 1 )
 		{
                         sprintf(devstr,"%s/%s", usb_bus->dirname,dev->filename);
 			for(i = 0;i < 32; i++)
@@ -1390,6 +1458,15 @@ static void *pulserthread(void *arg)
 {
 struct	timeval now,then;
 int	i,j,k;
+struct sched_param      pulser_sched;
+
+        pthread_t pusler_selfid = pthread_self();
+        pulser_sched.sched_priority=PULSERTHREAD_PRI;
+        if(pthread_setschedparam(pusler_selfid, SCHED_POLICY, &pulser_sched) != 0)
+        {
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
+
 
 	if (haspp == 2) ioperm(pbase,2,1);
 	stoppulser = 0;
@@ -1431,7 +1508,7 @@ int	i,j,k;
 
 /*
 */
-static void *hidthread(void *arg)
+inline static void *hidthread(void *arg)
 {
 	unsigned char buf[4],bufsave[4],keyed,ctcssed,txreq;
 	char fname[200], *s, isn1kdo, lasttxtmp;
@@ -1443,6 +1520,14 @@ static void *hidthread(void *arg)
 	struct ast_config *cfg1;
 	struct ast_variable *v;
 	fd_set rfds;
+	struct sched_param      hidthread_sched;
+
+	pthread_t hid_selfid = pthread_self();
+	hidthread_sched.sched_priority=HIDTHREAD_PRI;
+	if(pthread_setschedparam(hid_selfid, SCHED_POLICY, &hidthread_sched) != 0)
+	{
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
 
         usb_dev = NULL;
         usb_handle = NULL;
@@ -1466,7 +1551,7 @@ static void *hidthread(void *arg)
 			if (i < 0) continue;
 			usb_dev = hid_device_init(s);
 			if (usb_dev == NULL) continue;
-			if ((usb_dev->descriptor.idProduct & 0xff00) != N1KDO_PRODUCT_ID) continue;
+			if ((usb_dev->descriptor.idProduct & 0xff00) != N1KDO_PRODUCT_ID && o->type_override != 3) continue;
 			if (o->index != (usb_dev->descriptor.idProduct & 0xf)) continue;
 			ast_log(LOG_NOTICE,"N1KDO port %d, USB device %s simpleusb channel %s\n",
 				usb_dev->descriptor.idProduct & 0xf,s,o->name);
@@ -1483,7 +1568,7 @@ static void *hidthread(void *arg)
 				if (i < 0) continue;
 				usb_dev = hid_device_init(s);
 				if (usb_dev == NULL) continue;
-				if ((usb_dev->descriptor.idProduct & 0xff00) != N1KDO_PRODUCT_ID) continue;
+				if ((usb_dev->descriptor.idProduct & 0xff00) != N1KDO_PRODUCT_ID && o->type_override != 3) continue;
 				if (!strcmp(s,o->devstr))
 				{
 					strcpy(o->devstr,"XXX");
@@ -1605,10 +1690,40 @@ static void *hidthread(void *arg)
 		    ast_log(LOG_ERROR,"Not able to create pipe\n");
 			pthread_exit(NULL);
 		}
-		if ((usb_dev->descriptor.idProduct & 0xfffc) == C108_PRODUCT_ID)
-			o->devtype = C108_PRODUCT_ID;
-		else
-			o->devtype = usb_dev->descriptor.idProduct;
+		switch 	(o->type_override)
+		{
+			case 1:
+				o->devtype = C108_PRODUCT_ID;
+				ast_verbose(VERBOSE_PREFIX_2 "%s C108 chipset\n", TXT_OVERRIDE);
+				break;
+			case 2:
+				o->devtype = C108AH_PRODUCT_ID;
+				ast_verbose(VERBOSE_PREFIX_2 "%s C108AH chipset\n", TXT_OVERRIDE);
+				break;
+			case 3:
+                                o->devtype = N1KDO_PRODUCT_ID;
+				ast_verbose(VERBOSE_PREFIX_2 "%s N1KDO chipset\n", TXT_OVERRIDE);
+				break;
+			case 4:
+				o->devtype = C119_PRODUCT_ID;
+				ast_verbose(VERBOSE_PREFIX_2 "%s C119/C119A chipset\n", TXT_OVERRIDE);
+				break;
+			case 5:
+				o->devtype = C119B_PRODUCT_ID;
+				ast_verbose(VERBOSE_PREFIX_2 "%s C119B chipset\n", TXT_OVERRIDE);
+				break;
+			default:
+				if (force_dev_init == 1)
+				{
+					ast_log(LOG_ERROR, ">>> Force initialization configured but ctype not defined <<<\n");
+					pthread_exit(NULL);
+				}
+				if ((usb_dev->descriptor.idProduct & 0xfffc) == C108_PRODUCT_ID)
+					o->devtype = C108_PRODUCT_ID;
+				else
+					o->devtype = usb_dev->descriptor.idProduct;
+		}
+
 		traceusb1(("hidthread: Starting normally on %s!!\n",o->name));
                 if (option_verbose > 1)
                        ast_verbose(VERBOSE_PREFIX_2 "Set device %s to %s\n",o->devstr,o->name);
@@ -1706,14 +1821,14 @@ static void *hidthread(void *arg)
 			keyed = !(buf[o->hid_io_cor_loc] & o->hid_io_cor);
 			if (keyed != o->rxhidsq)
 			{
-				if(o->debuglevel)printf("chan_simpleusb() hidthread: update rxhidsq = %d\n",keyed);
+				if(o->debuglevel) ast_verbose(VERBOSE_PREFIX_2 "%s update rxhidsq = %d\n",TXT_HIDTHREAD1,keyed);
 				o->rxhidsq = keyed;
 			}
 			ctcssed = !(buf[o->hid_io_ctcss_loc] & 
 				o->hid_io_ctcss);
 			if (ctcssed != o->rxhidctcss)
 			{
-				if(o->debuglevel)printf("chan_simpleusb() hidthread: update rxhidctcss = %d\n",ctcssed);
+				if(o->debuglevel) ast_verbose(VERBOSE_PREFIX_2 "%s update rxhidctcss = %d\n",TXT_HIDTHREAD1,ctcssed);
 				o->rxhidctcss = ctcssed;
 			}
 			ast_mutex_lock(&o->txqlock);
@@ -1726,7 +1841,7 @@ static void *hidthread(void *arg)
 				if (o->invertptt) buf[o->hid_gpio_loc] = 0;
 				buf[o->hid_gpio_ctl_loc] = o->hid_gpio_ctl;
 				hid_set_outputs(usb_handle,buf);
-				if(o->debuglevel)printf("chan_simpleusb() hidthread: update PTT = %d\n",txreq);
+				if(o->debuglevel) ast_verbose(VERBOSE_PREFIX_2 "%s update PTT = %d\n",TXT_HIDTHREAD1,txreq);
 			}
 			else if ((!txreq) && o->lasttx)
 			{
@@ -1734,7 +1849,7 @@ static void *hidthread(void *arg)
 				if (o->invertptt) buf[o->hid_gpio_loc] = o->hid_io_ptt;
 				buf[o->hid_gpio_ctl_loc] = o->hid_gpio_ctl;
 				hid_set_outputs(usb_handle,buf);
-				if(o->debuglevel)printf("chan_simpleusb() hidthread: update PTT = %d\n",txreq);
+				if(o->debuglevel) ast_verbose(VERBOSE_PREFIX_2 "%s update PTT = %d\n",TXT_HIDTHREAD1,txreq);
 			}
 			lasttxtmp = o->lasttx;
 			o->lasttx = txreq;
@@ -1844,7 +1959,7 @@ static void *hidthread(void *arg)
 					j = k & (1 << ppinshift[i]); /* set the bit accordingly */
 					if (j != o->rxppsq)
 					{
-						if(o->debuglevel)printf("chan_simpleusb() hidthread: update rxppsq = %d\n",j);
+						if(o->debuglevel) ast_verbose(VERBOSE_PREFIX_2 "%s update rxppsq = %d\n",TXT_HIDTHREAD1,j);
 						o->rxppsq = j;
 					}
 				}
@@ -1894,7 +2009,7 @@ static void *hidthread(void *arg)
 			}
 			if (lasttxtmp != o->lasttx)
 			{
-				if(o->debuglevel) printf("hidthread: tx set to %d\n",o->lasttx);
+				if(o->debuglevel) ast_verbose(VERBOSE_PREFIX_2 "%s tx set to %d\n",TXT_HIDTHREAD1,o->lasttx);
 				o->hid_gpio_val &= ~o->hid_io_ptt;
 				ast_mutex_lock(&pp_lock);
 				if (k) pp_val &= ~k;
@@ -1921,7 +2036,7 @@ static void *hidthread(void *arg)
 				memcpy(bufsave,buf,sizeof(buf));
 				hid_set_outputs(usb_handle,buf);
 			}
-			ast_mutex_unlock(&o->usblock);
+//			ast_mutex_unlock(&o->usblock);
 		}
 		o->lasttx = 0;
 		buf[o->hid_gpio_loc] = 0;
@@ -1943,7 +2058,7 @@ static void *hidthread(void *arg)
 /*
  * Returns the number of blocks used in the audio output channel
  */
-static int used_blocks(struct chan_simpleusb_pvt *o)
+inline static int used_blocks(struct chan_simpleusb_pvt *o)
 {
 	struct audio_buf_info info;
 
@@ -1965,7 +2080,7 @@ static int used_blocks(struct chan_simpleusb_pvt *o)
 }
 
 /* Write an exactly FRAME_SIZE sized frame */
-static int soundcard_writeframe(struct chan_simpleusb_pvt *o, short *data)
+inline static int soundcard_writeframe(struct chan_simpleusb_pvt *o, short *data)
 {
 	int res;
 
@@ -2004,7 +2119,7 @@ static int soundcard_writeframe(struct chan_simpleusb_pvt *o, short *data)
  * in o->sampsent, which goes between 0 .. s->samplen+s->silencelen.
  * In case we fail to write a frame, don't update o->sampsent.
  */
-static void send_sound(struct chan_simpleusb_pvt *o)
+inline static void send_sound(struct chan_simpleusb_pvt *o)
 {
 	short myframe[FRAME_SIZE];
 	int ofs, l, start;
@@ -2053,10 +2168,19 @@ static void send_sound(struct chan_simpleusb_pvt *o)
 		o->sampsent = l_sampsent;	/* update status */
 }
 
-static void *sound_thread(void *arg)
+inline static void *sound_thread(void *arg)
 {
 	char ign[4096];
 	struct chan_simpleusb_pvt *o = (struct chan_simpleusb_pvt *) arg;
+	struct sched_param      soundthread_sched;
+	
+	pthread_t sound_selfid = pthread_self();
+        soundthread_sched.sched_priority=SOUNDTHREAD_PRI;
+        if(pthread_setschedparam(sound_selfid, SCHED_POLICY, &soundthread_sched) != 0)
+	{
+		ast_log(LOG_ERROR,"Unable to change thread priority\n");
+	}
+
 
 	/*
 	 * Just in case, kick the driver by trying to read from it.
@@ -2127,7 +2251,7 @@ static void *sound_thread(void *arg)
  * then open and initialize it in the desired mode,
  * trigger reads and writes so we can start using it.
  */
-static int setformat(struct chan_simpleusb_pvt *o, int mode)
+inline static int setformat(struct chan_simpleusb_pvt *o, int mode)
 {
 	int fmt, desired, res, fd;
 	char device[100];
@@ -2446,10 +2570,18 @@ static void ring(struct chan_simpleusb_pvt *o, int x)
 static int simpleusb_call(struct ast_channel *c, char *dest, int timeout)
 {
 	struct chan_simpleusb_pvt *o = c->tech_pvt;
-
+	pthread_attr_t pta;
+	struct sched_param ptp;
+	ptp.sched_priority = HIDTHREAD_PRI;
+
+	pthread_attr_init(&pta);
+	pthread_attr_setinheritsched(&pta, PTHREAD_EXPLICIT_SCHED);
+	pthread_attr_setschedpolicy(&pta, SCHED_POLICY);
+	pthread_attr_setschedparam(&pta, &ptp);
+	pthread_attr_setscope(&pta, PTHREAD_SCOPE_SYSTEM);
 	o->stophid = 0;
 	time(&o->lasthidtime);
-	ast_pthread_create_background(&o->hidthread, NULL, hidthread, o);
+	ast_pthread_create_background(&o->hidthread, &pta, hidthread, o);
 	ast_setstate(c, AST_STATE_UP);
 	return 0;
 }
@@ -2500,7 +2632,7 @@ static int simpleusb_hangup(struct ast_channel *c)
 
 
 /* used for data coming from the network */
-static int simpleusb_write(struct ast_channel *c, struct ast_frame *f)
+inline static int simpleusb_write(struct ast_channel *c, struct ast_frame *f)
 {
 	struct chan_simpleusb_pvt *o = c->tech_pvt;
 	struct ast_frame *f1;
@@ -2555,7 +2687,7 @@ static int simpleusb_write(struct ast_channel *c, struct ast_frame *f)
 
 
 
-static struct ast_frame *simpleusb_read(struct ast_channel *c)
+inline static struct ast_frame *simpleusb_read(struct ast_channel *c)
 {
 	int res,cd,sd,src,i,n,ispager,doleft,doright; // Yes, like Dudley!!! :-)
 	struct chan_simpleusb_pvt *o = c->tech_pvt;
@@ -2974,7 +3106,7 @@ static struct ast_frame *simpleusb_read(struct ast_channel *c)
         return f;
 }
 
-static int simpleusb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
+inline static int simpleusb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
 {
 	struct chan_simpleusb_pvt *o = newchan->tech_pvt;
 	ast_log(LOG_WARNING,"simpleusb_fixup()\n");
@@ -3277,7 +3409,7 @@ struct chan_simpleusb_pvt *p = NULL,*o = find_desc(simpleusb_active);
 	return 0;
 }
 
-static int happy_mswait(int fd,int ms, int flag)
+inline static int happy_mswait(int fd,int ms, int flag)
 {
 int	i;
 
@@ -3888,7 +4020,7 @@ static void tune_write(struct chan_simpleusb_pvt *o)
 	}
 }
 //
-static void mixer_write(struct chan_simpleusb_pvt *o)
+inline static void mixer_write(struct chan_simpleusb_pvt *o)
 {
 	int x;
 	float f,f1;
@@ -3908,11 +4040,21 @@ static void mixer_write(struct chan_simpleusb_pvt *o)
 	setamixer(o->devicenum,(o->newname) ? MIXER_PARAM_SPKR_PLAYBACK_VOL_NEW : MIXER_PARAM_SPKR_PLAYBACK_VOL,
 		make_spkr_playback_value(o,o->txmixaset),
 		make_spkr_playback_value(o,o->txmixbset));
-	x =  o->rxmixerset * o->micmax / 1000;
+	switch (o->devtype)
+	{
+		case C119B_PRODUCT_ID:
+			x =  o->rxmixerset * o->micmax / 870;
+			/* get interval step size */
+			f = 870.0 / (float) o->micmax;
+			o->rxboostset = 1;
+			break;
+		default:
+			x =  o->rxmixerset * o->micmax / 1000;
+			/* get interval step size */
+			f = 1000.0 / (float) o->micmax;
+	}
 	setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_VOL,x,0);
-	/* get interval step size */
-	f = 1000.0 / (float) o->micmax;
-	o->rxvoiceadj = 1.0 + (modff(((float) o->rxmixerset) / f,&f1) * .187962);
+	o->rxvoiceadj = 1.0 + (modff(((float) o->rxmixerset) / f,&f1) * .187962);	
 	setamixer(o->devicenum,MIXER_PARAM_MIC_BOOST,o->rxboostset,0);
 	setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_SW,1,0);
 }
@@ -3988,6 +4130,8 @@ static struct chan_simpleusb_pvt *store_config(struct ast_config *cfg, char *ctg
  			M_BOOL("deemphasis",o->deemphasis)
  			M_BOOL("preemphasis",o->preemphasis)
  			M_UINT("duplex3",o->duplex3)
+			M_UINT("ctype", o->type_override);
+			M_UINT("forceinit", force_dev_init);
 			M_END(;
 			);
 			for(i = 0; i < 32; i++)
@@ -4079,7 +4223,17 @@ static struct chan_simpleusb_pvt *store_config(struct ast_config *cfg, char *ctg
 		goto error;
 	}
 
-	ast_pthread_create_background(&o->sthread, NULL, sound_thread, o);
+        pthread_attr_t pta;
+        struct sched_param ptp;
+	ptp.sched_priority = SOUNDTHREAD_PRI;
+
+        pthread_attr_init(&pta);
+        pthread_attr_setinheritsched(&pta, PTHREAD_EXPLICIT_SCHED);
+        pthread_attr_setschedpolicy(&pta, SCHED_POLICY);
+	pthread_attr_setscope(&pta, PTHREAD_SCOPE_SYSTEM);
+        pthread_attr_setschedparam(&pta, &ptp);
+
+	ast_pthread_create_background(&o->sthread, &pta, sound_thread, o);
 #endif
 
 	/* link into list of devices */
@@ -4304,8 +4458,17 @@ static int load_module(void)
 	}
 
 	ast_cli_register_multiple(cli_simpleusb, sizeof(cli_simpleusb) / sizeof(struct ast_cli_entry));
+        pthread_attr_t pta;
+        struct sched_param ptp;
+	ptp.sched_priority = PULSERTHREAD_PRI;
+
+        pthread_attr_init(&pta);
+        pthread_attr_setinheritsched(&pta, PTHREAD_EXPLICIT_SCHED);
+        pthread_attr_setschedpolicy(&pta, SCHED_POLICY);
+	pthread_attr_setscope(&pta, PTHREAD_SCOPE_SYSTEM);
+        pthread_attr_setschedparam(&pta, &ptp);
 
-	if (haspp && hasout) ast_pthread_create_background(&pulserid, NULL, pulserthread, NULL);
+	if (haspp && hasout) ast_pthread_create_background(&pulserid, &pta, pulserthread, NULL);
 
 	return AST_MODULE_LOAD_SUCCESS;
 }
diff --git a/asterisk/channels/chan_tlb.c b/asterisk/channels/chan_tlb.c
index 74c57f3c..e09ac25c 100644
--- a/asterisk/channels/chan_tlb.c
+++ b/asterisk/channels/chan_tlb.c
@@ -1,22 +1,49 @@
 /* #define	OLD_ASTERISK */
-/*
- * Asterisk -- An open source telephony toolkit.
+/* The Link Box Channel Driver for app_rpt/Asterisk
+ *
+ * chan_tlb.c - Version 200511
+ *
+ * Copyright (C) 2008 Scott Lawson, Ki4LKF
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * Copyright (C) 1999 - 2006, Digium, Inc.
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * Copyright (C) 2008, Scott Lawson/KI4LKF
- * ScottLawson/KI4LKF 
- * Jim Dixon, WB6NIL 
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2005, Digium, Inc.
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
  */
 
 /*! \file
@@ -60,7 +87,7 @@ tlb.conf file.
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
diff --git a/asterisk/channels/chan_usbradio.c b/asterisk/channels/chan_usbradio.c
index f3828f53..7be195a6 100644
--- a/asterisk/channels/chan_usbradio.c
+++ b/asterisk/channels/chan_usbradio.c
@@ -1,24 +1,51 @@
-/* #define	NEW_ASTERISK */
-/*
- * Asterisk -- An open source telephony toolkit.
+/* USB Radio Channel Driver for app_rpt/Asterisk
  *
- * Copyright (C) 1999 - 2005, Digium, Inc.
- * Copyright (C) 2007 - 2011, Jim Dixon
+ * chan_usbradio.c - Version 200511
+ *
+ * Copyright (C) 2007-2017, Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
+ * Copyright (C) 2018-2020 Stacy Olivas, KG7QIN and contributors 
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * Jim Dixon, WB6NIL 
- * Steve Henke, W9SH  
- * Based upon work by Mark Spencer  and Luigi Rizzo
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2005, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
- * 20160829      inad            added rxlpf rxhpf txlpf txhpf
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
+ *
  */
 
 /*! \file
@@ -37,6 +64,8 @@
         yes
  ***/
 
+/* #define      NEW_ASTERISK */
+
 #include "asterisk.h"
 
 /*
@@ -44,7 +73,7 @@
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
@@ -170,12 +199,15 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
 #define N1KDO_PRODUCT_ID  	0x6a00
 #define C108_HID_INTERFACE	3
 
+#define C119B_ADJUSTMENT	870
+
 #define HID_REPORT_GET		0x01
 #define HID_REPORT_SET		0x09
 
 #define HID_RT_INPUT		0x01
 #define HID_RT_OUTPUT		0x02
 
+
 #define	EEPROM_START_ADDR	6
 #define	EEPROM_END_ADDR		63
 #define	EEPROM_PHYSICAL_LEN	64
@@ -892,12 +924,22 @@ static int make_spkr_playback_value(struct chan_usbradio_pvt *o,int val)
 {
 int	v,rv;
 
-	v = (val * o->spkrmax) / 1000;
-	/* if just the old one, do it the old way */
-	if (o->devtype == C108_PRODUCT_ID) return v;
-	rv = (o->spkrmax + lround(20.0 * log10((float)(v + 1) / (float)(o->spkrmax + 1)) / 0.25));
-	if (rv < 0) rv = 0;
-	return rv;	
+	switch (o->devtype)
+	{
+		case C108_PRODUCT_ID:
+			v = (val * o->spkrmax) / 1000;
+			return v;
+		case C119B_PRODUCT_ID:
+			v = (val * o->spkrmax) / 750;
+			rv = (o->spkrmax + lround(10.0 * log10((float)(v + 1) / (float)(o->spkrmax + 1)) / 0.25));
+			if (rv < 0) rv = 0;
+			return rv;
+		default:
+			v = (val * o->spkrmax) / 1000;
+			rv = (o->spkrmax + lround(20.0 * log10((float)(v + 1) / (float)(o->spkrmax + 1)) / 0.25));
+			if (rv < 0) rv = 0;
+			return rv;
+	}
 }
 
 /* Call with:  devnum: alsa major device number, param: ascii Formal
@@ -1684,8 +1726,16 @@ static void *hidthread(void *arg)
 			o->pmrChan->rxCpuSaver=o->rxcpusaver;
 			o->pmrChan->txCpuSaver=o->txcpusaver;
 
-			*(o->pmrChan->prxSquelchAdjust) = 
-				((999 - o->rxsquelchadj) * 32767) / 1000;
+			switch (o->devtype)
+			{
+				case C119B_PRODUCT_ID:
+	                                *(o->pmrChan->prxSquelchAdjust) =
+						((999 - o->rxsquelchadj) * 32767) / C119B_ADJUSTMENT;
+					break;
+				default:
+					*(o->pmrChan->prxSquelchAdjust) = 
+						((999 - o->rxsquelchadj) * 32767) / 1000;
+			}
 
 			*(o->pmrChan->prxVoiceAdjust)=o->rxvoiceadj*M_Q8;
 			*(o->pmrChan->prxCtcssAdjust)=o->rxctcssadj*M_Q8;
@@ -3428,6 +3478,7 @@ static int radio_tune(int fd, int argc, char *argv[])
 {
 	struct chan_usbradio_pvt *o = find_desc(usbradio_active);
 	int i=0;
+	int x;
 
 	if ((argc < 2) || (argc > 4))
 		return RESULT_SHOWUSAGE; 
@@ -3503,7 +3554,15 @@ static int radio_tune(int fd, int argc, char *argv[])
 			if ((i < 0) || (i > 999)) return RESULT_SHOWUSAGE;
 			ast_cli(fd,"Changed Squelch setting to %d\n",i);
 			o->rxsquelchadj = i;
-			*(o->pmrChan->prxSquelchAdjust)= ((999 - i) * 32767) / 1000;
+			switch (o->devtype)
+			{
+				case C119B_PRODUCT_ID:
+					x = C119B_ADJUSTMENT;
+					break;
+				default:
+				       	x = 1000;
+			}
+			*(o->pmrChan->prxSquelchAdjust)= ((999 - i) * 32767) / x;
 		}
 	}
 	else if (!strcasecmp(argv[2],"txvoice")) {
@@ -3700,7 +3759,8 @@ static int radio_tune(int fd, int argc, char *argv[])
 	setting range is 0.0 to 0.9
 */
 static int set_txctcss_level(struct chan_usbradio_pvt *o)
-{							  
+{						
+	int x;	
 	if (o->txmixa == TX_OUT_LSD)
 	{
 //		o->txmixaset=(151*o->txctcssadj) / 1000;
@@ -3718,7 +3778,15 @@ static int set_txctcss_level(struct chan_usbradio_pvt *o)
 	else
 	{
 		if(o->pmrChan->ptxCtcssAdjust){ /* Ignore if ptr not defined */
-			*o->pmrChan->ptxCtcssAdjust=(o->txctcssadj * M_Q8) / 1000;
+			switch (o->devtype)
+			{
+				case C119B_PRODUCT_ID:
+					x = C119B_ADJUSTMENT;
+					break;
+				default:
+					x = 1000;
+			}
+                        *o->pmrChan->ptxCtcssAdjust=(o->txctcssadj * M_Q8) / x;			
 		}
 	}
 	return 0;
@@ -4075,6 +4143,7 @@ static void tune_rxinput(int fd, struct chan_usbradio_pvt *o, int setsql, int in
 	int tolerance=2750;
 	int setting=0, tries=0, tmpdiscfactor, meas, measnoise;
 	float settingmax,f;
+	int x;
 
 	if(o->rxdemod==RX_AUDIO_SPEAKER && o->rxcdtype==CD_XPMR_NOISE)
 	{
@@ -4175,9 +4244,18 @@ static void tune_rxinput(int fd, struct chan_usbradio_pvt *o, int setsql, int in
 		ast_cli(fd,"INFO: RX INPUT ADJUST SUCCESS.\n");
 		o->rxmixerset=((setting * 1000) + (o->micmax / 2)) / o->micmax;
 
+		switch (o->devtype)
+		{
+			case C119B_PRODUCT_ID:
+				x = C119B_ADJUSTMENT;
+				break;
+			default:
+				x = 1000;
+		}
+
 		if(o->rxcdtype==CD_XPMR_NOISE)
 		{
-			int normRssi=((32767-o->pmrChan->rxRssi)*1000/32767);
+			int normRssi=((32767-o->pmrChan->rxRssi)*x/32767);			
 
 			if((meas/(measnoise/10))>26){
 				ast_cli(fd,"WARNING: Insufficient high frequency noise from receiver.\n");
@@ -4192,7 +4270,10 @@ static void tune_rxinput(int fd, struct chan_usbradio_pvt *o, int setsql, int in
 			{
 				o->rxsquelchadj = normRssi + 150;
 				if (o->rxsquelchadj > 999) o->rxsquelchadj = 999;
+				*(o->pmrChan->prxSquelchAdjust)= ((999 - o->rxsquelchadj) * 32767) / x;
+/*
 				*(o->pmrChan->prxSquelchAdjust)= ((999 - o->rxsquelchadj) * 32767) / 1000;
+*/
 				ast_cli(fd,"Rx Squelch set to %d (RSSI=%d).\n",o->rxsquelchadj,normRssi);
 			}
 			else 
@@ -4294,11 +4375,22 @@ static void _menu_rxvoice(int fd, struct chan_usbradio_pvt *o, char *str)
 	else
 	{
 		o->rxmixerset = i;
-		setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_VOL,
-			o->rxmixerset * o->micmax / 1000,0);
+		switch (o->devtype)
+		{
+			case C119B_PRODUCT_ID:
+				x = o->rxmixerset * o->micmax / C119B_ADJUSTMENT;
+				/* get interval step size */
+	                	f = 870.0 / (float) o->micmax;
+				o->rxboostset = 1;
+				break;
+			default:
+				x = o->rxmixerset * o->micmax / 1000;
+                                /* get interval step size */
+                                f = 1000.0 / (float) o->micmax;
+		}
+                setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_VOL,x,0);		
 		setamixer(o->devicenum,MIXER_PARAM_MIC_BOOST,o->rxboostset,0);
-		/* get interval step size */
-		f = 1000.0 / (float) o->micmax;
+
 		o->rxvoiceadj = 0.5 + (modff(((float) i) / f,&f1) * .093981);
 	}
 	*(o->pmrChan->prxVoiceAdjust)=o->rxvoiceadj * M_Q8;
@@ -4354,7 +4446,15 @@ int	i,x;
 	}
 	ast_cli(fd,"Changed Rx Squelch Level setting to %d\n",i);
 	o->rxsquelchadj = i;
-	*(o->pmrChan->prxSquelchAdjust)= ((999 - i) * 32767) / 1000;
+	switch (o->devtype)
+	{
+		case C119B_PRODUCT_ID:
+			x = C119B_ADJUSTMENT;
+			break;
+		default:
+			x = 1000;
+	}
+	*(o->pmrChan->prxSquelchAdjust)= ((999 - i) * 32767) / x;
 	return;
 }
 
@@ -4753,6 +4853,7 @@ static void tune_rxctcss(int fd, struct chan_usbradio_pvt *o,int intflag)
 
 	float setting;
 	int tries=0,meas;
+	int x;
 
 	ast_cli(fd,"INFO: RX CTCSS ADJUST START.\n");
 	ast_cli(fd,"target=%i tolerance=%i \n",target,tolerance);
@@ -4810,7 +4911,15 @@ static void tune_rxctcss(int fd, struct chan_usbradio_pvt *o,int intflag)
 			o->pmrChan->b.tuning=0;
 			return;
 		}
-		normRssi=((32767-o->pmrChan->rxRssi)*1000/32767);
+		switch (o->devtype)
+		{
+			case C119B_PRODUCT_ID:
+				x = C119B_ADJUSTMENT;
+				break;
+			default:
+				x = 1000;
+		}
+		normRssi=((32767-o->pmrChan->rxRssi)*x/32767);
 
 		if(o->rxsquelchadj>normRssi)
 			ast_cli(fd,"WARNING: RSSI=%i SQUELCH=%i and is too tight. Use 'radio tune rxsquelch'.\n",normRssi,o->rxsquelchadj);
@@ -4871,6 +4980,8 @@ static void tune_write(struct chan_usbradio_pvt *o)
 //
 static void mixer_write(struct chan_usbradio_pvt *o)
 {
+	int x;
+
 	setamixer(o->devicenum,MIXER_PARAM_MIC_PLAYBACK_SW,0,0);
 	if (o->duplex3)
 	{
@@ -4886,8 +4997,16 @@ static void mixer_write(struct chan_usbradio_pvt *o)
 	setamixer(o->devicenum,(o->newname) ? MIXER_PARAM_SPKR_PLAYBACK_VOL_NEW : MIXER_PARAM_SPKR_PLAYBACK_VOL,
 		make_spkr_playback_value(o,o->txmixaset),
 		make_spkr_playback_value(o,o->txmixbset));
-	setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_VOL,
-		o->rxmixerset * o->micmax / 1000,0);
+	switch (o->devtype)
+	{
+		case C119B_PRODUCT_ID:
+			x = o->rxmixerset * o->micmax / C119B_ADJUSTMENT;
+			o->rxboostset = 1;
+			break;
+		default:
+			x = o->rxmixerset * o-> micmax / 1000;
+	}
+	setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_VOL,x,0);
 	setamixer(o->devicenum,MIXER_PARAM_MIC_BOOST,o->rxboostset,0);
 	setamixer(o->devicenum,MIXER_PARAM_MIC_CAPTURE_SW,1,0);
 }
@@ -4897,14 +5016,25 @@ static void mixer_write(struct chan_usbradio_pvt *o)
 static void mult_set(struct chan_usbradio_pvt *o)
 {
 
-	if(o->pmrChan->spsTxOutA) {
-		o->pmrChan->spsTxOutA->outputGain = 
-			mult_calc((o->txmixaset * 152) / 1000);
+	int x;
+	switch (o->devtype)
+	{
+		case C119B_PRODUCT_ID:
+			x = C119B_ADJUSTMENT;
+			break;
+		default:
+			x = 1000;
+
+	}
+        if(o->pmrChan->spsTxOutA) {
+		o->pmrChan->spsTxOutA->outputGain =
+			mult_calc((o->txmixaset * 152) / x);
 	}
 	if(o->pmrChan->spsTxOutB){
-		o->pmrChan->spsTxOutB->outputGain = 
-			mult_calc((o->txmixbset * 152) / 1000);
+		o->pmrChan->spsTxOutB->outputGain =
+			mult_calc((o->txmixbset * 152) / x);
 	}
+
 }
 //
 // input 0 - 151 outputs are pot and multiplier
@@ -5473,8 +5603,16 @@ static struct chan_usbradio_pvt *store_config(struct ast_config *cfg, char *ctg,
 		o->pmrChan->rxCpuSaver=o->rxcpusaver;
 		o->pmrChan->txCpuSaver=o->txcpusaver;
 
-		*(o->pmrChan->prxSquelchAdjust) = 
-			((999 - o->rxsquelchadj) * 32767) / 1000;
+		switch (o->devtype)
+		{
+			case C119B_PRODUCT_ID:
+	                        *(o->pmrChan->prxSquelchAdjust) =
+        	                        ((999 - o->rxsquelchadj) * 32767) / C119B_ADJUSTMENT;
+				break;
+			default:
+				*(o->pmrChan->prxSquelchAdjust) = 
+					((999 - o->rxsquelchadj) * 32767) / 1000;
+		}
 
 		*(o->pmrChan->prxVoiceAdjust)=o->rxvoiceadj*M_Q8;
 		*(o->pmrChan->prxCtcssAdjust)=o->rxctcssadj*M_Q8;
diff --git a/asterisk/channels/chan_usrp.c b/asterisk/channels/chan_usrp.c
index a0120fe5..f209cd64 100644
--- a/asterisk/channels/chan_usrp.c
+++ b/asterisk/channels/chan_usrp.c
@@ -1,22 +1,49 @@
-/*
- * Asterisk -- An open source telephony toolkit.
+/* GNU Radio Interface Channel Driver for app_rpt/Asterisk
  *
- * Copyright (C) 1999 - 2006, Digium, Inc.
+ * chan_usrp.c - Version 200511
+ *
+ * Copuright (C) 2010 Max Parke, KA1RBI
+ * Copyright (C) 2019 Michael Zingman, N4IRR and contributors
  *
- * Copyright (C) 2008, Jim Dixon
- * Jim Dixon 
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
  *
- * USRP interface Copyright (C) 2010, KA1RBI
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2006, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
  */
 
 /*! \file
@@ -31,7 +58,7 @@
 /*** MODULEINFO
  ***/
 
-/* Version 0.1, 12/15/2010
+/* Version 0.1.1, 11/15/2019
 
 Channel connection for Asterisk to GNU Radio/USRP
 
@@ -49,7 +76,7 @@ MYPORT (optional) is the UDP socket that Asterisk listens on for this channel
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180112 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 #include 
@@ -432,15 +459,33 @@ static struct ast_frame  *usrp_xread(struct ast_channel *ast)
 				fprintf(stderr, "repeater_chan_usrp: possible data loss, expected seq %lu received %lu\n", p->rxseq, seq);
 			}
 			p->rxseq = seq + 1;
-			// TODO: add DTMF, TEXT processing
+			// TODO: add DTMF. TEXT processing added N4IRR
 			if (datalen == USRP_VOICE_FRAME_SIZE) {
 				qp = ast_malloc(sizeof(struct usrp_rxq));
 				if (!qp)
 				{
 					ast_log(LOG_NOTICE,"Cannot malloc for qp\n");
 				} else {
-					memcpy(qp->buf,bufdata,USRP_VOICE_FRAME_SIZE);
+                                       if (bufhdrp->type == USRP_TYPE_TEXT) {
 					insque((struct qelem *) qp,(struct qelem *) p->rxq.qe_back);
+                                               char buf1[320];
+                                               strcpy(buf1, bufdata);
+                                               memset(&fr,0,sizeof(fr));
+                                               fr.data =  buf1;
+                                               fr.datalen = strlen(buf1) + 1;
+                                               fr.samples = 0;
+                                               fr.frametype = AST_FRAME_TEXT;
+                                               fr.subclass = 0;
+                                               fr.src = "chan_usrp";
+                                               fr.offset = 0;
+                                               fr.mallocd=0;
+                                               fr.delivery.tv_sec = 0;
+                                               fr.delivery.tv_usec = 0;
+                                               ast_queue_frame(ast,&fr);
+                                       } else {
+                                               memcpy(qp->buf,bufdata,USRP_VOICE_FRAME_SIZE);
+                                               insque((struct qelem *) qp,(struct qelem *) p->rxq.qe_back);
+                                       }
 				}
 			}
 		}
diff --git a/asterisk/channels/chan_usrp.h b/asterisk/channels/chan_usrp.h
index c305041d..6314bca8 100644
--- a/asterisk/channels/chan_usrp.h
+++ b/asterisk/channels/chan_usrp.h
@@ -1,20 +1,47 @@
-/*
- * Copyright 2010, KA1RBI
+/* GNU Radio Interface Channel Driver for app_rpt/Asterisk
+ *
+ * chan_usrp.h - Version 200511
+ *
+ * Copuright (C) 2010 Max Parke, KA1RBI
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
  * 
- * This is free software; you can redistribute it and/or modify
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
+ *
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
+ *
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2006, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  * 
- * It is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 
  * You should have received a copy of the GNU General Public License
- * along with this program; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
  *
  */
 
diff --git a/asterisk/channels/chan_voter.c b/asterisk/channels/chan_voter.c
index 60cae77e..c8495572 100644
--- a/asterisk/channels/chan_voter.c
+++ b/asterisk/channels/chan_voter.c
@@ -1,20 +1,49 @@
-/*
- * Asterisk -- An open source telephony toolkit.
+/* Radio Voter Channel Driver for app_rpt/Asterisk
  *
- * Copyright (C) 1999 - 2011, Digium, Inc.
+ * chan_voter.c - Version 200511
+ *
+ * Copyright (C) 2011-2017 Jim Dixon, WB6NIL and AllStarLink, Inc. and contributors
+ * Copyright (C) 2018 Copyright (C) 2018 Steve Zingman, N4IRS; Michael Zingman, N4IRR; AllStarLink, Inc. and contributors
+ *
+ * All Rights Reserved
+ * Licensed under the GNU GPL v2 (see below)
+ * 
+ * Refer to AUTHORS file for listing of authors/contributors to app_rpt.c and other related AllStar programs
+ * as well as individual copyrights by authors/contributors.  Unless specified or otherwise assigned, all authors and
+ * contributors retain their individual copyrights and license them freely for use under the GNU GPL v2.
+ *
+ * Notice:  Unless specifically stated in the header of this file, all changes
+ *          are licensed under the GNU GPL v2 and cannot be relicensed. 
  *
- * Copyright (C) 2011-2013
- * Jim Dixon, WB6NIL 
+ * The AllStar software is the creation of Jim Dixon, WB6NIL with serious contributions by Steve RoDgers, WA6ZFT
+ * 
+ * This software is based upon and dependent upon the Asterisk - An open source telephone toolkit
+ * Copyright (C) 1999 - 2011, Digium, Inc.
  *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
+ * See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC
  * channels for your use.
  *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
+ * License:
+ * --------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *
+ * ------------------------------------------------------------------------
+ * This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree for more information.
+ *
  */
 
 /*! \file
@@ -213,7 +242,7 @@ Obviously, it is not valid to use *ANY* of the duplex=3 modes in a voted and/or
  * use the simple format YYMMDD
 */
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180213 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 200511 $")
 // ASTERISK_FILE_VERSION(__FILE__, "$"ASTERISK_VERSION" $")
 
 
diff --git a/asterisk/channels/chan_voter.c-pre-redundancy b/asterisk/channels/chan_voter.c-pre-redundancy
deleted file mode 100644
index 2434acc8..00000000
--- a/asterisk/channels/chan_voter.c-pre-redundancy
+++ /dev/null
@@ -1,3716 +0,0 @@
-/*
- * Asterisk -- An open source telephony toolkit.
- *
- * Copyright (C) 1999 - 2011, Digium, Inc.
- *
- * Copyright (C) 2011
- * Jim Dixon, WB6NIL 
- *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
- * channels for your use.
- *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
- */
-
-/*! \file
- *
- * \brief Radio Voter channel driver for Asterisk
- * 
- * \author Jim Dixon, WB6NIL 
- *
- * \ingroup channel_drivers
- */
-
-/*** MODULEINFO
- ***/
-
-/*  Basic Information On How This Works
-Each node has a number of potential "clients" associated with it. In the voter.conf file, each stanza (category)
-is named by the node number that the clients specified within the stanza are to be associated with. Each entry
-consists of an arbitrary (realtively meaningless, just included for easy identification putposes within this
-channel driver, and has nothing to do with its operation) identifier equated to a unique password. This password
-is programmed into the client. All clients must have unique passwords, as that is what is used by this channel
-driver to identify them.
-
-Each channel instance (as opened by app_rpt as a main radio channel, e.g. rxchannel=Voter/1999 in rpt.conf) and
-is directly associated with the node that opened it.
-
-Each client has a pair of circular buffers, one for mu-law audio data, and one for RSSI value. The allocated buffer
-length in all clients is determined by the 'buflen' parameter, which is specified in the "global" stanza in the 
-voter.conf file in milliseconds, and represnted in the channel driver as number of samples (actual buffer length,
-which is 8 * milliseconds). 
-
-Every channel instance has a index ("drainindex"), indicating the next position within the physical buffer(s) where
-the audio will be taken from the buffers and presented to the Asterisk channel stream as VOICE frames.
-
-Therefore, there is an abstraction of a "buffer" that exists starting at drainindex and ending (modulo) at
-drainindex - 1, with length of buflen.
-
-Buflen is selected so that there is enough time (delay) for any straggling packets to arrive before it is time
-to present the data to the Asterisk channel. 
-
-The idea is that the current audio being presented to Asterisk is from some time shortly in the past. Therefore,
-"Now" is the position in the abstratcted buffer of 'bufdelay' (generally buflen - 160) (you gotta at least leave room for
-an entire frame) and the data is being presented from the start of the abstracted buffer. As the physical buffer
-moves along, what was once "now" will eventually become far enough in the "past" to be presented to Asterisk (gosh,
-doesn't this sound like a scene from "Spaceballs"??.. I too always drink coffee while watching "Mr. Radar").
-
-During the processing of an audio frame to be presented to Asterisk, all client's buffers that are associated with
-a channel instance (node) are examined by taking an average of the RSSI value for each sample in the associated
-time period (the first 160 samples of the abstracted buffer (which is the physical buffer from drainindex to
-drainindex + 159) and whichever one, if any that has the largest RSSI average greather then zero is selected
-as the audio source for that frame. The corresponding audio buffer's contents (in the corresponding offsets)
-are presented to Asterisk, then ALL the clients corresponding RSSI data is set to 0, ALL the clients corresponding
-audio is set to quiet (0x7f). The overwriting of the buffers after their use/examination is done so that the 
-next time those positions in the physical buffer are examined, they will not contain any data that was not actually
-put there, since all client's buffers are significant regardless of whether they were populated or not. This
-allows for the true 'connectionless-ness' of this protocol implementation.
-
-
-Voter Channel test modes:
-
-0 - Normal voting operation
-1 - Randomly pick which client of all that
-    are receving at the max rssi value to use.
-> 1 - Cycle thru all the clients that are receiving
-    at the max rssi value with a cycle time of (test mode - 1)
-    frames. In other words, if you set it to 2, it will
-    change every single time. If you set it to 11, it will
-    change every 10 times. This is serious torture test.
-
-Note on ADPCM functionality:
-The original intent was to change this driver to use signed linear internally,
-but after some thought, it was determined that it was prudent to continue using
-mulaw as the "standard" internal audio format (with the understanding of the slight
-degradation in dynamic range when using ADPCM resulting in doing so).  This was 
-done becuase existing external entities (such as the recording files and the streaming
-stuff) use mulaw as their transport, and changing all of that to signed linear would
-be cumbersome, inefficient and undesirable.
-
-Note on "Dynamic" client functionality:
-DONT USE IT!!. It is intentionally *NOT* documented to encourage non-use of this
-feature. It is for demo purposes *ONLY*. The chan_voter driver will *NOT* properly
-perform reliably in a production environment if this option is used.
-*/
-
-
-#include "asterisk.h"
-#include "../astver.h"
-
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-
-#include "asterisk/lock.h"
-#include "asterisk/channel.h"
-#include "asterisk/config.h"
-#include "asterisk/logger.h"
-#include "asterisk/module.h"
-#include "asterisk/pbx.h"
-#include "asterisk/options.h"
-#include "asterisk/utils.h"
-#include "asterisk/app.h"
-#include "asterisk/translate.h"
-#include "asterisk/astdb.h"
-#include "asterisk/cli.h"
-#include "asterisk/ulaw.h"
-#include "asterisk/dsp.h"
-
-
-#ifdef	NEW_ASTERISK
-struct ast_flags zeroflag = { 0 };
-#endif
-
-#define	XPMR_VOTER
-#include "xpmr/xpmr.h"
-
-#ifdef	OLD_ASTERISK
-#define	AST_MODULE_LOAD_DECLINE -1
-#endif
-
-#define	VOTER_CHALLENGE_LEN 10
-#define	VOTER_NAME_LEN 50
-
-#define	RX_TIMEOUT_MS 200
-#define	CLIENT_TIMEOUT_MS 3000
-#define	TX_KEEPALIVE_MS 1000
-
-#define	DEFAULT_LINGER 6
-
-#define	DEFAULT_DYNTIME 30000
-
-#define MAX_MASTER_COUNT 3
-
-#define CLIENT_WARN_SECS 60
-
-#define	DELIMCHR ','
-#define	QUOTECHR 34
-
-#define	MAXSTREAMS 50
-#define	MAXTHRESHOLDS 20
-
-#define	GPS_WORK_FILE "/tmp/gps%s.tmp"
-#define	GPS_DATA_FILE "/tmp/gps%s.dat"
-
-#define	NTAPS_PL 6
-#define	NTAPS_4K 6
-
-static const char vdesc[] = "radio Voter channel driver";
-static char type[] = "voter";
-
-int run_forever = 1;
-static int nullfd = -1;
-
-AST_MUTEX_DEFINE_STATIC(voter_lock);
-
-int16_t listen_port = 667;				/* port to listen to UDP packets on */
-int udp_socket = -1;
-
-int voter_timing_fd = -1;
-int voter_timing_count = 0;
-int last_master_count = 0;
-int dyntime = DEFAULT_DYNTIME;
-
-int check_client_sanity = 1;
-
-char challenge[VOTER_CHALLENGE_LEN];
-char password[100];
-char context[100];
-
-double dnsec;
-
-static pthread_t voter_reader_thread = 0;
-static pthread_t voter_timer_thread = 0;
-
-#define	FRAME_SIZE 160
-#define	ADPCM_FRAME_SIZE 163
-
-#define	DEFAULT_BUFLEN 480 /* 480ms default buffer len */
-
-#define BUFDELAY(p) (p->buflen - (FRAME_SIZE * 2))
-
-#pragma pack(push)
-#pragma pack(1)
-typedef struct {
-	uint32_t vtime_sec;
-	uint32_t vtime_nsec;
-} VTIME;
-
-typedef struct {
-	VTIME curtime;
-	uint8_t challenge[10];
-	uint32_t digest;
-	uint16_t payload_type;
-} VOTER_PACKET_HEADER;
-
-typedef struct {
-	char lat[9];
-	char lon[10];
-	char elev[7];
-} VOTER_GPS;
-
-typedef struct {
-	char name[32];
-	uint8_t audio[FRAME_SIZE];
-	uint8_t rssi;
-} VOTER_REC;	
-
-typedef struct {
-	VTIME curtime;
-	uint8_t audio[FRAME_SIZE];
-	char str[152];
-} VOTER_STREAM;
-#pragma pack(pop)
-
-#define VOTER_PAYLOAD_NONE	0
-#define VOTER_PAYLOAD_ULAW	1
-#define	VOTER_PAYLOAD_GPS	2
-#define VOTER_PAYLOAD_ADPCM	3
-#define VOTER_PAYLOAD_NULAW	4
-
-struct voter_client {
-	uint32_t nodenum;
-	uint32_t digest;
-	char name[VOTER_NAME_LEN];
-	uint8_t *audio;
-	uint8_t *rssi;
-	uint32_t respdigest;
-	struct sockaddr_in sin;
-	int drainindex;
-	int drainindex_40ms;
-	int buflen;
-	char heardfrom;
-	char totransmit;
-	char ismaster;
-	char doadpcm;
-	char donulaw;
-	char mix;
-	char nodeemp;
-	char noplfilter;
-	char dynamic;
-	struct voter_client *next;
-	long long dtime;
-	uint8_t lastrssi;
-	int txseqno;
-	int txseqno_rxkeyed;
-	int rxseqno;
-	int rxseqno_40ms;
-	char rxseq40ms;
-	char drain40ms;
-	time_t warntime;
-	char *gpsid;
-	int reload;
-	int old_buflen;
-	struct timeval lastheardtime;
-	struct timeval lastdyntime;
-	struct timeval lastsenttime;
-	int prio;
-	int prio_override;
-	VTIME lastgpstime;
-	VTIME lastmastergpstime;
-} ;
-
-struct voter_pvt {
-	struct ast_channel *owner;
-	unsigned int nodenum;				/* node # associated with instance */
-	struct voter_pvt *next;
-	struct ast_frame fr;
-	char buf[FRAME_SIZE + AST_FRIENDLY_OFFSET];
-	char txkey;
-	char rxkey;
-	struct ast_module_user *u;
-	struct timeval lastrxtime;
-	char drained_once;
-	int testcycle;
-	int testindex;
-	struct voter_client *lastwon;
-	char *streams[MAXSTREAMS];
-	int nstreams;
-	float	hpx[NTAPS_PL + 1];
-	float	hpy[NTAPS_PL + 1];
-	float	rlpx[NTAPS_4K + 1];
-	float	rlpy[NTAPS_4K + 1];
-	float	tlpx[NTAPS_4K + 1];
-	float	tlpy[NTAPS_4K + 1];
-	char plfilter;
-	int linger;
-	uint8_t rssi_thresh[MAXTHRESHOLDS];
-	uint16_t count_thresh[MAXTHRESHOLDS];
-	uint16_t linger_thresh[MAXTHRESHOLDS];
-	int nthresholds;
-	int threshold;
-	struct voter_client *winner;
-	uint16_t threshcount;
-	uint16_t lingercount;
-	struct ast_dsp *dsp;
-	struct ast_trans_pvt *adpcmin;
-	struct ast_trans_pvt *adpcmout;
-	struct ast_trans_pvt *nuin;
-	struct ast_trans_pvt *nuout;
-	struct ast_trans_pvt *toast;
-	struct ast_trans_pvt *toast1;
-	struct ast_trans_pvt *fromast;
-	t_pmr_chan	*pmrChan;
-	char	txctcssfreq[32];
-	int	txctcsslevel;
-	int	txtoctype;
-	char 	duplex;
-	struct	ast_frame *adpcmf1;
-	struct	ast_frame *nulawf1;
-	ast_mutex_t xmit_lock;
-	ast_cond_t xmit_cond;
-	pthread_t xmit_thread;
-	int voter_test;
-	char usedtmf;
-
-#ifdef 	OLD_ASTERISK
-	AST_LIST_HEAD(, ast_frame) txq;
-#else
-	AST_LIST_HEAD_NOLOCK(, ast_frame) txq;
-#endif
-	ast_mutex_t  txqlock;
-};
-
-#ifdef	OLD_ASTERISK
-int reload();
-#else
-static int reload(void);
-#endif
-
-#ifdef	OLD_ASTERISK
-static int usecnt;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
-#endif
-
-int debug = 0;
-FILE *recfp = NULL;
-int hasmaster = 0;
-
-/* This is just a horrendous KLUDGE!! Some Garmin LVC-18 GPS "pucks"
- *sometimes* get EXACTLY 1 second off!! Some dont do it at all.
- Some do it constantly. Some just do it once in a while. In an attempt
- to be at least somewhat tolerant of such swine poo-poo, the "puckit"
- configuration flag may be set, which makes an attempt to deal with
- this problem by keeping a "time differential" for each client (compared
- with the "master") and applying it to time information within the protocol.
- Obviously, this SHOULD NEVER HAVE TO BE DONE. */
-
-int puckit = 0;
-
-static char *config = "voter.conf";
-
-struct voter_pvt *pvts = NULL;
-
-struct voter_client *clients = NULL;
-
-struct voter_client *dyn_clients = NULL;
-
-FILE *fp;
-
-VTIME master_time = {0,0};
-VTIME mastergps_time = {0,0};
-
-#ifdef OLD_ASTERISK
-#define ast_free free
-#define ast_malloc malloc
-#endif
-
-static struct ast_channel *voter_request(const char *type, int format, void *data, int *cause);
-static int voter_call(struct ast_channel *ast, char *dest, int timeout);
-static int voter_hangup(struct ast_channel *ast);
-static struct ast_frame *voter_read(struct ast_channel *ast);
-static int voter_write(struct ast_channel *ast, struct ast_frame *frame);
-#ifdef	OLD_ASTERISK
-static int voter_indicate(struct ast_channel *ast, int cond);
-static int voter_digit_end(struct ast_channel *c, char digit);
-#else
-static int voter_indicate(struct ast_channel *ast, int cond, const void *data, size_t datalen);
-static int voter_digit_begin(struct ast_channel *c, char digit);
-static int voter_digit_end(struct ast_channel *c, char digit, unsigned int duratiion);
-#endif
-static int voter_text(struct ast_channel *c, const char *text);
-static int voter_setoption(struct ast_channel *chan, int option, void *data, int datalen);
-
-static const struct ast_channel_tech voter_tech = {
-	.type = type,
-	.description = vdesc,
-	.capabilities = AST_FORMAT_SLINEAR,
-	.requester = voter_request,
-	.call = voter_call,
-	.hangup = voter_hangup,
-	.read = voter_read,
-	.write = voter_write,
-	.indicate = voter_indicate,
-	.send_text = voter_text,
-#ifdef	OLD_ASTERISK
-	.send_digit = voter_digit_end,
-#else
-	.send_digit_begin = voter_digit_begin,
-	.send_digit_end = voter_digit_end,
-	.setoption = voter_setoption,
-
-#endif
-};
-
-/*
-* CLI extensions
-*/
-
-/* Debug mode */
-static int voter_do_debug(int fd, int argc, char *argv[]);
-
-static char debug_usage[] =
-"Usage: voter debug level {0-7}\n"
-"       Enables debug messages in chan_voter\n";
-
-
-/* Test */
-static int voter_do_test(int fd, int argc, char *argv[]);
-
-static char test_usage[] =
-"Usage: voter test instance_id [test value]\n"
-"       Specifies/Queries test mode for voter instance\n";
-
-
-/* Prio */
-static int voter_do_prio(int fd, int argc, char *argv[]);
-
-static char prio_usage[] =
-"Usage: voter prio instance_id [client_id] [priority value]\n"
-"       Specifies/Queries priority value for voter client\n";
-
-
-/* Record */
-static int voter_do_record(int fd, int argc, char *argv[]);
-
-static char record_usage[] =
-"Usage: voter record [record filename]\n"
-"       Enables/Specifies (or disables) recording file for chan_voter\n";
-
-/* Tone */
-static int voter_do_tone(int fd, int argc, char *argv[]);
-
-static char tone_usage[] =
-"Usage: voter tone instance_id [new_tone_level(0-250)]\n"
-"       Sets/Queries Tx CTCSS level for specified chan_voter instance\n";
-
-/* Reload */
-static int voter_do_reload(int fd, int argc, char *argv[]);
-
-static char reload_usage[] =
-"Usage: voter reload\n"
-"       Reload chan_voter parameters\n";
-
-/* Display */
-static int voter_do_display(int fd, int argc, char *argv[]);
-
-static char display_usage[] =
-"Usage: voter display [instance]\n"
-"       Display voter instance clients\n";
-
-
-
-#ifndef	NEW_ASTERISK
-
-static struct ast_cli_entry  cli_debug =
-        { { "voter", "debug", "level" }, voter_do_debug, 
-		"Enable voter debugging", debug_usage };
-static struct ast_cli_entry  cli_test =
-        { { "voter", "test" }, voter_do_test, 
-		"Specify/Query voter instance test mode", test_usage };
-static struct ast_cli_entry  cli_prio =
-        { { "voter", "prio" }, voter_do_prio, 
-		"Specify/Query voter client priority value", prio_usage };
-static struct ast_cli_entry  cli_record =
-        { { "voter", "record" }, voter_do_record, 
-		"Enables/Specifies (or disables) voter recording file", record_usage };
-static struct ast_cli_entry  cli_tone =
-        { { "voter", "tone" }, voter_do_tone, 
-		"Sets/Queries Tx CTCSS level for specified chan_voter instance", tone_usage };
-static struct ast_cli_entry  cli_reload =
-        { { "voter", "reload" }, voter_do_reload, 
-		"Reloads chan_voter parameters", reload_usage };
-static struct ast_cli_entry  cli_display =
-        { { "voter", "display" }, voter_do_display, 
-		"Display voter (instance) clients", display_usage };
-
-#endif
-
-static uint32_t crc_32_tab[] = { /* CRC polynomial 0xedb88320 */
-0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
-0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
-0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
-0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
-0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
-0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
-0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
-0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,
-0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423,
-0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
-0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106,
-0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,
-0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d,
-0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,
-0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
-0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,
-0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7,
-0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,
-0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa,
-0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
-0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81,
-0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,
-0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84,
-0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,
-0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
-0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,
-0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e,
-0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,
-0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55,
-0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
-0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28,
-0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,
-0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f,
-0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,
-0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
-0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,
-0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69,
-0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,
-0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc,
-0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
-0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693,
-0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
-0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
-};
-
-static int32_t crc32_bufs(char *buf, char *buf1)
-{
-        int32_t oldcrc32;
-
-        oldcrc32 = 0xFFFFFFFF;
-        while(buf && *buf)
-        {
-                oldcrc32 = crc_32_tab[(oldcrc32 ^ *buf++) & 0xff] ^ ((uint32_t)oldcrc32 >> 8);
-        }
-        while(buf1 && *buf1)
-        {
-                oldcrc32 = crc_32_tab[(oldcrc32 ^ *buf1++) & 0xff] ^ ((uint32_t)oldcrc32 >> 8);
-        }
-        return ~oldcrc32;
-}
-
-/* IIR 6 pole High pass filter, 300 Hz corner with 0.5 db ripple */
-
-#define GAIN1   1.745882764e+00
-
-static int16_t hpass6(int16_t input,float *xv,float *yv)
-{
-        xv[0] = xv[1]; xv[1] = xv[2]; xv[2] = xv[3]; xv[3] = xv[4]; xv[4] = xv[5]; xv[5] = xv[6];
-        xv[6] = ((float)input) / GAIN1;
-        yv[0] = yv[1]; yv[1] = yv[2]; yv[2] = yv[3]; yv[3] = yv[4]; yv[4] = yv[5]; yv[5] = yv[6];
-        yv[6] =   (xv[0] + xv[6]) - 6 * (xv[1] + xv[5]) + 15 * (xv[2] + xv[4])
-                     - 20 * xv[3]
-                     + ( -0.3491861578 * yv[0]) + (  2.3932556573 * yv[1])
-                     + ( -6.9905126572 * yv[2]) + ( 11.0685981760 * yv[3])
-                     + ( -9.9896695552 * yv[4]) + (  4.8664511065 * yv[5]);
-        return((int)yv[6]);
-}
-
-/* IIR 6 pole Low pass filter, 1900 Hz corner with 0.5 db ripple */
-
-#define GAIN2   1.080715413e+02
-
-static int16_t lpass4(int16_t input,float *xv,float *yv)
-{
-        xv[0] = xv[1]; xv[1] = xv[2]; xv[2] = xv[3]; xv[3] = xv[4]; xv[4] = xv[5]; xv[5] = xv[6]; 
-        xv[6] = ((float)input) / GAIN2;
-        yv[0] = yv[1]; yv[1] = yv[2]; yv[2] = yv[3]; yv[3] = yv[4]; yv[4] = yv[5]; yv[5] = yv[6]; 
-        yv[6] =   (xv[0] + xv[6]) + 6 * (xv[1] + xv[5]) + 15 * (xv[2] + xv[4])
-                     + 20 * xv[3]
-                     + ( -0.1802140297 * yv[0]) + (  0.7084527003 * yv[1])
-                     + ( -1.5847014566 * yv[2]) + (  2.3188475168 * yv[3])
-                     + ( -2.5392334760 * yv[4]) + (  1.6846484378 * yv[5]);
-        return((int)yv[6]);
-}
-
-
-/*
-* Break up a delimited string into a table of substrings
-*
-* str - delimited string ( will be modified )
-* strp- list of pointers to substrings (this is built by this function), NULL will be placed at end of list
-* limit- maximum number of substrings to process
-*/
-	
-static int finddelim(char *str, char *strp[], int limit)
-{
-int     i,l,inquo;
-
-        inquo = 0;
-        i = 0;
-        strp[i++] = str;
-        if (!*str)
-           {
-                strp[0] = 0;
-                return(0);
-           }
-        for(l = 0; *str && (l < limit) ; str++)
-           {
-                if (*str == QUOTECHR)
-                   {
-                        if (inquo)
-                           {
-                                *str = 0;
-                                inquo = 0;
-                           }
-                        else
-                           {
-                                strp[i - 1] = str + 1;
-                                inquo = 1;
-                           }
-		}
-                if ((*str == DELIMCHR) && (!inquo))
-                {
-                        *str = 0;
-			l++;
-                        strp[i++] = str + 1;
-                }
-           }
-        strp[i] = 0;
-        return(i);
-
-}
-
-/* return offsetted time */
-static long long puckoffset(struct voter_client *client)
-{
-long long btime,ptime,difftime;
-
-	if (!puckit) return 0;
-	btime = ((long long)client->lastmastergpstime.vtime_sec * 1000000000LL) + client->lastmastergpstime.vtime_nsec;
-	ptime = ((long long)client->lastgpstime.vtime_sec * 1000000000LL) + client->lastgpstime.vtime_nsec;
-	difftime = ptime - btime;
-	return difftime;
-}
-
-static void mkpucked(struct voter_client *client,VTIME *dst)
-{
-long long btime;
-
-	btime = ((long long)master_time.vtime_sec * 1000000000LL) + master_time.vtime_nsec;
-	btime += puckoffset(client);
-	dst->vtime_nsec = htonl((long)(btime % 1000000000LL));
-	dst->vtime_sec = htonl((long)(btime / 1000000000LL));
-	return;
-}
-		
-/* must be called with voter_lock locked */
- static void incr_drainindex(struct voter_pvt *p)
-{
-struct voter_client *client;
-
-	if (p == NULL) return;
-	for(client = clients; client; client = client->next)
-	{
-		if (client->nodenum != p->nodenum) continue;
-		if (!client->drain40ms) 
-		{
-			client->drainindex_40ms = client->drainindex;
-			client->rxseqno_40ms = client->rxseqno;
-		}
-		client->drainindex += FRAME_SIZE;
-		if (client->drainindex >= client->buflen) client->drainindex -= client->buflen;
-		client->drain40ms = !client->drain40ms;
-	}
-}
-
-static int voter_call(struct ast_channel *ast, char *dest, int timeout)
-{
-	if ((ast->_state != AST_STATE_DOWN) && (ast->_state != AST_STATE_RESERVED)) {
-		ast_log(LOG_WARNING, "voter_call called on %s, neither down nor reserved\n", ast->name);
-		return -1;
-	}
-	/* When we call, it just works, really, there's no destination...  Just
-	   ring the phone and wait for someone to answer */
-	if (option_debug)
-		ast_log(LOG_DEBUG, "Calling %s on %s\n", dest, ast->name);
-	ast_setstate(ast,AST_STATE_UP);
-	return 0;
-}
-
-static int voter_hangup(struct ast_channel *ast)
-{
-	struct voter_pvt *p = ast->tech_pvt,*q;
-
-	if (option_debug)
-		ast_log(LOG_DEBUG, "voter_hangup(%s)\n", ast->name);
-	if (!ast->tech_pvt) {
-		ast_log(LOG_WARNING, "Asked to hangup channel not connected\n");
-		return 0;
-	}
-	if (p->dsp) ast_dsp_free(p->dsp);
-	if (p->adpcmin) ast_translator_free_path(p->adpcmin);
-	if (p->adpcmout) ast_translator_free_path(p->adpcmout);
-	if (p->toast) ast_translator_free_path(p->toast);
-	if (p->toast) ast_translator_free_path(p->toast1);
-	if (p->fromast) ast_translator_free_path(p->fromast);
-	if (p->nuin) ast_translator_free_path(p->nuin);
-	if (p->nuout) ast_translator_free_path(p->nuout);
-	ast_mutex_lock(&voter_lock);
-	for(q = pvts; q; q = q->next)
-	{
-		if (q->next == p) break;
-	}
-	if (q) q->next = p->next;
-	else pvts = NULL;
-	ast_mutex_unlock(&voter_lock);
-	ast_free(p);
-	ast->tech_pvt = NULL;
-	ast_setstate(ast, AST_STATE_DOWN);
-	return 0;
-}
-
-#ifdef	OLD_ASTERISK
-static int voter_indicate(struct ast_channel *ast, int cond)
-#else
-static int voter_indicate(struct ast_channel *ast, int cond, const void *data, size_t datalen)
-#endif
-{
-	struct voter_pvt *p = ast->tech_pvt;
-
-	switch (cond) {
-		case AST_CONTROL_RADIO_KEY:
-			p->txkey = 1;
-			break;
-		case AST_CONTROL_RADIO_UNKEY:
-			p->txkey = 0;
-			break;
-		case AST_CONTROL_HANGUP:
-			return -1;
-		default:
-			return 0;
-	}
-
-	return 0;
-}
-
-#ifndef	OLD_ASTERISK
-
-static int voter_digit_begin(struct ast_channel *ast, char digit)
-{
-	return -1;
-}
-
-#endif
-
-#ifdef	OLD_ASTERISK
-static int voter_digit_end(struct ast_channel *ast, char digit)
-#else
-static int voter_digit_end(struct ast_channel *ast, char digit, unsigned int duration)
-#endif
-{
-	return(0);
-}
-
-static int voter_setoption(struct ast_channel *chan, int option, void *data, int datalen)
-{
-	char *cp;
-	struct voter_pvt *o = chan->tech_pvt;
-
-	/* all supported options require data */
-	if (!data || (datalen < 1)) {
-		errno = EINVAL;
-		return -1;
-	}
-
-	switch (option) {
-	case AST_OPTION_TONE_VERIFY:
-		cp = (char *) data;
-		switch (*cp) {
-		case 1:
-			ast_log(LOG_DEBUG, "Set option TONE VERIFY, mode: OFF(0) on %s\n",chan->name);
-			o->usedtmf = 1;
-			break;
-		case 2:
-			ast_log(LOG_DEBUG, "Set option TONE VERIFY, mode: MUTECONF/MAX(2) on %s\n",chan->name);
-			o->usedtmf = 1;
-			break;
-		case 3:
-			ast_log(LOG_DEBUG, "Set option TONE VERIFY, mode: DISABLE DETECT(3) on %s\n",chan->name);
-			o->usedtmf = 0;
-			break;
-		default:
-			ast_log(LOG_DEBUG, "Set option TONE VERIFY, mode: OFF(0) on %s\n",chan->name);
-			o->usedtmf = 1;
-			break;
-		}
-		break;
-	}
-	errno = 0;
-	return 0;
-}
-
-static int voter_text(struct ast_channel *ast, const char *text)
-{
-	return 0;
-}
-
-
-static struct ast_frame *voter_read(struct ast_channel *ast)
-{
-	struct voter_pvt *p = ast->tech_pvt;
-
-	memset(&p->fr,0,sizeof(struct ast_frame));
-        p->fr.frametype = AST_FRAME_NULL;
-        return &p->fr;
-}
-
-static int voter_write(struct ast_channel *ast, struct ast_frame *frame)
-{
-	struct voter_pvt *p = ast->tech_pvt;
-	struct ast_frame *f1;
-
-	if (frame->frametype != AST_FRAME_VOICE) return 0;
-
-	if (!p->txkey) return 0;
-
-	if (hasmaster && (!master_time.vtime_sec))
-	{
-		ast_mutex_lock(&p->txqlock);
-		while((f1 = AST_LIST_REMOVE_HEAD(&p->txq,frame_list)) != NULL) ast_frfree(f1);
-		ast_mutex_unlock(&p->txqlock);
-		return 0;
-	}
-
-	if (fp != NULL) fwrite(AST_FRAME_DATAP(frame),1,frame->datalen,fp);
-	f1 = ast_frdup(frame);
-	memset(&f1->frame_list,0,sizeof(f1->frame_list));
-	ast_mutex_lock(&p->txqlock);
-	AST_LIST_INSERT_TAIL(&p->txq,f1,frame_list);
-	ast_mutex_unlock(&p->txqlock);
-
-	return 0;
-}
-
-static struct ast_frame *ast_frcat(struct ast_frame *f1, struct ast_frame *f2)
-{
-
-struct ast_frame *f;
-char *cp;
-int len;
-
-	if ((f1->subclass != f2->subclass) || (f1->frametype != f2->frametype))
-	{
-		ast_log(LOG_ERROR,"ast_frcat() called with non-matching frame types!!\n");
-		return NULL;
-	}
-	f = (struct ast_frame *)ast_malloc(sizeof(struct ast_frame));
-	if (!f)
-	{
-		ast_log(LOG_ERROR,"Cant malloc()\n");
-		return NULL;
-	}
-	memset(f,0,sizeof(struct ast_frame));
-	len = f1->datalen + f2->datalen + AST_FRIENDLY_OFFSET;
-	cp = malloc(len);
-	if (!cp)
-	{
-		ast_log(LOG_ERROR,"Cant malloc()\n");
-		return NULL;
-	}
-	memcpy(cp + AST_FRIENDLY_OFFSET,AST_FRAME_DATAP(f1),f1->datalen);
-	memcpy(cp + AST_FRIENDLY_OFFSET + f1->datalen,AST_FRAME_DATAP(f2),f2->datalen);
-	f->frametype = f1->frametype;
-	f->subclass = f1->subclass;
-	f->datalen = f1->datalen + f2->datalen;
-	f->samples = f1->samples + f2->samples;
-	AST_FRAME_DATAP(f) = cp + AST_FRIENDLY_OFFSET;;
-	f->mallocd = AST_MALLOCD_HDR | AST_MALLOCD_DATA;
-	f->src = "ast_frcat";
-	f->offset = AST_FRIENDLY_OFFSET;
-	return(f);
-}
-
-
-/* must be called with voter_lock locked */
-static int voter_mix_and_send(struct voter_pvt *p, struct voter_client *maxclient, int maxrssi)
-{
-
-	int i,j,k,x,maxprio;
-	struct ast_frame fr,*f1,*f2;
-	struct voter_client *client;
-	short  silbuf[FRAME_SIZE];
-
-
-	memset(&fr,0,sizeof(struct ast_frame));
-        fr.frametype = AST_FRAME_VOICE;
-        fr.subclass = AST_FORMAT_ULAW;
-        fr.datalen = FRAME_SIZE;
-        fr.samples = FRAME_SIZE;
-        AST_FRAME_DATA(fr) =  p->buf + AST_FRIENDLY_OFFSET;
-        fr.src = type;
-        fr.offset = AST_FRIENDLY_OFFSET;
-        fr.mallocd = 0;
-        fr.delivery.tv_sec = 0;
-        fr.delivery.tv_usec = 0;
-	f1 = ast_translate(p->toast,&fr,0);
-	if (!f1)
-	{
-		ast_log(LOG_ERROR,"Can not translate frame to send to Asterisk\n");
-		return(0);
-	}
-	maxprio = 0;
-	for(client = clients; client; client = client->next)
-	{
-		if (client->nodenum != p->nodenum) continue;
-		if (!client->mix) continue;
-		if (client->prio_override == -1) continue;
-		if (client->prio_override > -2)
-			i = client->prio_override;
-		else
-			i = client->prio;
-		if (i > maxprio) maxprio = i;
-	}
-	/* f1 now contains the voted-upon audio in slinear */
-	for(client = clients; client; client = client->next)
-	{
-		short *sp1,*sp2;
-		if (client->nodenum != p->nodenum) continue;
-		if (!client->mix) continue;
-		if (client->prio_override == -1) continue;
-		if (maxprio)
-		{
-			if (client->prio_override > -2)
-				i = client->prio_override;
-			else
-				i = client->prio;
-			if (i < maxprio) continue;
-		}
-		i = (int)client->buflen - ((int)client->drainindex + FRAME_SIZE);
-		if (i >= 0)
-		{
-			memcpy(p->buf + AST_FRIENDLY_OFFSET,client->audio + client->drainindex,FRAME_SIZE);
-		}
-		else
-		{
-			memcpy(p->buf + AST_FRIENDLY_OFFSET,client->audio + client->drainindex,FRAME_SIZE + i);
-			memcpy(p->buf + AST_FRIENDLY_OFFSET + (client->buflen - i),client->audio,-i);
-		}
-		if (i >= 0)
-		{
-			memset(client->audio + client->drainindex,0xff,FRAME_SIZE);
-		}
-		else
-		{
-			memset(client->audio + client->drainindex,0xff,FRAME_SIZE + i);
-			memset(client->audio,0xff,-i);
-		}
-		k = 0;
-		if (i >= 0)
-		{
-			for(j = client->drainindex; j < client->drainindex + FRAME_SIZE; j++)
-			{
-				k += client->rssi[j];
-				client->rssi[j] = 0;
-			}
-		}
-		else
-		{
-			for(j = client->drainindex; j < client->drainindex + (FRAME_SIZE + i); j++)
-			{
-				k += client->rssi[j];
-				client->rssi[j] = 0;
-			}
-			for(j = 0; j < -i; j++)
-			{
-				k += client->rssi[j];
-				client->rssi[j] = 0;
-			}
-		}			
-		client->lastrssi = k / FRAME_SIZE; 
-		if (client->lastrssi > maxrssi)
-		{
-			maxrssi = client->lastrssi;
-			maxclient = client;
-		}
-		memset(&fr,0,sizeof(struct ast_frame));
-	        fr.frametype = AST_FRAME_VOICE;
-	        fr.subclass = AST_FORMAT_ULAW;
-	        fr.datalen = FRAME_SIZE;
-	        fr.samples = FRAME_SIZE;
-	        AST_FRAME_DATA(fr) =  p->buf + AST_FRIENDLY_OFFSET;
-	        fr.src = type;
-	        fr.offset = AST_FRIENDLY_OFFSET;
-	        fr.mallocd = 0;
-	        fr.delivery.tv_sec = 0;
-	        fr.delivery.tv_usec = 0;
-		f2 = ast_translate(p->toast1,&fr,0);
-		if (!f2)
-		{
-			ast_log(LOG_ERROR,"Can not translate frame to send to Asterisk\n");
-			return(0);
-		}
-		sp1 = AST_FRAME_DATAP(f1);
-		sp2 = AST_FRAME_DATAP(f2);
-		for(i = 0; i < FRAME_SIZE; i++)
-		{
-			if (maxprio && client->lastrssi)
-				j = sp2[i];
-			else
-				j = sp1[i] + sp2[i];
-			if (j > 32767) j = 32767;
-			if (j < -32767) j = -32767;
-			sp1[i] = j;
-		}
-		ast_frfree(f2);
-	}
-	if (!maxclient) /* if nothing there */
-	{
-		if (p->rxkey && p->dsp && p->usedtmf)
-		{
-			memset(silbuf,0,sizeof(silbuf));
-			memset(&fr,0,sizeof(struct ast_frame));
-		        fr.frametype = AST_FRAME_VOICE;
-		        fr.subclass = AST_FORMAT_SLINEAR;
-		        fr.datalen = FRAME_SIZE * 2;
-		        fr.samples = FRAME_SIZE;
-		        AST_FRAME_DATA(fr) =  silbuf;
-		        fr.src = type;
-		        fr.offset = 0;
-		        fr.mallocd = 0;
-		        fr.delivery.tv_sec = 0;
-		        fr.delivery.tv_usec = 0;
-			f2 = ast_dsp_process(NULL,p->dsp,&fr);
-#ifdef	OLD_ASTERISK
-			if (f2->frametype == AST_FRAME_DTMF)
-#else
-			if ((f2->frametype == AST_FRAME_DTMF_END) ||
-				(f2->frametype == AST_FRAME_DTMF_BEGIN))
-#endif
-			{
-				if ((f2->subclass != 'm') && (f2->subclass != 'u'))
-				{
-#ifndef	OLD_ASTERISK
-					if (f2->frametype == AST_FRAME_DTMF_END)
-#endif
-						ast_log(LOG_NOTICE,"Voter %d Got DTMF char %c\n",p->nodenum,f2->subclass);
-				}
-				else
-				{
-					f2->frametype = AST_FRAME_NULL;
-					f2->subclass = 0;
-				}
-				ast_queue_frame(p->owner,f2);
-				gettimeofday(&p->lastrxtime,NULL);
-			}
-		}
-		memset(silbuf,0,sizeof(silbuf));
-		memset(&fr,0,sizeof(struct ast_frame));
-	        fr.frametype = AST_FRAME_VOICE;
-	        fr.subclass = AST_FORMAT_SLINEAR;
-	        fr.datalen = FRAME_SIZE * 2;
-	        fr.samples = FRAME_SIZE;
-	        AST_FRAME_DATA(fr) =  silbuf;
-	        fr.src = type;
-	        fr.offset = 0;
-	        fr.mallocd = 0;
-	        fr.delivery.tv_sec = 0;
-	        fr.delivery.tv_usec = 0;
-		p->threshold = 0;
-		p->threshcount = 0;
-		p->lingercount = 0;
-		p->winner = 0;
-		incr_drainindex(p);
-		ast_queue_frame(p->owner,&fr);
-		return(0);
-	}
-	p->winner = maxclient;
-	incr_drainindex(p);
-	gettimeofday(&p->lastrxtime,NULL);
-	if (!p->rxkey)
-	{
-		memset(&fr,0,sizeof(fr));
-		fr.datalen = 0;
-		fr.samples = 0;
-		fr.frametype = AST_FRAME_CONTROL;
-		fr.subclass = AST_CONTROL_RADIO_KEY;
-		AST_FRAME_DATA(fr) =  0;
-		fr.src = type;
-		fr.offset = 0;
-		fr.mallocd=0;
-		fr.delivery.tv_sec = 0;
-		fr.delivery.tv_usec = 0;
-		ast_queue_frame(p->owner,&fr);
-	}
-	p->rxkey = 1;
-	x = 0;
-	if (p->dsp && p->usedtmf)
-	{
-		f2 = ast_dsp_process(NULL,p->dsp,f1);
-#ifdef	OLD_ASTERISK
-		if (f2->frametype == AST_FRAME_DTMF)
-#else
-		if ((f2->frametype == AST_FRAME_DTMF_END) ||
-			(f2->frametype == AST_FRAME_DTMF_BEGIN))
-#endif
-		{
-			if ((f2->subclass != 'm') && (f2->subclass != 'u'))
-			{
-#ifndef	OLD_ASTERISK
-				if (f2->frametype == AST_FRAME_DTMF_END)
-#endif
-					ast_log(LOG_NOTICE,"Voter %d Got DTMF char %c\n",p->nodenum,f2->subclass);
-			}
-			else
-			{
-				f2->frametype = AST_FRAME_NULL;
-				f2->subclass = 0;
-			}
-			ast_queue_frame(p->owner,f2);
-			x = 1;
-		}
-	}
-	if (!x) ast_queue_frame(p->owner,f1);
-	else
-	{
-		memset(silbuf,0,sizeof(silbuf));
-		memset(&fr,0,sizeof(struct ast_frame));
-	        fr.frametype = AST_FRAME_VOICE;
-	        fr.subclass = AST_FORMAT_SLINEAR;
-	        fr.datalen = FRAME_SIZE * 2;
-	        fr.samples = FRAME_SIZE;
-	        AST_FRAME_DATA(fr) =  silbuf;
-	        fr.src = type;
-	        fr.offset = 0;
-	        fr.mallocd = 0;
-	        fr.delivery.tv_sec = 0;
-	        fr.delivery.tv_usec = 0;
-		ast_queue_frame(p->owner,&fr);
-	}
-	return(1);
-}
-
-
-/* voter xmit thread */
-static void *voter_xmit(void *data)
-{
-
-struct voter_pvt *p = (struct voter_pvt *)data;
-int	i,n,x;
-i16 dummybuf1[FRAME_SIZE * 12],xmtbuf1[FRAME_SIZE * 12];
-i16 xmtbuf[FRAME_SIZE],dummybuf2[FRAME_SIZE];
-struct ast_frame fr,*f1,*f2,*f3;
-struct voter_client *client;
-struct timeval tv;
-
-#pragma pack(push)
-#pragma pack(1)
-	struct {
-		VOTER_PACKET_HEADER vp;
-		char rssi;
-		char audio[FRAME_SIZE + 3];
-	} audiopacket;
-#pragma pack(pop)
-
-	while(run_forever && (!ast_shutting_down()))
-	{
-		ast_mutex_lock(&p->xmit_lock);
-		ast_cond_wait(&p->xmit_cond, &p->xmit_lock);
-		ast_mutex_unlock(&p->xmit_lock);
-		if (!p->drained_once)
-		{
-			p->drained_once = 1;
-			continue;
-		}
-		n = x = 0;
-		ast_mutex_lock(&p->txqlock);
-		AST_LIST_TRAVERSE(&p->txq, f1,frame_list) n++;
-		ast_mutex_unlock(&p->txqlock);
-		if (n && ((n > 3) || (!p->txkey)))
-		{
-			x = 1;
-			ast_mutex_lock(&p->txqlock);
-			f2 = AST_LIST_REMOVE_HEAD(&p->txq,frame_list);
-			ast_mutex_unlock(&p->txqlock);
-			if (p->pmrChan)
-			{
-				p->pmrChan->txPttIn = 1;
-				PmrTx(p->pmrChan,(i16*) AST_FRAME_DATAP(f2));
-				ast_frfree(f2);
-			}
-		}
-		f1 = NULL;
-		// x will be set here is there was actual transmit activity
-		if ((!x) && (p->pmrChan)) p->pmrChan->txPttIn = 0;
-		if (x && (!p->pmrChan))
-		{
-			f1 = ast_translate(p->fromast,f2,1);
-			if (!f1)
-			{
-				ast_log(LOG_ERROR,"Can not translate frame to recv from Asterisk\n");
-				continue;
-			}
-		}
-		if (p->pmrChan)
-		{
-			if (p->pmrChan->txPttOut && (!x)) 
-			{
-				memset(xmtbuf,0,sizeof(xmtbuf));
-				if (p->pmrChan) PmrTx(p->pmrChan,xmtbuf);
-			}
-			PmrRx(p->pmrChan,dummybuf1,dummybuf2,xmtbuf1);
-			x = p->pmrChan->txPttOut;
-			for(i = 0; i < FRAME_SIZE; i++) xmtbuf[i] = xmtbuf1[i * 2];
-			memset(&fr,0,sizeof(struct ast_frame));
-		        fr.frametype = AST_FRAME_VOICE;
-		        fr.subclass = AST_FORMAT_SLINEAR;
-		        fr.datalen = ADPCM_FRAME_SIZE;
-		        fr.samples = FRAME_SIZE;
-		        AST_FRAME_DATA(fr) = xmtbuf;
-		        fr.src = type;
-		        fr.offset = 0;
-		        fr.mallocd = 0;
-		        fr.delivery.tv_sec = 0;
-		        fr.delivery.tv_usec = 0;
-			f1 = ast_translate(p->fromast,&fr,0);
-			if (!f1)
-			{
-				ast_log(LOG_ERROR,"Can not translate frame to recv from Asterisk\n");
-				continue;
-			}
-		}
-		// x will now be set if we are to generate TX output
-		if (x)
-		{
-			memset(&audiopacket,0,sizeof(audiopacket));
-			strcpy((char *)audiopacket.vp.challenge,challenge);
-			audiopacket.vp.payload_type = htons(1);
-			audiopacket.rssi = 0;
-			memcpy(audiopacket.audio,AST_FRAME_DATAP(f1),FRAME_SIZE);
-			audiopacket.vp.curtime.vtime_sec = htonl(master_time.vtime_sec);
-			audiopacket.vp.curtime.vtime_nsec = htonl(master_time.vtime_nsec);
-			for(client = clients; client; client = client->next)
-			{
-				if (client->nodenum != p->nodenum) continue;
-				if (!client->respdigest) continue;
-				if (!client->heardfrom) continue;
-				if (client->doadpcm) continue;
-				if (client->donulaw) continue;
-				mkpucked(client,&audiopacket.vp.curtime);
-				audiopacket.vp.digest = htonl(client->respdigest);
-				audiopacket.vp.curtime.vtime_nsec = (client->mix) ? htonl(client->txseqno) : htonl(master_time.vtime_nsec);
-				if (client->totransmit)
-				{
-					if (debug > 1) ast_verbose("sending audio packet to client %s digest %08x\n",client->name,client->respdigest);
-					sendto(udp_socket, &audiopacket, sizeof(audiopacket) - 3,0,(struct sockaddr *)&client->sin,sizeof(client->sin));
-					gettimeofday(&client->lastsenttime,NULL);
-				}
-			}
-		}
-		if (x || p->adpcmf1)
-		{
-			if (p->adpcmf1 == NULL) p->adpcmf1 = ast_frdup(f1);
-			else
-			{
-				memset(xmtbuf,0xff,sizeof(xmtbuf));
-				memset(&fr,0,sizeof(struct ast_frame));
-			        fr.frametype = AST_FRAME_VOICE;
-			        fr.subclass = AST_FORMAT_ULAW;
-			        fr.datalen = FRAME_SIZE;
-			        fr.samples = FRAME_SIZE;
-			        AST_FRAME_DATA(fr) = xmtbuf;
-			        fr.src = type;
-			        fr.offset = 0;
-			        fr.mallocd = 0;
-			        fr.delivery.tv_sec = 0;
-			        fr.delivery.tv_usec = 0;
-				if (x) f3 = ast_frcat(p->adpcmf1,f1); else f3 = ast_frcat(p->adpcmf1,&fr);
-				ast_frfree(p->adpcmf1);
-				p->adpcmf1 = NULL;
-				f2 = ast_translate(p->adpcmout,f3,1);
-				memcpy(audiopacket.audio,AST_FRAME_DATAP(f2),f2->datalen);
-				audiopacket.vp.curtime.vtime_sec = htonl(master_time.vtime_sec);
-				audiopacket.vp.payload_type = htons(3);
-				for(client = clients; client; client = client->next)
-				{
-					if (client->nodenum != p->nodenum) continue;
-					if (!client->respdigest) continue;
-					if (!client->heardfrom) continue;
-					if (!client->doadpcm) continue;
-					mkpucked(client,&audiopacket.vp.curtime);
-					audiopacket.vp.digest = htonl(client->respdigest);
-					audiopacket.vp.curtime.vtime_nsec = (client->mix) ? htonl(client->txseqno) : htonl(master_time.vtime_nsec);
-#ifndef	ADPCM_LOOPBACK
-					if (client->totransmit)
-					{
-						if (debug > 1) ast_verbose("sending audio packet to client %s digest %08x\n",client->name,client->respdigest);
-						sendto(udp_socket, &audiopacket, sizeof(audiopacket),0,(struct sockaddr *)&client->sin,sizeof(client->sin));
-						gettimeofday(&client->lastsenttime,NULL);
-					}
-#endif
-				}
-				ast_frfree(f2);
-			}
-		}
-		if (x || p->nulawf1)
-		{
-			short *sap,s;
-			unsigned char nubuf[FRAME_SIZE];
-
-			if (p->nulawf1 == NULL) p->nulawf1 = ast_frdup(f1);
-			else
-			{
-				memset(xmtbuf,0xff,sizeof(xmtbuf));
-				memset(&fr,0,sizeof(struct ast_frame));
-			        fr.frametype = AST_FRAME_VOICE;
-			        fr.subclass = AST_FORMAT_ULAW;
-			        fr.datalen = FRAME_SIZE;
-			        fr.samples = FRAME_SIZE;
-			        AST_FRAME_DATA(fr) = xmtbuf;
-			        fr.src = type;
-			        fr.offset = 0;
-			        fr.mallocd = 0;
-			        fr.delivery.tv_sec = 0;
-			        fr.delivery.tv_usec = 0;
-				if (x) f3 = ast_frcat(p->nulawf1,f1); else f3 = ast_frcat(p->nulawf1,&fr);
-				ast_frfree(p->nulawf1);
-				p->nulawf1 = NULL;
-				f2 = ast_translate(p->nuout,f3,1);
-				sap = (short *)AST_FRAME_DATAP(f2);
-				for(i = 0; i < f2->samples / 2; i++)
-				{
-					s = *sap++;
-					if (s > 14000) s = 14000;
-					if (s < -14000) s = -14000;
-					lpass4(s,p->tlpx,p->tlpy);
-					s = *sap++;
-					if (s > 14000) s = 14000;
-					if (s < -14000) s = -14000;
-					nubuf[i] = AST_LIN2MU(lpass4(s,p->tlpx,p->tlpy));
-				}
-				memcpy(audiopacket.audio,nubuf,sizeof(nubuf));
-				audiopacket.vp.curtime.vtime_sec = htonl(master_time.vtime_sec);
-				audiopacket.vp.payload_type = htons(4);
-				for(client = clients; client; client = client->next)
-				{
-					if (client->nodenum != p->nodenum) continue;
-					if (!client->respdigest) continue;
-					if (!client->heardfrom) continue;
-					if (!client->donulaw) continue;
-					mkpucked(client,&audiopacket.vp.curtime);
-					audiopacket.vp.digest = htonl(client->respdigest);
-					audiopacket.vp.curtime.vtime_nsec = (client->mix) ? htonl(client->txseqno) : htonl(master_time.vtime_nsec);
-#ifndef	NULAW_LOOPBACK
-					if (client->totransmit)
-					{
-						if (debug > 1) ast_verbose("sending audio packet to client %s digest %08x\n",client->name,client->respdigest);
-						sendto(udp_socket, &audiopacket, sizeof(audiopacket) - 3,0,(struct sockaddr *)&client->sin,sizeof(client->sin));
-						gettimeofday(&client->lastsenttime,NULL);
-					}
-#endif
-				}
-				ast_frfree(f2);
-			}
-		}
-		if (f1) ast_frfree(f1);
-		gettimeofday(&tv,NULL);
-		for(client = clients; client; client = client->next)
-		{
-			if (client->nodenum != p->nodenum) continue;
-			if (!client->respdigest) continue;
-			if (!client->heardfrom) continue;
-			if (ast_tvzero(client->lastsenttime) || (ast_tvdiff_ms(tv,client->lastsenttime) >= TX_KEEPALIVE_MS))
-			{
-				
-				memset(&audiopacket,0,sizeof(audiopacket));
-				strcpy((char *)audiopacket.vp.challenge,challenge);
-				audiopacket.vp.curtime.vtime_sec = htonl(master_time.vtime_sec);
-				audiopacket.vp.payload_type = htons(2);
-				audiopacket.vp.digest = htonl(client->respdigest);
-				audiopacket.vp.curtime.vtime_nsec = (client->mix) ? htonl(client->txseqno) : htonl(master_time.vtime_nsec);
-				if (debug > 1) ast_verbose("sending KEEPALIVE (GPS) packet to client %s digest %08x\n",client->name,client->respdigest);
-				sendto(udp_socket, &audiopacket, sizeof(VOTER_PACKET_HEADER),0,(struct sockaddr *)&client->sin,sizeof(client->sin));
-				gettimeofday(&client->lastsenttime,NULL);
-			}
-		}
-	}
-	pthread_exit(NULL);
-}
-
-static struct ast_channel *voter_request(const char *type, int format, void *data, int *cause)
-{
-	int oldformat,i;
-	struct voter_pvt *p;
-	struct ast_channel *tmp = NULL;
-	char *val,*cp,*cp1,*cp2,*strs[MAXTHRESHOLDS];
-	struct ast_config *cfg = NULL;
-	pthread_attr_t attr;
-	
-	oldformat = format;
-	format &= AST_FORMAT_SLINEAR;
-	if (!format) {
-		ast_log(LOG_ERROR, "Asked to get a channel of unsupported format '%d'\n", oldformat);
-		return NULL;
-	}
-	p = ast_malloc(sizeof(struct voter_pvt));
-	if (!p)
-	{
-		ast_log(LOG_ERROR,"Cant malloc() for voter structure!\n");
-		return NULL;
-	}
-	memset(p, 0, sizeof(struct voter_pvt));
-	p->nodenum = strtoul((char *)data,NULL,0);
-	ast_mutex_init(&p->txqlock);
-	ast_mutex_init(&p->xmit_lock);
-	ast_cond_init(&p->xmit_cond,NULL);
-	p->dsp = ast_dsp_new();
-	if (!p->dsp)
-	{
-		ast_log(LOG_ERROR,"Cannot get DSP!!\n");
-		ast_free(p);
-		return NULL;
-	}
-#ifdef  NEW_ASTERISK
-        ast_dsp_set_features(p->dsp,DSP_FEATURE_DIGIT_DETECT);
-        ast_dsp_set_digitmode(p->dsp,DSP_DIGITMODE_DTMF | DSP_DIGITMODE_MUTECONF | DSP_DIGITMODE_RELAXDTMF);
-#else
-        ast_dsp_set_features(p->dsp,DSP_FEATURE_DTMF_DETECT);
-        ast_dsp_digitmode(p->dsp,DSP_DIGITMODE_DTMF | DSP_DIGITMODE_MUTECONF | DSP_DIGITMODE_RELAXDTMF);
-#endif
-	p->usedtmf = 1;
-	p->adpcmin = ast_translator_build_path(AST_FORMAT_ULAW,AST_FORMAT_ADPCM);
-	if (!p->adpcmin)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from adpcm to ulaw!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-	p->adpcmout = ast_translator_build_path(AST_FORMAT_ADPCM,AST_FORMAT_ULAW);
-	if (!p->adpcmout)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from ulaw to adpcm!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-	p->toast = ast_translator_build_path(AST_FORMAT_SLINEAR,AST_FORMAT_ULAW);
-	if (!p->toast)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from ulaw to slinear!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-	p->toast1 = ast_translator_build_path(AST_FORMAT_SLINEAR,AST_FORMAT_ULAW);
-	if (!p->toast1)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from ulaw to slinear!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-	p->fromast = ast_translator_build_path(AST_FORMAT_ULAW,AST_FORMAT_SLINEAR);
-	if (!p->fromast)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from slinear to ulaw!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-	p->nuin = ast_translator_build_path(AST_FORMAT_ULAW,AST_FORMAT_SLINEAR);
-	if (!p->nuin)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from slinear to ulaw!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-	p->nuout = ast_translator_build_path(AST_FORMAT_SLINEAR,AST_FORMAT_ULAW);
-	if (!p->nuout)
-	{
-		ast_log(LOG_ERROR,"Cannot get translator from ulaw to slinear!!\n");
-		ast_dsp_free(p->dsp);
-		ast_free(p);
-		return NULL;
-	}
-#ifdef	OLD_ASTERISK
-	tmp = ast_channel_alloc(1);
-	if (!tmp)
-	{
-		ast_log(LOG_ERROR,"Cant alloc new asterisk channel\n");
-		ast_free(p);
-		return NULL;
-	}
-	ast_setstate(tmp,AST_STATE_DOWN);
-	ast_copy_string(tmp->context, context, sizeof(tmp->context));
-	ast_copy_string(tmp->exten, (char *)data, sizeof(tmp->exten));
-	snprintf(tmp->name, sizeof(tmp->name), "voter/%s", (char *)data);
-#else
-	tmp = ast_channel_alloc(1, AST_STATE_DOWN, 0, 0, "", (char *)data, context, 0, "voter/%s", (char *)data);
-	if (!tmp)
-	{
-		ast_log(LOG_ERROR,"Cant alloc new asterisk channel\n");
-		ast_free(p);
-		return NULL;
-	}
-#endif
-	ast_mutex_lock(&voter_lock);
-	if (pvts != NULL) p->next = pvts;
-	pvts = p;
-	ast_mutex_unlock(&voter_lock);
-	tmp->tech = &voter_tech;
-	tmp->rawwriteformat = AST_FORMAT_SLINEAR;
-	tmp->writeformat = AST_FORMAT_SLINEAR;
-	tmp->rawreadformat = AST_FORMAT_SLINEAR;
-	tmp->readformat = AST_FORMAT_SLINEAR;
-	tmp->nativeformats = AST_FORMAT_SLINEAR;
-//	if (state == AST_STATE_RING) tmp->rings = 1;
-	tmp->tech_pvt = p;
-#ifdef	OLD_ASTERISK
-	ast_copy_string(tmp->language, "", sizeof(tmp->language));
-#else
-	ast_string_field_set(tmp, language, "");
-#endif
-	p->owner = tmp;
-#ifdef	OLD_ASTERISK
-	ast_mutex_lock(&usecnt_lock);
-	usecnt++;
-	ast_mutex_unlock(&usecnt_lock);
-	ast_update_use_count();
-#else
-	p->u = ast_module_user_add(tmp);
-#endif
-#ifdef  NEW_ASTERISK
-        if (!(cfg = ast_config_load(config,zeroflag))) {
-#else
-        if (!(cfg = ast_config_load(config))) {
-#endif
-                ast_log(LOG_ERROR, "Unable to load config %s\n", config);
-        } else {
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"linger"); 
-		if (val) p->linger = atoi(val); else p->linger = DEFAULT_LINGER;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"plfilter"); 
-		if (val) p->plfilter = ast_true(val);
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"duplex"); 
-		if (val) p->duplex = ast_true(val); else p->duplex = 1;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"streams"); 
-		if (val)
-		{
-			cp = ast_strdup(val);
-			p->nstreams = finddelim(cp,p->streams,MAXSTREAMS);
-		}		
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"txctcss"); 
-		if (val) ast_copy_string(p->txctcssfreq,val,sizeof(p->txctcssfreq));
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"txctcsslevel"); 
-		if (val) p->txctcsslevel = atoi(val); else p->txctcsslevel = 62;
-		p->txtoctype = TOC_NONE;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"txtoctype"); 
-		if (val)
-		{
-			if (!strcasecmp(val,"phase")) p->txtoctype = TOC_PHASE;
-			else if (!strcasecmp(val,"notone")) p->txtoctype = TOC_NOTONE;
-		}
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"thresholds"); 
-		if (val)
-		{
-			cp = ast_strdup(val);
-			p->nthresholds = finddelim(cp,strs,MAXTHRESHOLDS);
-			for(i = 0; i < p->nthresholds; i++)
-			{
-				cp1 = strchr(strs[i],'=');
-				p->linger_thresh[i] = p->linger;
-				if (cp1)
-				{
-					*cp1 = 0;
-					cp2 = strchr(cp1 + 1,':');
-					if (cp2)
-					{
-						*cp2 = 0;
-						if (cp2[1]) p->linger_thresh[i] = (uint16_t)atoi(cp2 + 1);
-					}
-					if (cp1[1]) p->count_thresh[i] = (uint16_t)atoi(cp1 + 1);
-				}
-				p->rssi_thresh[i] = (uint8_t)atoi(strs[i]);
-			}
-			ast_free(cp);
-		}		
-	}
-
-	if (p->txctcssfreq[0])
-	{
-		t_pmr_chan tChan;
-
-		memset(&tChan,0,sizeof(t_pmr_chan));
-
-		tChan.pTxCodeDefault = p->txctcssfreq;
-		tChan.pTxCodeSrc     = p->txctcssfreq;
-		tChan.pRxCodeSrc     = p->txctcssfreq;
-		tChan.txMod = 2;
-		tChan.txMixA = TX_OUT_COMPOSITE;
-		tChan.b.txboost = 1;
-		p->pmrChan = createPmrChannel(&tChan,FRAME_SIZE);
-		p->pmrChan->radioDuplex = 1;//o->radioduplex;
-		p->pmrChan->b.loopback=0; 
-		p->pmrChan->b.radioactive= 1;
-		p->pmrChan->txrxblankingtime = 0;
-		p->pmrChan->rxCpuSaver = 0;
-		p->pmrChan->txCpuSaver = 0;
-		*(p->pmrChan->prxSquelchAdjust) = 0;
-		*(p->pmrChan->prxVoiceAdjust) = 0;
-		*(p->pmrChan->prxCtcssAdjust) = 0;
-		p->pmrChan->rxCtcss->relax = 0;
-		p->pmrChan->txTocType = p->txtoctype;
-		p->pmrChan->spsTxOutA->outputGain = 250;
-		*p->pmrChan->ptxCtcssAdjust = p->txctcsslevel;
-		p->pmrChan->pTxCodeDefault = p->txctcssfreq;
-		p->pmrChan->pTxCodeSrc = p->txctcssfreq;
-//		p->pmrChan->txfreq = p->txctcssfreq;
-			
-	}
-	ast_config_destroy(cfg);
-        pthread_attr_init(&attr);
-        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
-        ast_pthread_create(&p->xmit_thread,&attr,voter_xmit,p);
-	pthread_attr_destroy(&attr);
-	return tmp;
-}
-
-/*
-* Enable or disable debug output at a given level at the console
-*/
-                                                                                                                                 
-static int voter_do_debug(int fd, int argc, char *argv[])
-{
-	int newlevel;
-
-        if (argc != 4)
-                return RESULT_SHOWUSAGE;
-        newlevel = atoi(argv[3]);
-        if((newlevel < 0) || (newlevel > 7))
-                return RESULT_SHOWUSAGE;
-        if(newlevel)
-                ast_cli(fd, "voter Debugging enabled, previous level: %d, new level: %d\n", debug, newlevel);
-        else
-                ast_cli(fd, "voter Debugging disabled\n");
-
-        debug = newlevel;                                                                                                                          
-        return RESULT_SUCCESS;
-}
-
-static int voter_do_test(int fd, int argc, char *argv[])
-{
-	int newlevel;
-	struct voter_pvt *p;
-
-        if (argc < 3)
-                return RESULT_SHOWUSAGE;
-	ast_mutex_lock(&voter_lock);
-	for(p = pvts; p; p = p->next)
-	{
-		if (p->nodenum == atoi(argv[2])) break;
-	}
-	if (!p)
-	{
-		ast_cli(fd,"voter instance %s not found\n",argv[2]);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-	if (argc == 3)
-	{
-		if (p->voter_test)
-			ast_cli(fd,"voter instance %d Test: currently set to %d\n",p->nodenum,p->voter_test);
-		else
-			ast_cli(fd,"voter instance %d Test: currently disabled\n",p->nodenum);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}		
-        if (argc != 4)
-	{
-		ast_mutex_unlock(&voter_lock);
-                return RESULT_SHOWUSAGE;
-	}
-        newlevel = atoi(argv[3]);
-	if (newlevel < 0)
-	{
-		ast_cli(fd,"Error: Invalid test mode value specification!!\n");
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-        if(newlevel)
-                ast_cli(fd, "voter instance %d Test: previous level: %d, new level: %d\n", p->nodenum, p->voter_test, newlevel);
-        else
-                ast_cli(fd, "voter instance %d Test disabled\n",p->nodenum);
-
-        p->voter_test = newlevel;                                                                                                                          
-	ast_mutex_unlock(&voter_lock);
-        return RESULT_SUCCESS;
-}
-
-static int voter_do_prio(int fd, int argc, char *argv[])
-{
-	int newlevel;
-	struct voter_pvt *p;
-	struct voter_client *client;
-
-        if (argc < 3)
-                return RESULT_SHOWUSAGE;
-	ast_mutex_lock(&voter_lock);
-	for(p = pvts; p; p = p->next)
-	{
-		if (p->nodenum == atoi(argv[2])) break;
-	}
-	if (!p)
-	{
-		ast_cli(fd,"voter instance %s not found\n",argv[2]);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-	if (argc == 3)
-	{
-		ast_cli(fd,"Voter instance %d priority values:\n\n",p->nodenum);
-		for(client = clients; client; client = client->next)
-		{
-			if (client->nodenum != p->nodenum) continue;
-			if (client->prio_override > -2)
-				ast_cli(fd,"client %s: eff_prio: %d, prio: %d, override_prio: %d\n",
-					client->name,client->prio_override, client->prio,client->prio_override);
-			else
-				ast_cli(fd,"client %s: prio: %d (not overridden)\n",client->name,client->prio);
-		}
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-	if (argc == 4)
-	{
-		for(client = clients; client; client = client->next)
-		{
-			if (client->nodenum != p->nodenum) continue;
-			if (strcasecmp(argv[3],client->name)) continue;
-			if (client->prio_override > -2)
-				ast_cli(fd,"Voter instance %d, client %s: eff_prio: %d, prio: %d, override_prio: %d\n",
-					p->nodenum,client->name,client->prio_override, client->prio,client->prio_override);
-			else
-				ast_cli(fd,"Voter instance %d, client %s: prio: %d (not overridden)\n",
-					p->nodenum,client->name,client->prio);
-			break;
-		}
-		if (!client) ast_cli(fd,"voter client %s not found\n",argv[3]);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-        if (argc != 5)
-	{
-		ast_mutex_unlock(&voter_lock);
-                return RESULT_SHOWUSAGE;
-	}
-	for(client = clients; client; client = client->next)
-	{
-		if (client->nodenum != p->nodenum) continue;
-		if (!strcasecmp(argv[3],client->name)) break;
-	}
-	if (!client)
-	{
-		ast_cli(fd,"voter client %s not found\n",argv[3]);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-	if ((!strcasecmp(argv[4],"off")) || (!strncasecmp(argv[4],"dis",3))) newlevel = -2;
-	else 
-	{
-		if (sscanf(argv[4],"%d",&newlevel) < 1)
-		{
-			ast_cli(fd,"Error: Invalid priority value specification!!\n");
-			ast_mutex_unlock(&voter_lock);
-			return RESULT_SUCCESS;
-		}
-	}
-	if (newlevel < -2)
-	{
-		ast_cli(fd,"Error: Invalid priority value specification!!\n");
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-        if (newlevel > -2)
-	{
-		if (client->prio_override > -2)
-	                ast_cli(fd, "voter instance %d prio (override): previous level: %d, new level: %d\n", 
-				p->nodenum, client->prio_override, newlevel);
-		else
-	                ast_cli(fd, "voter instance %d prio (override): previous level: , new level: %d\n", 
-				p->nodenum, newlevel);
-	}
-        else
-                ast_cli(fd, "voter instance %d prio (override) disabled\n",p->nodenum);
-
-        client->prio_override = newlevel;                                                                                                                          
-	ast_mutex_unlock(&voter_lock);
-        return RESULT_SUCCESS;
-}
-
-static int voter_do_record(int fd, int argc, char *argv[])
-{
-	if (argc == 2)
-	{
-		if (recfp) fclose(recfp);
-		recfp = NULL;
-		ast_cli(fd,"voter recording disabled\n");
-		return RESULT_SUCCESS;
-	}		
-        if (argc != 3)
-                return RESULT_SHOWUSAGE;
-	recfp = fopen(argv[2],"w");
-	if (!recfp)
-	{
-		ast_cli(fd,"voter Record: Could not open file %s\n",argv[2]);
-		return RESULT_SUCCESS;
-	}
-        ast_cli(fd, "voter Record: Recording enabled info file %s\n",argv[2]);
-        return RESULT_SUCCESS;
-}
-
-static int voter_do_tone(int fd, int argc, char *argv[])
-{
-	int newlevel;
-	struct voter_pvt *p;
-
-        if (argc < 3)
-                return RESULT_SHOWUSAGE;
-	ast_mutex_lock(&voter_lock);
-	for(p = pvts; p; p = p->next)
-	{
-		if (p->nodenum == atoi(argv[2])) break;
-	}
-	if (!p)
-	{
-		ast_cli(fd,"voter instance %s not found\n",argv[2]);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-	if (!p->pmrChan)
-	{
-		ast_cli(fd,"voter instance %s does not have CTCSS enabled\n",argv[2]);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-	if (argc == 3)
-	{
-		ast_cli(fd,"voter instance %d CTCSS tone level is %d\n",p->nodenum,p->txctcsslevel);
-		ast_mutex_unlock(&voter_lock);
-		return RESULT_SUCCESS;
-	}
-        newlevel = atoi(argv[3]);
-        if((newlevel < 0) || (newlevel > 250))
-	{
-		ast_mutex_unlock(&voter_lock);
-                return RESULT_SHOWUSAGE;
-	}
-        ast_cli(fd, "voter instance %d CTCSS tone level set to %d\n",p->nodenum,newlevel);
-	p->txctcsslevel = newlevel;
-	*p->pmrChan->ptxCtcssAdjust = newlevel;
-	ast_mutex_unlock(&voter_lock);
-        return RESULT_SUCCESS;
-}
-
-static int voter_do_reload(int fd, int argc, char *argv[])
-{
-        if (argc != 2)
-                return RESULT_SHOWUSAGE;
-	reload();
-        return RESULT_SUCCESS;
-}
-
-static int rad_rxwait(int fd,int ms)
-{
-int	myms = ms,x;
-
-	x = ast_waitfor_n_fd(&fd, 1, &myms,NULL);
-	if (x == -1) return -1;
-	if (x == fd) return 1;
-	return 0;
-}
-
-static void voter_display(int fd, struct voter_pvt *p)
-{
-	int j,rssi,thresh,ncols = 56,wasverbose,vt100compat;
-	char str[256],*term,c,hasdyn;
-	struct voter_client *client;
-
-
-	term = getenv("TERM");
-	vt100compat = 0;
-
-	if (term)
-	{
-                if (!strcmp(term, "linux")) {
-                        vt100compat = 1;
-                } else if (!strcmp(term, "xterm")) {
-                        vt100compat = 1;
-                } else if (!strcmp(term, "xterm-color")) {
-                        vt100compat = 1;
-                } else if (!strncmp(term, "Eterm", 5)) {
-                        /* Both entries which start with Eterm support color */
-                        vt100compat = 1;
-                } else if (!strcmp(term, "vt100")) {
-                        vt100compat = 1;
-                } else if (!strncmp(term, "crt", 3)) {
-                        /* Both crt terminals support color */
-                        vt100compat = 1;
-                }
-	}
-
-
-	for(j = 0; j < ncols; j++) str[j] = ' ';
-	str[j] = 0;
-	ast_cli(fd," %s \r",str);
-
-	wasverbose = option_verbose;
-	option_verbose = 0;
-
-	for(;;)
-	{
-		if (rad_rxwait(fd,100)) break;
-		if (vt100compat) ast_cli(fd,"\033[2J\033[H");
-		ast_cli(fd,"VOTER INSTANCE %d DISPLAY:\n\n",p->nodenum);
-		if (hasmaster && (!master_time.vtime_sec))
-			ast_cli(fd,"*** WARNING -- LOSS OF MASTER TIMING SOURCE ***\n\n");
-		hasdyn = 0;
-		for(client = clients; client; client = client->next)
-		{
-			if (client->nodenum != p->nodenum) continue;
-			if (client->dynamic) hasdyn = 1;
-			if (!client->respdigest) continue;
-			if (!client->heardfrom) continue;
-			rssi = client->lastrssi;
-			thresh = (rssi * ncols) / 256;
-			for(j = 0; j < ncols; j++)
-			{
-				if (client->prio_override == -1) str[j] = 'X';
-				else if (j < thresh) str[j] = '=';
-				else if (j == thresh) str[j] = '>';
-				else str[j] = ' ';
-			}
-			str[j] = 0;
-			c = ' ';
-			if (p->winner == client) c = '*';
-			ast_cli(fd,"%c%10.10s |%s| [%3d]\n",c,client->name,str,rssi);
-		}
-		ast_cli(fd,"\n\n");
-		if (hasdyn)
-		{
-			ast_cli(fd,"ACTIVE DYNAMIC CLIENTS:\n\n");
-			for(client = clients; client; client = client->next)
-			{
-				if (!client->dynamic) continue;
-				if (ast_tvzero(client->lastdyntime)) continue;
-				ast_cli(fd,"%10.10s -- %s:%d\n",client->name,ast_inet_ntoa(client->sin.sin_addr),ntohs(client->sin.sin_port));
-			}
-			ast_cli(fd,"\n\n");
-		}
-	}
-	option_verbose = wasverbose;
-}
-
-static int voter_do_display(int fd, int argc, char *argv[])
-{
-struct voter_pvt *p;
-
-        if (argc != 3)
-                return RESULT_SHOWUSAGE;
-	for(p = pvts; p; p = p->next)
-	{
-		if (p->nodenum == atoi(argv[2])) break;
-	}
-	if (!p)
-	{
-		ast_cli(fd,"voter instance %s not found\n",argv[2]);
-		return RESULT_SUCCESS;
-	}
-	voter_display(fd,p);
-        return RESULT_SUCCESS;
-}
-#ifdef	NEW_ASTERISK
-
-static char *res2cli(int r)
-
-{
-	switch (r)
-	{
-	    case RESULT_SUCCESS:
-		return(CLI_SUCCESS);
-	    case RESULT_SHOWUSAGE:
-		return(CLI_SHOWUSAGE);
-	    default:
-		return(CLI_FAILURE);
-	}
-}
-
-static char *handle_cli_debug(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter debug level";
-                e->usage = debug_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_debug(a->fd,a->argc,a->argv));
-}
-
-static char *handle_cli_test(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter test";
-                e->usage = test_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_test(a->fd,a->argc,a->argv));
-}
-
-static char *handle_cli_prio(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter prio";
-                e->usage = prio_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_prio(a->fd,a->argc,a->argv));
-}
-
-static char *handle_cli_record(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter record";
-                e->usage = record_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_record(a->fd,a->argc,a->argv));
-}
-
-static char *handle_cli_tone(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter tone";
-                e->usage = tone_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_tone(a->fd,a->argc,a->argv));
-}
-
-static char *handle_cli_reload(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter reload";
-                e->usage = reload_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_reload(a->fd,a->argc,a->argv));
-}
-
-static char *handle_cli_display(struct ast_cli_entry *e,
-	int cmd, struct ast_cli_args *a)
-{
-        switch (cmd) {
-        case CLI_INIT:
-                e->command = "voter display";
-                e->usage = display_usage;
-                return NULL;
-        case CLI_GENERATE:
-                return NULL;
-	}
-	return res2cli(voter_do_display(a->fd,a->argc,a->argv));
-}
-
-static struct ast_cli_entry voter_cli[] = {
-	AST_CLI_DEFINE(handle_cli_debug,"Enable voter debugging"),
-	AST_CLI_DEFINE(handle_cli_test,"Specify/Query voter instance test mode"),
-	AST_CLI_DEFINE(handle_cli_prio,"Specify/Query voter client priority value"),
-	AST_CLI_DEFINE(handle_cli_record,"Enable/Specify (or disable) voter recording file"),
-	AST_CLI_DEFINE(handle_cli_tone,"Sets/Queries Tx CTCSS level for specified chan_voter instance"),
-	AST_CLI_DEFINE(handle_cli_reload,"Reloads chan_voter parameters"),
-	AST_CLI_DEFINE(handle_cli_display,"Displays voter (instance) clients"),
-} ;
-
-#endif
-
-#include "xpmr/xpmr.c"
-
-#ifndef	OLD_ASTERISK
-static
-#endif
-int unload_module(void)
-{
-        run_forever = 0;
-
-#ifdef	NEW_ASTERISK
-	ast_cli_unregister_multiple(voter_cli,sizeof(voter_cli) / 
-		sizeof(struct ast_cli_entry));
-#else
-	/* Unregister cli extensions */
-	ast_cli_unregister(&cli_debug);
-	ast_cli_unregister(&cli_test);
-	ast_cli_unregister(&cli_prio);
-	ast_cli_unregister(&cli_record);
-	ast_cli_unregister(&cli_tone);
-	ast_cli_unregister(&cli_reload);
-	ast_cli_unregister(&cli_display);
-#endif
-	/* First, take us out of the channel loop */
-	ast_channel_unregister(&voter_tech);
-	if (nullfd != -1) close(nullfd);
-	return 0;
-}
-
-	
-static void voter_xmit_master(void)
-{
-struct voter_client *client;
-struct voter_pvt *p;
-struct timeval tv;
-
-	for(client = clients; client; client = client->next)
-	{
-		if (!client->respdigest) continue;
-		if (!client->heardfrom) continue;
-		if (!client->mix) continue;
-		client->txseqno++;
-		if (client->rxseqno)
-		{
-			if ((!client->doadpcm) && (!client->donulaw)) client->rxseqno++;
-			else
-			{
-				if (client->rxseq40ms) client->rxseqno += 2;
-				client->rxseq40ms = !client->rxseq40ms;
-			}
-		}
-	}
-	for(p = pvts; p; p = p->next) 
-	{
-		ast_mutex_lock(&p->xmit_lock);
-		ast_cond_signal(&p->xmit_cond);
-		ast_mutex_unlock(&p->xmit_lock);
-	}
-	gettimeofday(&tv,NULL);
-	for(client = clients; client; client = client->next)
-	{
-		if (!client->dynamic) continue;
-		if (ast_tvzero(client->lastdyntime)) continue;
-		if (ast_tvdiff_ms(tv,client->lastdyntime) > dyntime)
-		{
-			if (option_verbose >= 3) ast_verbose(VERBOSE_PREFIX_3 
-				"DYN client %s past lease time\n",client->name);
-			memset(&client->lastdyntime,0,sizeof(client->lastheardtime));
-			memset(&client->sin,0,sizeof(client->sin));
-		}
-	}
-	return;
-}
-
-
-/* Maintain a relative time source that is *not* dependent on system time of day */
-
-static void *voter_timer(void *data)
-{
-	char buf[FRAME_SIZE];
-	int	i;
-	time_t	t;
-	struct voter_pvt *p;
-	struct voter_client *client,*client1;
-	struct timeval tv;
-
-	while(run_forever && (!ast_shutting_down()))
-	{
-		i = read(voter_timing_fd,buf,sizeof(buf));
-		if (i != FRAME_SIZE)
-		{
-			ast_log(LOG_ERROR,"error in read() for voter timer\n");
-			pthread_exit(NULL);
-		}
-		ast_mutex_lock(&voter_lock);
-		time(&t);
-		if (!hasmaster) master_time.vtime_sec = (uint32_t) t;
-		voter_timing_count++;
-		if (!hasmaster)
-		{
-			for(p = pvts; p; p = p->next)
-			{
-				memset(p->buf + AST_FRIENDLY_OFFSET,0xff,FRAME_SIZE);
-				voter_mix_and_send(p,NULL,0);
-			}
-			voter_xmit_master();
-			gettimeofday(&tv,NULL);
-			for(client = clients; client; client = client->next)
-			{
-				if (!ast_tvzero(client->lastheardtime) && (ast_tvdiff_ms(tv,client->lastheardtime) > CLIENT_TIMEOUT_MS))
-				{
-					if (option_verbose >= 3) ast_verbose(VERBOSE_PREFIX_3 "Voter client %s disconnect (timeout)\n",client->name);
-					client->heardfrom = 0;
-					client->respdigest = 0;
-					client->lastheardtime.tv_sec = client->lastheardtime.tv_usec = 0;
-				}
-			}
-			if (check_client_sanity)
-			{
-				for(client = clients; client; client = client->next)
-				{
-					if (!client->respdigest) continue;
-					for(client1 = client->next; client1; client1 = client1->next)
-					{
-						if ((client1->sin.sin_addr.s_addr == client->sin.sin_addr.s_addr) &&
-							(client1->sin.sin_port == client->sin.sin_port))
-						{
-							if (!client1->respdigest) continue;
-							client->respdigest = 0;
-							client->heardfrom = 0;
-							client1->respdigest = 0;
-							client1->heardfrom = 0;
-						}
-					}
-				}
-			}
-		}
-		ast_mutex_unlock(&voter_lock);
-	}
-	return(NULL);
-}	
-
-static void *voter_reader(void *data)
-{
- 	char buf[4096],timestr[100],hasmastered,*cp,*cp1;
-	char gps0[300],gps1[300],gps2[300];
-	struct sockaddr_in sin,sin_stream;
-	struct voter_pvt *p;
-	int i,j,k,ms,maxrssi,master_port;
-	struct ast_frame *f1,fr;
-        socklen_t fromlen;
-	ssize_t recvlen;
-	struct timeval tv,timetv;
-	FILE *gpsfp;
-	struct voter_client *client,*client1,*maxclient;
-	VOTER_PACKET_HEADER *vph;
-	VOTER_GPS *vgp;
-	VOTER_REC rec;
-	VOTER_STREAM stream;
-	time_t timestuff,t;
-	unsigned long my_voter_time;
-	short  silbuf[FRAME_SIZE];
-#ifdef	ADPCM_LOOPBACK
-#pragma pack(push)
-#pragma pack(1)
-	struct {
-		VOTER_PACKET_HEADER vp;
-		char rssi;
-		char audio[FRAME_SIZE + 3];
-	} audiopacket;
-#pragma pack(pop)
-#endif
-	struct {
-		VOTER_PACKET_HEADER vp;
-		char flags;
-	} authpacket;
-
-	if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "voter: reader thread started.\n");
-	ast_mutex_lock(&voter_lock);
-	master_port = 0;
-	while(run_forever && (!ast_shutting_down()))
-	{
-		my_voter_time = voter_timing_count;
-		ast_mutex_unlock(&voter_lock);
-		ms = 50;
-		i = ast_waitfor_n_fd(&udp_socket, 1, &ms,NULL);
-		ast_mutex_lock(&voter_lock);
-		if (i == -1)
-		{
-			ast_mutex_unlock(&voter_lock);
-			ast_log(LOG_ERROR,"Error in select()\n");
-			pthread_exit(NULL);
-		}
-		gettimeofday(&tv,NULL);
-		for(p = pvts; p; p = p->next)
-		{
-			if (!p->rxkey) continue;
-			if (ast_tvdiff_ms(tv,p->lastrxtime) > RX_TIMEOUT_MS)
-			{
-				memset(&fr,0,sizeof(fr));
-				fr.datalen = 0;
-				fr.samples = 0;
-				fr.frametype = AST_FRAME_CONTROL;
-				fr.subclass = AST_CONTROL_RADIO_UNKEY;
-				AST_FRAME_DATA(fr) =  0;
-				fr.src = type;
-				fr.offset = 0;
-				fr.mallocd=0;
-				fr.delivery.tv_sec = 0;
-				fr.delivery.tv_usec = 0;
-				ast_queue_frame(p->owner,&fr);
-				p->rxkey = 0;
-				p->lastwon = NULL;
-			}
-		}
-		if (i < 0) continue;
-		if (i == udp_socket) /* if we get a packet */
-		{
-			fromlen = sizeof(struct sockaddr_in);
-			recvlen = recvfrom(udp_socket,buf,sizeof(buf) - 1,0,
-				(struct sockaddr *)&sin,&fromlen);
-			if (recvlen >= sizeof(VOTER_PACKET_HEADER)) /* if set got something worthwile */
-			{
-				vph = (VOTER_PACKET_HEADER *)buf;
-				if (debug > 3) ast_verbose("Got rx packet, len %d payload %d challenge %s digest %08x\n",(int)recvlen,ntohs(vph->payload_type),vph->challenge,ntohl(vph->digest));
-				client = NULL;
-				if ((!check_client_sanity) && master_port) sin.sin_port = htons(master_port);
-				if (vph->digest)
-				{
-					gettimeofday(&tv,NULL);
-					/* first see if client is not a dynamic one */
-					for(client = clients; client; client = client->next)
-					{
-						if (client->dynamic) continue;
-						if (client->digest == htonl(vph->digest)) break;
-					}
-					/* if not found as non-dynamic, try it as existing dynamic */					
-					if (!client)
-					{
-						for(client = clients; client; client = client->next)
-						{
-							if (!client->dynamic) continue;
-							if (ast_tvzero(client->lastdyntime)) continue;
-							if (ast_tvdiff_ms(tv,client->lastdyntime) > dyntime)
-							{
-								if (option_verbose >= 3) ast_verbose(VERBOSE_PREFIX_3 
-									"DYN client %s past lease time\n",client->name);
-								memset(&client->lastdyntime,0,sizeof(client->lastheardtime));
-								memset(&client->sin,0,sizeof(client->sin));
-								continue;
-							}
-							if (client->digest != htonl(vph->digest)) continue;
-							if (client->sin.sin_addr.s_addr != sin.sin_addr.s_addr) continue;
-							if (client->sin.sin_port != sin.sin_port) continue;
-							if (option_verbose > 4) ast_verbose(VERBOSE_PREFIX_3 
-								"Using existing Dynamic client %s for %s:%d\n",client->name,ast_inet_ntoa(sin.sin_addr),ntohs(sin.sin_port));
-							break;
-						}
-					}
-					/* if still now found, try as new dynamic */
-					if (!client)
-					{
-						for(client = clients; client; client = client->next)
-						{
-							if (!client->dynamic) continue;
-							if (!ast_tvzero(client->lastdyntime)) continue;
-							if (client->digest != htonl(vph->digest)) continue;
-							/* okay, we found an empty dynamic slot with proper digest */
-							gettimeofday(&client->lastdyntime,NULL);
-							client->sin = sin;
-							if (option_verbose >= 3) ast_verbose(VERBOSE_PREFIX_3 
-								"Bound new Dynamic client %s to %s:%d\n",client->name,ast_inet_ntoa(sin.sin_addr),ntohs(sin.sin_port));
-							break;
-						}
-					}
-					if ((debug >= 3) && client && (!client->ismaster) && ntohs(vph->payload_type) == VOTER_PAYLOAD_ULAW)
-					{
-						timestuff = (time_t) ntohl(vph->curtime.vtime_sec);
-						strftime(timestr,sizeof(timestr) - 1,"%D %T",localtime((time_t *)×tuff));
-						ast_verbose("Time:      %s.%03d, (%s) RSSI: %d\n",timestr,ntohl(vph->curtime.vtime_nsec) / 1000000,client->name,(unsigned char)*(buf + sizeof(VOTER_PACKET_HEADER)));
-					}
-					if (client)
-					{
-						if (check_client_sanity)
-						{
-							if ((client->sin.sin_addr.s_addr && (client->sin.sin_addr.s_addr != sin.sin_addr.s_addr)) ||
-								(client->sin.sin_port && (client->sin.sin_port != sin.sin_port))) client->heardfrom = 0;
-						} 
-						gettimeofday(&client->lastdyntime,NULL);
-						client->respdigest = crc32_bufs((char*)vph->challenge,password);
-						client->sin = sin;
-						if ((!client->ismaster) && hasmaster)
-						{
-							if (last_master_count && (voter_timing_count > (last_master_count + MAX_MASTER_COUNT)))
-							{
-								ast_log(LOG_NOTICE,"Voter lost master timing source!!\n");
-								last_master_count = 0;
-								master_time.vtime_sec = 0;
-								for(client1 = client->next; client1; client1 = client1->next)
-								{
-									memset(client1->audio,0xff,client1->buflen);
-									memset(client1->rssi,0,client1->buflen);
-								}
-								for(p = pvts; p; p = p->next)
-								{
-									if (p->rxkey)
-									{
-										memset(&fr,0,sizeof(fr));
-										fr.datalen = 0;
-										fr.samples = 0;
-										fr.frametype = AST_FRAME_CONTROL;
-										fr.subclass = AST_CONTROL_RADIO_UNKEY;
-										AST_FRAME_DATA(fr) =  0;
-										fr.src = type;
-										fr.offset = 0;
-										fr.mallocd=0;
-										fr.delivery.tv_sec = 0;
-										fr.delivery.tv_usec = 0;
-										ast_queue_frame(p->owner,&fr);
-									}
-									p->lastwon = NULL;
-									p->rxkey = 0;
-									ast_mutex_lock(&p->txqlock);
-									while((f1 = AST_LIST_REMOVE_HEAD(&p->txq,frame_list)) != NULL) ast_frfree(f1);
-									ast_mutex_unlock(&p->txqlock);
-								}
-								continue;
-							}
-							if (!master_time.vtime_sec) continue;
-						}
-					}
-					/* if we know the dude, find the connection his audio belongs to and send it there */
-					if (client && client->heardfrom  && 
-					    (((ntohs(vph->payload_type) == VOTER_PAYLOAD_ULAW) && 
-						(recvlen == (sizeof(VOTER_PACKET_HEADER) + FRAME_SIZE + 1))) ||
-					    ((ntohs(vph->payload_type) == VOTER_PAYLOAD_ADPCM) && 
-						(recvlen == (sizeof(VOTER_PACKET_HEADER) + FRAME_SIZE + 4))) ||
-					    ((ntohs(vph->payload_type) == VOTER_PAYLOAD_NULAW) && 
-						(recvlen == (sizeof(VOTER_PACKET_HEADER) + FRAME_SIZE + 1)))))
-					{
-						for(p = pvts; p; p = p->next)
-						{
-							if (p->nodenum == client->nodenum) break;
-						}
-						if (p) /* if we found 'em */
-						{
-							long long btime,ptime,difftime;
-							int index,flen;
-
-							gettimeofday(&client->lastheardtime,NULL);
-							if (client->ismaster)
-							{
-
-								if (!master_time.vtime_sec)
-								{
-									for(p = pvts; p; p = p->next)
-									{
-										ast_mutex_lock(&p->txqlock);
-										while((f1 = AST_LIST_REMOVE_HEAD(&p->txq,frame_list)) != NULL) ast_frfree(f1);
-										ast_mutex_unlock(&p->txqlock);
-									}
-								}
-								last_master_count = voter_timing_count;
-								master_time.vtime_sec = ntohl(vph->curtime.vtime_sec);
-								master_time.vtime_nsec = ntohl(vph->curtime.vtime_nsec);
-								if (!master_port) master_port = ntohs(sin.sin_port);
-							}
-							else
-							{
-								if (!master_time.vtime_sec) continue;
-							}
-							if (client->mix)
-							{
-								if (ntohl(vph->curtime.vtime_nsec) > client->rxseqno)
-								{
-									client->rxseqno = 0;
-									client->rxseqno_40ms = 0;
-									client->rxseq40ms = 0;
-									client->drain40ms = 0;
-								}
-								if (client->txseqno > (client->txseqno_rxkeyed + 4))
-								{
-									client->rxseqno = 0;
-									client->rxseqno_40ms = 0;
-									client->rxseq40ms = 0;
-									client->drain40ms = 0;
-								}
-								client->txseqno_rxkeyed = client->txseqno;
-								if  (!client->rxseqno) 	client->rxseqno_40ms = client->rxseqno = ntohl(vph->curtime.vtime_nsec);
-								if ((!client->doadpcm) && (!client->donulaw))
-									index = ntohl(vph->curtime.vtime_nsec) - client->rxseqno;
-								else
-									index = ntohl(vph->curtime.vtime_nsec) - client->rxseqno_40ms;
-								index *= FRAME_SIZE;
-								index += BUFDELAY(client);
-								index -= (FRAME_SIZE * 4);
-								if (debug >= 3) 
-								{
-									if ((!client->doadpcm) && (!client->donulaw))
-										ast_verbose("mix client (Mulaw) %s index: %d their seq: %d our seq: %d\n",
-											client->name,index,ntohl(vph->curtime.vtime_nsec),client->rxseqno);
-									else
-										ast_verbose("mix client (ADPCM/Nulaw) %s index: %d their seq: %d our seq: %d\n",
-											client->name,index,ntohl(vph->curtime.vtime_nsec),client->rxseqno_40ms);
-								}
-							}
-							else
-							{
-								btime = ((long long)master_time.vtime_sec * 1000000000LL) + master_time.vtime_nsec;
-								btime += 40000000;
-								ptime = ((long long)ntohl(vph->curtime.vtime_sec) * 1000000000LL) + ntohl(vph->curtime.vtime_nsec);
-								difftime = (ptime - btime) + (BUFDELAY(client) * 125000LL);
-								difftime -= puckoffset(client);
-								index = (int)((long long)difftime / 125000LL);
-								if ((debug >= 3) && (!client->ismaster))
-								{
-									timestuff = (time_t) master_time.vtime_sec;
-									strftime(timestr,sizeof(timestr) - 1,"%D %T",localtime((time_t *)×tuff));
-									ast_verbose("DrainTime: %s.%03d\n",timestr,master_time.vtime_nsec / 1000000);
-									gettimeofday(&timetv,NULL);
-									timestuff = (time_t) timetv.tv_sec;
-									strftime(timestr,sizeof(timestr) - 1,"%D %T",localtime((time_t *)×tuff));
-									ast_verbose("SysTime:   %s.%03d, diff: %lld,index: %d\n",timestr,(int)timetv.tv_usec / 1000,btime - ptime,index);
-								}
-							}
-							/* if in bounds */
-							if ((index > 0) && (index < (client->buflen - (FRAME_SIZE * 2))))
-							{
-
-								f1 = NULL;
-								/* if no RSSI, just make it quiet */
-								if (!buf[sizeof(VOTER_PACKET_HEADER)])
-								{
-									for(i = 0; i < FRAME_SIZE; i++) 
-										buf[sizeof(VOTER_PACKET_HEADER) + i + 1] = 0xff;
-								}
-								/* if otherwise (RSSI > 0), if ADPCM, translate it */
-								else if (ntohs(vph->payload_type) == VOTER_PAYLOAD_ADPCM)
-								{
-
-#ifdef	ADPCM_LOOPBACK
-									memset(&audiopacket,0,sizeof(audiopacket));
-									strcpy((char *)audiopacket.vp.challenge,challenge);
-									audiopacket.vp.payload_type = htons(3);
-									audiopacket.rssi = 0;
-									memcpy(audiopacket.audio, buf + sizeof(VOTER_PACKET_HEADER) + 1,FRAME_SIZE + 3);
-									audiopacket.vp.curtime.vtime_sec = htonl(master_time.vtime_sec);
-									audiopacket.vp.curtime.vtime_nsec = htonl(master_time.vtime_nsec);
-									audiopacket.vp.digest = htonl(client->respdigest);
-									sendto(udp_socket, &audiopacket, sizeof(audiopacket),0,(struct sockaddr *)&client->sin,sizeof(client->sin));
-#endif
-
-									memset(&fr,0,sizeof(struct ast_frame));
-								        fr.frametype = AST_FRAME_VOICE;
-								        fr.subclass = AST_FORMAT_ADPCM;
-								        fr.datalen = ADPCM_FRAME_SIZE;
-								        fr.samples = FRAME_SIZE * 2;
-								        AST_FRAME_DATA(fr) =  buf + sizeof(VOTER_PACKET_HEADER) + 1;
-								        fr.src = type;
-								        fr.offset = 0;
-								        fr.mallocd = 0;
-								        fr.delivery.tv_sec = 0;
-								        fr.delivery.tv_usec = 0;
-									f1 = ast_translate(p->adpcmin,&fr,0);
-								}
-								/* if otherwise (RSSI > 0), if NULAW, translate it */
-								else if (ntohs(vph->payload_type) == VOTER_PAYLOAD_NULAW)
-								{
-
-									short s,xbuf[FRAME_SIZE * 2];
-#ifdef	NULAW_LOOPBACK
-									memset(&audiopacket,0,sizeof(audiopacket));
-									strcpy((char *)audiopacket.vp.challenge,challenge);
-									audiopacket.vp.payload_type = htons(4);
-									audiopacket.rssi = 0;
-									memcpy(audiopacket.audio, buf + sizeof(VOTER_PACKET_HEADER) + 1,FRAME_SIZE);
-									audiopacket.vp.curtime.vtime_sec = htonl(master_time.vtime_sec);
-									audiopacket.vp.curtime.vtime_nsec = htonl(master_time.vtime_nsec);
-									audiopacket.vp.digest = htonl(client->respdigest);
-									sendto(udp_socket, &audiopacket, sizeof(audiopacket),0,(struct sockaddr *)&client->sin,sizeof(client->sin));
-#endif
-
-									for(i = 0; i < FRAME_SIZE * 2; i += 2)
-									{
- 										s = (AST_MULAW((int)(unsigned char)
-											buf[sizeof(VOTER_PACKET_HEADER) + 1 + (i >> 1)])) / 2;
-										xbuf[i] = lpass4(s,p->rlpx,p->rlpy);
-										xbuf[i + 1] = lpass4(s,p->rlpx,p->rlpy);
-									}
-									memset(&fr,0,sizeof(struct ast_frame));
-								        fr.frametype = AST_FRAME_VOICE;
-								        fr.subclass = AST_FORMAT_SLINEAR;
-								        fr.datalen = FRAME_SIZE * 4;
-								        fr.samples = FRAME_SIZE * 2;
-								        AST_FRAME_DATA(fr) = xbuf;
-								        fr.src = type;
-								        fr.offset = 0;
-								        fr.mallocd = 0;
-								        fr.delivery.tv_sec = 0;
-								        fr.delivery.tv_usec = 0;
-									f1 = ast_translate(p->nuin,&fr,0);
-								}
-								if ((!client->doadpcm) && (!client->donulaw))
-									index = (index + client->drainindex) % client->buflen;
-								else
-									index = (index + client->drainindex_40ms) % client->buflen;
-								flen = (f1) ? f1->datalen : FRAME_SIZE;
-								i = (int)client->buflen - (index + flen);
-								if (i >= 0)
-								{
-									memcpy(client->audio + index,
-										((f1) ? AST_FRAME_DATAP(f1) : buf + sizeof(VOTER_PACKET_HEADER) + 1),flen);
-									memset(client->rssi + index,buf[sizeof(VOTER_PACKET_HEADER)],flen);
-								}
-								else
-								{
-									memcpy(client->audio + index,
-										((f1) ? AST_FRAME_DATAP(f1) : buf + sizeof(VOTER_PACKET_HEADER) + 1),flen + i);
-									memset(client->rssi + index,buf[sizeof(VOTER_PACKET_HEADER)],flen + i);
-									memcpy(client->audio,
-										((f1) ? AST_FRAME_DATAP(f1) : buf + sizeof(VOTER_PACKET_HEADER) + 1) + (flen + i),-i);
-									memset(client->rssi,buf[sizeof(VOTER_PACKET_HEADER)],-i);
-								}
-								if (f1) ast_frfree(f1);
-                                                        } 
-							else if (client->mix)
-							{
-								client->rxseqno = 0;
-								client->rxseqno_40ms = 0;
-								client->rxseq40ms = 0;
-								client->drain40ms = 0;
-								if (debug >= 3) ast_verbose("mix client %s outa bounds, resetting!!\n",client->name);
-                                                        }
-							if (client->ismaster)
-							{
-								gettimeofday(&tv,NULL);
-								for(client = clients; client; client = client->next)
-								{
-									if (!ast_tvzero(client->lastheardtime) && (ast_tvdiff_ms(tv,client->lastheardtime) > CLIENT_TIMEOUT_MS))
-									{
-										if (option_verbose >= 3) ast_verbose(VERBOSE_PREFIX_3 "Voter client %s disconnect (timeout)\n",client->name);
-										client->heardfrom = 0;
-										client->respdigest = 0;
-									}
-									if (!client->heardfrom) client->lastheardtime.tv_sec = client->lastheardtime.tv_usec = 0;
-								}
-								if (check_client_sanity)
-								{
-									for(client = clients; client; client = client->next)
-									{
-										if (!client->respdigest) continue;
-										for(client1 = client->next; client1; client1 = client1->next)
-										{
-											if ((client1->sin.sin_addr.s_addr == client->sin.sin_addr.s_addr) &&
-												(client1->sin.sin_port == client->sin.sin_port))
-											{
-												if (!client1->respdigest) continue;
-												client->respdigest = 0;
-												client->heardfrom = 0;
-												client1->respdigest = 0;
-												client1->heardfrom = 0;
-											}
-										}
-									}
-								}
-								hasmastered = 0;
-								voter_xmit_master();
-								for(p = pvts; p; p = p->next)
-								{
-									char startagain;
-
-									startagain = 0;
-									maxrssi = 0;
-									maxclient = NULL;
-									for(client = clients; client; client = (startagain) ? clients : client->next)
-									{
-										int maxprio,thisprio;
-
-										startagain = 0;
-										if (client->nodenum != p->nodenum) continue;
-										if (client->mix) continue;
-										if (client->prio_override == -1) continue;
-										k = 0;
-										i = (int)client->buflen - ((int)client->drainindex + FRAME_SIZE);
-										if (i >= 0)
-										{
-											for(j = client->drainindex; j < client->drainindex + FRAME_SIZE; j++)
-											{
-												k += client->rssi[j];
-											}
-										}
-										else
-										{
-											for(j = client->drainindex; j < client->drainindex + (FRAME_SIZE + i); j++)
-											{
-												k += client->rssi[j];
-											}
-											for(j = 0; j < -i; j++)
-											{
-												k += client->rssi[j];
-											}
-										}			
-										client->lastrssi = k / FRAME_SIZE; 
-										maxprio = thisprio = 0;
-										if (maxclient)
-										{
-											if (maxclient->prio_override > -2) 
-												maxprio = maxclient->prio_override;
-											else
-												maxprio = maxclient->prio;
-										}
-										if (client->prio_override > -2)
-											thisprio = client->prio_override;
-										else
-											thisprio = client->prio;
-										if (((client->lastrssi > maxrssi) && (thisprio == maxprio))
-											 || (client->lastrssi && (thisprio > maxprio)))
-										{
-											maxrssi =  client->lastrssi;
-											maxclient = client;
-											if (thisprio > maxprio) startagain = 1;
-										}
-									}
-									for(client = clients; client; client =  client->next)
-									{
-										if (client->nodenum != p->nodenum) continue;
-										if (client->mix) continue;
-										if (client->prio_override == -1) continue;
-										i = (int)client->buflen - ((int)client->drainindex + FRAME_SIZE);
-										if (i >= 0)
-										{
-											for(j = client->drainindex; j < client->drainindex + FRAME_SIZE; j++)
-											{
-												client->rssi[j] = 0;
-											}
-										}
-										else
-										{
-											for(j = client->drainindex; j < client->drainindex + (FRAME_SIZE + i); j++)
-											{
-												client->rssi[j] = 0;
-											}
-											for(j = 0; j < -i; j++)
-											{
-												client->rssi[j] = 0;
-											}
-										}			
-									}
-									if (!maxclient) maxrssi = 0;
-									memset(p->buf + AST_FRIENDLY_OFFSET,0xff,FRAME_SIZE);
-									if (maxclient)
-									{
-										int maxprio,lastprio;
-
-										if (maxclient->prio_override > -2) 
-											maxprio = maxclient->prio_override;
-										else
-											maxprio = maxclient->prio;
-										lastprio = 0;
-										if (p->lastwon)
-										{
-											if (p->lastwon->prio_override > -2)
-												lastprio = p->lastwon->prio_override;
-											else
-												lastprio = p->lastwon->prio;
-										}
-										/* if not on same client, and we have thresholds, and priority appropriate */
-										if (p->lastwon && p->nthresholds && (maxprio <= lastprio))
-										{
-											/* go thru all the thresholds */
-											for(i = 0; i < p->nthresholds; i++)
-											{
-												/* if meets criteria */
-												if (p->lastwon->lastrssi >= p->rssi_thresh[i])
-												{
-													/* if not at same threshold, change to new one */
-													if ((i + 1) != p->threshold)
-													{
-														p->threshold = i + 1;
-														p->threshcount = 0;
-														if (debug >= 3) ast_verbose("New threshold %d, client %s, rssi %d\n",p->threshold,p->lastwon->name,p->lastwon->lastrssi);
-													} 
-												 	/* at the same threshold still, if count is enabled and is met */
-													else if (p->count_thresh[i] && (p->threshcount++ >= p->count_thresh[i]))
-													{
-														if (debug >= 3) ast_verbose("Threshold %d time (%d) excedded, client %s, rssi %d\n",p->threshold,p->count_thresh[i],p->lastwon->name,p->lastwon->lastrssi);
-														p->threshold = 0;
-														p->threshcount = 0;
-														p->lingercount = 0;
-														continue;
-													}
-													p->lingercount = 0;
-													maxclient = p->lastwon;
-													maxrssi = maxclient->lastrssi;
-													break;
-												}
-												/* if doesnt match any criteria */
-												if (i == (p->nthresholds - 1))
-												{
-													if ((debug >= 3) && p->threshold) ast_verbose("Nothing matches criteria any more\n");
-													if (p->threshold) p->lingercount = p->linger_thresh[p->threshold - 1];
-													p->threshold = 0;
-													p->threshcount = 0;
-												}
-											}
-										}
-										if (p->lingercount) 
-										{
-											if (debug >= 3) ast_verbose("Lingering on client %s, rssi %d, Maxclient is %s, rssi %d\n",p->lastwon->name,p->lastwon->lastrssi,maxclient->name,maxrssi);
-											p->lingercount--;
-											maxclient = p->lastwon;
-											maxrssi = maxclient->lastrssi;
-										}
-										if (p->voter_test > 0) /* perform cyclic selection */
-										{
-											/* see how many are eligible */
-											for(i = 0,client = clients; client; client = client->next)
-											{
-												if (client->nodenum != p->nodenum) continue;
-												if (client->mix) continue;
-												if (client->lastrssi == maxrssi) i++;
-											}
-											if (p->voter_test == 1)
-											{
-												p->testindex = random() % i;
-											}
-											else
-											{
-												p->testcycle++;
-												if (p->testcycle >= (p->voter_test - 1))
-												{
-													p->testcycle = 0;
-													p->testindex++;
-													if (p->testindex >= i) p->testindex = 0;
-												}
-											}
-											for(i = 0,client = clients; client; client = client->next)
-											{
-												if (client->nodenum != p->nodenum) continue;
-												if (client->mix) continue;
-												if (client->lastrssi != maxrssi) continue;
-												if (i++ == p->testindex)
-												{
-													maxclient = client;
-													maxrssi = client->lastrssi;
-													break;
-												}
-											}
-										}
-										else
-										{
-											p->testcycle = 0;
-											p->testindex = 0;
-										}
-										if (!maxclient) /* if nothing there */
-										{
-											memset(silbuf,0,sizeof(silbuf));
-											memset(&fr,0,sizeof(struct ast_frame));
-										        fr.frametype = AST_FRAME_VOICE;
-										        fr.subclass = AST_FORMAT_SLINEAR;
-										        fr.datalen = FRAME_SIZE * 2;
-										        fr.samples = FRAME_SIZE;
-										        AST_FRAME_DATA(fr) =  silbuf;
-										        fr.src = type;
-										        fr.offset = 0;
-										        fr.mallocd = 0;
-										        fr.delivery.tv_sec = 0;
-										        fr.delivery.tv_usec = 0;
-											p->threshold = 0;
-											p->threshcount = 0;
-											p->lingercount = 0;
-											p->winner = 0;
-											incr_drainindex(p);
-											ast_queue_frame(p->owner,&fr);
-											continue;
-										}
-										i = (int)maxclient->buflen - ((int)maxclient->drainindex + FRAME_SIZE);
-										if (i >= 0)
-										{
-											memcpy(p->buf + AST_FRIENDLY_OFFSET,maxclient->audio + maxclient->drainindex,FRAME_SIZE);
-										}
-										else
-										{
-											memcpy(p->buf + AST_FRIENDLY_OFFSET,maxclient->audio + maxclient->drainindex,FRAME_SIZE + i);
-											memcpy(p->buf + AST_FRIENDLY_OFFSET + (maxclient->buflen - i),maxclient->audio,-i);
-										}
-										for(client = clients; client; client = client->next)
-										{
-											if (client->nodenum != p->nodenum) continue;
-											if (client->mix) continue;
-											if (recfp)
-											{
-												if (!hasmastered)
-												{
-													hasmastered = 1;
-													memset(&rec,0,sizeof(rec));
-													memcpy(rec.audio,&master_time,sizeof(master_time));
-													fwrite(&rec,1,sizeof(rec),recfp);
-												}
-												ast_copy_string(rec.name,client->name,sizeof(rec.name) - 1);
-												rec.rssi = client->lastrssi;
-												if (i >= 0)
-												{
-													memcpy(rec.audio,client->audio + client->drainindex,FRAME_SIZE);
-												}
-												else
-												{
-													memcpy(rec.audio,client->audio + client->drainindex,FRAME_SIZE + i);
-													memset(client->audio + client->drainindex,0xff,FRAME_SIZE + i);
-													memcpy(rec.audio + FRAME_SIZE + i,client->audio,-i);
-													memset(client->audio + client->drainindex,0xff,FRAME_SIZE + i);
-												}
-												fwrite(&rec,1,sizeof(rec),recfp);
-											}
-											if (i >= 0)
-											{
-												memset(client->audio + client->drainindex,0xff,FRAME_SIZE);
-											}
-											else
-											{
-												memset(client->audio + client->drainindex,0xff,FRAME_SIZE + i);
-												memset(client->audio,0xff,-i);
-											}
-										}
-										if ((!p->duplex) && p->txkey)
-										{
-											p->rxkey = 0;
-											p->lastwon = NULL;
-											memset(silbuf,0,sizeof(silbuf));
-											memset(&fr,0,sizeof(struct ast_frame));
-										        fr.frametype = AST_FRAME_VOICE;
-										        fr.subclass = AST_FORMAT_SLINEAR;
-										        fr.datalen = FRAME_SIZE * 2;
-										        fr.samples = FRAME_SIZE;
-										        AST_FRAME_DATA(fr) =  silbuf;
-										        fr.src = type;
-										        fr.offset = 0;
-										        fr.mallocd = 0;
-										        fr.delivery.tv_sec = 0;
-										        fr.delivery.tv_usec = 0;
-											p->threshold = 0;
-											p->threshcount = 0;
-											p->lingercount = 0;
-											p->winner = 0;
-											incr_drainindex(p);
-											ast_queue_frame(p->owner,&fr);
-											continue;
-										}
-										if (p->plfilter) 
-										{
-											for(i = 0; i < FRAME_SIZE; i++)
-											{
-												j = p->buf[AST_FRIENDLY_OFFSET + i] & 0xff;
-												p->buf[AST_FRIENDLY_OFFSET + i] = 
-													AST_LIN2MU(hpass6(AST_MULAW(j),p->hpx,p->hpy));
-											}
-										}
-										stream.curtime = master_time;
-										memcpy(stream.audio,p->buf + AST_FRIENDLY_OFFSET,FRAME_SIZE);
-										sprintf(stream.str,"%s",maxclient->name);
-										for(client = clients; client; client = client->next)
-										{
-											if (client->nodenum != p->nodenum) continue;
-											sprintf(stream.str + strlen(stream.str),",%s=%d",client->name,client->lastrssi);
-										}
-										for(i = 0; i < p->nstreams; i++)
-										{
-											cp = ast_strdup(p->streams[i]);
-											if (!cp)
-											{
-												ast_log(LOG_NOTICE,"Malloc() failed!!\n");
-												break;
-											}
-											cp1 = strchr(cp,':');
-											if (cp1)
-											{
-												*cp1 = 0;
-												j = atoi(cp1 + 1);
-											} else j = listen_port;
-											sin_stream.sin_family = AF_INET;
-											sin_stream.sin_addr.s_addr = inet_addr(cp);
-											sin_stream.sin_port = htons(j);
-											sendto(udp_socket, &stream, sizeof(stream),0,(struct sockaddr *)&sin_stream,sizeof(sin_stream));
-											ast_free(cp);
-										}
-										if (maxclient != p->lastwon)
-										{
-											p->lastwon = maxclient;
-											if (debug > 0)
-												ast_verbose("Voter client %s selected for node %d\n",maxclient->name,p->nodenum);
-											memset(&fr,0,sizeof(fr));
-											fr.datalen = strlen(maxclient->name) + 1;
-											fr.samples = 0;
-											fr.frametype = AST_FRAME_TEXT;
-											fr.subclass = 0;
-											AST_FRAME_DATA(fr) =  maxclient->name;
-											fr.src = type;
-											fr.offset = 0;
-											fr.mallocd=0;
-											fr.delivery.tv_sec = 0;
-											fr.delivery.tv_usec = 0;
-											ast_queue_frame(p->owner,&fr);
-										}
-										if (debug > 1) ast_verbose("Sending from client %s RSSI %d\n",maxclient->name,maxrssi);
-									}
-									if ((!p->duplex) && p->txkey)
-									{
-										p->rxkey = 0;
-										p->lastwon = NULL;
-										memset(silbuf,0,sizeof(silbuf));
-										memset(&fr,0,sizeof(struct ast_frame));
-									        fr.frametype = AST_FRAME_VOICE;
-									        fr.subclass = AST_FORMAT_SLINEAR;
-									        fr.datalen = FRAME_SIZE * 2;
-									        fr.samples = FRAME_SIZE;
-									        AST_FRAME_DATA(fr) =  silbuf;
-									        fr.src = type;
-									        fr.offset = 0;
-									        fr.mallocd = 0;
-									        fr.delivery.tv_sec = 0;
-									        fr.delivery.tv_usec = 0;
-										p->threshold = 0;
-										p->threshcount = 0;
-										p->lingercount = 0;
-										p->winner = 0;
-										incr_drainindex(p);
-										ast_queue_frame(p->owner,&fr);
-										continue;
-									}
-									if (!voter_mix_and_send(p,maxclient,maxrssi)) continue;
-								}
-							}
-						}
-						else
-						{
-							if (debug > 1) ast_verbose("Request for voter client %s to unknown node %d\n",
-								client->name,client->nodenum);
-						}
-						continue;
-					} 
-					/* if we know the dude, find the connection his audio belongs to and send it there */
-					if (client && client->heardfrom && (ntohs(vph->payload_type) == VOTER_PAYLOAD_GPS) && 
-					    ((recvlen == sizeof(VOTER_PACKET_HEADER)) ||
-					       (recvlen == (sizeof(VOTER_PACKET_HEADER) + sizeof(VOTER_GPS))) ||
-						(recvlen == ((sizeof(VOTER_PACKET_HEADER) + sizeof(VOTER_GPS)) - 1))))
-
-					{
-						gettimeofday(&client->lastheardtime,NULL);
-						client->lastgpstime.vtime_sec = ntohl(vph->curtime.vtime_sec);
-						client->lastgpstime.vtime_nsec = ntohl(vph->curtime.vtime_nsec);
-						if (client->ismaster)
-						{
-							mastergps_time.vtime_sec = ntohl(vph->curtime.vtime_sec);
-							mastergps_time.vtime_nsec = ntohl(vph->curtime.vtime_nsec);
-						}
-						client->lastmastergpstime.vtime_sec = mastergps_time.vtime_sec;
-						client->lastmastergpstime.vtime_nsec = mastergps_time.vtime_nsec;
-						if (debug >= 3) 
-						{
-							gettimeofday(&timetv,NULL);
-							timestuff = (time_t) ntohl(vph->curtime.vtime_sec);
-							strftime(timestr,sizeof(timestr) - 1,"%D %T",localtime((time_t *)×tuff));
-	
-
-							ast_verbose("GPSTime (%s):   %s.%09d\n",client->name,timestr,ntohl(vph->curtime.vtime_nsec));
-							timetv.tv_usec = ((timetv.tv_usec + 10000) / 20000) * 20000;
-							if (timetv.tv_usec >= 1000000)
-							{
-								timetv.tv_sec++;
-								timetv.tv_usec -= 1000000;
-							}
-							timestuff = (time_t) timetv.tv_sec;
-							strftime(timestr,sizeof(timestr) - 1,"%D %T",localtime((time_t *)×tuff));
-							ast_verbose("SysTime:   %s.%06d\n",timestr,(int)timetv.tv_usec);
-							timestuff = (time_t) master_time.vtime_sec;
-							strftime(timestr,sizeof(timestr) - 1,"%D %T",localtime((time_t *)×tuff));
-							ast_verbose("DrainTime: %s.%03d\n",timestr,master_time.vtime_nsec / 1000000);
-						}
-						if (recvlen == sizeof(VOTER_PACKET_HEADER))
-						{
-							if (debug > 1) ast_verbose("Got GPS Keepalive from (%s)\n",
-								client->name);
-						}
-						else
-						{
-							vgp = (VOTER_GPS *)(buf + sizeof(VOTER_PACKET_HEADER));
-							if (client->gpsid)
-							{
-								snprintf(gps1,sizeof(gps1) - 1,GPS_WORK_FILE,client->gpsid);
-								snprintf(gps2,sizeof(gps2) - 1,GPS_DATA_FILE,client->gpsid);
-								gpsfp = fopen(gps1,"w");
-								if (!gpsfp)
-								{
-									ast_log(LOG_ERROR,"Unable to open GPS work file %s!!\n",gps1);
-									continue;
-								}
-								time(&t);
-								fprintf(gpsfp,"%u %s %s %sM\n",(unsigned int) t,vgp->lat,vgp->lon,vgp->elev);
-								fclose(gpsfp);
-								snprintf(gps0,sizeof(gps0) - 1,"/bin/mv %s %s > /dev/null 2>&1",gps1,gps2);
-								ast_safe_system(gps0);
-							}
-							if (debug > 1) ast_verbose("Got GPS (%s): Lat: %s, Lon: %s, Elev: %s\n",
-								client->name,vgp->lat,vgp->lon,vgp->elev);
-						}
-						continue;
-					}
-					if (client) client->heardfrom = 1;
-				}
-				/* otherwise, we just need to send an empty packet to the dude */
-				memset(&authpacket,0,sizeof(authpacket));
-				if (client)
-				{
-					client->txseqno = 0;
-					client->txseqno_rxkeyed = 0;
-					client->rxseqno = 0;
-					client->rxseqno_40ms = 0;
-					client->rxseq40ms = 0;
-					client->drain40ms = 0;
-				}
-				strcpy((char *)authpacket.vp.challenge,challenge);
-				gettimeofday(&tv,NULL);
-				authpacket.vp.curtime.vtime_sec = htonl(tv.tv_sec);
-				authpacket.vp.curtime.vtime_nsec = htonl(tv.tv_usec * 1000);
-				/* make our digest based on their challenge */
-				authpacket.vp.digest = htonl(crc32_bufs((char*)vph->challenge,password));
-				authpacket.flags = 0;
-				if (client)
-				{
-					client->mix = 0;
-					/* if client is sending options */
-  					if ((recvlen > sizeof(VOTER_PACKET_HEADER)) && (!vph->payload_type))
-					{
-						if (buf[sizeof(VOTER_PACKET_HEADER)] & 32) client->mix = 1;
-					}
-					if ((!client->mix) && (!hasmaster))
-					{
-						time(&t);
-						if (t >= (client->warntime + CLIENT_WARN_SECS))
-						{
-							client->warntime = t;
-							ast_log(LOG_WARNING,"Voter client %s attempting to authenticate as GPS-timing-based with no master timing source defined!!\n",
-								client->name);
-						}
-						authpacket.vp.digest = 0;
-						client->heardfrom = 0;
-						client->respdigest = 0;
-					}
-					else
-					{
-						if (client->ismaster) authpacket.flags |= 2 | 8;
-						if (client->doadpcm) authpacket.flags |= 16;
-						if (client->mix) authpacket.flags |= 32;
-						if (client->nodeemp) authpacket.flags |= 1;
-						if (client->noplfilter) authpacket.flags |= 4;
-					}
-				}
-				if (debug > 1) ast_verbose("sending packet challenge %s digest %08x password %s\n",authpacket.vp.challenge,ntohl(authpacket.vp.digest),password);
-				/* send em the empty packet to get things started */
-				sendto(udp_socket, &authpacket, sizeof(authpacket),0,(struct sockaddr *)&sin,sizeof(sin));
-				continue;
-			}
-		}
-	}
-	ast_mutex_unlock(&voter_lock);
-	if (option_verbose > 2)
-		ast_verbose(VERBOSE_PREFIX_3 "voter: read thread exited.\n");
-	return NULL;
-}
-
-#ifdef	OLD_ASTERISK
-int reload()
-#else
-static int reload(void)
-#endif
-{
-#ifdef  NEW_ASTERISK
-        struct ast_flags zeroflag = {0};
-#endif
-	unsigned int mynode;
-	int i,n,instance_buflen,buflen;
-	char *val,*ctg,*cp,*cp1,*cp2,*strs[40],newclient,data[100],oldctcss[100];
-	struct voter_pvt *p;
-	struct voter_client *client,*client1;
-	struct ast_config *cfg = NULL;
-	struct ast_variable *v;
-
-	
-	ast_mutex_lock(&voter_lock);
-	for(client = clients; client; client = client->next)
-	{
-		client->reload = 0;
-		client->old_buflen = client->buflen;
-	}
-
-#ifdef  NEW_ASTERISK
-        if (!(cfg = ast_config_load(config,zeroflag))) {
-#else
-        if (!(cfg = ast_config_load(config))) {
-#endif
-                ast_log(LOG_ERROR, "Unable to load config %s\n", config);
-		ast_mutex_unlock(&voter_lock);
-		return -1;
-        }
-
-        val = (char *) ast_variable_retrieve(cfg,"general","password"); 
-	if (val) ast_copy_string(password,val,sizeof(password) - 1);
-	else password[0] = 0;
-
-        val = (char *) ast_variable_retrieve(cfg,"general","context"); 
-	if (val) ast_copy_string(context,val,sizeof(context) - 1);
-	else context[0] = 0;
-
-        val = (char *) ast_variable_retrieve(cfg,"general","buflen"); 
-	if (val) buflen = strtoul(val,NULL,0) * 8; else buflen = DEFAULT_BUFLEN * 8;
-
-        val = (char *) ast_variable_retrieve(cfg,"general","sanity"); 
-	if (val) check_client_sanity = ast_true(val); else check_client_sanity = 1;
-
-        val = (char *) ast_variable_retrieve(cfg,"general","puckit"); 
-	if (val) puckit = ast_true(val); else puckit = 0;
-
-        val = (char *) ast_variable_retrieve(cfg,"general","dyntime"); 
-	if (val) dyntime = strtoul(val,NULL,0); else dyntime = DEFAULT_DYNTIME;
-
-	if (buflen < (FRAME_SIZE * 2)) buflen = FRAME_SIZE * 2;
-
-	for(p = pvts; p; p = p->next)
-	{
-		oldctcss[0] = 0;
-		strcpy(oldctcss,p->txctcssfreq);
-		sprintf(data,"%d",p->nodenum);
-		if (ast_variable_browse(cfg, data) == NULL) continue;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"linger"); 
-		if (val) p->linger = atoi(val); else p->linger = DEFAULT_LINGER;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"plfilter"); 
-		if (val) p->plfilter = ast_true(val); else p->plfilter = 0;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"duplex"); 
-		if (val) p->duplex = ast_true(val); else p->duplex = 1;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"streams"); 
-		if (p->nstreams && p->streams[0]) ast_free(p->streams[0]);
-		p->nstreams = 0;
-		if (val)
-		{
-			cp = ast_strdup(val);
-			p->nstreams = finddelim(cp,p->streams,MAXSTREAMS);
-		}		
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"txctcss"); 
-		if (val) ast_copy_string(p->txctcssfreq,val,sizeof(p->txctcssfreq)); else p->txctcssfreq[0] = 0;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"txctcsslevel"); 
-		if (val) p->txctcsslevel = atoi(val); else p->txctcsslevel = 62;
-		p->txtoctype = TOC_NONE;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"txtoctype"); 
-		if (val)
-		{
-			if (!strcasecmp(val,"phase")) p->txtoctype = TOC_PHASE;
-			else if (!strcasecmp(val,"notone")) p->txtoctype = TOC_NOTONE;
-		}
-		p->nthresholds = 0;
-	        val = (char *) ast_variable_retrieve(cfg,(char *)data,"thresholds"); 
-		if (val)
-		{
-			cp = ast_strdup(val);
-			p->nthresholds = finddelim(cp,strs,MAXTHRESHOLDS);
-			for(i = 0; i < p->nthresholds; i++)
-			{
-				cp1 = strchr(strs[i],'=');
-				p->linger_thresh[i] = p->linger;
-				if (cp1)
-				{
-					*cp1 = 0;
-					cp2 = strchr(cp1 + 1,':');
-					if (cp2)
-					{
-						*cp2 = 0;
-						if (cp2[1]) p->linger_thresh[i] = (uint16_t)atoi(cp2 + 1);
-					}
-					if (cp1[1]) p->count_thresh[i] = (uint16_t)atoi(cp1 + 1);
-				}
-				p->rssi_thresh[i] = (uint8_t)atoi(strs[i]);
-			}
-			ast_free(cp);
-		}		
-		/* if new CTCSS freq */
-		if (p->txctcssfreq[0] && strcmp(oldctcss,p->txctcssfreq))
-		{
-			t_pmr_chan tChan;
-
-			memset(&tChan,0,sizeof(t_pmr_chan));
-
-			tChan.pTxCodeDefault = p->txctcssfreq;
-			tChan.pTxCodeSrc     = p->txctcssfreq;
-			tChan.pRxCodeSrc     = p->txctcssfreq;
-			tChan.txMod = 2;
-			tChan.txMixA = TX_OUT_COMPOSITE;
-			tChan.b.txboost = 1;
-			if (p->pmrChan) destroyPmrChannel(p->pmrChan);
-			p->pmrChan = createPmrChannel(&tChan,FRAME_SIZE);
-			p->pmrChan->radioDuplex = 1;//o->radioduplex;
-			p->pmrChan->b.loopback=0; 
-			p->pmrChan->b.radioactive= 1;
-			p->pmrChan->txrxblankingtime = 0;
-			p->pmrChan->rxCpuSaver = 0;
-			p->pmrChan->txCpuSaver = 0;
-			*(p->pmrChan->prxSquelchAdjust) = 0;
-			*(p->pmrChan->prxVoiceAdjust) = 0;
-			*(p->pmrChan->prxCtcssAdjust) = 0;
-			p->pmrChan->rxCtcss->relax = 0;
-			p->pmrChan->txTocType = p->txtoctype;
-			p->pmrChan->spsTxOutA->outputGain = 250;
-			*p->pmrChan->ptxCtcssAdjust = p->txctcsslevel;
-			p->pmrChan->pTxCodeDefault = p->txctcssfreq;
-			p->pmrChan->pTxCodeSrc = p->txctcssfreq;
-	//		p->pmrChan->txfreq = p->txctcssfreq;
-		}
-	}
-	hasmaster = 0;
-	ctg = NULL;
-        while ( (ctg = ast_category_browse(cfg, ctg)) != NULL)
-	{
-		if (ctg == NULL) continue;
-		if (!strcmp(ctg,"general")) continue;
-		mynode = strtoul(ctg,NULL,0);
-	        val = (char *) ast_variable_retrieve(cfg,ctg,"buflen"); 
-		if (val) instance_buflen = strtoul(val,NULL,0) * 8;
-		else instance_buflen = buflen;
-		if (instance_buflen < (FRAME_SIZE * 2)) instance_buflen = FRAME_SIZE * 2;
-		for (v = ast_variable_browse(cfg, ctg); v; v = v->next)
-		{
-			if (!strcmp(v->name,"txctcsslevel")) continue;
-			if (!strcmp(v->name,"txctcss")) continue;
-			if (!strcmp(v->name,"txtoctype")) continue;
-			if (!strcmp(v->name,"streams")) continue;
-			if (!strcmp(v->name,"thresholds")) continue;
-			if (!strcmp(v->name,"plfilter")) continue;
-			if (!strcmp(v->name,"duplex")) continue;
-			if (!strcmp(v->name,"linger")) continue;
-			if (!strncasecmp(v->name,"transmit",8)) continue;
-			if (!strncasecmp(v->name,"master",6)) continue;
-			if (!strncasecmp(v->name,"adpcm",5)) continue;
-			if (!strncasecmp(v->name,"nulaw",5)) continue;
-			if (!strncasecmp(v->name,"dynamic",7)) continue;
-			if (!strncasecmp(v->name,"gpsid",5)) continue;
-			if (!strncasecmp(v->name,"buflen",6)) continue;
-			if (!strncasecmp(v->name,"nodeemp",7)) continue;
-			if (!strncasecmp(v->name,"noplfilter",10)) continue;
-			if (!strncasecmp(v->name,"prio",4)) continue;
-			cp = ast_strdup(v->value);
-			if (!cp)
-			{
-				ast_log(LOG_ERROR,"Cant Malloc()\n");
-                                close(udp_socket);
-                                ast_config_destroy(cfg);
-				ast_mutex_unlock(&voter_lock);
-				return -1;
-			}
-			n = finddelim(cp,strs,40);
-			if (n < 1) continue;
-			/* see if we "know" this client already */
-			for(client = clients; client; client = client->next)
-			{
-				if (client->dynamic) continue;
-				/* if this is the one whose digest matches one currently being looked at */
-				if (client->digest == crc32_bufs(challenge,strs[0]))
-				{
-					/* if has moved to another instance, free this one, and treat as new */
-					if (client->nodenum != strtoul(ctg,NULL,0))
-					{
-						client->reload = 0;
-						client = NULL;
-					}
-					break;
-				}
-			}
-			newclient = 0;
-			/* if a new one, alloc its space */
-			if (!client)
-			{
-				client = (struct voter_client *)ast_malloc(sizeof(struct voter_client));
-				if (!client)
-				{
-					ast_log(LOG_ERROR,"Cant malloc()\n");
-					ast_free(cp);
-			                close(udp_socket);
-					ast_config_destroy(cfg);
-					ast_mutex_unlock(&voter_lock);
-					return -1;
-				}
-				memset(client,0,sizeof(struct voter_client));
-				client->prio_override = -2;
-				ast_copy_string(client->name,v->name,VOTER_NAME_LEN - 1);
-				newclient = 1;
-			}
-			client->reload = 1;
-			client->buflen = instance_buflen;
-			client->nodenum = strtoul(ctg,NULL,0);
-			for(i = 1; i < n; i++)
-			{
-				if (!strcasecmp(strs[i],"transmit"))
-					client->totransmit = 1;
-				else if (!strcasecmp(strs[i],"master"))
-				{
-                                        client->ismaster = 1;
-					hasmaster = 1;
-				}
-				else if (!strcasecmp(strs[i],"adpcm"))
-                                        client->doadpcm = 1;
-				else if (!strcasecmp(strs[i],"nulaw"))
-                                        client->donulaw = 1;
-				else if (!strcasecmp(strs[i],"nodeemp"))
-                                        client->nodeemp = 1;
-				else if (!strcasecmp(strs[i],"noplfilter"))
-                                        client->noplfilter = 1;
-				else if (!strcasecmp(strs[i],"dynamic"))
-                                        client->dynamic = 1;
-				else if (!strncasecmp(strs[i],"gpsid",5))
-				{
-					cp1 = strchr(strs[i],'=');
-					if (!cp1)
-					{
-						client->gpsid = ast_strdup("");
-					}
-					else
-					{
-						client->gpsid = ast_strdup(cp1);
-						*client->gpsid = '_';
-					}
-				}
-				else if (!strncasecmp(strs[i],"prio",4))
-				{
-					cp1 = strchr(strs[i],'=');
-					if (cp1)
-					{
-						client->prio = strtoul(cp1 + 1,NULL,0);
-						if (client->prio < -1) client->prio = 0;
-					}
-				}
-			}
-			client->buflen -= client->buflen % (FRAME_SIZE * 2);
-			client->digest = crc32_bufs(challenge,strs[0]);
-			ast_free(cp);
-			if (client->old_buflen && (client->buflen != client->old_buflen))
-				client->drainindex = 0;
-			if (client->audio && client->old_buflen && (client->buflen != client->old_buflen))
-			{
-				client->audio = (uint8_t *)ast_realloc(client->audio,client->buflen);
-				if (!client->audio)
-				{
-					ast_log(LOG_ERROR,"Cant realloc()\n");
-			                close(udp_socket);
-					ast_config_destroy(cfg);
-					ast_mutex_unlock(&voter_lock);
-					return -1;
-				}
-				memset(client->audio,0xff,client->buflen);
-			}
-			else if (!client->audio) 
-			{
-				client->audio = (uint8_t *)ast_malloc(client->buflen);
-				if (!client->audio)
-				{
-					ast_log(LOG_ERROR,"Cant malloc()\n");
-			                close(udp_socket);
-					ast_config_destroy(cfg);
-					ast_mutex_unlock(&voter_lock);
-					return -1;
-				}
-				memset(client->audio,0xff,client->buflen);
-			}
-			if (client->rssi && client->old_buflen && (client->buflen != client->old_buflen))
-			{
-				client->rssi = (uint8_t *)ast_realloc(client->rssi,client->buflen);
-				if (!client->rssi)
-				{
-					ast_log(LOG_ERROR,"Cant realloc()\n");
-			                close(udp_socket);
-					ast_config_destroy(cfg);
-					ast_mutex_unlock(&voter_lock);
-					return -1;
-				}
-				memset(client->rssi,0,client->buflen);
-			}
-			else if (!client->rssi)
-			{
-				client->rssi = (uint8_t *)ast_malloc(client->buflen);
-				if (!client->rssi)
-				{
-					ast_log(LOG_ERROR,"Cant malloc()\n");
-			                close(udp_socket);
-					ast_config_destroy(cfg);
-					ast_mutex_unlock(&voter_lock);
-					return -1;
-				}
-				memset(client->rssi,0,client->buflen);
-			}
-			/* if a new client, add it into list */
-			if (newclient)
-			{
-				if (clients == NULL) clients = client;
-				else
-				{
-					for(client1 = clients; client1->next; client1 = client1->next) ;
-					client1->next = client;
-				}
-			}
-		}
-	}
-	ast_config_destroy(cfg);
-	for(client = clients; client; client = client->next)
-	{
-		if (!client->reload) continue;
-		if (client->digest == 0)
-		{
-			ast_log(LOG_ERROR,"Can Not Load chan_voter -- VOTER client %s has invalid authentication digest (can not be 0)!!!\n",client->name);
-			ast_mutex_unlock(&voter_lock);
-			return -1;
-		}
-		if (client->dynamic) continue;
-		for(client1 = clients; client1; client1 = client1->next)
-		{
-			if (!client1->reload) continue;
-			if (client == client1) continue;
-			if (client->digest == client1->digest)
-			{
-				ast_log(LOG_ERROR,"Can Not Load chan_voter -- VOTER clients %s and %s have same authentication digest!!!\n",client->name,client1->name);
-				ast_mutex_unlock(&voter_lock);
-				return -1;
-			}
-		}
-	}
-	/* remove all the clients that are no longer in the config */
-	for(client = clients; client; client = client->next)
-	{
-		if (client->reload) continue;
-		if (client->audio) ast_free(client->audio);
-		if (client->rssi) ast_free(client->rssi);
-		if (client->gpsid) ast_free(client->gpsid);
-		for(client1 = clients; client1; client1 = client1->next)
-		{
-			if (client1->next == client) break;
-		}
-		if (client1) client1->next = client->next;
-		else clients = NULL;
-		ast_free(client);
-		client = clients;
-	}
-	ast_mutex_unlock(&voter_lock);
-	return(0);
-}
-
-#ifndef	OLD_ASTERISK
-static
-#endif
-int load_module(void)
-{
-
-	pthread_attr_t attr;
-	struct sockaddr_in sin;
-	int i,bs;
-	struct ast_config *cfg = NULL;
-	char *val;
-#ifdef  NEW_ASTERISK
-        struct ast_flags zeroflag = {0};
-#endif
-
-
-	snprintf(challenge, sizeof(challenge), "%ld", ast_random());
-	hasmaster = 0;
-
-#ifdef  NEW_ASTERISK
-        if (!(cfg = ast_config_load(config,zeroflag))) {
-#else
-        if (!(cfg = ast_config_load(config))) {
-#endif
-                ast_log(LOG_ERROR, "Unable to load config %s\n", config);
-		ast_mutex_unlock(&voter_lock);
-		return 1;
-        }
-
-	if ((udp_socket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
-	{
-		ast_log(LOG_ERROR,"Unable to create new socket for voter audio connection\n");
-		ast_config_destroy(cfg);
-                return AST_MODULE_LOAD_DECLINE;
-	}
-	memset((char *) &sin, 0, sizeof(sin));
-	sin.sin_family = AF_INET;
-        val = (char *) ast_variable_retrieve(cfg,"general","port"); 
-	if (val) listen_port = (uint16_t) strtoul(val,NULL,0);
-
-        val = (char *) ast_variable_retrieve(cfg,"general","bindaddr"); 
-	if (!val)
-		sin.sin_addr.s_addr = htonl(INADDR_ANY);
-        else
-		sin.sin_addr.s_addr = inet_addr(val);
-	sin.sin_port = htons(listen_port);               
-	if (bind(udp_socket, &sin, sizeof(sin)) == -1) 
-	{
-		ast_log(LOG_ERROR, "Unable to bind port for voter audio connection\n");
-                close(udp_socket);
-                return AST_MODULE_LOAD_DECLINE;
-	}
-
-	i = fcntl(udp_socket,F_GETFL,0);              // Get socket flags
-	fcntl(udp_socket,F_SETFL,i | O_NONBLOCK);   // Add non-blocking flag
-
-	voter_timing_fd = open(DAHDI_PSEUDO_DEV_NAME,O_RDWR);
-	if (voter_timing_fd == -1)
-	{
-		ast_log(LOG_ERROR,"Cant open DAHDI timing channel\n");
-                close(udp_socket);
-		ast_config_destroy(cfg);
-                return AST_MODULE_LOAD_DECLINE;
-	}
-	bs = FRAME_SIZE;
-	if (ioctl(voter_timing_fd, DAHDI_SET_BLOCKSIZE, &bs) == -1) 
-	{
-		ast_log(LOG_WARNING, "Unable to set blocksize '%d': %s\n", bs,  strerror(errno));
-		close(voter_timing_fd);
-                close(udp_socket);
-		ast_config_destroy(cfg);
-                return AST_MODULE_LOAD_DECLINE;
-	}
-	ast_config_destroy(cfg);
-
-
-	if (reload()) return AST_MODULE_LOAD_DECLINE;
-
-#ifdef	NEW_ASTERISK
-	ast_cli_register_multiple(voter_cli,sizeof(voter_cli) / 
-		sizeof(struct ast_cli_entry));
-#else
-	/* Register cli extensions */
-	ast_cli_register(&cli_debug);
-	ast_cli_register(&cli_test);
-	ast_cli_register(&cli_prio);
-	ast_cli_register(&cli_record);
-	ast_cli_register(&cli_tone);
-	ast_cli_register(&cli_reload);
-	ast_cli_register(&cli_display);
-#endif
-
-        pthread_attr_init(&attr);
-        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
-        ast_pthread_create(&voter_reader_thread,&attr,voter_reader,NULL);
-        ast_pthread_create(&voter_timer_thread,&attr,voter_timer,NULL);
-
-	/* Make sure we can register our channel type */
-	if (ast_channel_register(&voter_tech)) {
-		ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);
-                close(udp_socket);
-                return AST_MODULE_LOAD_DECLINE;
-	}
-	nullfd = open("/dev/null",O_RDWR);
-	return 0;
-}
-
-#ifdef	OLD_ASTERISK
-char *description()
-{
-	return (char *)voter_tech.description;
-}
-
-int usecount()
-{
-	return usecnt;
-}
-
-char *key()
-{
-	return ASTERISK_GPL_KEY;
-}
-#else
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "radio Voter channel driver",
-		.load = load_module,
-		.unload = unload_module,
-		.reload = reload,
-	       );
-#endif
diff --git a/changelog b/changelog
deleted file mode 100644
index d9d96db3..00000000
--- a/changelog
+++ /dev/null
@@ -1,65 +0,0 @@
-* 8c198b4 - (HEAD, origin/Testing, origin/HEAD, Testing) Add support for g722 (8 minutes ago) (Steve N4IRS)
-* a22990d - Move ASL specific files into allstar (3 hours ago) (Steve N4IRS)
-* 6c5aadb - Update filedate stamps (5 hours ago) (Steve N4IRS)
-* 456cd00 - Create README.md (5 hours ago) (Steve Zingman)
-* 462fbb8 - Update readme.MD (5 hours ago) (Steve Zingman)
-* 5d37f40 - Enable ilbc (29 hours ago) (Steve N4IRS)
-* c111776 - Add ASL config files to samples (29 hours ago) (Steve N4IRS)
-* 7b60353 - move pocsag to allstar directories (2 days ago) (Steve N4IRS)
-* f4d8650 - Add ilbc support (2 days ago) (Steve N4IRS)
-* c5eba9f - move mdc1200 to seperate directories (2 days ago) (Steve N4IRS)
-* 53c0ca8 - Update README (2 days ago) (Steve Zingman)
-* 82e69ec - (origin/N4IRS_Test) Add rpt_events (5 weeks ago) (Steve N4IRS)
-* cc73059 - Enable MDC support (5 weeks ago) (Steve N4IRS)
-* 76a437a - Update file versions (5 weeks ago) (Steve N4IRS)
-* 37baf45 - Replace unneeded command (7 weeks ago) (Steve N4IRS)
-* 7c4933d - revert (7 weeks ago) (Steve N4IRS)
-* 0cfd74f - add rtpdir to compile defaults (7 weeks ago) (Steve N4IRS)
-* 77e297a - Minor edit (7 weeks ago) (root)
-* b39ced3 - Update (7 weeks ago) (root)
-* add4bd6 - More cleanup (7 weeks ago) (root)
-* 41a6221 - Update systemd (7 weeks ago) (root)
-* 72830c1 - Update copyright (7 weeks ago) (Steve Zingman)
-* 0557d29 - Support GIT version (3 months ago) (Steve N4IRS)
-* c015160 - Update time calc (3 months ago) (Steve N4IRS)
-* 5645bc2 - CM108B USB sound card (11 months ago) (Leighton)
-* 166de8e - Extend sign-on (3 months ago) (root)
-* 11d07c7 - update_build_enviorment (3 months ago) (Steve Zingman)
-* b608f95 - Update Makefile (7 months ago) (Steve Zingman)
-* 9f9d455 - Added comments (11 months ago) (Stacy Olivas)
-* 60f6458 - feature/add_allstar_node_enabled_sound (11 months ago) (Steve Zingman)
-* 73c7cf0 - (origin/master) update copyright (3 months ago) (Steve Zingman)
-* 702fb4b - Merge pull request #28 from AllStarLink/rxDemod-fix (7 months ago) (Steve Zingman)
-* 56b0c64 - Update xpmr.c (7 months ago) (MrBungle42)
-* c290140 - Update xpmr.c (7 months ago) (MrBungle42)
-* 2dc010e - Remove no longer used RADIO_RTX RADIO_XPMRX (7 months ago) (Steve N4IRS)
-* edf0ea6 - Use git describe --always to generate version number (11 months ago) (root)
-* 6e712fe - Add support for systemd (11 months ago) (root)
-* bb0e7a5 - Update makefile (11 months ago) (Steve N4IRS)
-* d0fac69 - Apply Debian patches and remove zaptel (11 months ago) (Steve N4IRS)
-* 36aec03 - Merge pull request #13 from AllStarLink/bug/invalid_Channel_Driver_name (12 months ago) (MrBungle42)
-* 22b4c35 - Replace references to usbradio with simpleusb (12 months ago) (Steve N4IRS)
-* ad518a2 - Merge pull request #12 from AllStarLink/feature/add_CM119B-support (12 months ago) (MrBungle42)
-* bae086d - Add support for CM119B (12 months ago) (Steve N4IRS)
-* 2acc008 - Add support for CM119B (12 months ago) (Steve N4IRS)
-* 78af5d6 - Merge pull request #10 from AllStarLink/feature/increase_call_list_size (12 months ago) (MrBungle42)
-* 5f55016 - Update chan_echolink.c (12 months ago) (Steve Zingman)
-* 0b5d37b - Merge pull request #9 from AllStarLink/bug/echolink (12 months ago) (MrBungle42)
-* 7585bf3 - Merge pull request #5 from tolitski/master (12 months ago) (MrBungle42)
-* 43686bd - Node List wrapping on Echolink Client (12 months ago) (tolitski)
-* b9fd9bc - Node Listing on EL Client (12 months ago) (tolitski)
-* 42ba12c - Merge pull request #2 from AllStarLink/feature/custom_audio_filters (12 months ago) (MrBungle42)
-* 148940f - Add custom audio filters (12 months ago) (Steve N4IRS)
-* 47426d0 - Fix disconnect a remote node connected. (1 year, 1 month ago) (Steve N4IRS)
-* 20800a2 - Fixed telemetry lookup bug (thanx KB4FXC) (1 year, 3 months ago) (jdixon)
-* f9a1047 - Fixed age-old problem with app_rpt (1 year, 6 months ago) (jdixon)
-* 64aeb0a - Fixed txtesttone problem with non-dsp chan_pi operation (1 year, 8 months ago) (jdixon)
-* 6f9eff8 - Fixed stuff for pi-tune-menu (1 year, 9 months ago) (jdixon)
-* f64a701 - Added menu support for chan_pi (pi-tune-menu) (1 year, 9 months ago) (jdixon)
-* 50764fa - Forgot to add line for chan_pi.so in Makefile (duh!) (1 year, 9 months ago) (jdixon)
-* 83a9141 - Updated chan_pi.c (1 year, 9 months ago) (jdixon)
-* ee92e5b - Better version of chan_pi default config files (1 year, 9 months ago) (jdixon)
-* fa9b1e2 - Added first version of pitadiag (1 year, 9 months ago) (jdixon)
-* 58d8c2d - Added pitadiag (1 year, 9 months ago) (jdixon)
-* b8ce1b4 - Added DSP stuff to chan_pi and clean up other stuff (1 year, 9 months ago) (jdixon)
-* 35b449e - Added initial stuff for chan_pi (1 year, 9 months ago) (jdixon)

From ae2984d2d73fd10cf39e30ae239da99c8466ebdc Mon Sep 17 00:00:00 2001
From: Stacy Olivas 
Date: Mon, 11 May 2020 23:49:06 -0700
Subject: [PATCH 24/39] Update README.md

Updated to reflect new version, removed old information, refer to wiki for information on how to compile.
---
 README.md | 34 +++-------------------------------
 1 file changed, 3 insertions(+), 31 deletions(-)

diff --git a/README.md b/README.md
index e3251b68..069fb50b 100644
--- a/README.md
+++ b/README.md
@@ -2,12 +2,12 @@
 
 ---------------------------------------------------------------------------------------------------------------------------------
 
-This is the Asterisk source package for AllStarLink and the files to build the ASL 1.01 distribution.
+This is the Asterisk source package for AllStarLink and the files to build the ASL 1.02 distribution.
 
 ---------------------------------------------------------------------------------------------------------------------------------
 
 Updates: 
-asl-menu has received a few minor updates since the ASL 1.01 distribution was released.  
+Refer to the CHANGELOG.md for all changes in this release.
 
 ---------------------------------------------------------------------------------------------------------------------------------
 
@@ -15,8 +15,6 @@ AllStarLink wiki: https://wiki.allstarlink.org
 
 AllStarLink Portal:  https://www.allstarlink.org
 
-Official AllStarLink mailing list - app_rpt-users: http://lists.allstarlink.org
-
 AllStarLink Network/System status:  https://grafana.allstarlink.org
 
 ---------------------------------------------------------------------------------------------------------------------------------
@@ -35,34 +33,8 @@ Asterisk, app_rpt and all associated code/files are licensed, released, and dist
 
 ---------------------------------------------------------------------------------------------------------------------------------
 
-## Prerequisites
-
-Install gcc 4.9 and g++ 4.9 on your system (4.8 will work too).  
-_Refer to your Linux distribution's documentation for information on how to do this_
-
 ## Compiling
-_Make sure the Asterisk 1.4 prerequisites are installed on your system before attempting to compile_
-
-
-git clone https://github.com/AllStarLink/Asterisk.git
-
-cd Asterisk/asterisk
-
-./configure CXX=g++-4.9 CC=gcc-4.9
-
-make
-
-make install
-
-
- -If all goes well, you will have cloned, configured, compiled and installed the Astersisk 1.4.23pre and app_rpt suite of programs that comprise the ASL 1.01 release onto your system. - ---------------------------------------------------------------------------------------------------------------------------------- - -## Help - -Refer to the app_rpt-users mailing list and AllStarLink Wiki for information on the app_rpt suite of programs. +Refer to the Compiling article on the AllStarLink Wiki at https://wiki.allstarlink.org/wiki/Compiling for information on how to build for source. --------------------------------------------------------------------------------------------------------------------------------- From 75980edec404184271033a43a0da7f7e2b37270f Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 08:13:11 -0700 Subject: [PATCH 25/39] Update mdc_encode.h Change in the header to match the function's actual declaration. --- asterisk/include/allstar/mdc_encode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk/include/allstar/mdc_encode.h b/asterisk/include/allstar/mdc_encode.h index 742fe134..0c90595c 100644 --- a/asterisk/include/allstar/mdc_encode.h +++ b/asterisk/include/allstar/mdc_encode.h @@ -78,7 +78,7 @@ mdc_encoder_t * mdc_encoder_new(int sampleRate); */ int mdc_encoder_set_packet(mdc_encoder_t *encoder, - unsigned char op, + unsigned short op, unsigned char arg, unsigned short unitID); From e4b3298e4234a04080f8e3b78f2e56a8602d9672 Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 08:41:02 -0700 Subject: [PATCH 26/39] A few additional memory checks. --- asterisk/apps/app_rpt.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index 38586540..9fb5b6bb 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -5864,6 +5864,11 @@ AST_DECLARE_APP_ARGS(args, else str = ast_malloc(strlen(pairs) + strlen(rpt_globals.statpost_url) + 200); + if(!str) { + ast_log(LOG_ERROR, "Statpost update failed to allocate memory!\n"); + return; + } + ast_mutex_lock(&myrpt->statpost_lock); seq = ++myrpt->statpost_seqno; ast_mutex_unlock(&myrpt->statpost_lock); @@ -5873,14 +5878,25 @@ AST_DECLARE_APP_ARGS(args, if (pairs) sprintf(str + strlen(str),"&%s",pairs); - if(rpt_globals.statpost==1) + if(rpt_globals.statpost==1) { astr = ast_strdup(rpt_globals.statpost_url); - else + if(debug >= 128) ast_log(LOG_NOTICE, "Using global statpost URL: %s\n", rpt_globals.statpost_url); + } else { astr = ast_strdup(myrpt->p.statpost_url); + if(debug >= 128) ast_log(LOG_NOTICE, "Using node %s statpost URL: %s\n", myrpt->name, myrpt->p.statpost_url); + } + + if(!astr) { + ast_log(LOG_ERROR,"Statpost URL is empty! Please check rpt.conf\n"); + ast_log(LOG_ERROR,"Global URL: %s\nNode %s URL: %s\n", rpt_globals.statpost_url, myrpt->name, myrpt->p.statpost_url); + ast_free(str); + return; + } bstr=ast_malloc(strlen(str)+strlen(astr)+200); if(!bstr) { ast_log(LOG_ERROR, "Statpost update failed to allocate memory!\n"); + ast_free(str); return; } @@ -5909,7 +5925,7 @@ AST_DECLARE_APP_ARGS(args, ast_log(LOG_ERROR, "[!] URL: %s\n", astr); ast_log(LOG_ERROR, "[!] Telem data: %s\n\n", str); } - ast_free(bstr); + //ast_free(bstr); ast_free(astr); ast_free(str); return; From a0b7af160239307da948c1ea0204b295721f5a3e Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 09:40:09 -0700 Subject: [PATCH 27/39] Fixed issue with pubip node = 0 Signed-off-by: Stacy Olivas --- asterisk/apps/app_rpt.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index 9fb5b6bb..ad5eeb4e 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -6427,7 +6427,7 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis val = (char *) ast_variable_retrieve(cfg,this,"statpost_override"); if (val) rpt_vars[n].p.statpost_override = atoi(val); - else rpt_vars[n].p.statpost_override = 0; + else rpt_vars[n].p.statpost_override = 99; if(rpt_vars[n].p.statpost_custom>0) { val = (char *) ast_variable_retrieve(cfg,this,"statpost_url"); @@ -7012,6 +7012,7 @@ static int rpt_do_utils(int fd, int argc, char *argv[]) int i; char myip[100] = ""; char myiface[25] = ""; + char node[20] =""; struct in_addr ia; @@ -7067,14 +7068,18 @@ static int rpt_do_utils(int fd, int argc, char *argv[]) /* Query site for remote IP address */ struct MemoryStruct chunk = { NULL, 0 }; - AST_DECLARE_APP_ARGS(args, + AST_DECLARE_APP_ARGS(cargs, AST_APP_ARG(url); AST_APP_ARG(postdata); ); - AST_STANDARD_APP_ARGS(args,rpt_globals.remoteip_url); - - if(!curl_internal(&chunk,args.url,args.postdata )) + AST_STANDARD_APP_ARGS(cargs,rpt_globals.remoteip_url); + + if(argc >3) { + strncpy(node,argv[3],19); + } + + if(!curl_internal(&chunk,cargs.url,cargs.postdata )) { if(chunk.memory) { @@ -7097,12 +7102,13 @@ static int rpt_do_utils(int fd, int argc, char *argv[]) } } else { - if (!strcmp(argv[3],"0")) - return RESULT_SUCCESS; + if(!strcmp(node,"0")) + return RESULT_SUCCESS; + /* check for specific node to play it back on */ for(i=0; i Date: Tue, 12 May 2020 09:47:11 -0700 Subject: [PATCH 28/39] Added examples for new statpost and [globals] section Signed-off-by: Stacy Olivas --- asterisk/configs/rpt.conf.sample | 38 +++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/asterisk/configs/rpt.conf.sample b/asterisk/configs/rpt.conf.sample index f97c7f4b..82389703 100644 --- a/asterisk/configs/rpt.conf.sample +++ b/asterisk/configs/rpt.conf.sample @@ -3,6 +3,28 @@ ; Your Repeater +[globals] + +;conslock=0 ; 0=off / 1=limited/ 2=locked - locks rpt global set use on console +;maxlinks=128 ; can be 32 to 256 +;notchfilter=0 ; 0=off/ 1=on +;medencode=0 ; 0=off/ 1=on +;mdcdecode=0 ; 0=off/ 1=on +;localchannels=0 ; 0=off/ 1=on +;fakeserial=0 ; 0=off/ 1=on +;noremotemdc=0 ; 0=off/ 1=on +;nocdrpost=0 ; 0=off/ 1=on +;mdcsay=0 ; 0=off/ 1=on +;linkclip=0 ; 0=off/ 1=on +;zoption=0 ; 0=off/ 1=on +;alttune=0 ; 0=off/ 1=on +;linkdtmf=0 ; 0=off/ 1=on +;setic706ctcss=0 ; 0=off/ 1=on +;dtmftimeout=3 ; change dtmf timeout interval (3- ) +statpost=1 ; 0 = off; 1= AllStar; 2= custom (set statpost_url line) +;statpost_url= ; set to custom statpost_url if statpost=2 (above) +net_if=ens192 ; set to name of ethernet interface for sayip to use + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [1999] ; Change this to your assigned node number @@ -174,17 +196,13 @@ startup_macro = ; *** Status Reporting *** -; Uncomment either group following two statpost lines to report the status of your node to stats.allstarlink.org -; depending on whether you are running ACID, Debian or Limey Linux. -; The difference is simply where your wget is located. - -; ** For ACID and Debian *** -;statpost_program = /usr/bin/wget,-q,--timeout=15,--tries=1,--output-document=/dev/null -;statpost_url = http://stats.allstarlink.org/uhandler.php ; Status updates +;Set the following to override the global statpost behavior +;0=off; 1=on when globals are off +;statpost_override=1 -; ** For Limey Linux ** -;statpost_program = /bin/wget,-q,--timeout=15,--tries=1,--output-document=/dev/null -;statpost_url = http://stats.allstarlink.org/uhandler.php ; Status updates +;set to 1 to use custom statpost url for this node only +;statpost_custom=0 ; If left blank it will default to using the globa satpost +;statpost_url= ; Set to a valid URL if overriding (e.g, http://stats.allstarlink.org/uhandler.php) [functions] From 2631d2e0a5d624293aadbfd053611afb3be645fb Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 11:22:19 -0700 Subject: [PATCH 29/39] A fix for statpost, and increase the timeout for libcurl Signed-off-by: Stacy Olivas --- asterisk/apps/app_rpt.c | 38 ++++++-------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index ad5eeb4e..9ad23033 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -5823,7 +5823,8 @@ int i; */ static void statpost(struct rpt *myrpt,char *pairs) { -char *str,*astr,*bstr; +char str[300],astr[300],bstr[300]; +char result[20]=""; int success = 0; time_t now; unsigned int seq; @@ -5858,17 +5859,6 @@ AST_DECLARE_APP_ARGS(args, return; } - // If set, use per node statpost_url or fallback to globally defined statpost_url - if(myrpt->p.statpost_custom>0) - str = ast_malloc(strlen(pairs) + strlen(myrpt->p.statpost_url) + 200); - else - str = ast_malloc(strlen(pairs) + strlen(rpt_globals.statpost_url) + 200); - - if(!str) { - ast_log(LOG_ERROR, "Statpost update failed to allocate memory!\n"); - return; - } - ast_mutex_lock(&myrpt->statpost_lock); seq = ++myrpt->statpost_seqno; ast_mutex_unlock(&myrpt->statpost_lock); @@ -5879,27 +5869,13 @@ AST_DECLARE_APP_ARGS(args, if (pairs) sprintf(str + strlen(str),"&%s",pairs); if(rpt_globals.statpost==1) { - astr = ast_strdup(rpt_globals.statpost_url); + ast_copy_string(astr,rpt_globals.statpost_url,sizeof(astr)-1); if(debug >= 128) ast_log(LOG_NOTICE, "Using global statpost URL: %s\n", rpt_globals.statpost_url); } else { - astr = ast_strdup(myrpt->p.statpost_url); + ast_copy_string(astr,myrpt->p.statpost_url,sizeof(astr)-1); if(debug >= 128) ast_log(LOG_NOTICE, "Using node %s statpost URL: %s\n", myrpt->name, myrpt->p.statpost_url); } - if(!astr) { - ast_log(LOG_ERROR,"Statpost URL is empty! Please check rpt.conf\n"); - ast_log(LOG_ERROR,"Global URL: %s\nNode %s URL: %s\n", rpt_globals.statpost_url, myrpt->name, myrpt->p.statpost_url); - ast_free(str); - return; - } - - bstr=ast_malloc(strlen(str)+strlen(astr)+200); - if(!bstr) { - ast_log(LOG_ERROR, "Statpost update failed to allocate memory!\n"); - ast_free(str); - return; - } - sprintf(bstr,"%s%s", astr, str); AST_STANDARD_APP_ARGS(args, bstr); @@ -5914,7 +5890,8 @@ AST_DECLARE_APP_ARGS(args, chunk.memory[chunk.size] = '\0'; if(chunk.memory[chunk.size -1] == 10) chunk.memory[chunk.size -1] = '\0'; - ast_copy_string(str,chunk.memory,20); + ast_copy_string(result,chunk.memory,sizeof(result)-1); + if(debug >= 128) ast_log(LOG_NOTICE, "Statpost return: %s\n\n", result); ast_free(chunk.memory); } } @@ -5925,9 +5902,6 @@ AST_DECLARE_APP_ARGS(args, ast_log(LOG_ERROR, "[!] URL: %s\n", astr); ast_log(LOG_ERROR, "[!] Telem data: %s\n\n", str); } - //ast_free(bstr); - ast_free(astr); - ast_free(str); return; } From ac40199441a940cf85f1db50f8c074fe71750ff8 Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 12:26:04 -0700 Subject: [PATCH 30/39] Update version info Signed-off-by: Stacy Olivas --- asterisk/main/asterisk.c | 49 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/asterisk/main/asterisk.c b/asterisk/main/asterisk.c index e22e0af6..e88e28ea 100644 --- a/asterisk/main/asterisk.c +++ b/asterisk/main/asterisk.c @@ -136,13 +136,18 @@ int daemon(int, int); /* defined in libresolv of all places */ #define AST_MAX_CONNECTS 128 #define NUM_MSGS 64 +#define ASL_RELVER "1.02" +#define ASL_RELDATE "05/11/2020" + /*! \brief Welcome message when starting a CLI interface */ #define WELCOME_MESSAGE \ ast_verbose("\n"); \ - ast_verbose("AllStarLink Asterisk Version 1.01 2/13/2018 "ASTERISK_VERSION"\n"); \ - ast_verbose("Copyright (C) 1999 - 2018 Digium, Inc. Jim Dixon, AllStarLink Inc. and others.\n"); \ - ast_verbose("Created by Mark Spencer \n"); \ - ast_verbose("Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.\n"); \ + ast_verbose("AllStarLink Asterisk Version "ASL_RELVER" "ASL_RELDATE" "ASTERISK_VERSION"\n"); \ + ast_verbose("Copyright (C) 1999 - 2020 Digium, Inc., AllStarLink, Inc., and contributors\n(type 'core show asl' for details)\n"); \ + ast_verbose("Based on Asterisk 1.4.23 (C) 1999 - 2007 Digium, Inc.\n"); \ + ast_verbose("All Rights Reserved\n\n"); \ + ast_verbose("Created by Mark Spencer \n\n"); \ + ast_verbose("Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.\n\n"); \ ast_verbose("This is free software, with components licensed under the GNU General Public\n"); \ ast_verbose("License version 2 and other licenses; you are welcome to redistribute it under\n"); \ ast_verbose("certain conditions. Type 'core show license' for details.\n"); \ @@ -1497,6 +1502,10 @@ static char show_license_help[] = "Usage: core show license\n" " Shows the license(s) for this copy of Asterisk.\n"; +static char show_aslauthors_help[] = +"Usage: core show asl\n" +" Shows information regarding authors/contributors to AllStarLink Asterisk.\n"; + static char version_help[] = "Usage: core show version\n" " Shows Asterisk version information.\n"; @@ -1658,6 +1667,34 @@ static int show_license(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } +static const char *aslauthors_lines[] = { + "\n", + "Based upon Asterisk 1.4.23 Copyright (C) 1999-2007 Digium, Inc.\n\n", + "The AllStar software componets are subject to the following additional copyrights:\n", + "Copyright (C) 1999-2017 by Jim Dixon, WB6NIL; AllStarLink, Inc. and contributors\n", + "Copyright (C) 2018 by AllStarLink Inc, and contributors\n", + "Copyright (C) 2018-2019 by Steve Zingman, N4IRS; Michael Zingman, N4IRR and contributors\n", + "Copyright (C) 2018-2020 by Stacy Olivas, KG7QIN and contributors\n\n", + "All Rights Reserved\n", + "\nThe AllStar software components are licensed under the GNU GPL version 2.\n", + "\nSee the AUTHORS.md and CONTRIBUTORS.md file in the source tree for details on authors and copyrights\n", + "to various modules that are part of the AllStar and AllStarLink Asterisk software.\n\n", +}; + +static int show_aslauthors(int fd, int argc, char *argv[]) +{ + int x; + + ast_cli(fd, "\n\nAllStarLink Asterisk Version "ASL_RELVER" "ASL_RELDATE" "ASTERISK_VERSION"\n"); + + for (x = 0; x < sizeof(aslauthors_lines) / sizeof(aslauthors_lines[0]); x++) + ast_cli(fd, (char *) aslauthors_lines[x]); + + return RESULT_SUCCESS; + +} + + #define ASTERISK_PROMPT "*CLI> " #define ASTERISK_PROMPT2 "%s*CLI> " @@ -1720,6 +1757,10 @@ static struct ast_cli_entry cli_asterisk[] = { show_license, "Show the license(s) for this copy of Asterisk", show_license_help }, + { { "core", "show", "asl", NULL }, + show_aslauthors, "Shows information regarding authors/contributors to AllStarLink Asterisk", + show_aslauthors_help }, + { { "core", "show", "version", NULL }, handle_version, "Display version info", version_help, NULL, &cli_show_version_deprecated }, From 78d6308a204e44c3d26ed9e3eb076de6a4518567 Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 13:47:19 -0700 Subject: [PATCH 31/39] Fixed libcurl agent issue Signed-off-by: Stacy Olivas --- asterisk/apps/app_rpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index 9ad23033..c91d71a7 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -2045,10 +2045,10 @@ static int curl_internal(struct MemoryStruct *chunk, char *url, char *post) return -1; skzy = strstr(tdesc, "version"); - sprintf(curl_agent_string, "%s (-; Linux %s; gcc %s)",crl_agnt,sysinfo.cvers, __VERSION__); + sprintf(curl_agent_string, "%s (-; Linux %s)",crl_agnt,sysinfo.cvers); if(skzy) if(sscanf(skzy, "version %d.%d", &vmajor, &vminor) == 2) - sprintf(curl_agent_string, "%s (app_rpt v%d.%d; Linux %s; gcc %s)",crl_agnt,vmajor,vminor,sysinfo.cvers, __VERSION__); + sprintf(curl_agent_string, "%s (app_rpt v%d.%d; Linux %s)",crl_agnt,vmajor,vminor,sysinfo.cvers); curl_easy_setopt(*curl, CURLOPT_NOSIGNAL, 1); From ab1e90be380b7be1336b5c66935c849be90621ca Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 15:39:27 -0700 Subject: [PATCH 32/39] Update AUTHORS.md Fixed formatting for markdown. --- AUTHORS.md | 90 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index 0c610b78..801fc843 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -14,6 +14,7 @@ AllStar is based upon the Asterisk Open Source PBX software by Digium. ASL 1.01 and later are based upon Asterisk 1.4.23 which has the following license/copyright: +``` /* * Asterisk -- An open source telephony toolkit. * @@ -31,6 +32,7 @@ ASL 1.01 and later are based upon Asterisk 1.4.23 which has the following licens * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ +``` Note: AllStarLink, Inc was assigned Jim Dixon, WB6NIL's copyright by his remaining heir. @@ -50,70 +52,70 @@ between each version of app_rpt.c released. ---- -* app_rpt.c: +#### app_rpt.c: -Jim Dixon, WB6NIL - Original author -Steve Rodgers, WA6ZFT - Major contributor to program development -Steve Heinke, W9SH - Major contributor to program development -Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release -Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release -Adam Paulm KC1KCC - Ported ducking code over from XIPAR release of app_rpt.c -Stacy Olivas, KG7QIN - bumped version to 0.340. See CHANGELOG.md for complete list for changes. + - Jim Dixon, WB6NIL - Original author + - Steve Rodgers, WA6ZFT - Major contributor to program development + - Steve Heinke, W9SH - Major contributor to program development + - Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release + - Adam Paulm KC1KCC - Ported ducking code over from XIPAR release of app_rpt.c + - Stacy Olivas, KG7QIN - bumped version to 0.340. See CHANGELOG.md for complete list for changes. -* app_gps.c: +#### app_gps.c: -Jim Dixon, WB6NIL - Original author + - Jim Dixon, WB6NIL - Original author -* chan_beagle.c: +#### chan_beagle.c: -Jim Dixon, WB6NIL - Original author -Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release -Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release -* chan_echolink.c: +#### chan_echolink.c: -Scott Lawson, KI4LKF - Original author + - Scott Lawson, KI4LKF - Original author -* chan_pi.c: +#### chan_pi.c: -Jim Dixon, WB6NIL - Original author -Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release -Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release -* chan_simpleusb.c: +#### chan_simpleusb.c: -Jim Dixon, WB6NIL - Original author -Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release -Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release -Stacy Olivas, KG7QIN - CM119B fixes, options to override detected (force) chip type + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + - Stacy Olivas, KG7QIN - CM119B fixes, options to override detected (force) chip type -* chan_tlb.c: +#### chan_tlb.c: -Scott Lawson, KI4LKF - Original author (copyright) -Jim Dixon, Wb6NIL - Author credits in source + - Scott Lawson, KI4LKF - Original author (copyright) + - Jim Dixon, Wb6NIL - Author credits in source -* chan_usbradio.c: +#### chan_usbradio.c: -Jim Dixon, WB6NIL - Original author -Steve Henke, W9SH - Major contributions and included xpmr routines from XELATEC, LLC's Xipar release. -Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release -Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release -Stacy Olivas, KG7QIN - CM119B fixes + - Jim Dixon, WB6NIL - Original author + - Steve Henke, W9SH - Major contributions and included xpmr routines from XELATEC, LLC's Xipar release. + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + - Stacy Olivas, KG7QIN - CM119B fixes -* chan_usrp.c: +#### chan_usrp.c: -Max Parke, KA1RBI - Original author (copyright) -Jim Dixon, WB6NIL - Author credits in source -Michael Zingman, N4IRR - Added text support + - Max Parke, KA1RBI - Original author (copyright) + - Jim Dixon, WB6NIL - Author credits in source + - Michael Zingman, N4IRR - Added text support -* chan_voter.c: +#### chan_voter.c: -Jim Dixon, WB6NIL - Original author -Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release -Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release -* asl-menu +#### asl-menu -Nathan Hardman, N8THN - Original author + - Nathan Hardman, N8THN - Original author From 1cd156a02f568404b534cd157f6d9c6139fd97cd Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 15:40:59 -0700 Subject: [PATCH 33/39] Fixed formatting Markdown issues. --- CONTRIBUTORS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index d58446b0..b76879b1 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,7 +1,8 @@ AllStar Contributors (sorted alphabetically) ============================================ -The following is a list of known contributors to the app_rpt programs that make up the AllStar software. -This list is very likley incomplete. +#### The following is a list of known contributors to the app_rpt programs that make up the AllStar software. + +#### This list is very likley incomplete. ---- See AUTHORS for listing of known authors/copyright holders ---- From 72a9143949bec85ca506c94f0c576c2effae1bf3 Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Tue, 12 May 2020 15:41:42 -0700 Subject: [PATCH 34/39] Fixed formatting --- AUTHORS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index 801fc843..1e7f641b 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -6,7 +6,7 @@ See the latter for an explanation. Names should be added to this file under the respective file/module as (note email is optional here. If it is not listed then it should be included in the header of the corresponding file.) -Stacy Olivas, KG7QIN - Updated app_rpt.c to version 0.340. See CHANGESLOG.md for information on changes +> Stacy Olivas, KG7QIN - Updated app_rpt.c to version 0.340. See CHANGESLOG.md for information on changes ---- From 365faed01f51c2cfbd9ceed070ba85ee2b4aea4d Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Wed, 13 May 2020 02:08:55 -0700 Subject: [PATCH 35/39] Fixes for remote ip Signed-off-by: Stacy Olivas --- asterisk/apps/app_rpt.c | 85 +++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 33 deletions(-) diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index c91d71a7..a047d969 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -1518,6 +1518,7 @@ static struct rpt_globals_pvt rpt_globals = { struct sysinfo_pvt { char vers[200]; char cvers[40]; + char myip[50]; } __attribute__((aligned)); static struct sysinfo_pvt sysinfo = { @@ -1993,6 +1994,7 @@ struct MemoryStruct { char *memory; size_t size; }; + static void *myrealloc(void *ptr, size_t size) { /* There might be a realloc() out there that doesn't like reallocing @@ -2323,7 +2325,8 @@ static struct telem_defaults tele_defs[] = { {"cmdmode","|t(900,904,200,2048)"}, {"functcomplete","|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)"}, {"remcomplete","|t(650,0,100,2048)(0,0,100,0)(650,0,100,2048)(0,0,100,0)(650,0,100,2048)"}, - {"pfxtone","|t(350,440,30000,3072)"} + {"pfxtone","|t(350,440,30000,3072)"}, + {"remip","|t(550,300,150,2048)(350,880,150,2048)(900,904,75,3072)(900,904,75,3072)"} } ; static inline void goertzel_sample(goertzel_state_t *s, short sample) @@ -6957,10 +6960,40 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis ast_mutex_unlock(&rpt_vars[n].lock); } +// Lookup public IP and return it, or 0 if error +static const char *public_ip( char *ip) +{ + char *myip = ip; + char tmp[200]=""; + struct MemoryStruct chunk = { NULL, 0 }; + AST_DECLARE_APP_ARGS(piargs, + AST_APP_ARG(url); + AST_APP_ARG(postdata); + ); + AST_STANDARD_APP_ARGS(piargs,rpt_globals.remoteip_url); + strcpy(ip,"\0"); + if(!curl_internal(&chunk,piargs.url,piargs.postdata )) + { + if(chunk.memory) + { + chunk.memory[chunk.size] = '\0'; + if(chunk.memory[chunk.size -1] == 10) + chunk.memory[chunk.size -1] = '\0'; + ast_copy_string(tmp,chunk.memory,20); + ast_free(chunk.memory); + + } + + } + strncpy(myip,tmp,20); + return ip; +} + static void get_sys_info (void) { FILE *fp; char tmp[200]; + char myip[50]=""; fp = fopen("/proc/version", "r"); if(!fp) return; if((!fgets(tmp,sizeof(tmp)-1, fp))) @@ -6973,6 +7006,8 @@ static void get_sys_info (void) { strcpy(sysinfo.cvers,"Unknown"); } + public_ip(myip); + strncpy(sysinfo.myip,myip,20); return; } @@ -7037,7 +7072,7 @@ static int rpt_do_utils(int fd, int argc, char *argv[]) /* Get remote IP say it locally */ if(!strcasecmp(argv[2], "PUBIP")) { - if(argc < 3) + if(argc < 4) return RESULT_SHOWUSAGE; /* Query site for remote IP address */ @@ -7063,6 +7098,7 @@ static int rpt_do_utils(int fd, int argc, char *argv[]) ast_copy_string(myip,chunk.memory,20); ast_free(chunk.memory); + strncpy(sysinfo.myip,myip,20); /* Show IP on console */ ast_cli(fd, "\n* Public IP address is %s\n\n", myip); @@ -7076,8 +7112,7 @@ static int rpt_do_utils(int fd, int argc, char *argv[]) } } else { - if(!strcmp(node,"0")) - return RESULT_SUCCESS; + if((strlen(node) == 1) && (node[0] == '0')) return RESULT_SUCCESS; /* check for specific node to play it back on */ for(i=0; i= 128) ast_log(LOG_WARNING, "Attempting to fetch public IP from %s\n\n", rpt_globals.remoteip_url); - AST_DECLARE_APP_ARGS(args, - AST_APP_ARG(url); - AST_APP_ARG(postdata); - ); - AST_STANDARD_APP_ARGS(args,rpt_globals.remoteip_url); - - if(!curl_internal(&chunk,args.url,args.postdata )) - { - if(chunk.memory) - { - chunk.memory[chunk.size] = '\0'; - if(chunk.memory[chunk.size -1] == 10) - chunk.memory[chunk.size -1] = '\0'; - ast_copy_string(myip,chunk.memory,20); - ast_free(chunk.memory); - - /* Show IP on console */ - ast_log(LOG_NOTICE, "[*] Public IP address is %s\n\n", myip); - saynode(myrpt,mychannel,myrpt->name); - sayfile(mychannel, "system"); - saycharstr(mychannel, "ip"); - sayfile(mychannel, "is-set-to"); - saycharstr(mychannel, myip); - } + res = telem_lookup(myrpt, mychannel, myrpt->name, "remip"); + if(strlen(sysinfo.myip)>0) { + ast_log(LOG_NOTICE, "[*] Public IP address is %s\n\n", sysinfo.myip); + saynode(myrpt,mychannel,myrpt->name); + sayfile(mychannel, "system"); + saycharstr(mychannel, "ip"); + sayfile(mychannel, "is-set-to"); + saycharstr(mychannel, sysinfo.myip); } else { ast_log(LOG_ERROR, "Failed to fetch Public IP address\n\n"); sayfile(mychannel, "tt-somethingwrong"); @@ -13206,12 +13222,15 @@ static int function_status(struct rpt *myrpt, char *param, char *digitbuf, int c rpt_telemetry(myrpt, STATS_TIME_LOCAL, NULL); return DC_COMPLETE; case 20: /* Say remote IP (global) */ - rpt_telemetry(myrpt, REMIP, NULL); + rpt_telem_select(myrpt,command_source,mylink); + rpt_telemetry(myrpt, REMIP, mylink); return DC_COMPLETE; case 21: /* Say remote IP (local only)*/ - rpt_telemetry(myrpt, REMIP_LOCAL, NULL); + rpt_telem_select(myrpt,command_source,mylink); + rpt_telemetry(myrpt, REMIP_LOCAL, mylink); return DC_COMPLETE; case 22: /* Say loca IP of first ethernet interface or as specific in [global] of rpt.conf */ + rpt_telem_select(myrpt,command_source,mylink); rpt_telemetry(myrpt, SAYIP_LOCAL, NULL); return DC_COMPLETE; case 99: /* GPS data announced locally */ From 15fe1148ecc65766534cb721510919d6eba2df80 Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Thu, 14 May 2020 08:00:54 -0700 Subject: [PATCH 36/39] Statpost updates. Fixed some memory issues Signed-off-by: Stacy Olivas --- asterisk/apps/app_rpt.c | 246 +++++++++++++++++++++++++++------------- 1 file changed, 168 insertions(+), 78 deletions(-) diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index a047d969..a1a6db49 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -2326,7 +2326,9 @@ static struct telem_defaults tele_defs[] = { {"functcomplete","|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)"}, {"remcomplete","|t(650,0,100,2048)(0,0,100,0)(650,0,100,2048)(0,0,100,0)(650,0,100,2048)"}, {"pfxtone","|t(350,440,30000,3072)"}, - {"remip","|t(550,300,150,2048)(350,880,150,2048)(900,904,75,3072)(900,904,75,3072)"} + {"remip","|t(550,300,150,2048)(350,880,150,2048)(900,904,75,3072)(900,904,75,3072)"}, + {"sayip","|t(950,0,330,2048)(1400,0,330,2048)(1800,0,330,3072)(0,0,150,0)"} + } ; static inline void goertzel_sample(goertzel_state_t *s, short sample) @@ -5832,34 +5834,123 @@ int success = 0; time_t now; unsigned int seq; struct MemoryStruct chunk = { NULL, 0 }; -AST_DECLARE_APP_ARGS(args, - AST_APP_ARG(url); - AST_APP_ARG(postdata);); - // Turned off globally, no per node override - if(rpt_globals.statpost==0 && myrpt->p.statpost_override==0) return; + switch(rpt_globals.statpost) { + case 0: // Globally we are disabled, how about on a per node basis? + switch(myrpt->p.statpost_override) { + case 0: // No node reporting + if(debug >= 128) ast_log(LOG_WARNING,"No statpost reporting for node %s\n\n", myrpt->name); + return; - // Enabled globally, turned off for this node - if(myrpt->p.statpost_override==0) { - if(debug >= 128) ast_log(LOG_WARNING,"No statpost reporting for node %s\n\n", myrpt->name); - return; - } + case 1: // Let node report + switch (myrpt->p.statpost_custom) { + case 1: // Use custom stats server url for this node + if(strlen(myrpt->p.statpost_url)>0) { + ast_copy_string(astr,myrpt->p.statpost_url,299); + success=1; + } else { + ast_log(LOG_ERROR, "No statpost for node %s: statpost_custom is set, node statpost_url is blank!\n\n", myrpt->name); + return; + } + break; - // If custom is set, do we have a URL? - if(myrpt->p.statpost_custom>0) - if (!myrpt->p.statpost_url) - { - if(debug >= 128) ast_log(LOG_WARNING,"No statpost for node %s: node statpost_custom is set, node statpost_url is blank\n\n", myrpt->name); - return; - } + default: // No custom stats server url specified for this node + ast_copy_string(astr,ASL_STATPOST_URL,299); + success=1; + break; + } + break; + case 32: // Node's statpost_override was never set, log that to the console and don't report + ast_log(LOG_ERROR, "No statpost for node %s: statpost_override not defined in node stanza!\n\n", myrpt->name); + return; - // Enabled globally, if node is a private node is it enabled using a custom statpost_url for node? - if(strtoul(myrpt->name,NULL,10) < 2000) - { - if ((myrpt->p.statpost_override==128) && (myrpt->p.statpost_custom==2) && !(!myrpt->p.statpost_url)) - ast_log(LOG_NOTICE,"Statpost reporting for private node %s\n\n", myrpt->name); - else - return; + case 128: // Private node reporting + if(strtoul(myrpt->name,NULL,10) < 2000) { + if(myrpt->p.statpost_custom == 2) { + if(strlen(myrpt->p.statpost_url)>0) { + ast_log(LOG_NOTICE, "Statpost reporting for private node %s\n\n", myrpt->name); + ast_copy_string(astr,myrpt->p.statpost_url,299); + success=1; + } + } + } + break; + + default: // Treat all other values like 0 or not set + if(debug >= 128) ast_log(LOG_WARNING,"No statpost reporting for node %s\n\n", myrpt->name); + return; + } + break; + + case 1: // Use ASL Stats server + switch(myrpt->p.statpost_override) { + case 0: // No reporting this node + if(debug >= 128) ast_log(LOG_WARNING,"No statpost reporting for node %s\n\n", myrpt->name); + return; + + case 128: // Private node reporting + if(strtoul(myrpt->name,NULL,10) < 2000) { + if(myrpt->p.statpost_custom == 2) { + if(strlen(myrpt->p.statpost_url)>0) { + ast_log(LOG_NOTICE, "Statpost reporting for private node %s\n\n", myrpt->name); + ast_copy_string(astr,myrpt->p.statpost_url,299); + success=1; + } + } + } + + break; + + default: // Use ASL Stats server + if(strtoul(myrpt->name,NULL,10) < 2000) return; + ast_copy_string(astr,ASL_STATPOST_URL,299); + success=1; + break; + } + break; + + case 2: // Use custom stats server + switch(myrpt->p.statpost_override) { + case 0: // No reporting this node + if(debug >= 128) ast_log(LOG_WARNING,"No statpost reporting for node %s\n\n", myrpt->name); + return; + + case 32: // Node's statpost_override was never set, log that to the console and don't report + ast_log(LOG_ERROR, "No statpost for node %s: statpost_override not defined in node stanza!\n\n", myrpt->name); + return;; + + case 128: // Private node reporting + if(strtoul(myrpt->name,NULL,10) < 2000 ) { + if(myrpt->p.statpost_custom == 2) { + if(strlen(myrpt->p.statpost_url)>0) { + ast_log(LOG_NOTICE, "Statpost reporting for private node %s\n\n", myrpt->name); + ast_copy_string(astr,myrpt->p.statpost_url,299); + success=1; + } + } + } + break; + + default: // Use custom stats reporting server + if(strlen(rpt_globals.statpost_url)>0) { + ast_copy_string(astr,rpt_globals.statpost_url,299); + success=1; + } else { + ast_log(LOG_ERROR,"No statpost for node %s: global statpost_custom is set, global statpost_url is blank!\n\n", myrpt->name); + return; + } + break; + } + break; + + default: // Um, something broke and we shouldn't be here + success=0; + break; + } + + if(success == 0) { + ast_log(LOG_ERROR, "[!] Statpost update for node %s failed due to unsupported configuration!\n\n",myrpt->name); + return; } ast_mutex_lock(&myrpt->statpost_lock); @@ -5871,20 +5962,17 @@ AST_DECLARE_APP_ARGS(args, if (pairs) sprintf(str + strlen(str),"&%s",pairs); - if(rpt_globals.statpost==1) { - ast_copy_string(astr,rpt_globals.statpost_url,sizeof(astr)-1); - if(debug >= 128) ast_log(LOG_NOTICE, "Using global statpost URL: %s\n", rpt_globals.statpost_url); - } else { - ast_copy_string(astr,myrpt->p.statpost_url,sizeof(astr)-1); - if(debug >= 128) ast_log(LOG_NOTICE, "Using node %s statpost URL: %s\n", myrpt->name, myrpt->p.statpost_url); - } + AST_DECLARE_APP_ARGS(args, + AST_APP_ARG(url); + AST_APP_ARG(postdata);); sprintf(bstr,"%s%s", astr, str); AST_STANDARD_APP_ARGS(args, bstr); if(debug >= 64) - ast_log(LOG_NOTICE, "Performing statpost update. URL %s Telem Data: %s\n\n", astr, str); + ast_log(LOG_NOTICE, "Performing statpost update for node %s. URL %s Telem Data: %s\n\n", myrpt->name, astr, str); + success=0; if(!curl_internal(&chunk,args.url,args.postdata )) { if(chunk.memory) @@ -5901,7 +5989,7 @@ AST_DECLARE_APP_ARGS(args, if(!success) { - ast_log(LOG_ERROR, "[!] Statpost update failed.\n"); + ast_log(LOG_ERROR, "[!] Statpost update failed for node %s.\n", myrpt->name); ast_log(LOG_ERROR, "[!] URL: %s\n", astr); ast_log(LOG_ERROR, "[!] Telem data: %s\n\n", str); } @@ -6367,14 +6455,14 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis memset(&rpt_vars[n].filters,0,sizeof(rpt_vars[n].filters)); } val = (char *) ast_variable_retrieve(cfg,this,"context"); - if (val) rpt_vars[n].p.ourcontext = val; + if (val) rpt_vars[n].p.ourcontext = ast_strdup(val); else rpt_vars[n].p.ourcontext = this; val = (char *) ast_variable_retrieve(cfg,this,"callerid"); - if (val) rpt_vars[n].p.ourcallerid = val; + if (val) rpt_vars[n].p.ourcallerid = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"accountcode"); - if (val) rpt_vars[n].p.acctcode = val; + if (val) rpt_vars[n].p.acctcode = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"idrecording"); - if (val) rpt_vars[n].p.ident = val; + if (val) rpt_vars[n].p.ident = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"hangtime"); if (val) rpt_vars[n].p.hangtime = atoi(val); else rpt_vars[n].p.hangtime = (ISRANGER(rpt_vars[n].name) ? 1 : HANGTIME); @@ -6402,13 +6490,14 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis if (val) rpt_vars[n].p.statpost_custom = atoi(val); else rpt_vars[n].p.statpost_custom = 0; + // Default in case it isn't specified. + rpt_vars[n].p.statpost_override = 32; val = (char *) ast_variable_retrieve(cfg,this,"statpost_override"); if (val) rpt_vars[n].p.statpost_override = atoi(val); - else rpt_vars[n].p.statpost_override = 99; if(rpt_vars[n].p.statpost_custom>0) { val = (char *) ast_variable_retrieve(cfg,this,"statpost_url"); - if (val) rpt_vars[n].p.statpost_url = val; + if (val) rpt_vars[n].p.statpost_url = ast_strdup(val); else { rpt_vars[n].p.statpost_custom = 0; ast_log(LOG_ERROR,"statpost_custom set for node %s, statpost_url blank or missing. Disabling statpost_custom for node.\n\n", rpt_vars[n].name); @@ -6423,7 +6512,7 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis j = retrieve_astcfgint(&rpt_vars[n],this, "elke", 0, 40000000, 0); rpt_vars[n].p.elke = j * 1210; val = (char *) ast_variable_retrieve(cfg,this,"tonezone"); - if (val) rpt_vars[n].p.tonezone = val; + if (val) rpt_vars[n].p.tonezone = ast_strdup(val); rpt_vars[n].p.tailmessages[0] = 0; rpt_vars[n].p.tailmessagemax = 0; val = (char *) ast_variable_retrieve(cfg,this,"tailmessagelist"); @@ -6431,22 +6520,22 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis rpt_vars[n].p.aprstt = (char *) ast_variable_retrieve(cfg,this,"aprstt"); val = (char *) ast_variable_retrieve(cfg,this,"memory"); if (!val) val = MEMORY; - rpt_vars[n].p.memory = val; + rpt_vars[n].p.memory = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"morse"); if (!val) val = MORSE; - rpt_vars[n].p.morse = val; + rpt_vars[n].p.morse = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"telemetry"); if (!val) val = TELEMETRY; - rpt_vars[n].p.telemetry = val; + rpt_vars[n].p.telemetry = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"macro"); if (!val) val = MACRO; - rpt_vars[n].p.macro = val; + rpt_vars[n].p.macro = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"tonemacro"); if (!val) val = TONEMACRO; - rpt_vars[n].p.tonemacro = val; + rpt_vars[n].p.tonemacro = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"mdcmacro"); if (!val) val = MDCMACRO; - rpt_vars[n].p.mdcmacro = val; + rpt_vars[n].p.mdcmacro = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"startup_macro"); if (val) rpt_vars[n].p.startupmacro = val; val = (char *) ast_variable_retrieve(cfg,this,"iobase"); @@ -6456,32 +6545,32 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis if ((!val) || (sscanf(val,"%i",&rpt_vars[n].p.iobase) != 1)) rpt_vars[n].p.iobase = DEFAULT_IOBASE; val = (char *) ast_variable_retrieve(cfg,this,"ioport"); - rpt_vars[n].p.ioport = val; + rpt_vars[n].p.ioport = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"functions"); if (!val) { val = FUNCTIONS; rpt_vars[n].p.simple = 1; } - rpt_vars[n].p.functions = val; + rpt_vars[n].p.functions = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"link_functions"); - if (val) rpt_vars[n].p.link_functions = val; + if (val) rpt_vars[n].p.link_functions = ast_strdup(val); else rpt_vars[n].p.link_functions = rpt_vars[n].p.functions; val = (char *) ast_variable_retrieve(cfg,this,"phone_functions"); - if (val) rpt_vars[n].p.phone_functions = val; + if (val) rpt_vars[n].p.phone_functions = ast_strdup(val); else if (ISRANGER(rpt_vars[n].name)) rpt_vars[n].p.phone_functions = rpt_vars[n].p.functions; val = (char *) ast_variable_retrieve(cfg,this,"dphone_functions"); - if (val) rpt_vars[n].p.dphone_functions = val; + if (val) rpt_vars[n].p.dphone_functions = ast_strdup(val); else if (ISRANGER(rpt_vars[n].name)) rpt_vars[n].p.dphone_functions = rpt_vars[n].p.functions; val = (char *) ast_variable_retrieve(cfg,this,"alt_functions"); - if (val) rpt_vars[n].p.alt_functions = val; + if (val) rpt_vars[n].p.alt_functions = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"funcchar"); if (!val) rpt_vars[n].p.funcchar = FUNCCHAR; else - rpt_vars[n].p.funcchar = *val; + rpt_vars[n].p.funcchar = *ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"endchar"); if (!val) rpt_vars[n].p.endchar = ENDCHAR; else - rpt_vars[n].p.endchar = *val; + rpt_vars[n].p.endchar = *ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"nobusyout"); if (val) rpt_vars[n].p.nobusyout = ast_true(val); val = (char *) ast_variable_retrieve(cfg,this,"notelemtx"); @@ -6494,10 +6583,10 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis if (val) rpt_vars[n].p.linktolink = ast_true(val); val = (char *) ast_variable_retrieve(cfg,this,"nodes"); if (!val) val = NODES; - rpt_vars[n].p.nodes = val; + rpt_vars[n].p.nodes = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"extnodes"); if (!val) val = EXTNODES; - rpt_vars[n].p.extnodes = val; + rpt_vars[n].p.extnodes = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"extnodefile"); if (!val) val = EXTNODEFILE; rpt_vars[n].p.extnodefilesn = @@ -6509,9 +6598,9 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis val = (char *) ast_variable_retrieve(cfg,this,"ldisc"); if (val) rpt_vars[n].p.nldisc = explode_string(strupr(ast_strdup(val)),rpt_vars[n].p.ldisc,MAX_LSTUFF,',',0); val = (char *) ast_variable_retrieve(cfg,this,"patchconnect"); - rpt_vars[n].p.patchconnect = val; + rpt_vars[n].p.patchconnect = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"archivedir"); - if (val) rpt_vars[n].p.archivedir = val; + if (val) rpt_vars[n].p.archivedir = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"authlevel"); if (val) rpt_vars[n].p.authlevel = atoi(val); else rpt_vars[n].p.authlevel = 0; @@ -6522,7 +6611,7 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis if (val) rpt_vars[n].p.parrottime = atoi(val); else rpt_vars[n].p.parrottime = PARROTTIME; val = (char *) ast_variable_retrieve(cfg,this,"rptnode"); - rpt_vars[n].p.rptnode = val; + rpt_vars[n].p.rptnode = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"mars"); if (val) rpt_vars[n].p.remote_mars = atoi(val); else rpt_vars[n].p.remote_mars = 0; @@ -6570,24 +6659,24 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis if (!val) val = DEFAULT_LINKMONGAIN; rpt_vars[n].p.linkmongain = pow(10.0,atof(val) / 20.0); val = (char *) ast_variable_retrieve(cfg,this,"discpgm"); - rpt_vars[n].p.discpgm = val; + rpt_vars[n].p.discpgm = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"connpgm"); - rpt_vars[n].p.connpgm = val; + rpt_vars[n].p.connpgm = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"mdclog"); - rpt_vars[n].p.mdclog = val; + rpt_vars[n].p.mdclog = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"lnkactenable"); if (val) rpt_vars[n].p.lnkactenable = ast_true(val); else rpt_vars[n].p.lnkactenable = 0; rpt_vars[n].p.lnkacttime = retrieve_astcfgint(&rpt_vars[n],this, "lnkacttime", -120, 90000, 0); /* Enforce a min max including zero */ val = (char *) ast_variable_retrieve(cfg, this, "lnkactmacro"); - rpt_vars[n].p.lnkactmacro = val; + rpt_vars[n].p.lnkactmacro = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg, this, "lnkacttimerwarn"); - rpt_vars[n].p.lnkacttimerwarn = val; + rpt_vars[n].p.lnkacttimerwarn = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg, this, "nolocallinkct"); rpt_vars[n].p.nolocallinkct = ast_true(val); rpt_vars[n].p.rptinacttime = retrieve_astcfgint(&rpt_vars[n],this, "rptinacttime", -120, 90000, 0); /* Enforce a min max including zero */ val = (char *) ast_variable_retrieve(cfg, this, "rptinactmacro"); - rpt_vars[n].p.rptinactmacro = val; + rpt_vars[n].p.rptinactmacro = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg, this, "nounkeyct"); rpt_vars[n].p.nounkeyct = ast_true(val); val = (char *) ast_variable_retrieve(cfg, this, "holdofftelem"); @@ -6608,9 +6697,9 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis else rpt_vars[n].p.litztime = DEFAULT_LITZ_TIME; val = (char *) ast_variable_retrieve(cfg,this,"litzchar"); if (!val) val = DEFAULT_LITZ_CHAR; - rpt_vars[n].p.litzchar = val; + rpt_vars[n].p.litzchar = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"litzcmd"); - rpt_vars[n].p.litzcmd = val; + rpt_vars[n].p.litzcmd = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"itxctcss"); if (val) rpt_vars[n].p.itxctcss = ast_true(val); val = (char *) ast_variable_retrieve(cfg,this,"gpsfeet"); @@ -6625,16 +6714,16 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis if (val) rpt_vars[n].p.dtmfkey = ast_true(val); val = (char *) ast_variable_retrieve(cfg,this,"dtmfkeys"); if (!val) val = DTMFKEYS; - rpt_vars[n].p.dtmfkeys = val; + rpt_vars[n].p.dtmfkeys = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"outstreamcmd"); - rpt_vars[n].p.outstreamcmd = val; + rpt_vars[n].p.outstreamcmd = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"eloutbound"); - rpt_vars[n].p.eloutbound = val; + rpt_vars[n].p.eloutbound = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"events"); if (!val) val = "events"; - rpt_vars[n].p.events = val; + rpt_vars[n].p.events = ast_strdup(val); val = (char *) ast_variable_retrieve(cfg,this,"timezone"); - rpt_vars[n].p.timezone = val; + rpt_vars[n].p.timezone = ast_strdup(val); //#ifdef __RPT_NOTCH if(rpt_globals.notchfilter) @@ -6736,15 +6825,15 @@ static char *cs_keywords[] = {"rptena","rptdis","apena","apdis","lnkena","lnkdis else rpt_vars[n].p.sleeptime = SLEEPTIME; /* retrieve the stanza name for the control states if there is one */ val = (char *) ast_variable_retrieve(cfg,this,"controlstates"); - rpt_vars[n].p.csstanzaname = val; + rpt_vars[n].p.csstanzaname = ast_strdup(val); /* retrieve the stanza name for the scheduler if there is one */ val = (char *) ast_variable_retrieve(cfg,this,"scheduler"); - rpt_vars[n].p.skedstanzaname = val; + rpt_vars[n].p.skedstanzaname = ast_strdup(val); /* retrieve the stanza name for the txlimits */ val = (char *) ast_variable_retrieve(cfg,this,"txlimits"); - rpt_vars[n].p.txlimitsstanzaname = val; + rpt_vars[n].p.txlimitsstanzaname = ast_strdup(val); rpt_vars[n].p.iospeed = B9600; if (!strcasecmp(rpt_vars[n].remoterig,remote_rig_ft950)) @@ -11326,6 +11415,7 @@ struct sched_param rpttele_sched; imdone = 1; break; case SAYIP_LOCAL: + res = telem_lookup(myrpt, mychannel, myrpt->name, "sayip"); if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break; if(!ast_lookup_iface((char *)rpt_globals.net_if, &ia)) { @@ -23178,7 +23268,7 @@ static void cfg_globals_init(struct ast_config *cfg) if(p) strncpy(rpt_globals.net_if,p,49); p = (char *) ast_variable_retrieve(cfg,"globals","remoteip_url"); /* set global remoteip_url */ - if(p) rpt_globals.remoteip_url = p; + if(p) rpt_globals.remoteip_url = ast_strdup(p); p = (char *) ast_variable_retrieve(cfg,"globals","statpost"); /* set global statpost */ if(p) @@ -23195,7 +23285,7 @@ static void cfg_globals_init(struct ast_config *cfg) if(rpt_globals.statpost==2) { p = (char *) ast_variable_retrieve(cfg,"globals","statpost_url"); /* set global statpost_url */ - if(p) rpt_globals.statpost_url = p; + if(p) rpt_globals.statpost_url = ast_strdup(p); else { rpt_globals.statpost=1; ast_log(LOG_ERROR,"Global statpost is set to 2, global statposr_url is missing or blank. Defaulting global statpost to 1 (AllStarLink)\n\n"); From e2692c72323d03ac4563bee8ea93e4190e21f98b Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Sat, 16 May 2020 22:32:09 -0700 Subject: [PATCH 37/39] Added System ID. Fixed bootstrap envrionment adding in dependency check for libblkid. You will need to rebuild your configure by running ./bootstrap.sh. Then re-run ./configure with your normal args. app_rpt.c now uses /etc/machine-id and the UUID of the root partition to generate a System ID - SHA256 hash of these two strings together. libblkid is used to compute part of this. Moved autoconf files into autoconf directory. Fixed sed/gsed test using snippet from current asterisk autoconf files. Signed-off-by: Stacy Olivas --- asterisk/AUTHORS.md | 121 +++++++++++++ asterisk/CHANGELOG.md | 230 ++++++++++++++++++++++++ asterisk/CONTRIBUTORS.md | 11 ++ asterisk/apps/app_rpt.c | 122 +++++++++++-- asterisk/{ => autoconf}/acinclude.m4 | 5 +- asterisk/autoconf/aclocal.m4 | 15 ++ asterisk/build_tools/menuselect-deps.in | 1 + asterisk/configure.ac | 11 +- asterisk/makeopts.in | 3 + 9 files changed, 496 insertions(+), 23 deletions(-) create mode 100644 asterisk/AUTHORS.md create mode 100644 asterisk/CHANGELOG.md create mode 100644 asterisk/CONTRIBUTORS.md rename asterisk/{ => autoconf}/acinclude.m4 (99%) create mode 100644 asterisk/autoconf/aclocal.m4 diff --git a/asterisk/AUTHORS.md b/asterisk/AUTHORS.md new file mode 100644 index 00000000..1e7f641b --- /dev/null +++ b/asterisk/AUTHORS.md @@ -0,0 +1,121 @@ +This is the official list of AllStar authors for copyright/atttribution purposes. + +This file is distinct from the CONTRIBUTORS files. +See the latter for an explanation. + +Names should be added to this file under the respective file/module as (note email is optional here. If it +is not listed then it should be included in the header of the corresponding file.) + +> Stacy Olivas, KG7QIN - Updated app_rpt.c to version 0.340. See CHANGESLOG.md for information on changes + +---- + +AllStar is based upon the Asterisk Open Source PBX software by Digium. + +ASL 1.01 and later are based upon Asterisk 1.4.23 which has the following license/copyright: + +``` + /* + * Asterisk -- An open source telephony toolkit. + * + * Copyright (C) 1999 - 2005, Digium, Inc. + * + * Mark Spencer + * + * See http://www.asterisk.org for more information about + * the Asterisk project. Please do not directly contact + * any of the maintainers of this project for assistance; + * the project provides a web site, mailing lists and IRC + * channels for your use. + * + * This program is free software, distributed under the terms of + * the GNU General Public License Version 2. See the LICENSE file + * at the top of the source tree. + */ +``` + +Note: AllStarLink, Inc was assigned Jim Dixon, WB6NIL's copyright by his remaining heir. + +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +Here is an inevitably incomplete list of AUTHORS for the various pieces of AllStar software +that have submitted patches or code that has been included in the listed modules. + +By virtue of the GNU General Public License (GPL) they hold copyrights to the code +that has been added to the modules listed unless otherwise indicated. + +In many case the individuals listed have made too numerous of contributions to list here. +Refer to the change log on github to find a detailed listing of their contributions. + +Additionally, you may refer to the file CHANGES for a list of changes that have been made +between each version of app_rpt.c released. + +---- + +#### app_rpt.c: + + - Jim Dixon, WB6NIL - Original author + - Steve Rodgers, WA6ZFT - Major contributor to program development + - Steve Heinke, W9SH - Major contributor to program development + - Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release + - Adam Paulm KC1KCC - Ported ducking code over from XIPAR release of app_rpt.c + - Stacy Olivas, KG7QIN - bumped version to 0.340. See CHANGELOG.md for complete list for changes. + +#### app_gps.c: + + - Jim Dixon, WB6NIL - Original author + +#### chan_beagle.c: + + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Major fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Major fixes/updates to software for DIAL and ASL 1.01 release + +#### chan_echolink.c: + + - Scott Lawson, KI4LKF - Original author + +#### chan_pi.c: + + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + +#### chan_simpleusb.c: + + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + - Stacy Olivas, KG7QIN - CM119B fixes, options to override detected (force) chip type + +#### chan_tlb.c: + + - Scott Lawson, KI4LKF - Original author (copyright) + - Jim Dixon, Wb6NIL - Author credits in source + +#### chan_usbradio.c: + + - Jim Dixon, WB6NIL - Original author + - Steve Henke, W9SH - Major contributions and included xpmr routines from XELATEC, LLC's Xipar release. + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + - Stacy Olivas, KG7QIN - CM119B fixes + +#### chan_usrp.c: + + - Max Parke, KA1RBI - Original author (copyright) + - Jim Dixon, WB6NIL - Author credits in source + - Michael Zingman, N4IRR - Added text support + +#### chan_voter.c: + + - Jim Dixon, WB6NIL - Original author + - Steve Zingman, N4IRS - Fixes/updates to software for DIAL and ASL 1.01 release + - Michael Zingman, N4IRR - Fixes/updates to software for DIAL and ASL 1.01 release + +#### asl-menu + + - Nathan Hardman, N8THN - Original author + + diff --git a/asterisk/CHANGELOG.md b/asterisk/CHANGELOG.md new file mode 100644 index 00000000..27812c79 --- /dev/null +++ b/asterisk/CHANGELOG.md @@ -0,0 +1,230 @@ +# CHANGELOG.md + +The following file will serve as a record to explain the changes that have been made to the app_rpt and related +programs for the AllStar software. + +Released versions will correspond to ASL releases (e.g, ASL 1.02, etc.) and be lised below their respective sections. + +Any changes/updates that hapen after a release will be listed under the Unreleased section. Once a new release is made and those changes are merged in, they will be moved under the corresponding release header. + +## Unreleased + +No unrelesaed changes at this time. + +##### Housekeeping +##### Internal code additions/modifications +##### Config file additions/modifications + + +## Released + +### ASL 1.02 - 05/11/2020 + +#### app_rpt - v0.340 - 05/11/2020 + +##### Housekeeping + +Cleaned up compile time warnings for app_rpt.c These warnings have been around for a very long time and needed to be fixed. + + +##### Asterisk CLI additions/modifications + +1. Added rpt utils command with the following functions: + + a. sayip - will use a version of LOCALPLAY that says the local IP address for the interface specified (if found). By default will play on all nodes if no is specified. Use 0 to turn off audio playback and just print IP address only. + + b. pubip - like sayip but will query a remote site (default: ifconfig.me/ip) to find out public IP address. By default will play on all nodes if no is specified. Use 0 to turn off audio playback and just print IP address only. + +2. Added rpt globals command with the following functions: + + a. show - shows the settings from [globals] from rpt.conf stanza + + b. set - allows setting of items from [globals] from rpt.conf stanza + + * maxlinks - change between 32 and 256. If conslock > 0 cannot be set. + * notchfilter - 0 = off/ 1=on + * mdcencode - 0=off/ 1=on + * mdcdecode - 0=off/ 1=on + * localchannels - 0=off/ 1=on. If conslock >0 cannot be set. + * fakeserial - 0=off/ 1=on + * noremotemdc - 0=off/ 1=on + * nocdrpost - 0=off/ 1=on. If conslost >0 cannot be set. + * mdcsay - 0=off/ 1=on + * linkclip - 0=off/ 1=on + * zoption - 0=off/ 1=on + * alttune - 0=off/ 1=on + * linkdtmf - 0=off/ 1=on + * setic706ctcss - 0=off/ 1=on + * dtmftimeout - 3 to 100 + + c. list - displays a listing of variables that can be manipulated using set + + +##### Internal code additions/modifications + +1. Added libcurl support. Basic routines from func_curl.c for this feature. + +2. Curl user agent will include app_rpt vX.Y if version # present in tdesc var. It will also include the Linux version from /proc/version + asterisk-libcurl-agent/1.0 (app_rpt v0.340)(Linux version 4.9.0-8-amd64) or + asterisk-libcurl-agent/1.0 (-)(Linux version 4.9.0-8-amd64) if version isn’t present in tdesc. + +3. Added ALPHANUM_LOCAL to rpt telemetry state machine as a function. ARB_ALPHA says (plays) alpha numeric strings over both local and remote audio on nodes (as well as sending telemetry data). ALPHANUM_LOCAL will say (play) whatever is passed just locally on nodes similar to what LOCALPLAY does without passing any telemetry. Used by rpt utils [sayip|pubip] functions. + +4. Replaced conditional compilation of certain code with run time configurable ability to change or turn on/off options/code in app_rpt. Configured via [globals] section in rpt.conf and using rpt globals on CLI. + + a. maxlinks - change between 32 and 256. Changes number of linked nodes enumerated/reported in telemetry status. If conslock > 0 cannot be changed (set) via CLI. + + b. notchfilter - 0 = off/ 1=on. Turns notch filter on/off. + + c. mdcencode - 0=off/ 1=on. Turns mdeencode on/off. + + d. mdcdecode - 0=off/ 1=on. Turns mdedecode on/off. + + e. localchannels - 0=off/ 1=on. If conslock >0 cannot be changed (set) via CLI. Turns the local channel type on/off. + + f. fakeserial - 0=off/ 1=on. Turns fakeserial (prints to console) on/off. + + + g. noremotemdc - 0=off/ 1=on. Turns on/off remotemdc code. + + h. nocdrpost - 0=off/ 1=on. If conslock >0 cannot be changed (set) via CLI.. Turns CDR posting on/off. + + i. mdcsay - 0=off/ 1=on. Turns mdcsay on/off. + + j. linkclip - 0=off/ 1=on. Turns linkclip on/off. + + k. zoption - 0=off/ 1=on. Enabled/disabled Z option in app_rpt. + + l. alttune - 0=off/ 1=on. Turns “alternate tune” function on/off. + + m. linkdtmf - 0=off/ 1=on. Turns linkdtmf on/off. + + n. setic706ctcss - 0=off/ 1=on. Turns CTCSS code for IC706 on/off. + + o. dtmftimeout - 3 to ????. Changes DTMF timeout. + +5. Changed how statpost reporting works. + + a. Can be globally disabled for all nodes (statpost=0 in globals) + + b. Can be set to use ASL stat server only (statpost=1 in globals - default) + + c. Can be use to use custom statpost server URL (statpost=2 and statpost_url is set in globals) + + d. Can be diabled for a single node (statpost_override=0 in node stanza) + + e. Can be disabled globally (statpost=0 in globals) and enabled per node with statpost_override=1, statpost_custom=1, and statpost_url set in each node’s stanza. + + f. By default does not report nodes under 2000 (private nodes) unless three conditions are met (statpost_url for node, statpost_override=128, statpost_custom=2 -- this is a per node setting in the node stanzas) + +6. Porting of DVSWITCH telemetry ducking port done by N4IRR and KC1KCC from the now defunct XiPAR release. (https://github.com/AllStarLink/Asterisk/pull/53) + +7. Added three additional status commands for IP address reporting using DTMF tones over the air. + + a. status,20 = Say remote (public) IP (global) + + b. status,21 = Say remote (public) IP (local only) + + c. status,22 = Say local network interface IP (local only) + +8. Replaced dependency on WGET in statpost with libcurl. This eliminates the need to constantly fork a new copy of wget for each and every stats update. + +9. Fixed old issue with how PLAYBACK and LOCALPLAY work. Per the app_rpt.c code, LOCALPLAY is supposed to play audio locally while PLAYBACK plays it globally. This was swapped, and use of LOCALPLAY ended up playing back audio globally. LOCALPLAY is once again only for playing audio locally, while PLAYBACK plays it globally. + +10. Set alignment of structures used in app_rpt.c to improve performance and memory utilization. + + +##### Config file additions/modifications + +* /etc/asterisk/rpt.conf additions/changes/modifications + +1. Added [globals] stanza. + +2. Added the following config items to the [globals] stanza: + + a. conslock - console lock for updating . 0=off (default), 1=lock maxlinks, nocdrpost, and localchannels, 2=lock all + + b. maxlinks - changes MAXSTATLINKS. Default is 32. Max is 256. + + c. notchfilter - 0 = off/ 1=on. Turns notch filter on/off. Default=0 + + d. mdcencode - 0=off/ 1=on. Turns mdeencode on/off. Default=0 + + e. mdcdecode - 0=off/ 1=on. Turns mdedecode on/off. Default=0 + + f. localchannels - 0=off/ 1=on. If conslock >0 cannot be set. Turns the local channel type on/off. Default=1 + + g. fakeserial - 0=off/ 1=on. Turns fakeserial (prints to console) on/off. Default=0 + + h. noremotemdc - 0=off/ 1=on. Turns on/off remotemdc code. Don't notify MDC1200 on remote bases. Default=1 + + i. nocdrpost - 0=off/ 1=on. If conslost >0 cannot be set.. Turns CDR posting on/off. Default=1 + + j. mdcsay - 0=off/ 1=on. Turns mdcsay on/off. MDC say when doing CT off - only works when MDC decode is enabled. Default=0 + + k. linkclip - 0=off/ 1=on. Turns linkclip on/off. Code that causes clipping of first syllable on link. Default=0 + + l. zoption - 0=off/ 1=on. Enabled/disabled Z option in app_rpt. Default=0 + + m. alttune - 0=off/ 1=on. Turns “alternate tune” function on/off. Default=0 + + n. linkdtmf - 0=off/ 1=on. Turns linkdtmf on/off. Extra link DTMF code. Default=0 + + o. setic706ctcss - 0=off/ 1=on. Turns CTCSS code for IC706 on/off. Set IC706 CTCSS TX/RX Frequencies. Default=0 + + p. dtmftimeout - 3 to ????. Changes DTMF timeout. Default=3 + + q. remoteip_url - URL for fetching remote IP in rpt utils pubip (default: http://ifconfig.me/ip) + + r. statpost_url - Global statpost URL (default http://stats.allstarlink.org/uhandler.php) + + s. statpost - Global control us turning update of stats via statpost_url on/off. 0=off, 1=Use AllStarLink (uses default and ignores statpost_url change), 2=use custom (statpost_url must be set) + +3. The following are changes to the individual node stanza configs: + + a. Removed statpost_program. Deprecated and removed due to use of libcurl now for stats reporting and [globals] section config options. + + b. Individual node reporting can be disabled by setting statpost_override=0. + + c. When global statpost reporting is disabled, individual node reporting can be enabled by setting statpost_override=1. + + d. Changed individual node use of statpost_url. All nodes will use the statpost_url defined in the [globals] section uless statpost_custom is set to 1. Then the individual nodes can specify their own unique statport_url for use. + + e. By default, nodes below 2000 (private nodes) will no longer be able to send updates to the statpost_url. This behavior can be overridden on a per node basis by setting statpost_custom=2,statpost_override=128, and specifying a statpost_url. + + +#### chan_simpleusb.c - 05/11/2020 + +##### Housekeeping + +Removed exta mutex unlock from code. + + +##### Internal code additions/modifications + +Fixed audio support for CM119B chips. + + +##### Config file additions/modifications + +1. Added ctype option for device selection of audio. 0=auto; 1=C108; 2=C108AH; 3=N1KDO; 4=C119/C119A; 5=C119B. + +2. Added forceinit option to force USB device to attemp initilization. 0=off, 1=on. Must be used with ctype! + + +#### chan_usbradio.c - 05/11/2020 + +##### Housekeeping + +N/A + + +##### Internal code additions/modifications + +Fixed support for audio with CM119B. + + +##### Config file additions/modifications + +N/A + diff --git a/asterisk/CONTRIBUTORS.md b/asterisk/CONTRIBUTORS.md new file mode 100644 index 00000000..b76879b1 --- /dev/null +++ b/asterisk/CONTRIBUTORS.md @@ -0,0 +1,11 @@ +AllStar Contributors (sorted alphabetically) +============================================ +#### The following is a list of known contributors to the app_rpt programs that make up the AllStar software. + +#### This list is very likley incomplete. +---- +See AUTHORS for listing of known authors/copyright holders +---- + +**[Full contributors list][https://github.com/AllStarLink/Asterisk/graphs/contributors]** + diff --git a/asterisk/apps/app_rpt.c b/asterisk/apps/app_rpt.c index a1a6db49..5e7d7134 100644 --- a/asterisk/apps/app_rpt.c +++ b/asterisk/apps/app_rpt.c @@ -315,6 +315,8 @@ /*** MODULEINFO tonezone curl + blkid + ssl yes ***/ @@ -608,6 +610,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision 200511") #include #include #include +#include +#include +#include #include "asterisk/utils.h" #include "asterisk/lock.h" @@ -1519,11 +1524,15 @@ struct sysinfo_pvt { char vers[200]; char cvers[40]; char myip[50]; + char sysid[66]; + char ssysid[26]; } __attribute__((aligned)); static struct sysinfo_pvt sysinfo = { .vers = "Unknown", - .cvers = "Unknown" + .cvers = "Unknown", + .sysid = "00000000000000000000000000000000000000000000000000000000000000000", + .ssysid = "000000000000-000000000000", }; /* Declarations for everyting else */ @@ -2033,7 +2042,7 @@ AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanu static int curl_internal(struct MemoryStruct *chunk, char *url, char *post) { const char crl_agnt[] = "asterisk-libcurl-agent/1.0"; - char curl_agent_string[50]=""; + char curl_agent_string[150]=""; int ret, vmajor, vminor; char *skzy; CURL **curl; @@ -2047,10 +2056,10 @@ static int curl_internal(struct MemoryStruct *chunk, char *url, char *post) return -1; skzy = strstr(tdesc, "version"); - sprintf(curl_agent_string, "%s (-; Linux %s)",crl_agnt,sysinfo.cvers); + sprintf(curl_agent_string, "%s (-; Linux %s)(ID:%s)",crl_agnt,sysinfo.cvers,sysinfo.ssysid); if(skzy) if(sscanf(skzy, "version %d.%d", &vmajor, &vminor) == 2) - sprintf(curl_agent_string, "%s (app_rpt v%d.%d; Linux %s)",crl_agnt,vmajor,vminor,sysinfo.cvers); + sprintf(curl_agent_string, "%s (app_rpt v%d.%d; Linux %s)(ID:%s)",crl_agnt,vmajor,vminor,sysinfo.cvers,sysinfo.ssysid); curl_easy_setopt(*curl, CURLOPT_NOSIGNAL, 1); @@ -5835,6 +5844,7 @@ time_t now; unsigned int seq; struct MemoryStruct chunk = { NULL, 0 }; + switch(rpt_globals.statpost) { case 0: // Globally we are disabled, how about on a per node basis? switch(myrpt->p.statpost_override) { @@ -5858,6 +5868,7 @@ struct MemoryStruct chunk = { NULL, 0 }; ast_copy_string(astr,ASL_STATPOST_URL,299); success=1; break; + } break; case 32: // Node's statpost_override was never set, log that to the console and don't report @@ -7080,23 +7091,78 @@ static const char *public_ip( char *ip) static void get_sys_info (void) { + + int i = 0; + char tmp1[200]; + char tmp2[200]; + char buf[65]=""; + const char *devname = NULL, *uuid = NULL; + unsigned char hash[SHA256_DIGEST_LENGTH]; + SHA256_CTX sha256; + + struct mntent *e; + blkid_probe mp; FILE *fp; - char tmp[200]; - char myip[50]=""; + fp = fopen("/proc/version", "r"); - if(!fp) return; - if((!fgets(tmp,sizeof(tmp)-1, fp))) - { + if(fp) { + if((fgets(tmp1,sizeof(tmp1)-1, fp))) { + strncpy(sysinfo.vers,tmp1,sizeof(sysinfo.vers)-1); + if(sscanf(tmp1,"Linux version %s", sysinfo.cvers) !=1) + strcpy(sysinfo.cvers,"Unknown"); + } fclose(fp); - return; + } else { + strcpy(sysinfo.vers, "Unknown"); + strcpy(sysinfo.cvers, "Unknown"); } - strncpy(sysinfo.vers,tmp,sizeof(sysinfo.vers)-1); - if(sscanf(tmp,"Linux version %s", sysinfo.cvers) !=1) - { - strcpy(sysinfo.cvers,"Unknown"); + + public_ip(buf); + strncpy(sysinfo.myip,buf,20); + + fp = fopen("/etc/machine-id", "r"); + if(fp) { + if((!fgets(tmp1,sizeof(tmp1)-1, fp))) { + strcpy(tmp1,"---------------------------------"); + } + fclose(fp); + } else { + strcpy(tmp1,"---------------------------------"); } - public_ip(myip); - strncpy(sysinfo.myip,myip,20); + + FILE *fstab = setmntent("/etc/mtab", "r"); + + while ((e = getmntent(fstab))) { + if(strcmp("/", e->mnt_dir) == 0) { + devname = e->mnt_fsname; + break; + } + } + endmntent(fstab); + + mp = blkid_new_probe_from_filename(devname); + if(mp) { + blkid_do_probe(mp); + blkid_probe_lookup_value(mp, "UUID", &uuid, NULL); + } else { + uuid = ast_strdup("00000000-0000-0000-0000-000000000000"); + } + + strcpy(tmp2,eatwhite(tmp1)); + strcpy(tmp1,eatwhite(ast_strdup(uuid))); + + SHA256_Init(&sha256); + SHA256_Update(&sha256, tmp2, strlen(tmp1)); + SHA256_Final(hash, &sha256); + + for(i = 0; i < SHA256_DIGEST_LENGTH; i++) { + sprintf(buf+(i*2), "%02x", hash[i]); + } + + buf[64] = 0; + strncpy(sysinfo.sysid, buf, 65); + sprintf(sysinfo.ssysid, "%.12s-%s", buf, &(buf[52])); + blkid_free_probe(mp); return; } @@ -7256,6 +7322,8 @@ static void rpt_show_globals(int fd, int i) " Statpost : %d\n" " Statpost URL : %s\n" " Remote IP URL : %s\n" + "\n" + " System ID : %s\n" " ----------------------------\n\n\n", rpt_globals.conslock, MAX_STAT_LINKS, @@ -7275,7 +7343,8 @@ static void rpt_show_globals(int fd, int i) DTMF_TIMEOUT, rpt_globals.statpost, rpt_globals.statpost_url, - rpt_globals.remoteip_url + rpt_globals.remoteip_url, + sysinfo.ssysid ); break; case 1: @@ -7514,6 +7583,18 @@ static int rpt_do_globals(int fd, int argc, char *argv[]) i = 1; rpt_globals.statpost=i; ast_log(LOG_NOTICE, "Global statpost: %d\n", rpt_globals.statpost); + switch (i) { + case 1: + ast_log(LOG_NOTICE,"Using ASL statpost URL: %s\n", ASL_STATPOST_URL); + break; + case 2: + ast_log(LOG_NOTICE,"Using custom statpost URL: %s\n", rpt_globals.statpost_url); + break; + default: + rpt_globals.statpost=0; + ast_log(LOG_NOTICE,"Statpost disabled\n"); + break; + } return RESULT_SUCCESS; } @@ -11399,7 +11480,8 @@ struct sched_param rpttele_sched; case REMIP_LOCAL: if (wait_interval(myrpt, DLY_TELEM, mychannel) == -1) break; res = telem_lookup(myrpt, mychannel, myrpt->name, "remip"); - if(strlen(sysinfo.myip)>0) { + strncpy(sysinfo.myip,myip,20); + if(strlen(myip)>0) { ast_log(LOG_NOTICE, "[*] Public IP address is %s\n\n", sysinfo.myip); saynode(myrpt,mychannel,myrpt->name); sayfile(mychannel, "system"); @@ -23288,6 +23370,7 @@ static void cfg_globals_init(struct ast_config *cfg) if(p) rpt_globals.statpost_url = ast_strdup(p); else { rpt_globals.statpost=1; + strcpy(rpt_globals.statpost_url,ASL_STATPOST_URL); ast_log(LOG_ERROR,"Global statpost is set to 2, global statposr_url is missing or blank. Defaulting global statpost to 1 (AllStarLink)\n\n"); } } @@ -23438,6 +23521,8 @@ struct sched_param rptmaster_sched; ast_verbose("\n>>>---> Initializing %s\n\n", tdesc); + get_sys_info(); + /* * If there are daq devices present, open and initialize them */ @@ -23448,7 +23533,6 @@ struct sched_param rptmaster_sched; */ cfg_globals_init(cfg); - get_sys_info(); while((this = ast_category_browse(cfg,this)) != NULL) { diff --git a/asterisk/acinclude.m4 b/asterisk/autoconf/acinclude.m4 similarity index 99% rename from asterisk/acinclude.m4 rename to asterisk/autoconf/acinclude.m4 index 555be179..df6f0134 100644 --- a/asterisk/acinclude.m4 +++ b/asterisk/autoconf/acinclude.m4 @@ -769,7 +769,8 @@ m4_ifndef([AST_PROG_EGREP], [AC_DEFUN([AST_PROG_EGREP], AC_SUBST([EGREP]) ])]) # AST_PROG_EGREP -# AST_PROG_SED + +AST_PROG_SED # ----------- # Check for a fully functional sed program that truncates # as few characters as possible. Prefer GNU sed if found. @@ -783,7 +784,7 @@ AC_DEFUN([AST_PROG_SED], done echo "$ac_script" | sed 99q >conftest.sed $as_unset ac_script || ac_script= - _AC_PATH_PROG_FEATURE_CHECK(SED, [sed gsed], + ifdef([_AC_PATH_PROGS_FEATURE_CHECK], [_AC_PATH_PROGS_FEATURE_CHECK], [_AC_PATH_PROG_FEATURE_CHECK])(SED, [sed gsed], [_AC_FEATURE_CHECK_LENGTH([ac_path_SED], [ac_cv_path_SED], ["$ac_path_SED" -f conftest.sed])])]) SED="$ac_cv_path_SED" diff --git a/asterisk/autoconf/aclocal.m4 b/asterisk/autoconf/aclocal.m4 new file mode 100644 index 00000000..56e944be --- /dev/null +++ b/asterisk/autoconf/aclocal.m4 @@ -0,0 +1,15 @@ +# generated automatically by aclocal 1.15 -*- Autoconf -*- + +# Copyright (C) 1996-2014 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_include([acinclude.m4]) diff --git a/asterisk/build_tools/menuselect-deps.in b/asterisk/build_tools/menuselect-deps.in index 2613ea90..15baadd2 100644 --- a/asterisk/build_tools/menuselect-deps.in +++ b/asterisk/build_tools/menuselect-deps.in @@ -1,5 +1,6 @@ ASOUND=@PBX_ALSA@ CURL=@PBX_CURL@ +BLKID=@PBX_BLKID@ DAHDI=@PBX_DAHDI@ DAHDI_TRANSCODE=@PBX_DAHDI_TRANSCODE@ FREETDS=@PBX_FREETDS@ diff --git a/asterisk/configure.ac b/asterisk/configure.ac index 0d9d0b15..10f455ff 100644 --- a/asterisk/configure.ac +++ b/asterisk/configure.ac @@ -215,6 +215,7 @@ AST_EXT_LIB_SETUP([VORBIS], [Vorbis], [vorbis]) AST_EXT_LIB_SETUP([VPB], [Voicetronix API], [vpb]) AST_EXT_LIB_SETUP([ZLIB], [zlib], [z]) AST_EXT_LIB_SETUP([ZAPTEL], [Zaptel], [zaptel]) +AST_EXT_LIB_SETUP([BLKID], [Blkid], [blkid]) # check for basic system features and functionality before # checking for package libraries @@ -223,7 +224,7 @@ AC_FUNC_ALLOCA AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h]) +AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h float.h mntent.h sys/vfs.h]) AC_SYS_LARGEFILE @@ -265,7 +266,7 @@ AC_FUNC_STRNLEN AC_FUNC_STRTOD AC_FUNC_UTIME_NULL AC_FUNC_VPRINTF -AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf]) +AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir mkfifo munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strpbrk strtoul strtoq unsetenv utime vasprintf]) # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c AC_SEARCH_LIBS(gethostbyname_r, [socket nsl]) @@ -1319,6 +1320,12 @@ AC_SUBST(PBX_SPEEX_PREPROCESS) AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h]) +AST_EXT_LIB_CHECK([BLKID], [blkid], [blkid_new_probe_from_filename], [blkid/blkid.h]) +if test "${PBX_BLKID}" = 1; then + PBX_BLKID=1 + AC_DEFINE([HAVE_BLKID], 1, [Define if your system has the blkid libraries.]) +fi + AST_EXT_LIB_CHECK([OPENSSL], [ssl], [SSL_connect], [openssl/ssl.h], [-lcrypto]) if test "$PBX_OPENSSL" = "1"; then diff --git a/asterisk/makeopts.in b/asterisk/makeopts.in index eb54b59e..f19d90c7 100644 --- a/asterisk/makeopts.in +++ b/asterisk/makeopts.in @@ -70,6 +70,9 @@ ASOUND_LIB=@ALSA_LIB@ CURL_INCLUDE=@CURL_INCLUDE@ CURL_LIB=@CURL_LIB@ +BLKID_INCLUDE=@BLKID_INCLUDE@ +BLKID_LIB=@BLKID_LIB@ + CURSES_INCLUDE=@CURSES_INCLUDE@ CURSES_LIB=@CURSES_LIB@ CURSES_DIR=@CURSES_DIR@ From 39373721a2e32bb484b8df2b6867a43959def3bf Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Sat, 16 May 2020 22:47:58 -0700 Subject: [PATCH 38/39] Forgot to include updated bootstrap.sh file. Signed-off-by: Stacy Olivas --- asterisk/bootstrap.sh | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/asterisk/bootstrap.sh b/asterisk/bootstrap.sh index d3d51ee7..3843c9a9 100755 --- a/asterisk/bootstrap.sh +++ b/asterisk/bootstrap.sh @@ -9,32 +9,27 @@ check_for_app() { fi } -# On FreeBSD, multiple autoconf/automake versions have different names. -# On linux, envitonment variables tell which one to use. +# OpenBSD: pkg_add autoconf%2.63 automake%1.9 metaauto +test -n "$AUTOCONF_VERSION" || export AUTOCONF_VERSION=2.63 +test -n "$AUTOMAKE_VERSION" || export AUTOMAKE_VERSION=1.9 -uname -s | grep -q FreeBSD -if [ $? = 0 ] ; then # FreeBSD case - MY_AC_VER=259 - MY_AM_VER=19 -else # linux case - MY_AC_VER= - MY_AM_VER= - AUTOCONF_VERSION=2.60 - AUTOMAKE_VERSION=1.9 - export AUTOCONF_VERSION - export AUTOMAKE_VERSION -fi +check_for_app autoconf +check_for_app autoheader +check_for_app automake +check_for_app aclocal -check_for_app autoconf${MY_AC_VER} -check_for_app autoheader${MY_AC_VER} -check_for_app automake${MY_AM_VER} -check_for_app aclocal${MY_AM_VER} +gen_configure() { + echo "Generating the configure script for $1 ..." + shift -echo "Generating the configure script ..." + aclocal -I "$@" + autoconf + autoheader + automake --add-missing --copy 2>/dev/null +} -aclocal${MY_AM_VER} 2>/dev/null -autoconf${MY_AC_VER} -autoheader${MY_AC_VER} -automake${MY_AM_VER} --add-missing --copy 2>/dev/null +gen_configure "Asterisk" autoconf `find third-party -path '*/*/*' -prune -o -type d -print | xargs -I {} echo -I {}` +cd menuselect +gen_configure "menuselect" ../autoconf exit 0 From c288ec0891b7a494733efcd92d131aa23cb804dc Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Sat, 16 May 2020 23:04:35 -0700 Subject: [PATCH 39/39] You will need to run ./bootstrap.sh now to rebuild autoconf envrionment and have the required updated configure script to build. Signed-off-by: Stacy Olivas --- asterisk/configure | 33025 ------------------------------------------- 1 file changed, 33025 deletions(-) delete mode 100755 asterisk/configure diff --git a/asterisk/configure b/asterisk/configure deleted file mode 100755 index 385caa14..00000000 --- a/asterisk/configure +++ /dev/null @@ -1,33025 +0,0 @@ -#! /bin/sh -# From configure.ac Revision: 141678 . -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for asterisk 1.4. -# -# Report bugs to . -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -# -# "Asterisk" -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME='asterisk' -PACKAGE_TARNAME='asterisk' -PACKAGE_VERSION='1.4' -PACKAGE_STRING='asterisk 1.4' -PACKAGE_BUGREPORT='www.asterisk.org' - -ac_unique_file="main/asterisk.c" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_header_list= -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -CPP -GREP -EGREP -BUILD_PLATFORM -BUILD_CPU -BUILD_VENDOR -BUILD_OS -HOST_PLATFORM -HOST_CPU -HOST_VENDOR -HOST_OS -OSARCH -UNAME -PBX_OSREV -CXX -LD -RANLIB -CXXFLAGS -ac_ct_CXX -CXXCPP -SED -AWK -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -LN_S -GNU_MAKE -STRIP -AR -GNU_LD -FIND -COMPRESS -BASENAME -ID -DIRNAME -LN -DOT -WGET -FETCH -DOWNLOAD -SOXMIX -acx_pthread_config -PTHREAD_CC -PTHREAD_LIBS -PTHREAD_CFLAGS -AST_DEVMODE -ALSA_LIB -ALSA_INCLUDE -ALSA_DIR -PBX_ALSA -CURL_LIB -CURL_INCLUDE -CURL_DIR -PBX_CURL -CAP_LIB -CAP_INCLUDE -CAP_DIR -PBX_CAP -CURSES_LIB -CURSES_INCLUDE -CURSES_DIR -PBX_CURSES -DAHDI_LIB -DAHDI_INCLUDE -DAHDI_DIR -PBX_DAHDI -GNUTLS_LIB -GNUTLS_INCLUDE -GNUTLS_DIR -PBX_GNUTLS -GSM_LIB -GSM_INCLUDE -GSM_DIR -PBX_GSM -IKSEMEL_LIB -IKSEMEL_INCLUDE -IKSEMEL_DIR -PBX_IKSEMEL -IMAP_TK_LIB -IMAP_TK_INCLUDE -IMAP_TK_DIR -PBX_IMAP_TK -ISDNNET_LIB -ISDNNET_INCLUDE -ISDNNET_DIR -PBX_ISDNNET -KDE_LIB -KDE_INCLUDE -KDE_DIR -PBX_KDE -LTDL_LIB -LTDL_INCLUDE -LTDL_DIR -PBX_LTDL -MISDN_LIB -MISDN_INCLUDE -MISDN_DIR -PBX_MISDN -NBS_LIB -NBS_INCLUDE -NBS_DIR -PBX_NBS -NCURSES_LIB -NCURSES_INCLUDE -NCURSES_DIR -PBX_NCURSES -NETSNMP_LIB -NETSNMP_INCLUDE -NETSNMP_DIR -PBX_NETSNMP -NEWT_LIB -NEWT_INCLUDE -NEWT_DIR -PBX_NEWT -UNIXODBC_LIB -UNIXODBC_INCLUDE -UNIXODBC_DIR -PBX_UNIXODBC -OGG_LIB -OGG_INCLUDE -OGG_DIR -PBX_OGG -OSPTK_LIB -OSPTK_INCLUDE -OSPTK_DIR -PBX_OSPTK -OSS_LIB -OSS_INCLUDE -OSS_DIR -PBX_OSS -POPT_LIB -POPT_INCLUDE -POPT_DIR -PBX_POPT -PGSQL_LIB -PGSQL_INCLUDE -PGSQL_DIR -PBX_PGSQL -PRI_LIB -PRI_INCLUDE -PRI_DIR -PBX_PRI -PWLIB_LIB -PWLIB_INCLUDE -PWLIB_DIR -PBX_PWLIB -OPENH323_LIB -OPENH323_INCLUDE -OPENH323_DIR -PBX_OPENH323 -RADIUS_LIB -RADIUS_INCLUDE -RADIUS_DIR -PBX_RADIUS -SPEEX_LIB -SPEEX_INCLUDE -SPEEX_DIR -PBX_SPEEX -SPEEXDSP_LIB -SPEEXDSP_INCLUDE -SPEEXDSP_DIR -PBX_SPEEXDSP -SQLITE_LIB -SQLITE_INCLUDE -SQLITE_DIR -PBX_SQLITE -SUPPSERV_LIB -SUPPSERV_INCLUDE -SUPPSERV_DIR -PBX_SUPPSERV -OPENSSL_LIB -OPENSSL_INCLUDE -OPENSSL_DIR -PBX_OPENSSL -FREETDS_LIB -FREETDS_INCLUDE -FREETDS_DIR -PBX_FREETDS -TERMCAP_LIB -TERMCAP_INCLUDE -TERMCAP_DIR -PBX_TERMCAP -TINFO_LIB -TINFO_INCLUDE -TINFO_DIR -PBX_TINFO -TONEZONE_LIB -TONEZONE_INCLUDE -TONEZONE_DIR -PBX_TONEZONE -USB_LIB -USB_INCLUDE -USB_DIR -PBX_USB -VORBIS_LIB -VORBIS_INCLUDE -VORBIS_DIR -PBX_VORBIS -VPB_LIB -VPB_INCLUDE -VPB_DIR -PBX_VPB -ZLIB_LIB -ZLIB_INCLUDE -ZLIB_DIR -PBX_ZLIB -ZAPTEL_LIB -ZAPTEL_INCLUDE -ZAPTEL_DIR -PBX_ZAPTEL -ALLOCA -LIBOBJS -POW_LIB -GC_CFLAGS -GC_LDFLAGS -AST_DECLARATION_AFTER_STATEMENT -AST_NO_STRICT_OVERFLOW -PBX_DAHDI_TRANSCODE -GSM_INTERNAL -KDEINIT -KDEDIR -NETSNMP_CONFIG -PG_CONFIG -PTLIB_CONFIG -PWLIBDIR -PWLIB_INCDIR -PWLIB_LIBDIR -PWLIB_PLATFORM -OPENH323DIR -OPENH323_INCDIR -OPENH323_LIBDIR -OPENH323_SUFFIX -OPENH323_BUILD -PBX_SPEEX_PREPROCESS -PBX_ZAPTEL_VLDTMF -EDITLINE_LIB -PBX_H323 -PBX_IXJUSER -GTKCONFIG -PBX_GTK -GTK_INCLUDE -GTK_LIB -PKGCONFIG -PBX_GTK2 -GTK2_INCLUDE -GTK2_LIB -CURL_CONFIG -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures asterisk 1.4 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of asterisk 1.4:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-dev-mode Turn on developer mode - --disable-largefile omit support for large files - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-asound=PATH use Advanced Linux Sound Architecture files in PATH - --with-curl=PATH use cURL files in PATH - --with-cap=PATH use POSIX 1.e capabilities files in PATH - --with-curses=PATH use curses files in PATH - --with-dahdi=PATH use DAHDI files in PATH - --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in - PATH - --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-isdnnet=PATH use ISDN4Linux Library files in PATH - --with-kde=PATH use KDE files in PATH - --with-ltdl=PATH use libtool files in PATH - --with-misdn=PATH use mISDN User 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 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-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-h323=PATH use OpenH323 files in PATH - --with-radius=PATH use Radius Client files in PATH - --with-speex=PATH use Speex files in PATH - --with-speexdsp=PATH use Speexdsp files in PATH - --with-sqlite=PATH use SQLite files in PATH - --with-suppserv=PATH use mISDN Supplemental Services files in PATH - --with-ssl=PATH use OpenSSL files in PATH - --with-tds=PATH use FreeTDS files in PATH - --with-termcap=PATH use Termcap files in PATH - --with-tinfo=PATH use Term Info files in PATH - --with-tonezone=PATH use tonezone files in PATH - --with-usb=PATH use usb files in PATH - --with-vorbis=PATH use Vorbis 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 - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to . -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -asterisk configure 1.4 -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. - -"Asterisk" -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by asterisk $as_me 1.4, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -ac_header_list="$ac_header_list utime.h" -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# cross-compile macros -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -# check existence of the package - - -# specify output header file -ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h" - - - - - - -cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -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_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -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_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -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_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -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_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (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 - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - -{ echo "$as_me:$LINENO: checking for AIX" >&5 -echo $ECHO_N "checking for AIX... $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. */ -#ifdef _AIX - yes -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -cat >>confdefs.h <<\_ACEOF -#define _ALL_SOURCE 1 -_ACEOF - -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -rm -f conftest* - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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 - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -if test "${ac_cv_header_minix_config_h+set}" = set; then - { echo "$as_me:$LINENO: checking for minix/config.h" >&5 -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5 -echo $ECHO_N "checking minix/config.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 minix/config.h presence" >&5 -echo $ECHO_N "checking minix/config.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for minix/config.h" >&5 -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_minix_config_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } - -fi -if test $ac_cv_header_minix_config_h = yes; then - MINIX=yes -else - MINIX= -fi - - -if test "$MINIX" = yes; then - -cat >>confdefs.h <<\_ACEOF -#define _POSIX_SOURCE 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define _POSIX_1_SOURCE 2 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define _MINIX 1 -_ACEOF - -fi - - - - - - - - - - - - { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 -echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_safe_to_define___extensions__=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_safe_to_define___extensions__=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 -echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - cat >>confdefs.h <<\_ACEOF -#define __EXTENSIONS__ 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _POSIX_PTHREAD_SEMANTICS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _TANDEM_SOURCE 1 -_ACEOF - - # note- does not work on FreeBSD - -case "${host_os}" in - freebsd*) - ac_default_prefix=/usr/local - CPPFLAGS=-I/usr/local/include - LDFLAGS=-L/usr/local/lib - ;; - *) - ac_default_prefix=/usr - if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then - if test ${sysconfdir} = '${prefix}/etc'; then - sysconfdir=/etc - fi - if test ${mandir} = '${prefix}/man'; then - mandir=/usr/share/man - fi - fi - ;; -esac - -if test ${localstatedir} = '${prefix}/var'; then - localstatedir=/var -fi - -BUILD_PLATFORM=${build} -BUILD_CPU=${build_cpu} -BUILD_VENDOR=${build_vendor} -BUILD_OS=${build_os} - - - - - - -HOST_PLATFORM=${host} -HOST_CPU=${host_cpu} -HOST_VENDOR=${host_vendor} -HOST_OS=${host_os} - - - - - - -case "${host_os}" in - freebsd*) - OSARCH=FreeBSD - ;; - netbsd*) - OSARCH=NetBSD - ;; - openbsd*) - OSARCH=OpenBSD - ;; - solaris*) - OSARCH=SunOS - ;; - *) - OSARCH=${HOST_OS} - ;; -esac - - - -# check for uname -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args. -set dummy ${ac_tool_prefix}uname; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_UNAME+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $UNAME in - [\\/]* | ?:[\\/]*) - ac_cv_path_UNAME="$UNAME" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -UNAME=$ac_cv_path_UNAME -if test -n "$UNAME"; then - { echo "$as_me:$LINENO: result: $UNAME" >&5 -echo "${ECHO_T}$UNAME" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_UNAME"; then - ac_pt_UNAME=$UNAME - # Extract the first word of "uname", so it can be a program name with args. -set dummy uname; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_UNAME in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME -if test -n "$ac_pt_UNAME"; then - { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5 -echo "${ECHO_T}$ac_pt_UNAME" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_UNAME" = x; then - UNAME="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - UNAME=$ac_pt_UNAME - fi -else - UNAME="$ac_cv_path_UNAME" -fi - -if test ! x"${UNAME}" = xNo; then - PBX_OSREV=$(${UNAME} -r) -fi - - - - - - - - -# cross-compile checks -if test "${cross_compiling}" = "yes"; -then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. -set dummy ${ac_tool_prefix}g++; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="${ac_tool_prefix}g++" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CXX"; then - ac_ct_CXX=$CXX - # Extract the first word of "g++", so it can be a program name with args. -set dummy g++; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="g++" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CXX" = x; then - CXX=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -else - CXX="$ac_cv_prog_CXX" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. -set dummy ${ac_tool_prefix}ld; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$LD"; then - ac_cv_prog_LD="$LD" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_LD="${ac_tool_prefix}ld" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -LD=$ac_cv_prog_LD -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_LD"; then - ac_ct_LD=$LD - # Extract the first word of "ld", so it can be a program name with args. -set dummy ld; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_LD"; then - ac_cv_prog_ac_ct_LD="$ac_ct_LD" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_LD="ld" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_LD=$ac_cv_prog_ac_ct_LD -if test -n "$ac_ct_LD"; then - { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 -echo "${ECHO_T}$ac_ct_LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_LD" = x; then - LD=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - LD=$ac_ct_LD - fi -else - LD="$ac_cv_prog_LD" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -fi - -# Checks for programs. -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -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_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -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_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -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_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -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_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -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_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -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_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -#if $ac_preproc_ok; then -# : -#else -# { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -#See \`config.log' for more details." >&5 -#echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -#See \`config.log' for more details." >&2;} -# { (exit 1); exit 1; }; } -#fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -# This macro is just copied into our local acinclude.m4 from libtool.m4 so that -# the developers regenerating the configure script don't have to install libtool. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${ac_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" | sed 99q >conftest.sed - $as_unset ac_script || ac_script= - # Extract the first word of "sed gsed" to use in msg output -if test -z "$SED"; then -set dummy sed gsed; ac_prog_name=$2 -if test "${ac_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_SED_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -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_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue - # Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_SED_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -SED="$ac_cv_path_SED" -if test -z "$SED"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_SED=$SED -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 -echo "${ECHO_T}$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_prog_egrep+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6; } - EGREP=$ac_cv_prog_egrep - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - # note - does not work on freebsd -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 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -{ echo "$as_me:$LINENO: checking for GNU make" >&5 -echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } -if test "${GNU_MAKE+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - GNU_MAKE='Not Found' ; - GNU_MAKE_VERSION_MAJOR=0 ; - GNU_MAKE_VERSION_MINOR=0 ; - for a in make gmake gnumake ; do - if test -z "$a" ; then continue ; fi ; - if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then - GNU_MAKE=$a ; - GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'` - GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2` - break; - fi - done ; - -fi -{ echo "$as_me:$LINENO: result: $GNU_MAKE" >&5 -echo "${ECHO_T}$GNU_MAKE" >&6; } ; -if test "x$GNU_MAKE" = "xNot Found" ; then - { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5 -echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;} - { (exit 1); exit 1; }; } - exit 1 -fi - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $STRIP in - [\\/]* | ?:[\\/]*) - ac_cv_path_STRIP="$STRIP" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -STRIP=$ac_cv_path_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_STRIP"; then - ac_pt_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_STRIP in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP -if test -n "$ac_pt_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5 -echo "${ECHO_T}$ac_pt_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_pt_STRIP - fi -else - STRIP="$ac_cv_path_STRIP" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $AR in - [\\/]* | ?:[\\/]*) - ac_cv_path_AR="$AR" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -AR=$ac_cv_path_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_AR"; then - ac_pt_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_AR in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_AR="$ac_pt_AR" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_AR=$ac_cv_path_ac_pt_AR -if test -n "$ac_pt_AR"; then - { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5 -echo "${ECHO_T}$ac_pt_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_AR" = x; then - AR=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_pt_AR - fi -else - AR="$ac_cv_path_AR" -fi - - -GNU_LD=0 -if test "x$with_gnu_ld" = "xyes" ; then - GNU_LD=1 -fi - - -# Extract the first word of "awk", so it can be a program name with args. -set dummy awk; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $AWK in - [\\/]* | ?:[\\/]*) - ac_cv_path_AWK="$AWK" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":" - ;; -esac -fi -AWK=$ac_cv_path_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "grep", so it can be a program name with args. -set dummy grep; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $GREP in - [\\/]* | ?:[\\/]*) - ac_cv_path_GREP="$GREP" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":" - ;; -esac -fi -GREP=$ac_cv_path_GREP -if test -n "$GREP"; then - { echo "$as_me:$LINENO: result: $GREP" >&5 -echo "${ECHO_T}$GREP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "find", so it can be a program name with args. -set dummy find; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_FIND+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $FIND in - [\\/]* | ?:[\\/]*) - ac_cv_path_FIND="$FIND" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":" - ;; -esac -fi -FIND=$ac_cv_path_FIND -if test -n "$FIND"; then - { echo "$as_me:$LINENO: result: $FIND" >&5 -echo "${ECHO_T}$FIND" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "compress", so it can be a program name with args. -set dummy compress; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_COMPRESS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $COMPRESS in - [\\/]* | ?:[\\/]*) - ac_cv_path_COMPRESS="$COMPRESS" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":" - ;; -esac -fi -COMPRESS=$ac_cv_path_COMPRESS -if test -n "$COMPRESS"; then - { echo "$as_me:$LINENO: result: $COMPRESS" >&5 -echo "${ECHO_T}$COMPRESS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "basename", so it can be a program name with args. -set dummy basename; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_BASENAME+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $BASENAME in - [\\/]* | ?:[\\/]*) - ac_cv_path_BASENAME="$BASENAME" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":" - ;; -esac -fi -BASENAME=$ac_cv_path_BASENAME -if test -n "$BASENAME"; then - { echo "$as_me:$LINENO: result: $BASENAME" >&5 -echo "${ECHO_T}$BASENAME" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "id", so it can be a program name with args. -set dummy id; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ID+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ID in - [\\/]* | ?:[\\/]*) - ac_cv_path_ID="$ID" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_ID" && ac_cv_path_ID=":" - ;; -esac -fi -ID=$ac_cv_path_ID -if test -n "$ID"; then - { echo "$as_me:$LINENO: result: $ID" >&5 -echo "${ECHO_T}$ID" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "dirname", so it can be a program name with args. -set dummy dirname; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_DIRNAME+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $DIRNAME in - [\\/]* | ?:[\\/]*) - ac_cv_path_DIRNAME="$DIRNAME" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":" - ;; -esac -fi -DIRNAME=$ac_cv_path_DIRNAME -if test -n "$DIRNAME"; then - { echo "$as_me:$LINENO: result: $DIRNAME" >&5 -echo "${ECHO_T}$DIRNAME" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_SHELL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $SHELL in - [\\/]* | ?:[\\/]*) - ac_cv_path_SHELL="$SHELL" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":" - ;; -esac -fi -SHELL=$ac_cv_path_SHELL -if test -n "$SHELL"; then - { echo "$as_me:$LINENO: result: $SHELL" >&5 -echo "${ECHO_T}$SHELL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "ln", so it can be a program name with args. -set dummy ln; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_LN+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $LN in - [\\/]* | ?:[\\/]*) - ac_cv_path_LN="$LN" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_LN" && ac_cv_path_LN=":" - ;; -esac -fi -LN=$ac_cv_path_LN -if test -n "$LN"; then - { echo "$as_me:$LINENO: result: $LN" >&5 -echo "${ECHO_T}$LN" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "dot", so it can be a program name with args. -set dummy dot; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_DOT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $DOT in - [\\/]* | ?:[\\/]*) - ac_cv_path_DOT="$DOT" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":" - ;; -esac -fi -DOT=$ac_cv_path_DOT -if test -n "$DOT"; then - { echo "$as_me:$LINENO: result: $DOT" >&5 -echo "${ECHO_T}$DOT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -# Extract the first word of "wget", so it can be a program name with args. -set dummy wget; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_WGET+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $WGET in - [\\/]* | ?:[\\/]*) - ac_cv_path_WGET="$WGET" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":" - ;; -esac -fi -WGET=$ac_cv_path_WGET -if test -n "$WGET"; then - { echo "$as_me:$LINENO: result: $WGET" >&5 -echo "${ECHO_T}$WGET" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -if test "${WGET}" != ":" ; then - DOWNLOAD=${WGET} -else - # Extract the first word of "fetch", so it can be a program name with args. -set dummy fetch; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_FETCH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $FETCH in - [\\/]* | ?:[\\/]*) - ac_cv_path_FETCH="$FETCH" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":" - ;; -esac -fi -FETCH=$ac_cv_path_FETCH -if test -n "$FETCH"; then - { echo "$as_me:$LINENO: result: $FETCH" >&5 -echo "${ECHO_T}$FETCH" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - DOWNLOAD=${FETCH} -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args. -set dummy ${ac_tool_prefix}soxmix; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_SOXMIX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$SOXMIX"; then - ac_cv_prog_SOXMIX="$SOXMIX" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -SOXMIX=$ac_cv_prog_SOXMIX -if test -n "$SOXMIX"; then - { echo "$as_me:$LINENO: result: $SOXMIX" >&5 -echo "${ECHO_T}$SOXMIX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_SOXMIX"; then - ac_ct_SOXMIX=$SOXMIX - # Extract the first word of "soxmix", so it can be a program name with args. -set dummy soxmix; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_SOXMIX"; then - ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_SOXMIX="soxmix" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX -if test -n "$ac_ct_SOXMIX"; then - { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5 -echo "${ECHO_T}$ac_ct_SOXMIX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_SOXMIX" = x; then - SOXMIX=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - SOXMIX=$ac_ct_SOXMIX - fi -else - SOXMIX="$ac_cv_prog_SOXMIX" -fi - -if test "${SOXMIX}" != ":" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SOXMIX 1 -_ACEOF - -fi - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -acx_pthread_ok=no - -# We used to check for pthread.h first, but this fails if pthread.h -# requires special compiler flags (e.g. on True64 or Sequent). -# It gets checked for in the link test anyway. - -# First of all, check if the user has set any of the PTHREAD_LIBS, -# etcetera environment variables, and if threads linking works using -# them: -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - save_LIBS="$LIBS" - LIBS="$PTHREAD_LIBS $LIBS" - { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 -echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $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. */ - -/* 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 pthread_join (); -int -main () -{ -return pthread_join (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - acx_pthread_ok=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 -echo "${ECHO_T}$acx_pthread_ok" >&6; } - if test x"$acx_pthread_ok" = xno; then - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" - fi - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" -fi - -# We must check for the threads library under a number of different -# names; the ordering is very important because some systems -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the -# libraries is broken (non-POSIX). - -# Create a list of thread flags to try. Items starting with a "-" are -# C compiler flags, and other items are library names, except for "none" -# which indicates that we try without any flags at all, and "pthread-config" -# which is a program returning the flags for the Pth emulation library. - -acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" - -# The ordering *is* (sometimes) important. Some notes on the -# individual items follow: - -# pthreads: AIX (must check this before -lpthread) -# none: in case threads are in libc; should be tried before -Kthread and -# other compiler flags to prevent continual compiler warnings -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) -# -pthreads: Solaris/gcc -# -mthreads: Mingw32/gcc, Lynx/gcc -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it -# doesn't hurt to check since this sometimes defines pthreads too; -# also defines -D_REENTRANT) -# ... -mt is also the pthreads flag for HP/aCC -# pthread: Linux, etcetera -# --thread-safe: KAI C++ -# pthread-config: use pthread-config program (for GNU Pth library) - -case "${host_cpu}-${host_os}" in - *solaris*) - - # On Solaris (at least, for some versions), libc contains stubbed - # (non-functional) versions of the pthreads routines, so link-based - # tests will erroneously succeed. (We need to link with -pthreads/-mt/ - # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather - # a function called by this macro, so we could check for that, but - # who knows whether they'll stub that too in a future libc.) So, - # we'll just look for -pthreads and -lpthread first: - - acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" - ;; -esac - -if test x"$acx_pthread_ok" = xno; then -for flag in $acx_pthread_flags; do - - case $flag in - none) - { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 -echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } - ;; - - -*) - { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 -echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } - PTHREAD_CFLAGS="$flag" - ;; - - pthread-config) - # Extract the first word of "pthread-config", so it can be a program name with args. -set dummy pthread-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_acx_pthread_config+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$acx_pthread_config"; then - ac_cv_prog_acx_pthread_config="$acx_pthread_config" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_acx_pthread_config="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" -fi -fi -acx_pthread_config=$ac_cv_prog_acx_pthread_config -if test -n "$acx_pthread_config"; then - { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 -echo "${ECHO_T}$acx_pthread_config" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - if test x"$acx_pthread_config" = xno; then continue; fi - PTHREAD_CFLAGS="`pthread-config --cflags`" - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" - ;; - - *) - { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 -echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } - PTHREAD_LIBS="-l$flag" - ;; - esac - - save_LIBS="$LIBS" - save_CFLAGS="$CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - - # Check for various functions. We must include pthread.h, - # since some functions may be macros. (On the Sequent, we - # need a special flag -Kthread to make this header compile.) - # We check for pthread_join because it is in -lpthread on IRIX - # while pthread_create is in libc. We check for pthread_attr_init - # due to DEC craziness with -lpthreads. We check for - # pthread_cleanup_push because it is one of the few pthread - # functions on Solaris that doesn't have a non-functional libc stub. - # We try pthread_create on general principles. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -pthread_t th; pthread_join(th, 0); - pthread_attr_init(0); pthread_cleanup_push(0, 0); - pthread_create(0,0,0,0); pthread_cleanup_pop(0); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - acx_pthread_ok=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - - { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 -echo "${ECHO_T}$acx_pthread_ok" >&6; } - if test "x$acx_pthread_ok" = xyes; then - break; - fi - - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" -done -fi - -# Various other checks: -if test "x$acx_pthread_ok" = xyes; then - save_LIBS="$LIBS" - LIBS="$PTHREAD_LIBS $LIBS" - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. - { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 -echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } - attr_name=unknown - for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int attr=$attr; return attr; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - attr_name=$attr; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - done - { echo "$as_me:$LINENO: result: $attr_name" >&5 -echo "${ECHO_T}$attr_name" >&6; } - if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then - -cat >>confdefs.h <<_ACEOF -#define PTHREAD_CREATE_JOINABLE $attr_name -_ACEOF - - fi - - { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 -echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } - flag=no - case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; - esac - { echo "$as_me:$LINENO: result: ${flag}" >&5 -echo "${ECHO_T}${flag}" >&6; } - if test "x$flag" != xno; then - PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" - fi - - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - - # More AIX lossage: must compile with xlc_r or cc_r - if test x"$GCC" != xyes; then - for ac_prog in xlc_r cc_r -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$PTHREAD_CC"; then - ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_PTHREAD_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -PTHREAD_CC=$ac_cv_prog_PTHREAD_CC -if test -n "$PTHREAD_CC"; then - { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 -echo "${ECHO_T}$PTHREAD_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$PTHREAD_CC" && break -done -test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" - - else - PTHREAD_CC=$CC - fi -else - PTHREAD_CC="$CC" -fi - - - - - -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: -if test x"$acx_pthread_ok" = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD 1 -_ACEOF - - : -else - acx_pthread_ok=no - -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Check whether --enable-dev-mode was given. -if test "${enable_dev_mode+set}" = set; then - enableval=$enable_dev_mode; case "${enableval}" in - y|ye|yes) AST_DEVMODE=yes ;; - n|no) AST_DEVMODE=no ;; - *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5 -echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;} - { (exit 1); exit 1; }; } ;; - esac -fi - - - -# 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 - - - - - - -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) - CURL_MANDATORY="yes" - ;; - *) - CURL_DIR="${withval}" - CURL_MANDATORY="yes" - ;; -esac - -fi - -PBX_CURL=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) - CAP_MANDATORY="yes" - ;; - *) - CAP_DIR="${withval}" - CAP_MANDATORY="yes" - ;; -esac - -fi - -PBX_CAP=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 - - - - - - -DAHDI_DESCRIP="DAHDI" -DAHDI_OPTION="dahdi" - -# Check whether --with-dahdi was given. -if test "${with_dahdi+set}" = set; then - withval=$with_dahdi; -case ${withval} in - n|no) - USE_DAHDI=no - ;; - y|ye|yes) - DAHDI_MANDATORY="yes" - ;; - *) - DAHDI_DIR="${withval}" - DAHDI_MANDATORY="yes" - ;; -esac - -fi - -PBX_DAHDI=0 - - - - - - -GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)" -GNUTLS_OPTION="gnutls" - -# Check whether --with-gnutls was given. -if test "${with_gnutls+set}" = set; then - withval=$with_gnutls; -case ${withval} in - n|no) - USE_GNUTLS=no - ;; - y|ye|yes) - GNUTLS_MANDATORY="yes" - ;; - *) - GNUTLS_DIR="${withval}" - GNUTLS_MANDATORY="yes" - ;; -esac - -fi - -PBX_GNUTLS=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 - - - - - - -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) - ISDNNET_MANDATORY="yes" - ;; - *) - ISDNNET_DIR="${withval}" - ISDNNET_MANDATORY="yes" - ;; -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) - KDE_MANDATORY="yes" - ;; - *) - KDE_DIR="${withval}" - KDE_MANDATORY="yes" - ;; -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) - LTDL_MANDATORY="yes" - ;; - *) - LTDL_DIR="${withval}" - LTDL_MANDATORY="yes" - ;; -esac - -fi - -PBX_LTDL=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) - MISDN_MANDATORY="yes" - ;; - *) - MISDN_DIR="${withval}" - MISDN_MANDATORY="yes" - ;; -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) - 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 - - - - - - -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) - OPENH323_MANDATORY="yes" - ;; - *) - OPENH323_DIR="${withval}" - OPENH323_MANDATORY="yes" - ;; -esac - -fi - -PBX_OPENH323=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 - - - - - - -SPEEXDSP_DESCRIP="Speexdsp" -SPEEXDSP_OPTION="speexdsp" - -# Check whether --with-speexdsp was given. -if test "${with_speexdsp+set}" = set; then - withval=$with_speexdsp; -case ${withval} in - n|no) - USE_SPEEXDSP=no - ;; - y|ye|yes) - SPEEXDSP_MANDATORY="yes" - ;; - *) - SPEEXDSP_DIR="${withval}" - SPEEXDSP_MANDATORY="yes" - ;; -esac - -fi - -PBX_SPEEXDSP=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 - - - - - - -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) - SUPPSERV_MANDATORY="yes" - ;; - *) - SUPPSERV_DIR="${withval}" - SUPPSERV_MANDATORY="yes" - ;; -esac - -fi - -PBX_SUPPSERV=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 - - - - - - -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) - USB_MANDATORY="yes" - ;; - *) - USB_DIR="${withval}" - USB_MANDATORY="yes" - ;; -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) - 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 - -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -char *p = (char *) alloca (2 * sizeof (int)); - if (p) return 0; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_working_alloca_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_working_alloca_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } -if test $ac_cv_working_alloca_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA_H 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for alloca" >&5 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif - -int -main () -{ -char *p = (char *) alloca (1); - if (p) return 0; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_alloca_works=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_alloca_works=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } - -if test $ac_cv_func_alloca_works = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA 1 -_ACEOF - -else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble. Some versions do not even contain alloca or -# contain a buggy version. If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. - -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext - -cat >>confdefs.h <<\_ACEOF -#define C_ALLOCA 1 -_ACEOF - - -{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } -if test "${ac_cv_os_cray+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 -echo "${ECHO_T}$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF - - break -fi - - done -fi - -{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - 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 -int -find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} - -int -main () -{ - return find_stack_direction () < 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_c_stack_direction=1 -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_stack_direction=-1 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } - -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF - - -fi - - - - - - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include <$ac_hdr> - -int -main () -{ -if ((DIR *) 0) -return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 -_ACEOF - -ac_header_dirent=$ac_hdr; break -fi - -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then - { echo "$as_me:$LINENO: checking for library containing opendir" >&5 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } -if test "${ac_cv_search_opendir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$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 opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dir; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_opendir=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_opendir+set}" = set; then - break -fi -done -if test "${ac_cv_search_opendir+set}" = set; then - : -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 -echo "${ECHO_T}$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -else - { echo "$as_me:$LINENO: checking for library containing opendir" >&5 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } -if test "${ac_cv_search_opendir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$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 opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' x; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_opendir=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_opendir+set}" = set; then - break -fi -done -if test "${ac_cv_search_opendir+set}" = set; then - : -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 -echo "${ECHO_T}$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -fi - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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 - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 -echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_wait_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#ifndef WEXITSTATUS -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) -#endif -#ifndef WIFEXITED -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif - -int -main () -{ - int s; - wait (&s); - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_sys_wait_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_sys_wait_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } -if test $ac_cv_header_sys_wait_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_WAIT_H 1 -_ACEOF - -fi - - - - - - - - - - - - - - - - - - - - - - - - - -for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -# Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then - enableval=$enable_largefile; -fi - -if test "$enable_largefile" != no; then - - { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 -echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_largefile_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_largefile_CC=' -n32'; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 -echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_file_offset_bits+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=64; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 -echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF -;; -esac -rm -f conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 -echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_large_files+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _LARGE_FILES 1 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=1; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 -echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF -;; -esac -rm -f conftest* - fi -fi - - -# Checks for typedefs, structures, and compiler characteristics. -{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 -echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } -if test "${ac_cv_header_stdbool_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#include -#ifndef bool - "error: bool is not defined" -#endif -#ifndef false - "error: false is not defined" -#endif -#if false - "error: false is not 0" -#endif -#ifndef true - "error: true is not defined" -#endif -#if true != 1 - "error: true is not 1" -#endif -#ifndef __bool_true_false_are_defined - "error: __bool_true_false_are_defined is not defined" -#endif - - struct s { _Bool s: 1; _Bool t; } s; - - char a[true == 1 ? 1 : -1]; - char b[false == 0 ? 1 : -1]; - char c[__bool_true_false_are_defined == 1 ? 1 : -1]; - char d[(bool) 0.5 == true ? 1 : -1]; - bool e = &s; - char f[(_Bool) 0.0 == false ? 1 : -1]; - char g[true]; - char h[sizeof (_Bool)]; - char i[sizeof s.t]; - enum { j = false, k = true, l = false * true, m = true * 256 }; - _Bool n[m]; - char o[sizeof n == m * sizeof n[0] ? 1 : -1]; - char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; -# if defined __xlc__ || defined __GNUC__ - /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 - reported by James Lemley on 2005-10-05; see - http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html - This test is not quite right, since xlc is allowed to - reject this program, as the initializer for xlcbug is - not one of the forms that C requires support for. - However, doing the test right would require a runtime - test, and that would make cross-compilation harder. - Let us hope that IBM fixes the xlc bug, and also adds - support for this kind of constant expression. In the - meantime, this test will reject xlc, which is OK, since - our stdbool.h substitute should suffice. We also test - this with GCC, where it should work, to detect more - quickly whether someone messes up the test in the - future. */ - char digs[] = "0123456789"; - int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); -# endif - /* Catch a bug in an HP-UX C compiler. See - http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html - */ - _Bool q = true; - _Bool *pq = &q; - -int -main () -{ - - *pq |= q; - *pq |= ! q; - /* Refer to every declared value, to avoid compiler optimizations. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l - + !m + !n + !o + !p + !q + !pq); - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdbool_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdbool_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 -echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } -{ echo "$as_me:$LINENO: checking for _Bool" >&5 -echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } -if test "${ac_cv_type__Bool+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef _Bool ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type__Bool=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type__Bool=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 -echo "${ECHO_T}$ac_cv_type__Bool" >&6; } -if test $ac_cv_type__Bool = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE__BOOL 1 -_ACEOF - - -fi - -if test $ac_cv_header_stdbool_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_STDBOOL_H 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } -if test "${ac_cv_c_const+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -/* FIXME: Include the comments suggested by Paul. */ -#ifndef __cplusplus - /* Ultrix mips cc rejects this. */ - typedef int charset[2]; - const charset cs; - /* SunOS 4.1.1 cc rejects this. */ - char const *const *pcpcc; - char **ppc; - /* NEC SVR4.0.2 mips cc rejects this. */ - struct point {int x, y;}; - static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in - an arm of an if-expression whose if-part is not a constant - expression */ - const char *g = "string"; - pcpcc = &g + (g ? g-g : 0); - /* HPUX 7.0 cc rejects these. */ - ++pcpcc; - ppc = (char**) pcpcc; - pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this. */ - char *t; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; - if (s) return 0; - } - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; - } - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; - } - { /* AIX XL C 1.02.0.0 rejects this saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - if (!foo) return 0; - } - return !cs[0] && !zero.x; -#endif - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_const=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_const=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 -echo "${ECHO_T}$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then - -cat >>confdefs.h <<\_ACEOF -#define const -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } -if test "${ac_cv_type_uid_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1; then - ac_cv_type_uid_t=yes -else - ac_cv_type_uid_t=no -fi -rm -f conftest* - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 -echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then - -cat >>confdefs.h <<\_ACEOF -#define uid_t int -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define gid_t int -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for inline" >&5 -echo $ECHO_N "checking for inline... $ECHO_C" >&6; } -if test "${ac_cv_c_inline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_inline=$ac_kw -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 -echo "${ECHO_T}$ac_cv_c_inline" >&6; } - - -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac - -{ echo "$as_me:$LINENO: checking for mode_t" >&5 -echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mode_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef mode_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mode_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_mode_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 -echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } -if test $ac_cv_type_mode_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define mode_t int -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for off_t" >&5 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } -if test "${ac_cv_type_off_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef off_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_off_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_off_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 -echo "${ECHO_T}$ac_cv_type_off_t" >&6; } -if test $ac_cv_type_off_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define off_t long int -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for pid_t" >&5 -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } -if test "${ac_cv_type_pid_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef pid_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_pid_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_pid_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 -echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } -if test $ac_cv_type_pid_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define pid_t int -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef size_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_size_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 -echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } -if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_blksize) -return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_struct_stat_st_blksize=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - 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 -int -main () -{ -static struct stat ac_aggr; -if (sizeof ac_aggr.st_blksize) -return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_struct_stat_st_blksize=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_member_struct_stat_st_blksize=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } -if test $ac_cv_member_struct_stat_st_blksize = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 -_ACEOF - - -fi - -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } -if test "${ac_cv_header_time+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include - -int -main () -{ -if ((struct tm *) 0) -return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_time=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_time=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 -echo "${ECHO_T}$ac_cv_header_time" >&6; } -if test $ac_cv_header_time = yes; then - -cat >>confdefs.h <<\_ACEOF -#define TIME_WITH_SYS_TIME 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 -echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } -if test "${ac_cv_struct_tm+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include - -int -main () -{ -struct tm tm; - int *p = &tm.tm_sec; - return !p; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_struct_tm=time.h -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_struct_tm=sys/time.h -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 -echo "${ECHO_T}$ac_cv_struct_tm" >&6; } -if test $ac_cv_struct_tm = sys/time.h; then - -cat >>confdefs.h <<\_ACEOF -#define TM_IN_SYS_TIME 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for working volatile" >&5 -echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } -if test "${ac_cv_c_volatile+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - -volatile int x; -int * volatile y = (int *) 0; -return !x && !y; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_volatile=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_volatile=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 -echo "${ECHO_T}$ac_cv_c_volatile" >&6; } -if test $ac_cv_c_volatile = no; then - -cat >>confdefs.h <<\_ACEOF -#define volatile -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } -if test "${ac_cv_type_ptrdiff_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef ptrdiff_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ptrdiff_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_ptrdiff_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } -if test $ac_cv_type_ptrdiff_t = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_PTRDIFF_T 1 -_ACEOF - - -fi - - -# Checks for library functions. - -for ac_header in unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -{ echo "$as_me:$LINENO: checking for working chown" >&5 -echo $ECHO_N "checking for working chown... $ECHO_C" >&6; } -if test "${ac_cv_func_chown_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_chown_works=no -else - 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 - -int -main () -{ - char *f = "conftest.chown"; - struct stat before, after; - - if (creat (f, 0600) < 0) - return 1; - if (stat (f, &before) < 0) - return 1; - if (chown (f, (uid_t) -1, (gid_t) -1) == -1) - return 1; - if (stat (f, &after) < 0) - return 1; - return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); - - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_chown_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_chown_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -rm -f conftest.chown - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 -echo "${ECHO_T}$ac_cv_func_chown_works" >&6; } -if test $ac_cv_func_chown_works = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_CHOWN 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5 -echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } -if test "${ac_cv_func_closedir_void+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_closedir_void=yes -else - 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 <$ac_header_dirent> -#ifndef __cplusplus -int closedir (); -#endif - -int -main () -{ -return closedir (opendir (".")) != 0; - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_closedir_void=no -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_closedir_void=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 -echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } -if test $ac_cv_func_closedir_void = yes; then - -cat >>confdefs.h <<\_ACEOF -#define CLOSEDIR_VOID 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for error_at_line" >&5 -echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } -if test "${ac_cv_lib_error_at_line+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -error_at_line (0, 0, "", 0, "an error occurred"); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_error_at_line=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_error_at_line=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 -echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } -if test $ac_cv_lib_error_at_line = no; then - case " $LIBOBJS " in - *" error.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS error.$ac_objext" - ;; -esac - -fi - - -for ac_header in vfork.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_func in fork vfork -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -if test "x$ac_cv_func_fork" = xyes; then - { echo "$as_me:$LINENO: checking for working fork" >&5 -echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } -if test "${ac_cv_func_fork_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_fork_works=cross -else - 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 -int -main () -{ - - /* By Ruediger Kuhlmann. */ - return fork () < 0; - - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_fork_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_fork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 -echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } - -else - ac_cv_func_fork_works=$ac_cv_func_fork -fi -if test "x$ac_cv_func_fork_works" = xcross; then - case $host in - *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* ) - # Override, as these systems have only a dummy fork() stub - ac_cv_func_fork_works=no - ;; - *) - ac_cv_func_fork_works=yes - ;; - esac - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 -echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} -fi -ac_cv_func_vfork_works=$ac_cv_func_vfork -if test "x$ac_cv_func_vfork" = xyes; then - { echo "$as_me:$LINENO: checking for working vfork" >&5 -echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } -if test "${ac_cv_func_vfork_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_vfork_works=cross -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Thanks to Paul Eggert for this test. */ -$ac_includes_default -#include -#ifdef HAVE_VFORK_H -# include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. The compiler - is told about this with #include , but some compilers - (e.g. gcc -O) don't grok . Test for this by using a - static variable whose address is put into a register that is - clobbered by the vfork. */ -static void -#ifdef __cplusplus -sparc_address_test (int arg) -# else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} - -int -main () -{ - pid_t parent = getpid (); - pid_t child; - - sparc_address_test (0); - - child = vfork (); - - if (child == 0) { - /* Here is another test for sparc vfork register problems. This - test uses lots of local variables, at least as many local - variables as main has allocated so far including compiler - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should - reuse the register of parent for one of the local variables, - since it will think that parent can't possibly be used any more - in this routine. Assigning to the local variable will thus - munge parent in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent - from child file descriptors. If the child closes a descriptor - before it execs or exits, this munges the parent's descriptor - as well. Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - - while (wait(&status) != child) - ; - return ( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_vfork_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_vfork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 -echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } - -fi; -if test "x$ac_cv_func_fork_works" = xcross; then - ac_cv_func_vfork_works=$ac_cv_func_vfork - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 -echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} -fi - -if test "x$ac_cv_func_vfork_works" = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_VFORK 1 -_ACEOF - -else - -cat >>confdefs.h <<\_ACEOF -#define vfork fork -_ACEOF - -fi -if test "x$ac_cv_func_fork_works" = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_FORK 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_largefile_source+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_sys_largefile_source=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _LARGEFILE_SOURCE 1 -#include -int -main () -{ -return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_sys_largefile_source=1; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_cv_sys_largefile_source=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 -echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } -case $ac_cv_sys_largefile_source in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF -;; -esac -rm -f conftest* - -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug -# in glibc 2.1.3, but that breaks too many other things. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. -if test $ac_cv_sys_largefile_source != unknown; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_FSEEKO 1 -_ACEOF - -fi - -if test $ac_cv_c_compiler_gnu = yes; then - { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 -echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } -if test "${ac_cv_prog_gcc_traditional+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_pattern="Autoconf.*'x'" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then - ac_cv_prog_gcc_traditional=yes -else - ac_cv_prog_gcc_traditional=no -fi -rm -f conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then - ac_cv_prog_gcc_traditional=yes -fi -rm -f conftest* - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 -echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -# XXX: these are commented out until we determine whether it matters if our malloc() -# acts exactly like glibc's or not -# AC_FUNC_MALLOC -# AC_FUNC_REALLOC -{ echo "$as_me:$LINENO: checking for working memcmp" >&5 -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } -if test "${ac_cv_func_memcmp_working+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_memcmp_working=no -else - 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 -int -main () -{ - - /* Some versions of memcmp are not 8-bit clean. */ - char c0 = '\100', c1 = '\200', c2 = '\201'; - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) - return 1; - - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes - or more and with at least one buffer not starting on a 4-byte boundary. - William Lewis provided this test program. */ - { - char foo[21]; - char bar[21]; - int i; - for (i = 0; i < 4; i++) - { - char *a = foo + i; - char *b = bar + i; - strcpy (a, "--------01111111"); - strcpy (b, "--------10000000"); - if (memcmp (a, b, 16) >= 0) - return 1; - } - return 0; - } - - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_memcmp_working=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_memcmp_working=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } -test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in - *" memcmp.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" - ;; -esac - - - - -for ac_header in stdlib.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_func in getpagesize -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -{ echo "$as_me:$LINENO: checking for working mmap" >&5 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - 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 -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc - -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the file system buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. - - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ - -#include -#include - -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize (); - - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - return 1; - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 0600); - if (fd < 0) - return 1; - if (write (fd, data, pagesize) != pagesize) - return 1; - close (fd); - - /* Next, try to mmap the file at a fixed address which already has - something else allocated at it. If we can, also make sure that - we see the same garbage. */ - fd = open ("conftest.mmap", O_RDWR); - if (fd < 0) - return 1; - data2 = (char *) malloc (2 * pagesize); - if (!data2) - return 1; - data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - return 1; - - /* Finally, make sure that changes to the mapped area do not - percolate back to the file as seen by read(). (This is a bug on - some variants of i386 svr4.0.) */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = (char *) malloc (pagesize); - if (!data3) - return 1; - if (read (fd, data3, pagesize) != pagesize) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - return 1; - close (fd); - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_mmap_fixed_mapped=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_mmap_fixed_mapped=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } -if test $ac_cv_func_mmap_fixed_mapped = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF - -fi -rm -f conftest.mmap - - - -for ac_header in sys/select.h sys/socket.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 -echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } -if test "${ac_cv_func_select_args+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - for ac_arg234 in 'fd_set *' 'int *' 'void *'; do - for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do - for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do - 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 -#ifdef HAVE_SYS_SELECT_H -# include -#endif -#ifdef HAVE_SYS_SOCKET_H -# include -#endif - -int -main () -{ -extern int select ($ac_arg1, - $ac_arg234, $ac_arg234, $ac_arg234, - $ac_arg5); - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done - done -done -# Provide a safe default value. -: ${ac_cv_func_select_args='int,int *,struct timeval *'} - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 -echo "${ECHO_T}$ac_cv_func_select_args" >&6; } -ac_save_IFS=$IFS; IFS=',' -set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` -IFS=$ac_save_IFS -shift - -cat >>confdefs.h <<_ACEOF -#define SELECT_TYPE_ARG1 $1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define SELECT_TYPE_ARG234 ($2) -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define SELECT_TYPE_ARG5 ($3) -_ACEOF - -rm -f conftest* - -{ echo "$as_me:$LINENO: checking for function prototypes" >&5 -echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } -if test "$ac_cv_prog_cc_c89" != no; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define PROTOTYPES 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define __PROTOTYPES 1 -_ACEOF - -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -{ echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 -echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; } -if test "${ac_cv_func_setvbuf_reversed+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_func_setvbuf_reversed=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -# ifdef PROTOTYPES - int (setvbuf) (FILE *, int, char *, size_t); -# endif -int -main () -{ -char buf; return setvbuf (stdout, _IOLBF, &buf, 1); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -# ifdef PROTOTYPES - int (setvbuf) (FILE *, int, char *, size_t); -# endif -int -main () -{ -char buf; return setvbuf (stdout, &buf, _IOLBF, 1); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - # It compiles and links either way, so it must not be declared - # with a prototype and most likely this is a K&R C compiler. - # Try running it. - if test "$cross_compiling" = yes; then - : # Assume setvbuf is not reversed when cross-compiling. -else - 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 -int -main () -{ -/* This call has the arguments reversed. - A reversed system may check and see that the address of buf - is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ - char buf; - if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) - return 1; - putchar ('\r'); - return 0; /* Non-reversed systems SEGV here. */ - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_setvbuf_reversed=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - - ac_cv_func_setvbuf_reversed=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 -echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; } -if test $ac_cv_func_setvbuf_reversed = yes; then - -cat >>confdefs.h <<\_ACEOF -#define SETVBUF_REVERSED 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 -echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } -if test "${ac_cv_type_signal+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include - -int -main () -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_signal=int -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_signal=void -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 -echo "${ECHO_T}$ac_cv_type_signal" >&6; } - -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF - - -{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 -echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } -if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f conftest.sym conftest.file -echo >conftest.file -if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes; then - ac_cv_func_lstat_dereferences_slashed_symlink=no -else - 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 -int -main () -{ -struct stat sbuf; - /* Linux will dereference the symlink and fail. - That is better in the sense that it means we will not - have to compile and use the lstat wrapper. */ - return lstat ("conftest.sym/", &sbuf) == 0; - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_lstat_dereferences_slashed_symlink=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -else - # If the `ln -s' command failed, then we probably don't even - # have an lstat function. - ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f conftest.sym conftest.file - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 -echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } - -test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && - -cat >>confdefs.h <<_ACEOF -#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -_ACEOF - - -if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then - case " $LIBOBJS " in - *" lstat.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS lstat.$ac_objext" - ;; -esac - -fi - -{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 -echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } -if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_stat_empty_string_bug=yes -else - 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 -int -main () -{ -struct stat sbuf; - return stat ("", &sbuf) == 0; - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_stat_empty_string_bug=no -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_stat_empty_string_bug=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 -echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } -if test $ac_cv_func_stat_empty_string_bug = yes; then - case " $LIBOBJS " in - *" stat.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS stat.$ac_objext" - ;; -esac - - -cat >>confdefs.h <<_ACEOF -#define HAVE_STAT_EMPTY_STRING_BUG 1 -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for working strcoll" >&5 -echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; } -if test "${ac_cv_func_strcoll_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_strcoll_works=no -else - 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 -int -main () -{ -return (strcoll ("abc", "def") >= 0 || - strcoll ("ABC", "DEF") >= 0 || - strcoll ("123", "456") >= 0) - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_strcoll_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_strcoll_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 -echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; } -if test $ac_cv_func_strcoll_works = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_STRCOLL 1 -_ACEOF - -fi - - -for ac_func in strftime -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - # strftime is in -lintl on SCO UNIX. -{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 -echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } -if test "${ac_cv_lib_intl_strftime+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl $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 strftime (); -int -main () -{ -return strftime (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_intl_strftime=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_intl_strftime=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 -echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } -if test $ac_cv_lib_intl_strftime = yes; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_STRFTIME 1 -_ACEOF - -LIBS="-lintl $LIBS" -fi - -fi -done - -{ echo "$as_me:$LINENO: checking for working strnlen" >&5 -echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; } -if test "${ac_cv_func_strnlen_working+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_strnlen_working=no -else - 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 -int -main () -{ - -#define S "foobar" -#define S_LEN (sizeof S - 1) - - /* At least one implementation is buggy: that of AIX 4.3 would - give strnlen (S, 1) == 3. */ - - int i; - for (i = 0; i < S_LEN + 1; ++i) - { - int expected = i <= S_LEN ? i : S_LEN; - if (strnlen (S, i) != expected) - return 1; - } - return 0; - - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_strnlen_working=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_strnlen_working=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 -echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; } -test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in - *" strnlen.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" - ;; -esac - - -{ echo "$as_me:$LINENO: checking for working strtod" >&5 -echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } -if test "${ac_cv_func_strtod+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_strtod=no -else - 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 -#ifndef strtod -double strtod (); -#endif -int -main() -{ - { - /* Some versions of Linux strtod mis-parse strings with leading '+'. */ - char *string = " +69"; - char *term; - double value; - value = strtod (string, &term); - if (value != 69 || term != (string + 4)) - return 1; - } - - { - /* Under Solaris 2.4, strtod returns the wrong value for the - terminating character under some conditions. */ - char *string = "NaN"; - char *term; - strtod (string, &term); - if (term != string && *(term - 1) == 0) - return 1; - } - return 0; -} - -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_strtod=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_strtod=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 -echo "${ECHO_T}$ac_cv_func_strtod" >&6; } -if test $ac_cv_func_strtod = no; then - case " $LIBOBJS " in - *" strtod.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS strtod.$ac_objext" - ;; -esac - -{ echo "$as_me:$LINENO: checking for pow" >&5 -echo $ECHO_N "checking for pow... $ECHO_C" >&6; } -if test "${ac_cv_func_pow+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define pow to an innocuous variant, in case declares pow. - For example, HP-UX 11i declares gettimeofday. */ -#define pow innocuous_pow - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char pow (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef pow - -/* 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 pow (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_pow || defined __stub___pow -choke me -#endif - -int -main () -{ -return pow (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_pow=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_pow=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 -echo "${ECHO_T}$ac_cv_func_pow" >&6; } - -if test $ac_cv_func_pow = no; then - { echo "$as_me:$LINENO: checking for pow in -lm" >&5 -echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } -if test "${ac_cv_lib_m_pow+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $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 pow (); -int -main () -{ -return pow (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_m_pow=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_m_pow=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 -echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } -if test $ac_cv_lib_m_pow = yes; then - POW_LIB=-lm -else - { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 -echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} -fi - -fi - -fi - - - - - -for ac_header in $ac_header_list -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header 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 <$ac_header> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $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 - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - - - - - - -{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5 -echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; } -if test "${ac_cv_func_utime_null+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f conftest.data; >conftest.data -# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. -if test "$cross_compiling" = yes; then - ac_cv_func_utime_null=no -else - 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 - #ifdef HAVE_UTIME_H - # include - #endif -int -main () -{ -struct stat s, t; - return ! (stat ("conftest.data", &s) == 0 - && utime ("conftest.data", 0) == 0 - && stat ("conftest.data", &t) == 0 - && t.st_mtime >= s.st_mtime - && t.st_mtime - s.st_mtime < 120); - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_func_utime_null=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_utime_null=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5 -echo "${ECHO_T}$ac_cv_func_utime_null" >&6; } -if test $ac_cv_func_utime_null = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_UTIME_NULL 1 -_ACEOF - -fi -rm -f conftest.data - - -for ac_func in vprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -{ echo "$as_me:$LINENO: checking for _doprnt" >&5 -echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } -if test "${ac_cv_func__doprnt+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define _doprnt to an innocuous variant, in case declares _doprnt. - For example, HP-UX 11i declares gettimeofday. */ -#define _doprnt innocuous__doprnt - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char _doprnt (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef _doprnt - -/* 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 _doprnt (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub__doprnt || defined __stub____doprnt -choke me -#endif - -int -main () -{ -return _doprnt (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func__doprnt=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func__doprnt=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 -echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } -if test $ac_cv_func__doprnt = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_DOPRNT 1 -_ACEOF - -fi - -fi -done - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -# some systems already have gethostbyname_r so we don't need to build ours in main/utils.c -{ echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5 -echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; } -if test "${ac_cv_search_gethostbyname_r+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$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 gethostbyname_r (); -int -main () -{ -return gethostbyname_r (); - ; - return 0; -} -_ACEOF -for ac_lib in '' socket nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_gethostbyname_r=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_gethostbyname_r+set}" = set; then - break -fi -done -if test "${ac_cv_search_gethostbyname_r+set}" = set; then - : -else - ac_cv_search_gethostbyname_r=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5 -echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; } -ac_res=$ac_cv_search_gethostbyname_r -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - -{ echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5 -echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $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 - #include -int -main () -{ -struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETHOSTBYNAME_R_6 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -{ echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5 -echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $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 - #include -int -main () -{ -struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETHOSTBYNAME_R_5 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -{ echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5 -echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $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 -int -main () -{ -int foo = PTHREAD_RWLOCK_INITIALIZER; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -{ echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5 -echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $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 -int -main () -{ -int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -{ echo "$as_me:$LINENO: checking for compiler atomic operations" >&5 -echo $ECHO_N "checking for compiler atomic operations... $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. */ - -int -main () -{ -int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GCC_ATOMICS 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - - -{ echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5 -echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; } -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -static void __attribute__((pure)) *test(void *muffin, ...) {} -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<_ACEOF -#define HAVE_ATTRIBUTE_pure 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -CFLAGS="$saved_CFLAGS" - - -{ echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5 -echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; } -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -static void __attribute__((malloc)) *test(void *muffin, ...) {} -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<_ACEOF -#define HAVE_ATTRIBUTE_malloc 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -CFLAGS="$saved_CFLAGS" - - -{ echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5 -echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; } -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -static void __attribute__((const)) *test(void *muffin, ...) {} -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<_ACEOF -#define HAVE_ATTRIBUTE_const 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -CFLAGS="$saved_CFLAGS" - - -{ echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5 -echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; } -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -static void __attribute__((unused)) *test(void *muffin, ...) {} -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<_ACEOF -#define HAVE_ATTRIBUTE_unused 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -CFLAGS="$saved_CFLAGS" - - -{ echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5 -echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; } -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -static void __attribute__((always_inline)) *test(void *muffin, ...) {} -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<_ACEOF -#define HAVE_ATTRIBUTE_always_inline 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -CFLAGS="$saved_CFLAGS" - - -{ echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5 -echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; } -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -static void __attribute__((deprecated)) *test(void *muffin, ...) {} -int -main () -{ - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<_ACEOF -#define HAVE_ATTRIBUTE_deprecated 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -CFLAGS="$saved_CFLAGS" - - -{ echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5 -echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; } -saved_CFLAGS="${CFLAGS}" -CFLAGS="${CFLAGS} -ffunction-sections" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -int x = 1; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - saved_LDFLAGS="${LDFLAGS}" - LDFLAGS="${LDFLAGS} -Wl,--gc-sections" - { echo "$as_me:$LINENO: checking for --gc-sections support" >&5 -echo $ECHO_N "checking for --gc-sections support... $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. */ - -int -main () -{ -int x = 1; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - GC_CFLAGS="-ffunction-sections" - GC_LDFLAGS="-Wl,--gc-sections" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="${saved_LDFLAGS}" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -CFLAGS="${saved_CFLAGS}" - - - -{ echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5 -echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; } -if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - AST_DECLARATION_AFTER_STATEMENT= -fi - - -{ echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5 -echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; } -if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - AST_NO_STRICT_OVERFLOW=-fno-strict-overflow -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - AST_NO_STRICT_OVERFLOW= -fi - - -{ echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5 -echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; } -if test "${ac_cv_search_res_9_ninit+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$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 res_9_ninit (); -int -main () -{ -return res_9_ninit (); - ; - return 0; -} -_ACEOF -for ac_lib in '' resolv; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_res_9_ninit=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_res_9_ninit+set}" = set; then - break -fi -done -if test "${ac_cv_search_res_9_ninit+set}" = set; then - : -else - ac_cv_search_res_9_ninit=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5 -echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; } -ac_res=$ac_cv_search_res_9_ninit -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ echo "$as_me:$LINENO: checking for res_ninit" >&5 -echo $ECHO_N "checking for res_ninit... $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. */ - - #ifdef HAVE_SYS_SOCKET_H - #include - #endif - #ifdef HAVE_NETINET_IN_H - #include - #endif - #ifdef HAVE_ARPA_NAMESER_H - #include - #endif - #include -int -main () -{ -int foo = res_ninit(NULL); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_RES_NINIT 1 -_ACEOF - - { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5 -echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; } -if test "${ac_cv_search_res_9_ndestroy+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$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 res_9_ndestroy (); -int -main () -{ -return res_9_ndestroy (); - ; - return 0; -} -_ACEOF -for ac_lib in '' resolv; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_res_9_ndestroy=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_res_9_ndestroy+set}" = set; then - break -fi -done -if test "${ac_cv_search_res_9_ndestroy+set}" = set; then - : -else - ac_cv_search_res_9_ndestroy=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5 -echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; } -ac_res=$ac_cv_search_res_9_ndestroy -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - { echo "$as_me:$LINENO: checking for res_ndestroy" >&5 -echo $ECHO_N "checking for res_ndestroy... $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. */ - - #ifdef HAVE_SYS_SOCKET_H - #include - #endif - #ifdef HAVE_NETINET_IN_H - #include - #endif - #ifdef HAVE_ARPA_NAMESER_H - #include - #endif - #include -int -main () -{ -res_ndestroy(NULL); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_RES_NDESTROY 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -{ echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5 -echo $ECHO_N "checking for RTLD_NOLOAD... $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 -int -main () -{ -int foo = RTLD_NOLOAD; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_RTLD_NOLOAD 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -{ echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5 -echo $ECHO_N "checking for IP_MTU_DISCOVER... $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 -int -main () -{ -int foo = IP_MTU_DISCOVER; - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_IP_MTU_DISCOVER 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - -if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then - { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5 -echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5 -echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5 -echo $ECHO_N "checking libkern/OSAtomic.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 libkern/OSAtomic.h presence" >&5 -echo $ECHO_N "checking libkern/OSAtomic.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5 -echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5 -echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; } - -fi -if test $ac_cv_header_libkern_OSAtomic_h = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_OSX_ATOMICS 1 -_ACEOF - -fi - - - -{ echo "$as_me:$LINENO: checking for int" >&5 -echo $ECHO_N "checking for int... $ECHO_C" >&6; } -if test "${ac_cv_type_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 -typedef int ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_int=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_int=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 -echo "${ECHO_T}$ac_cv_type_int" >&6; } - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ echo "$as_me:$LINENO: checking size of int" >&5 -echo $ECHO_N "checking size of int... $ECHO_C" >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -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 - typedef int ac__type_sizeof_; -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - 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 - typedef int ac__type_sizeof_; -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - 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 - typedef int ac__type_sizeof_; -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - 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 - typedef int ac__type_sizeof_; -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - 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 - typedef int ac__type_sizeof_; -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_int=$ac_lo;; -'') if test "$ac_cv_type_int" = yes; then - { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (int) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } - else - ac_cv_sizeof_int=0 - fi ;; -esac -else - 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 - typedef int ac__type_sizeof_; -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (ac__type_sizeof_))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (ac__type_sizeof_)))) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (ac__type_sizeof_)))) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./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_sizeof_int=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -if test "$ac_cv_type_int" = yes; then - { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (int) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } - else - ac_cv_sizeof_int=0 - fi -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 -echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF - - - -# do the package library checks now - - -if test "${USE_ALSA}" != "no"; then - pbxlibdir="" - if test "x${ALSA_DIR}" != "x"; then - if test -d ${ALSA_DIR}/lib; then - pbxlibdir="-L${ALSA_DIR}/lib" - else - pbxlibdir="-L${ALSA_DIR}" - fi - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - 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" - fi - ALSA_INCLUDE="${ALSA_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}" - 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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&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 - ac_cv_header_alsa_asoundlib_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5 -echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; } - -fi -if test $ac_cv_header_alsa_asoundlib_h = yes; then - ALSA_HEADER_FOUND=1 -else - ALSA_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${ALSA_HEADER_FOUND}" = "x0" ; then - if test -n "${ALSA_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5 -echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;} - exit 1 - fi - ALSA_LIB="" - ALSA_INCLUDE="" - PBX_ALSA=0 - else - PBX_ALSA=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_ALSA 1 -_ACEOF - - fi - elif test -n "${ALSA_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_CURSES}" != "no"; then - pbxlibdir="" - if test "x${CURSES_DIR}" != "x"; then - if test -d ${CURSES_DIR}/lib; then - pbxlibdir="-L${CURSES_DIR}/lib" - else - pbxlibdir="-L${CURSES_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5 -echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; } -if test "${ac_cv_lib_curses_initscr+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcurses ${pbxlibdir} $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 initscr (); -int -main () -{ -return initscr (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_curses_initscr=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_curses_initscr=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5 -echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; } -if test $ac_cv_lib_curses_initscr = yes; then - AST_CURSES_FOUND=yes -else - AST_CURSES_FOUND=no -fi - - - if test "${AST_CURSES_FOUND}" = "yes"; then - CURSES_LIB="-lcurses " - CURSES_HEADER_FOUND="1" - if test "x${CURSES_DIR}" != "x"; then - CURSES_LIB="${pbxlibdir} ${CURSES_LIB}" - CURSES_INCLUDE="-I${CURSES_DIR}/include" - fi - CURSES_INCLUDE="${CURSES_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}" - if test "xcurses.h" != "x" ; then - if test "${ac_cv_header_curses_h+set}" = set; then - { echo "$as_me:$LINENO: checking for curses.h" >&5 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking curses.h usability" >&5 -echo $ECHO_N "checking curses.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 curses.h presence" >&5 -echo $ECHO_N "checking curses.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for curses.h" >&5 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_curses_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6; } - -fi -if test $ac_cv_header_curses_h = yes; then - CURSES_HEADER_FOUND=1 -else - CURSES_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${CURSES_HEADER_FOUND}" = "x0" ; then - if test -n "${CURSES_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5 -echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;} - exit 1 - fi - CURSES_LIB="" - CURSES_INCLUDE="" - PBX_CURSES=0 - else - PBX_CURSES=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_CURSES 1 -_ACEOF - - fi - elif test -n "${CURSES_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "x${host_os}" = "xlinux-gnu" ; then - -if test "${USE_CAP}" != "no"; then - pbxlibdir="" - if test "x${CAP_DIR}" != "x"; then - if test -d ${CAP_DIR}/lib; then - pbxlibdir="-L${CAP_DIR}/lib" - else - pbxlibdir="-L${CAP_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5 -echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; } -if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcap ${pbxlibdir} $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 cap_from_text (); -int -main () -{ -return cap_from_text (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_cap_cap_from_text=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_cap_cap_from_text=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5 -echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; } -if test $ac_cv_lib_cap_cap_from_text = yes; then - AST_CAP_FOUND=yes -else - AST_CAP_FOUND=no -fi - - - if test "${AST_CAP_FOUND}" = "yes"; then - CAP_LIB="-lcap " - CAP_HEADER_FOUND="1" - if test "x${CAP_DIR}" != "x"; then - CAP_LIB="${pbxlibdir} ${CAP_LIB}" - CAP_INCLUDE="-I${CAP_DIR}/include" - fi - CAP_INCLUDE="${CAP_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}" - if test "xsys/capability.h" != "x" ; then - if test "${ac_cv_header_sys_capability_h+set}" = set; then - { echo "$as_me:$LINENO: checking for sys/capability.h" >&5 -echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_capability_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking sys/capability.h usability" >&5 -echo $ECHO_N "checking sys/capability.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 sys/capability.h presence" >&5 -echo $ECHO_N "checking sys/capability.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for sys/capability.h" >&5 -echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_capability_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_sys_capability_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; } - -fi -if test $ac_cv_header_sys_capability_h = yes; then - CAP_HEADER_FOUND=1 -else - CAP_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${CAP_HEADER_FOUND}" = "x0" ; then - if test -n "${CAP_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5 -echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;} - exit 1 - fi - CAP_LIB="" - CAP_INCLUDE="" - PBX_CAP=0 - else - PBX_CAP=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_CAP 1 -_ACEOF - - fi - elif test -n "${CAP_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;} - exit 1 - fi -fi - -fi - -if test "${USE_DAHDI}" != "no" ; then - - if test "x${PBX_DAHDI}" != "x1"; then - { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5 -echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${DAHDI_DIR}" != "x"; then - DAHDI_INCLUDE="-I${DAHDI_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#if defined(DAHDI_CODE) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - PBX_DAHDI=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_DAHDI 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_DAHDI_VERSION -_ACEOF - - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="${saved_cppflags}" - fi - - - if test "x${PBX_DAHDI}" = "x1" ; then - PBX_DAHDI_TRANSCODE=1 - - fi -fi - - - if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then - if test "xgetifaddrs() support" != "x"; then - { echo "$as_me:$LINENO: checking for getifaddrs() support" >&5 -echo $ECHO_N "checking for getifaddrs() support... $ECHO_C" >&6; } - else - { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5 -echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; } - fi - saved_cppflags="${CPPFLAGS}" - if test "x${GETIFADDRS_DIR}" != "x"; then - GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ - struct ifaddrs *p; getifaddrs(&p); - - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - PBX_GETIFADDRS=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETIFADDRS 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETIFADDRS_VERSION -_ACEOF - - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="${saved_cppflags}" - fi - - -GSM_INTERNAL="yes" - -GSM_SYSTEM="yes" -if test "${USE_GSM}" != "no"; then - if test "${GSM_DIR}" = "internal"; then - GSM_SYSTEM="no" - elif test "${GSM_DIR}" != ""; then - GSM_INTERNAL="no" - fi - if test "${GSM_SYSTEM}" = "yes"; then - gsmlibdir="" - if test "x${GSM_DIR}" != "x"; then - if test -d ${GSM_DIR}/lib; then - gsmlibdir="-L${GSM_DIR}/lib" - else - gsmlibdir="-L${GSM_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5 -echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; } -if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgsm ${gsmlibdir} $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 gsm_create (); -int -main () -{ -return gsm_create (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_gsm_gsm_create=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gsm_gsm_create=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5 -echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; } -if test $ac_cv_lib_gsm_gsm_create = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_GSM 1 -_ACEOF - -fi - - if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then - if test "x${GSM_DIR}" != "x" ; then - as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5 -echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.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 ${GSM_DIR}/include/gsm.h usability" >&5 -echo $ECHO_N "checking ${GSM_DIR}/include/gsm.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 <${GSM_DIR}/include/gsm.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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${GSM_DIR}/include/gsm.h presence" >&5 -echo $ECHO_N "checking ${GSM_DIR}/include/gsm.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 <${GSM_DIR}/include/gsm.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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5 -echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.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 - GSM_HEADER_FOUND=1 -else - GSM_HEADER_FOUND=0 -fi - - - as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5 -echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.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 ${GSM_DIR}/include/gsm/gsm.h usability" >&5 -echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.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 <${GSM_DIR}/include/gsm/gsm.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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${GSM_DIR}/include/gsm/gsm.h presence" >&5 -echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.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 <${GSM_DIR}/include/gsm/gsm.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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5 -echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.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 - GSM_GSM_HEADER_FOUND=1 -else - GSM_GSM_HEADER_FOUND=0 -fi - - - else - if test "${ac_cv_header_gsm_h+set}" = set; then - { echo "$as_me:$LINENO: checking for gsm.h" >&5 -echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; } -if test "${ac_cv_header_gsm_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5 -echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking gsm.h usability" >&5 -echo $ECHO_N "checking gsm.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 gsm.h presence" >&5 -echo $ECHO_N "checking gsm.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for gsm.h" >&5 -echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; } -if test "${ac_cv_header_gsm_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_gsm_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5 -echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; } - -fi -if test $ac_cv_header_gsm_h = yes; then - GSM_HEADER_FOUND=1 -else - GSM_HEADER_FOUND=0 -fi - - - if test "${ac_cv_header_gsm_gsm_h+set}" = set; then - { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5 -echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; } -if test "${ac_cv_header_gsm_gsm_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5 -echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5 -echo $ECHO_N "checking gsm/gsm.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 gsm/gsm.h presence" >&5 -echo $ECHO_N "checking gsm/gsm.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5 -echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; } -if test "${ac_cv_header_gsm_gsm_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_gsm_gsm_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5 -echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; } - -fi -if test $ac_cv_header_gsm_gsm_h = yes; then - GSM_GSM_HEADER_FOUND=1 -else - GSM_GSM_HEADER_FOUND=0 -fi - - - fi - if test "${GSM_HEADER_FOUND}" = "0" ; then - if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then - if test "x${GSM_MANDATORY}" = "xyes" ; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5 -echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;} - exit 1 - fi - fi - fi - GSM_OK=0 - if test "${GSM_HEADER_FOUND}" = "1" ; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_GSM_HEADER 1 -_ACEOF - - GSM_OK=1 - else - if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_GSM_GSM_HEADER 1 -_ACEOF - - GSM_OK=1 - fi - fi - if test "${GSM_OK}" = "1" ; then - GSM_LIB="-lgsm" - if test "x${GSM_DIR}" != "x"; then - GSM_LIB="${gsmlibdir} ${GSM_LIB}" - GSM_INCLUDE="-I${GSM_DIR}/include" - fi - PBX_GSM=1 - GSM_INTERNAL="no" - fi - fi - fi - if test "${GSM_INTERNAL}" = "yes"; then - PBX_GSM=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_GSM_HEADER 1 -_ACEOF - - fi -fi - - -if test "${USE_IKSEMEL}" != "no"; then - pbxlibdir="" - if test "x${IKSEMEL_DIR}" != "x"; then - if test -d ${IKSEMEL_DIR}/lib; then - pbxlibdir="-L${IKSEMEL_DIR}/lib" - else - pbxlibdir="-L${IKSEMEL_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5 -echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; } -if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-liksemel ${pbxlibdir} $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 iks_start_sasl (); -int -main () -{ -return iks_start_sasl (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_iksemel_iks_start_sasl=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_iksemel_iks_start_sasl=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5 -echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; } -if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then - AST_IKSEMEL_FOUND=yes -else - AST_IKSEMEL_FOUND=no -fi - - - if test "${AST_IKSEMEL_FOUND}" = "yes"; then - IKSEMEL_LIB="-liksemel " - IKSEMEL_HEADER_FOUND="1" - if test "x${IKSEMEL_DIR}" != "x"; then - IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}" - IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include" - fi - IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}" - if test "xiksemel.h" != "x" ; then - if test "${ac_cv_header_iksemel_h+set}" = set; then - { echo "$as_me:$LINENO: checking for iksemel.h" >&5 -echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_iksemel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5 -echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking iksemel.h usability" >&5 -echo $ECHO_N "checking iksemel.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 iksemel.h presence" >&5 -echo $ECHO_N "checking iksemel.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for iksemel.h" >&5 -echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_iksemel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_iksemel_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5 -echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; } - -fi -if test $ac_cv_header_iksemel_h = yes; then - IKSEMEL_HEADER_FOUND=1 -else - IKSEMEL_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then - if test -n "${IKSEMEL_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5 -echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;} - exit 1 - fi - IKSEMEL_LIB="" - IKSEMEL_INCLUDE="" - PBX_IKSEMEL=0 - else - PBX_IKSEMEL=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_IKSEMEL 1 -_ACEOF - - fi - elif test -n "${IKSEMEL_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${PBX_IKSEMEL}" = 1; then - -if test "${USE_GNUTLS}" != "no"; then - pbxlibdir="" - if test "x${GNUTLS_DIR}" != "x"; then - if test -d ${GNUTLS_DIR}/lib; then - pbxlibdir="-L${GNUTLS_DIR}/lib" - else - pbxlibdir="-L${GNUTLS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5 -echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; } -if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $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 gnutls_bye (); -int -main () -{ -return gnutls_bye (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_gnutls_gnutls_bye=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gnutls_gnutls_bye=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5 -echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; } -if test $ac_cv_lib_gnutls_gnutls_bye = yes; then - AST_GNUTLS_FOUND=yes -else - AST_GNUTLS_FOUND=no -fi - - - if test "${AST_GNUTLS_FOUND}" = "yes"; then - GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error" - GNUTLS_HEADER_FOUND="1" - if test "x${GNUTLS_DIR}" != "x"; then - GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}" - GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include" - fi - GNUTLS_INCLUDE="${GNUTLS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${GNUTLS_INCLUDE}" - if test "xgnutls/gnutls.h" != "x" ; then - if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then - { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5 -echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; } -if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5 -echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5 -echo $ECHO_N "checking gnutls/gnutls.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 gnutls/gnutls.h presence" >&5 -echo $ECHO_N "checking gnutls/gnutls.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5 -echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; } -if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_gnutls_gnutls_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5 -echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; } - -fi -if test $ac_cv_header_gnutls_gnutls_h = yes; then - GNUTLS_HEADER_FOUND=1 -else - GNUTLS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then - if test -n "${GNUTLS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5 -echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;} - exit 1 - fi - GNUTLS_LIB="" - GNUTLS_INCLUDE="" - PBX_GNUTLS=0 - else - PBX_GNUTLS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_GNUTLS 1 -_ACEOF - - fi - elif test -n "${GNUTLS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;} - exit 1 - fi -fi - -fi - -if test "${USE_IMAP_TK}" != "no"; then - saved_cppflags="${CPPFLAGS}" - saved_libs="${LIBS}" - switch_to_system_on_failure="no" - if test "${IMAP_TK_DIR}" = ""; then - IMAP_TK_DIR=`pwd`"/../imap-2004g" - switch_to_system_on_failure="yes" - fi - if test "${IMAP_TK_DIR}" != "system"; then - { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5 -echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; } - if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then - imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS` - fi - imap_libs="${IMAP_TK_DIR}/c-client/c-client.a" - imap_include="-I${IMAP_TK_DIR}/c-client" - CPPFLAGS="${CPPFLAGS} ${imap_include}" - LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "c-client.h" - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - MAILSTREAM *foo = mail_open(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "${ac_cv_imap_tk}" = "yes"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "c-client.h" - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - long check = mail_expunge_full(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk2006="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk2006="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="${saved_cppflags}" - LIBS="${saved_libs}" - if test "${ac_cv_imap_tk}" = "no"; then - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - if test "${switch_to_system_on_failure}" = "yes"; then - IMAP_TK_DIR="system" - else #This means they specified a directory. Search for a package installation there too - { echo "$as_me:$LINENO: checking for system c-client library..." >&5 -echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; } - CPPFLAGS="${saved_cppflags}" - LIBS="${saved_libs}" - imap_include="-I${IMAP_TK_DIR}/include" - imap_ldflags="-L${IMAP_TK_DIR}/lib" - imap_libs="-lc-client" - CPPFLAGS="${CPPFLAGS} ${imap_include}" - LIBS="${LIBS} ${imap_libs} ${imap_ldflags}" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "c-client.h" - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - MAILSTREAM *foo = mail_open(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "${ac_cv_imap_tk}" = "yes"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "c-client.h" - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - long check = mail_expunge_full(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk2006="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk2006="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - fi - fi - fi - if test "${IMAP_TK_DIR}" = "system"; then - #We will enter here if user specified "system" or if any of above checks failed - { echo "$as_me:$LINENO: checking for system c-client library..." >&5 -echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; } - CPPFLAGS="${saved_cppflags}" - LIBS="${saved_libs}" - imap_ldflags="" - imap_libs="-lc-client" - imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first - CPPFLAGS="${CPPFLAGS} ${imap_include}" - LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - MAILSTREAM *foo = mail_open(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "${ac_cv_imap_tk}" = "yes"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - long check = mail_expunge_full(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk2006="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk2006="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - else #looking in imap directory didn't work, try c-client - imap_ldflags="" - imap_libs="-lc-client" - imap_include="-DUSE_SYSTEM_CCLIENT" - CPPFLAGS="${saved_cppflags}" - LIBS="${saved_libs}" - CPPFLAGS="${CPPFLAGS} ${imap_include}" - LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - MAILSTREAM *foo = mail_open(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "${ac_cv_imap_tk}" = "yes"; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - void mm_searched (MAILSTREAM *stream,unsigned long number) - { - } - void mm_exists (MAILSTREAM *stream,unsigned long number) - { - } - void mm_expunged (MAILSTREAM *stream,unsigned long number) - { - } - void mm_flags (MAILSTREAM *stream,unsigned long number) - { - } - void mm_notify (MAILSTREAM *stream,char *string,long errflg) - { - } - void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes) - { - } - void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) - { - } - void mm_log (char *string,long errflg) - { - } - void mm_dlog (char *string) - { - } - void mm_login (NETMBX *mb,char *user,char *pwd,long trial) - { - } - void mm_critical (MAILSTREAM *stream) - { - } - void mm_nocritical (MAILSTREAM *stream) - { - } - long mm_diskerror (MAILSTREAM *stream,long errcode,long serious) - { - } - void mm_fatal (char *string) - { - } -int -main () -{ - - long check = mail_expunge_full(NULL, "", 0); - - - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_imap_tk2006="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_imap_tk2006="no" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - fi - fi - if test "${ac_cv_imap_tk}" = "yes"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}` - IMAP_TK_INCLUDE="${imap_include}" - PBX_IMAP_TK=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_IMAP_TK 1 -_ACEOF - - if test "${ac_cv_imap_tk2006}" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_IMAP_TK2006 1 -_ACEOF - - fi - elif test -n "${IMAP_TK_MANDATORY}"; then - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5 -echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-imap." >&5 -echo "$as_me: *** including --without-imap." >&6;} - exit 1 - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - fi - CPPFLAGS="${saved_cppflags}" - LIBS="${saved_libs}" -fi - -# Needed by unixodbc - -if test "${USE_LTDL}" != "no"; then - pbxlibdir="" - if test "x${LTDL_DIR}" != "x"; then - if test -d ${LTDL_DIR}/lib; then - pbxlibdir="-L${LTDL_DIR}/lib" - else - pbxlibdir="-L${LTDL_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 -echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; } -if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl ${pbxlibdir} $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 lt_dlinit (); -int -main () -{ -return lt_dlinit (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_ltdl_lt_dlinit=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ltdl_lt_dlinit=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test $ac_cv_lib_ltdl_lt_dlinit = yes; then - AST_LTDL_FOUND=yes -else - AST_LTDL_FOUND=no -fi - - - if test "${AST_LTDL_FOUND}" = "yes"; then - LTDL_LIB="-lltdl " - LTDL_HEADER_FOUND="1" - if test "x${LTDL_DIR}" != "x"; then - LTDL_LIB="${pbxlibdir} ${LTDL_LIB}" - LTDL_INCLUDE="-I${LTDL_DIR}/include" - fi - LTDL_INCLUDE="${LTDL_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}" - if test "xltdl.h" != "x" ; then - if test "${ac_cv_header_ltdl_h+set}" = set; then - { echo "$as_me:$LINENO: checking for ltdl.h" >&5 -echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; } -if test "${ac_cv_header_ltdl_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5 -echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking ltdl.h usability" >&5 -echo $ECHO_N "checking ltdl.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ltdl.h presence" >&5 -echo $ECHO_N "checking ltdl.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ltdl.h" >&5 -echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; } -if test "${ac_cv_header_ltdl_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_ltdl_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5 -echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; } - -fi -if test $ac_cv_header_ltdl_h = yes; then - LTDL_HEADER_FOUND=1 -else - LTDL_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${LTDL_HEADER_FOUND}" = "x0" ; then - if test -n "${LTDL_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5 -echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;} - exit 1 - fi - LTDL_LIB="" - LTDL_INCLUDE="" - PBX_LTDL=0 - else - PBX_LTDL=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_LTDL 1 -_ACEOF - - fi - elif test -n "${LTDL_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;} - exit 1 - fi -fi - - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -if test "${USE_KDE}" != "no"; then - { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5 -echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; } - saved_libs="${LIBS}" - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include" - if test -d ${KDE_DIR}/lib; then - kdelibdir="${KDE_DIR}/lib" - else - kdelibdir="${KDE_DIR}" - fi - LIBS="${LIBS} -L${kdelibdir} -lkdecore" - - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "kcrash.h" -int -main () -{ -KCrash::defaultCrashHandler(1); - ; - 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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_kde_crash="yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_kde_crash="no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - - LIBS="${saved_libs}" - CPPFLAGS="${saved_cppflags}" - - if test "${ac_cv_lib_kde_crash}" = "yes"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - KDE_LIB="-lkdecore -lkdeui" - if test "${KDE_DIR}" != ""; then - KDE_LIB="-L${kdelibdir} ${KDE_LIB}" - KDE_INCLUDE="-I${KDE_DIR}/include" - fi - PBX_KDE=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBKDE 1 -_ACEOF - - elif test -n "${KDE_MANDATORY}"; then - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5 -echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-kde." >&5 -echo "$as_me: *** including --without-kde." >&6;} - exit 1 - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - fi -fi -if test "${PBX_KDE}" = 1; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args. -set dummy ${ac_tool_prefix}kdeinit; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_KDEINIT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $KDEINIT in - [\\/]* | ?:[\\/]*) - ac_cv_path_KDEINIT="$KDEINIT" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -KDEINIT=$ac_cv_path_KDEINIT -if test -n "$KDEINIT"; then - { echo "$as_me:$LINENO: result: $KDEINIT" >&5 -echo "${ECHO_T}$KDEINIT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_KDEINIT"; then - ac_pt_KDEINIT=$KDEINIT - # Extract the first word of "kdeinit", so it can be a program name with args. -set dummy kdeinit; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_KDEINIT in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT -if test -n "$ac_pt_KDEINIT"; then - { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5 -echo "${ECHO_T}$ac_pt_KDEINIT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_KDEINIT" = x; then - KDEINIT="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - KDEINIT=$ac_pt_KDEINIT - fi -else - KDEINIT="$ac_cv_path_KDEINIT" -fi - - if test ! x"${KDEINIT}" = xNo; then - KDEDIR=$(${DIRNAME} ${KDEINIT}) - KDEDIR=$(${DIRNAME} ${KDEDIR}) - fi - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -if test "${USE_MISDN}" != "no"; then - pbxlibdir="" - if test "x${MISDN_DIR}" != "x"; then - if test -d ${MISDN_DIR}/lib; then - pbxlibdir="-L${MISDN_DIR}/lib" - else - pbxlibdir="-L${MISDN_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5 -echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; } -if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lmISDN ${pbxlibdir} $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 mISDN_open (); -int -main () -{ -return mISDN_open (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_mISDN_mISDN_open=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_mISDN_mISDN_open=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5 -echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; } -if test $ac_cv_lib_mISDN_mISDN_open = yes; then - AST_MISDN_FOUND=yes -else - AST_MISDN_FOUND=no -fi - - - if test "${AST_MISDN_FOUND}" = "yes"; then - MISDN_LIB="-lmISDN " - MISDN_HEADER_FOUND="1" - if test "x${MISDN_DIR}" != "x"; then - MISDN_LIB="${pbxlibdir} ${MISDN_LIB}" - MISDN_INCLUDE="-I${MISDN_DIR}/include" - fi - MISDN_INCLUDE="${MISDN_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}" - if test "xmISDNuser/mISDNlib.h" != "x" ; then - if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then - { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5 -echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5 -echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5 -echo $ECHO_N "checking mISDNuser/mISDNlib.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 mISDNuser/mISDNlib.h presence" >&5 -echo $ECHO_N "checking mISDNuser/mISDNlib.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5 -echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5 -echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; } - -fi -if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then - MISDN_HEADER_FOUND=1 -else - MISDN_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${MISDN_HEADER_FOUND}" = "x0" ; then - if test -n "${MISDN_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5 -echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;} - exit 1 - fi - MISDN_LIB="" - MISDN_INCLUDE="" - PBX_MISDN=0 - else - PBX_MISDN=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_MISDN 1 -_ACEOF - - fi - elif test -n "${MISDN_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${PBX_MISDN}" = 1; then - -if test "${USE_ISDNNET}" != "no"; then - pbxlibdir="" - if test "x${ISDNNET_DIR}" != "x"; then - if test -d ${ISDNNET_DIR}/lib; then - pbxlibdir="-L${ISDNNET_DIR}/lib" - else - pbxlibdir="-L${ISDNNET_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5 -echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; } -if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $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 init_manager (); -int -main () -{ -return init_manager (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_isdnnet_init_manager=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_isdnnet_init_manager=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5 -echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; } -if test $ac_cv_lib_isdnnet_init_manager = yes; then - AST_ISDNNET_FOUND=yes -else - AST_ISDNNET_FOUND=no -fi - - - if test "${AST_ISDNNET_FOUND}" = "yes"; then - ISDNNET_LIB="-lisdnnet -lmISDN -lpthread" - ISDNNET_HEADER_FOUND="1" - if test "x${ISDNNET_DIR}" != "x"; then - ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}" - ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include" - fi - ISDNNET_INCLUDE="${ISDNNET_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}" - if test "xmISDNuser/isdn_net.h" != "x" ; then - if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then - { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5 -echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; } -if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5 -echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5 -echo $ECHO_N "checking mISDNuser/isdn_net.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 mISDNuser/isdn_net.h presence" >&5 -echo $ECHO_N "checking mISDNuser/isdn_net.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5 -echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; } -if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5 -echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; } - -fi -if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then - ISDNNET_HEADER_FOUND=1 -else - ISDNNET_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then - if test -n "${ISDNNET_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5 -echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;} - exit 1 - fi - ISDNNET_LIB="" - ISDNNET_INCLUDE="" - PBX_ISDNNET=0 - else - PBX_ISDNNET=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_ISDNNET 1 -_ACEOF - - fi - elif test -n "${ISDNNET_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${USE_SUPPSERV}" != "no"; then - pbxlibdir="" - if test "x${SUPPSERV_DIR}" != "x"; then - if test -d ${SUPPSERV_DIR}/lib; then - pbxlibdir="-L${SUPPSERV_DIR}/lib" - else - pbxlibdir="-L${SUPPSERV_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5 -echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; } -if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsuppserv ${pbxlibdir} $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 encodeFac (); -int -main () -{ -return encodeFac (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_suppserv_encodeFac=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_suppserv_encodeFac=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5 -echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; } -if test $ac_cv_lib_suppserv_encodeFac = yes; then - AST_SUPPSERV_FOUND=yes -else - AST_SUPPSERV_FOUND=no -fi - - - if test "${AST_SUPPSERV_FOUND}" = "yes"; then - SUPPSERV_LIB="-lsuppserv " - SUPPSERV_HEADER_FOUND="1" - if test "x${SUPPSERV_DIR}" != "x"; then - SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}" - SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include" - fi - SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}" - if test "xmISDNuser/suppserv.h" != "x" ; then - if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then - { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5 -echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; } -if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5 -echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5 -echo $ECHO_N "checking mISDNuser/suppserv.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 mISDNuser/suppserv.h presence" >&5 -echo $ECHO_N "checking mISDNuser/suppserv.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5 -echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; } -if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5 -echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; } - -fi -if test $ac_cv_header_mISDNuser_suppserv_h = yes; then - SUPPSERV_HEADER_FOUND=1 -else - SUPPSERV_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then - if test -n "${SUPPSERV_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5 -echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;} - exit 1 - fi - SUPPSERV_LIB="" - SUPPSERV_INCLUDE="" - PBX_SUPPSERV=0 - else - PBX_SUPPSERV=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_SUPPSERV 1 -_ACEOF - - fi - elif test -n "${SUPPSERV_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;} - exit 1 - fi -fi - - if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then - { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5 -echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5 -echo $ECHO_N "checking linux/mISDNdsp.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 linux/mISDNdsp.h presence" >&5 -echo $ECHO_N "checking linux/mISDNdsp.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5 -echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; } - -fi -if test $ac_cv_header_linux_mISDNdsp_h = yes; then - -cat >>confdefs.h <<_ACEOF -#define MISDN_1_2 1 -_ACEOF - -fi - - -fi - - -if test "${USE_NBS}" != "no"; then - pbxlibdir="" - if test "x${NBS_DIR}" != "x"; then - if test -d ${NBS_DIR}/lib; then - pbxlibdir="-L${NBS_DIR}/lib" - else - pbxlibdir="-L${NBS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5 -echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; } -if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnbs ${pbxlibdir} $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 nbs_connect (); -int -main () -{ -return nbs_connect (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_nbs_nbs_connect=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_nbs_nbs_connect=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5 -echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; } -if test $ac_cv_lib_nbs_nbs_connect = yes; then - AST_NBS_FOUND=yes -else - AST_NBS_FOUND=no -fi - - - if test "${AST_NBS_FOUND}" = "yes"; then - NBS_LIB="-lnbs " - NBS_HEADER_FOUND="1" - if test "x${NBS_DIR}" != "x"; then - NBS_LIB="${pbxlibdir} ${NBS_LIB}" - NBS_INCLUDE="-I${NBS_DIR}/include" - fi - NBS_INCLUDE="${NBS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}" - if test "xnbs.h" != "x" ; then - if test "${ac_cv_header_nbs_h+set}" = set; then - { echo "$as_me:$LINENO: checking for nbs.h" >&5 -echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; } -if test "${ac_cv_header_nbs_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5 -echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking nbs.h usability" >&5 -echo $ECHO_N "checking nbs.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 nbs.h presence" >&5 -echo $ECHO_N "checking nbs.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for nbs.h" >&5 -echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; } -if test "${ac_cv_header_nbs_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_nbs_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5 -echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; } - -fi -if test $ac_cv_header_nbs_h = yes; then - NBS_HEADER_FOUND=1 -else - NBS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${NBS_HEADER_FOUND}" = "x0" ; then - if test -n "${NBS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5 -echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;} - exit 1 - fi - NBS_LIB="" - NBS_INCLUDE="" - PBX_NBS=0 - else - PBX_NBS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_NBS 1 -_ACEOF - - fi - elif test -n "${NBS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_NCURSES}" != "no"; then - pbxlibdir="" - if test "x${NCURSES_DIR}" != "x"; then - if test -d ${NCURSES_DIR}/lib; then - pbxlibdir="-L${NCURSES_DIR}/lib" - else - pbxlibdir="-L${NCURSES_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 -echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; } -if test "${ac_cv_lib_ncurses_initscr+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lncurses ${pbxlibdir} $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 initscr (); -int -main () -{ -return initscr (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_ncurses_initscr=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ncurses_initscr=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 -echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; } -if test $ac_cv_lib_ncurses_initscr = yes; then - AST_NCURSES_FOUND=yes -else - AST_NCURSES_FOUND=no -fi - - - if test "${AST_NCURSES_FOUND}" = "yes"; then - NCURSES_LIB="-lncurses " - NCURSES_HEADER_FOUND="1" - if test "x${NCURSES_DIR}" != "x"; then - NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}" - NCURSES_INCLUDE="-I${NCURSES_DIR}/include" - fi - NCURSES_INCLUDE="${NCURSES_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}" - if test "xcurses.h" != "x" ; then - if test "${ac_cv_header_curses_h+set}" = set; then - { echo "$as_me:$LINENO: checking for curses.h" >&5 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking curses.h usability" >&5 -echo $ECHO_N "checking curses.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 curses.h presence" >&5 -echo $ECHO_N "checking curses.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for curses.h" >&5 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; } -if test "${ac_cv_header_curses_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_curses_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6; } - -fi -if test $ac_cv_header_curses_h = yes; then - NCURSES_HEADER_FOUND=1 -else - NCURSES_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then - if test -n "${NCURSES_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5 -echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;} - exit 1 - fi - NCURSES_LIB="" - NCURSES_INCLUDE="" - PBX_NCURSES=0 - else - PBX_NCURSES=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_NCURSES 1 -_ACEOF - - fi - elif test -n "${NCURSES_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;} - exit 1 - fi -fi - - -NETSNMP_CONFIG=No -if test "${USE_NETSNMP}" != "no"; then - if test "x${NETSNMP_DIR}" != "x"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $NETSNMP_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in ${NETSNMP_DIR}/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG -if test -n "$NETSNMP_CONFIG"; then - { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5 -echo "${ECHO_T}$NETSNMP_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_NETSNMP_CONFIG"; then - ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG - # Extract the first word of "net-snmp-config", so it can be a program name with args. -set dummy net-snmp-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_NETSNMP_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in ${NETSNMP_DIR}/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG -if test -n "$ac_pt_NETSNMP_CONFIG"; then - { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5 -echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_NETSNMP_CONFIG" = x; then - NETSNMP_CONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG - fi -else - NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG" -fi - - if test x"${NETSNMP_CONFIG}" = xNo; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5 -echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;} - { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5 -echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5 -echo "$as_me: *** including --without-netsnmp" >&6;} - exit 1 - fi - else - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $NETSNMP_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_NETSNMP_CONFIG="$NETSNMP_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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG -if test -n "$NETSNMP_CONFIG"; then - { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5 -echo "${ECHO_T}$NETSNMP_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_NETSNMP_CONFIG"; then - ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG - # Extract the first word of "net-snmp-config", so it can be a program name with args. -set dummy net-snmp-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_NETSNMP_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG -if test -n "$ac_pt_NETSNMP_CONFIG"; then - { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5 -echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_NETSNMP_CONFIG" = x; then - NETSNMP_CONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG - fi -else - NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG" -fi - - fi -fi -if test x"${NETSNMP_CONFIG}" != xNo; then - NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs` - - { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5 -echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; } -if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnetsnmp ${NETSNMP_libs} $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 snmp_register_callback (); -int -main () -{ -return snmp_register_callback (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_netsnmp_snmp_register_callback=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_netsnmp_snmp_register_callback=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5 -echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; } -if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_NETSNMP 1 -_ACEOF - -fi - - - if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then - NETSNMP_LIB="${NETSNMP_libs}" - PBX_NETSNMP=1 - elif test -n "${NETSNMP_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5 -echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5 -echo "$as_me: *** including --without-netsnmp" >&6;} - exit 1 - fi -elif test -n "${NETSNMP_MANDATORY}"; -then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5 -echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5 -echo "$as_me: *** including --without-netsnmp" >&6;} - exit 1 -fi - - -if test "${USE_NEWT}" != "no"; then - pbxlibdir="" - if test "x${NEWT_DIR}" != "x"; then - if test -d ${NEWT_DIR}/lib; then - pbxlibdir="-L${NEWT_DIR}/lib" - else - pbxlibdir="-L${NEWT_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5 -echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; } -if test "${ac_cv_lib_newt_newtBell+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnewt ${pbxlibdir} $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 newtBell (); -int -main () -{ -return newtBell (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_newt_newtBell=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_newt_newtBell=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5 -echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; } -if test $ac_cv_lib_newt_newtBell = yes; then - AST_NEWT_FOUND=yes -else - AST_NEWT_FOUND=no -fi - - - if test "${AST_NEWT_FOUND}" = "yes"; then - NEWT_LIB="-lnewt " - NEWT_HEADER_FOUND="1" - if test "x${NEWT_DIR}" != "x"; then - NEWT_LIB="${pbxlibdir} ${NEWT_LIB}" - NEWT_INCLUDE="-I${NEWT_DIR}/include" - fi - NEWT_INCLUDE="${NEWT_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}" - if test "xnewt.h" != "x" ; then - if test "${ac_cv_header_newt_h+set}" = set; then - { echo "$as_me:$LINENO: checking for newt.h" >&5 -echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; } -if test "${ac_cv_header_newt_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5 -echo "${ECHO_T}$ac_cv_header_newt_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking newt.h usability" >&5 -echo $ECHO_N "checking newt.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 newt.h presence" >&5 -echo $ECHO_N "checking newt.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for newt.h" >&5 -echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; } -if test "${ac_cv_header_newt_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_newt_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5 -echo "${ECHO_T}$ac_cv_header_newt_h" >&6; } - -fi -if test $ac_cv_header_newt_h = yes; then - NEWT_HEADER_FOUND=1 -else - NEWT_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${NEWT_HEADER_FOUND}" = "x0" ; then - if test -n "${NEWT_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5 -echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;} - exit 1 - fi - NEWT_LIB="" - NEWT_INCLUDE="" - PBX_NEWT=0 - else - PBX_NEWT=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_NEWT 1 -_ACEOF - - fi - elif test -n "${NEWT_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_UNIXODBC}" != "no"; then - pbxlibdir="" - if test "x${UNIXODBC_DIR}" != "x"; then - if test -d ${UNIXODBC_DIR}/lib; then - pbxlibdir="-L${UNIXODBC_DIR}/lib" - else - pbxlibdir="-L${UNIXODBC_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5 -echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; } -if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lodbc ${pbxlibdir} $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 SQLConnect (); -int -main () -{ -return SQLConnect (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_odbc_SQLConnect=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_odbc_SQLConnect=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5 -echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; } -if test $ac_cv_lib_odbc_SQLConnect = yes; then - AST_UNIXODBC_FOUND=yes -else - AST_UNIXODBC_FOUND=no -fi - - - if test "${AST_UNIXODBC_FOUND}" = "yes"; then - UNIXODBC_LIB="-lodbc " - UNIXODBC_HEADER_FOUND="1" - if test "x${UNIXODBC_DIR}" != "x"; then - UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}" - UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include" - fi - UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}" - if test "xsql.h" != "x" ; then - if test "${ac_cv_header_sql_h+set}" = set; then - { echo "$as_me:$LINENO: checking for sql.h" >&5 -echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sql_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 -echo "${ECHO_T}$ac_cv_header_sql_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking sql.h usability" >&5 -echo $ECHO_N "checking sql.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 sql.h presence" >&5 -echo $ECHO_N "checking sql.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for sql.h" >&5 -echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sql_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_sql_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 -echo "${ECHO_T}$ac_cv_header_sql_h" >&6; } - -fi -if test $ac_cv_header_sql_h = yes; then - UNIXODBC_HEADER_FOUND=1 -else - UNIXODBC_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then - if test -n "${UNIXODBC_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5 -echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;} - exit 1 - fi - UNIXODBC_LIB="" - UNIXODBC_INCLUDE="" - PBX_UNIXODBC=0 - else - PBX_UNIXODBC=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_UNIXODBC 1 -_ACEOF - - fi - elif test -n "${UNIXODBC_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_OGG}" != "no"; then - pbxlibdir="" - if test "x${OGG_DIR}" != "x"; then - if test -d ${OGG_DIR}/lib; then - pbxlibdir="-L${OGG_DIR}/lib" - else - pbxlibdir="-L${OGG_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5 -echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; } -if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-logg ${pbxlibdir} $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 ogg_sync_init (); -int -main () -{ -return ogg_sync_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_ogg_ogg_sync_init=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ogg_ogg_sync_init=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5 -echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; } -if test $ac_cv_lib_ogg_ogg_sync_init = yes; then - AST_OGG_FOUND=yes -else - AST_OGG_FOUND=no -fi - - - if test "${AST_OGG_FOUND}" = "yes"; then - OGG_LIB="-logg " - OGG_HEADER_FOUND="1" - if test "x${OGG_DIR}" != "x"; then - OGG_LIB="${pbxlibdir} ${OGG_LIB}" - OGG_INCLUDE="-I${OGG_DIR}/include" - fi - OGG_INCLUDE="${OGG_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}" - if test "x" != "x" ; then - if test "${ac_cv_header_+set}" = set; then - { echo "$as_me:$LINENO: checking for " >&5 -echo $ECHO_N "checking for ... $ECHO_C" >&6; } -if test "${ac_cv_header_+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 -echo "${ECHO_T}$ac_cv_header_" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking usability" >&5 -echo $ECHO_N "checking 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 <> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 presence" >&5 -echo $ECHO_N "checking 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 <> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: : accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 -echo "$as_me: WARNING: : present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 -echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for " >&5 -echo $ECHO_N "checking for ... $ECHO_C" >&6; } -if test "${ac_cv_header_+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 -echo "${ECHO_T}$ac_cv_header_" >&6; } - -fi -if test $ac_cv_header_ = yes; then - OGG_HEADER_FOUND=1 -else - OGG_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${OGG_HEADER_FOUND}" = "x0" ; then - if test -n "${OGG_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5 -echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;} - exit 1 - fi - OGG_LIB="" - OGG_INCLUDE="" - PBX_OGG=0 - else - PBX_OGG=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_OGG 1 -_ACEOF - - fi - elif test -n "${OGG_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${USE_OSS}" != "no"; then -PBX_OSS=0 -if test "${ac_cv_header_linux_soundcard_h+set}" = set; then - { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 -echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 -echo $ECHO_N "checking linux/soundcard.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 linux/soundcard.h presence" >&5 -echo $ECHO_N "checking linux/soundcard.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 -echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_linux_soundcard_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } - -fi -if test $ac_cv_header_linux_soundcard_h = yes; then - - PBX_OSS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_OSS 1 -_ACEOF - - -fi - - -if test "$PBX_OSS" = "0"; then - if test "${ac_cv_header_sys_soundcard_h+set}" = set; then - { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 -echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 -echo $ECHO_N "checking sys/soundcard.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 sys/soundcard.h presence" >&5 -echo $ECHO_N "checking sys/soundcard.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 -echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sys_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_sys_soundcard_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } - -fi -if test $ac_cv_header_sys_soundcard_h = yes; then - - PBX_OSS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_OSS 1 -_ACEOF - - -fi - - -fi -if test "$PBX_OSS" = "0"; then - -if test "${USE_OSS}" != "no"; then - pbxlibdir="" - if test "x${OSS_DIR}" != "x"; then - if test -d ${OSS_DIR}/lib; then - pbxlibdir="-L${OSS_DIR}/lib" - else - pbxlibdir="-L${OSS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5 -echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; } -if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lossaudio ${pbxlibdir} $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 oss_ioctl_mixer (); -int -main () -{ -return oss_ioctl_mixer (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_ossaudio_oss_ioctl_mixer=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ossaudio_oss_ioctl_mixer=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5 -echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; } -if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then - AST_OSS_FOUND=yes -else - AST_OSS_FOUND=no -fi - - - if test "${AST_OSS_FOUND}" = "yes"; then - OSS_LIB="-lossaudio " - OSS_HEADER_FOUND="1" - if test "x${OSS_DIR}" != "x"; then - OSS_LIB="${pbxlibdir} ${OSS_LIB}" - OSS_INCLUDE="-I${OSS_DIR}/include" - fi - OSS_INCLUDE="${OSS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}" - if test "xsoundcard.h" != "x" ; then - if test "${ac_cv_header_soundcard_h+set}" = set; then - { echo "$as_me:$LINENO: checking for soundcard.h" >&5 -echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking soundcard.h usability" >&5 -echo $ECHO_N "checking soundcard.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 soundcard.h presence" >&5 -echo $ECHO_N "checking soundcard.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for soundcard.h" >&5 -echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; } -if test "${ac_cv_header_soundcard_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_soundcard_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5 -echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; } - -fi -if test $ac_cv_header_soundcard_h = yes; then - OSS_HEADER_FOUND=1 -else - OSS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${OSS_HEADER_FOUND}" = "x0" ; then - if test -n "${OSS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5 -echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;} - exit 1 - fi - OSS_LIB="" - OSS_INCLUDE="" - PBX_OSS=0 - else - PBX_OSS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_OSS 1 -_ACEOF - - fi - elif test -n "${OSS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;} - exit 1 - fi -fi - -fi -fi - -PG_CONFIG=No -if test "${USE_PGSQL}" != "no"; then - if test "x${PGSQL_DIR}" != "x"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pg_config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in ${PGSQL_DIR}/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -PG_CONFIG=$ac_cv_path_PG_CONFIG -if test -n "$PG_CONFIG"; then - { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5 -echo "${ECHO_T}$PG_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PG_CONFIG"; then - ac_pt_PG_CONFIG=$PG_CONFIG - # Extract the first word of "pg_config", so it can be a program name with args. -set dummy pg_config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_PG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in ${PGSQL_DIR}/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG -if test -n "$ac_pt_PG_CONFIG"; then - { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5 -echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_PG_CONFIG" = x; then - PG_CONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - PG_CONFIG=$ac_pt_PG_CONFIG - fi -else - PG_CONFIG="$ac_cv_path_PG_CONFIG" -fi - - if test x"${PG_CONFIG}" = xNo; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5 -echo "$as_me: *** pg_config was not found in the path you specified:" >&6;} - { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5 -echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-postgres" >&5 -echo "$as_me: *** including --without-postgres" >&6;} - exit 1 - fi - else - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pg_config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PG_CONFIG="$PG_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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -PG_CONFIG=$ac_cv_path_PG_CONFIG -if test -n "$PG_CONFIG"; then - { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5 -echo "${ECHO_T}$PG_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PG_CONFIG"; then - ac_pt_PG_CONFIG=$PG_CONFIG - # Extract the first word of "pg_config", so it can be a program name with args. -set dummy pg_config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_PG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG -if test -n "$ac_pt_PG_CONFIG"; then - { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5 -echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_PG_CONFIG" = x; then - PG_CONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - PG_CONFIG=$ac_pt_PG_CONFIG - fi -else - PG_CONFIG="$ac_cv_path_PG_CONFIG" -fi - - fi -fi -if test "${PG_CONFIG}" != No; then - PGSQL_libdir=`${PG_CONFIG} --libdir` - PGSQL_includedir=`${PG_CONFIG} --includedir` - - if test "x$?" != "x0" ; then - if test -n "${PGSQL_MANDATORY}" ; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5 -echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-postgres" >&5 -echo "$as_me: *** including --without-postgres" >&6;} - exit 1 - fi - else - { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5 -echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; } -if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpq -L${PGSQL_libdir} -lz $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 PQescapeStringConn (); -int -main () -{ -return PQescapeStringConn (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pq_PQescapeStringConn=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_pq_PQescapeStringConn=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 -echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; } -if test $ac_cv_lib_pq_PQescapeStringConn = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_PGSQL 1 -_ACEOF - -fi - - - if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then - PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz" - PGSQL_INCLUDE="-I${PGSQL_includedir}" - PBX_PGSQL=1 - elif test -n "${PGSQL_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5 -echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-postgres" >&5 -echo "$as_me: *** including --without-postgres" >&6;} - exit 1 - fi - fi -elif test -n "${PGSQL_MANDATORY}"; -then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5 -echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-postgres" >&5 -echo "$as_me: *** including --without-postgres" >&6;} - exit 1 -fi - - -if test "${USE_POPT}" != "no"; then - pbxlibdir="" - if test "x${POPT_DIR}" != "x"; then - if test -d ${POPT_DIR}/lib; then - pbxlibdir="-L${POPT_DIR}/lib" - else - pbxlibdir="-L${POPT_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5 -echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; } -if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpopt ${pbxlibdir} $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 poptStrerror (); -int -main () -{ -return poptStrerror (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_popt_poptStrerror=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_popt_poptStrerror=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5 -echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; } -if test $ac_cv_lib_popt_poptStrerror = yes; then - AST_POPT_FOUND=yes -else - AST_POPT_FOUND=no -fi - - - if test "${AST_POPT_FOUND}" = "yes"; then - POPT_LIB="-lpopt " - POPT_HEADER_FOUND="1" - if test "x${POPT_DIR}" != "x"; then - POPT_LIB="${pbxlibdir} ${POPT_LIB}" - POPT_INCLUDE="-I${POPT_DIR}/include" - fi - POPT_INCLUDE="${POPT_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}" - if test "xpopt.h" != "x" ; then - if test "${ac_cv_header_popt_h+set}" = set; then - { echo "$as_me:$LINENO: checking for popt.h" >&5 -echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; } -if test "${ac_cv_header_popt_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5 -echo "${ECHO_T}$ac_cv_header_popt_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking popt.h usability" >&5 -echo $ECHO_N "checking popt.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 popt.h presence" >&5 -echo $ECHO_N "checking popt.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for popt.h" >&5 -echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; } -if test "${ac_cv_header_popt_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_popt_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5 -echo "${ECHO_T}$ac_cv_header_popt_h" >&6; } - -fi -if test $ac_cv_header_popt_h = yes; then - POPT_HEADER_FOUND=1 -else - POPT_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${POPT_HEADER_FOUND}" = "x0" ; then - if test -n "${POPT_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5 -echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;} - exit 1 - fi - POPT_LIB="" - POPT_INCLUDE="" - PBX_POPT=0 - else - PBX_POPT=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_POPT 1 -_ACEOF - - fi - elif test -n "${POPT_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_PRI}" != "no"; then - pbxlibdir="" - if test "x${PRI_DIR}" != "x"; then - if test -d ${PRI_DIR}/lib; then - pbxlibdir="-L${PRI_DIR}/lib" - else - pbxlibdir="-L${PRI_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5 -echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; } -if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpri ${pbxlibdir} $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 pri_keypad_facility (); -int -main () -{ -return pri_keypad_facility (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pri_pri_keypad_facility=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_pri_pri_keypad_facility=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5 -echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; } -if test $ac_cv_lib_pri_pri_keypad_facility = yes; then - AST_PRI_FOUND=yes -else - AST_PRI_FOUND=no -fi - - - if test "${AST_PRI_FOUND}" = "yes"; then - PRI_LIB="-lpri " - PRI_HEADER_FOUND="1" - if test "x${PRI_DIR}" != "x"; then - PRI_LIB="${pbxlibdir} ${PRI_LIB}" - PRI_INCLUDE="-I${PRI_DIR}/include" - fi - PRI_INCLUDE="${PRI_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}" - if test "xlibpri.h" != "x" ; then - if test "${ac_cv_header_libpri_h+set}" = set; then - { echo "$as_me:$LINENO: checking for libpri.h" >&5 -echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libpri_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5 -echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking libpri.h usability" >&5 -echo $ECHO_N "checking libpri.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 libpri.h presence" >&5 -echo $ECHO_N "checking libpri.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for libpri.h" >&5 -echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libpri_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_libpri_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5 -echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; } - -fi -if test $ac_cv_header_libpri_h = yes; then - PRI_HEADER_FOUND=1 -else - PRI_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${PRI_HEADER_FOUND}" = "x0" ; then - if test -n "${PRI_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5 -echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;} - exit 1 - fi - PRI_LIB="" - PRI_INCLUDE="" - PBX_PRI=0 - else - PBX_PRI=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_PRI 1 -_ACEOF - - fi - elif test -n "${PRI_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_PRI_VERSION}" != "no"; then - pbxlibdir="" - if test "x${PRI_VERSION_DIR}" != "x"; then - if test -d ${PRI_VERSION_DIR}/lib; then - pbxlibdir="-L${PRI_VERSION_DIR}/lib" - else - pbxlibdir="-L${PRI_VERSION_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5 -echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; } -if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpri ${pbxlibdir} $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 pri_get_version (); -int -main () -{ -return pri_get_version (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pri_pri_get_version=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_pri_pri_get_version=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5 -echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; } -if test $ac_cv_lib_pri_pri_get_version = yes; then - AST_PRI_VERSION_FOUND=yes -else - AST_PRI_VERSION_FOUND=no -fi - - - if test "${AST_PRI_VERSION_FOUND}" = "yes"; then - PRI_VERSION_LIB="-lpri " - PRI_VERSION_HEADER_FOUND="1" - if test "x${PRI_VERSION_DIR}" != "x"; then - PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}" - PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include" - fi - PRI_VERSION_INCLUDE="${PRI_VERSION_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${PRI_VERSION_INCLUDE}" - if test "xlibpri.h" != "x" ; then - if test "${ac_cv_header_libpri_h+set}" = set; then - { echo "$as_me:$LINENO: checking for libpri.h" >&5 -echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libpri_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5 -echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking libpri.h usability" >&5 -echo $ECHO_N "checking libpri.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 libpri.h presence" >&5 -echo $ECHO_N "checking libpri.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for libpri.h" >&5 -echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libpri_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_libpri_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5 -echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; } - -fi -if test $ac_cv_header_libpri_h = yes; then - PRI_VERSION_HEADER_FOUND=1 -else - PRI_VERSION_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then - if test -n "${PRI_VERSION_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5 -echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;} - exit 1 - fi - PRI_VERSION_LIB="" - PRI_VERSION_INCLUDE="" - PBX_PRI_VERSION=0 - else - PBX_PRI_VERSION=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_PRI_VERSION 1 -_ACEOF - - fi - elif test -n "${PRI_VERSION_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_PRI_INBANDDISCONNECT}" != "no"; then - pbxlibdir="" - if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then - if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then - pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib" - else - pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for pri_set_inbanddisconnect in -lpri" >&5 -echo $ECHO_N "checking for pri_set_inbanddisconnect in -lpri... $ECHO_C" >&6; } -if test "${ac_cv_lib_pri_pri_set_inbanddisconnect+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpri ${pbxlibdir} $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 pri_set_inbanddisconnect (); -int -main () -{ -return pri_set_inbanddisconnect (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pri_pri_set_inbanddisconnect=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_pri_pri_set_inbanddisconnect=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_set_inbanddisconnect" >&5 -echo "${ECHO_T}$ac_cv_lib_pri_pri_set_inbanddisconnect" >&6; } -if test $ac_cv_lib_pri_pri_set_inbanddisconnect = yes; then - AST_PRI_INBANDDISCONNECT_FOUND=yes -else - AST_PRI_INBANDDISCONNECT_FOUND=no -fi - - - if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then - PRI_INBANDDISCONNECT_LIB="-lpri " - PRI_INBANDDISCONNECT_HEADER_FOUND="1" - if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then - PRI_INBANDDISCONNECT_LIB="${pbxlibdir} ${PRI_INBANDDISCONNECT_LIB}" - PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include" - fi - PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}" - if test "xlibpri.h" != "x" ; then - if test "${ac_cv_header_libpri_h+set}" = set; then - { echo "$as_me:$LINENO: checking for libpri.h" >&5 -echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libpri_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5 -echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking libpri.h usability" >&5 -echo $ECHO_N "checking libpri.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 libpri.h presence" >&5 -echo $ECHO_N "checking libpri.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for libpri.h" >&5 -echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; } -if test "${ac_cv_header_libpri_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_libpri_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5 -echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; } - -fi -if test $ac_cv_header_libpri_h = yes; then - PRI_INBANDDISCONNECT_HEADER_FOUND=1 -else - PRI_INBANDDISCONNECT_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then - if test -n "${PRI_INBANDDISCONNECT_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5 -echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;} - exit 1 - fi - PRI_INBANDDISCONNECT_LIB="" - PRI_INBANDDISCONNECT_INCLUDE="" - PBX_PRI_INBANDDISCONNECT=0 - else - PBX_PRI_INBANDDISCONNECT=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_PRI_INBANDDISCONNECT 1 -_ACEOF - - fi - elif test -n "${PRI_INBANDDISCONNECT_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${USE_PWLIB}" != "no"; then - if test -n "${PWLIB_DIR}"; then - PWLIBDIR="${PWLIB_DIR}" - fi - - -PWLIB_INCDIR= -PWLIB_LIBDIR= -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -if test "${PWLIBDIR:-unset}" != "unset" ; then - as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5 -echo $ECHO_N "checking for ${PWLIBDIR}/version.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 ${PWLIBDIR}/version.h usability" >&5 -echo $ECHO_N "checking ${PWLIBDIR}/version.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 <${PWLIBDIR}/version.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${PWLIBDIR}/version.h presence" >&5 -echo $ECHO_N "checking ${PWLIBDIR}/version.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 <${PWLIBDIR}/version.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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5 -echo $ECHO_N "checking for ${PWLIBDIR}/version.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 - HAS_PWLIB=1 -fi - - -fi -if test "${HAS_PWLIB:-unset}" = "unset" ; then - if test "${OPENH323DIR:-unset}" != "unset"; then - as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5 -echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.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 ${OPENH323DIR}/../pwlib/version.h usability" >&5 -echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.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 <${OPENH323DIR}/../pwlib/version.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${OPENH323DIR}/../pwlib/version.h presence" >&5 -echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.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 <${OPENH323DIR}/../pwlib/version.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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5 -echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.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 - HAS_PWLIB=1 -fi - - - fi - if test "${HAS_PWLIB:-unset}" != "unset" ; then - PWLIBDIR="${OPENH323DIR}/../pwlib" - else - as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5 -echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.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 ${HOME}/pwlib/include/ptlib.h usability" >&5 -echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.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 <${HOME}/pwlib/include/ptlib.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${HOME}/pwlib/include/ptlib.h presence" >&5 -echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.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 <${HOME}/pwlib/include/ptlib.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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5 -echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.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 - HAS_PWLIB=1 -fi - - - if test "${HAS_PWLIB:-unset}" != "unset" ; then - PWLIBDIR="${HOME}/pwlib" - else - if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then - { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5 -echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5 -echo $ECHO_N "checking /usr/local/include/ptlib.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 -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 /usr/local/include/ptlib.h presence" >&5 -echo $ECHO_N "checking /usr/local/include/ptlib.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 -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5 -echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; } - -fi -if test $ac_cv_header__usr_local_include_ptlib_h = yes; then - HAS_PWLIB=1 -fi - - - if test "${HAS_PWLIB:-unset}" != "unset" ; then - # Extract the first word of "ptlib-config", so it can be a program name with args. -set dummy ptlib-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PTLIB_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /usr/local/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG -if test -n "$PTLIB_CONFIG"; then - { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5 -echo "${ECHO_T}$PTLIB_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - if test "${PTLIB_CONFIG:-unset}" = "unset" ; then - # Extract the first word of "ptlib-config", so it can be a program name with args. -set dummy ptlib-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PTLIB_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /usr/local/share/pwlib/make -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG -if test -n "$PTLIB_CONFIG"; then - { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5 -echo "${ECHO_T}$PTLIB_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi - PWLIB_INCDIR="/usr/local/include" - PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir` - if test "${PWLIB_LIBDIR:-unset}" = "unset"; then - if test "x$LIB64" != "x"; then - PWLIB_LIBDIR="/usr/local/lib64" - else - PWLIB_LIBDIR="/usr/local/lib" - fi - fi - PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs` - PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`" - else - if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then - { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5 -echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5 -echo $ECHO_N "checking /usr/include/ptlib.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 -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 /usr/include/ptlib.h presence" >&5 -echo $ECHO_N "checking /usr/include/ptlib.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 -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5 -echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header__usr_include_ptlib_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; } - -fi -if test $ac_cv_header__usr_include_ptlib_h = yes; then - HAS_PWLIB=1 -fi - - - if test "${HAS_PWLIB:-unset}" != "unset" ; then - # Extract the first word of "ptlib-config", so it can be a program name with args. -set dummy ptlib-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PTLIB_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /usr/share/pwlib/make -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG -if test -n "$PTLIB_CONFIG"; then - { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5 -echo "${ECHO_T}$PTLIB_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - PWLIB_INCDIR="/usr/include" - PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir` - if test "${PWLIB_LIBDIR:-unset}" = "unset"; then - if test "x$LIB64" != "x"; then - PWLIB_LIBDIR="/usr/lib64" - else - PWLIB_LIBDIR="/usr/lib" - fi - fi - PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs` - PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`" - fi - fi - fi - fi -fi - -#if test "${HAS_PWLIB:-unset}" = "unset" ; then -# echo "Cannot find pwlib - please install or set PWLIBDIR and try again" -# exit -#fi - -if test "${HAS_PWLIB:-unset}" != "unset" ; then - if test "${PWLIBDIR:-unset}" = "unset" ; then - if test "${PTLIB_CONFIG:-unset}" != "unset" ; then - PWLIBDIR=`$PTLIB_CONFIG --prefix` - else - echo "Cannot find ptlib-config - please install and try again" - exit - fi - fi - - if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then - PWLIBDIR="/usr/share/pwlib" - PWLIB_INCDIR="/usr/include" - if test "x$LIB64" != "x"; then - PWLIB_LIBDIR="/usr/lib64" - else - PWLIB_LIBDIR="/usr/lib" - fi - fi - if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then - PWLIBDIR="/usr/local/share/pwlib" - PWLIB_INCDIR="/usr/local/include" - if test "x$LIB64" != "x"; then - PWLIB_LIBDIR="/usr/local/lib64" - else - PWLIB_LIBDIR="/usr/local/lib" - fi - fi - - if test "${PWLIB_INCDIR:-unset}" = "unset"; then - PWLIB_INCDIR="${PWLIBDIR}/include" - fi - if test "${PWLIB_LIBDIR:-unset}" = "unset"; then - PWLIB_LIBDIR="${PWLIBDIR}/lib" - fi - - - - -fi - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - if test "${HAS_PWLIB:-unset}" != "unset"; then - PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'` - PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.` - PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.` - PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.` - let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER} - let PWLIB_REQ=1*10000+9*100+2 - - { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5 -echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; } - if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - unset HAS_PWLIB - else - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - fi - fi - - - if test "${HAS_PWLIB:-unset}" != "unset"; then - -PWLIB_OSTYPE= -case "$host_os" in - linux*) PWLIB_OSTYPE=linux ; - ;; - freebsd* ) PWLIB_OSTYPE=FreeBSD ; - ;; - openbsd* ) PWLIB_OSTYPE=OpenBSD ; - ENDLDLIBS="-lossaudio" ; - ;; - netbsd* ) PWLIB_OSTYPE=NetBSD ; - ENDLDLIBS="-lossaudio" ; - ;; - solaris* | sunos* ) PWLIB_OSTYPE=solaris ; - ;; - darwin* ) PWLIB_OSTYPE=Darwin ; - ;; - beos*) PWLIB_OSTYPE=beos ; - STDCCFLAGS="$STDCCFLAGS -D__BEOS__" - ;; - cygwin*) PWLIB_OSTYPE=cygwin ; - ;; - mingw*) PWLIB_OSTYPE=mingw ; - STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ; - ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ; - ;; - * ) PWLIB_OSTYPE="$host_os" ; - { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5 -echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ; - ;; -esac - -PWLIB_MACHTYPE= -case "$host_cpu" in - x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86 - ;; - - x86_64) PWLIB_MACHTYPE=x86_64 ; - P_64BIT=1 ; - LIB64=1 ; - ;; - - alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ; - P_64BIT=1 ; - ;; - - sparc ) PWLIB_MACHTYPE=sparc ; - ;; - - powerpc ) PWLIB_MACHTYPE=ppc ; - ;; - - ppc ) PWLIB_MACHTYPE=ppc ; - ;; - - powerpc64 ) PWLIB_MACHTYPE=ppc64 ; - P_64BIT=1 ; - LIB64=1 ; - ;; - - ppc64 ) PWLIB_MACHTYPE=ppc64 ; - P_64BIT=1 ; - LIB64=1 ; - ;; - - ia64) PWLIB_MACHTYPE=ia64 ; - P_64BIT=1 ; - ;; - - s390x) PWLIB_MACHTYPE=s390x ; - P_64BIT=1 ; - LIB64=1 ; - ;; - - s390) PWLIB_MACHTYPE=s390 ; - ;; - - * ) PWLIB_MACHTYPE="$host_cpu"; - { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5 -echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;; -esac - -PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}" - - - - - PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r" - - - if test "${HAS_PWLIB:-unset}" != "unset"; then - { echo "$as_me:$LINENO: checking PWLib installation validity" >&5 -echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; } - - saved_cppflags="${CPPFLAGS}" - saved_libs="${LIBS}" - if test "${PWLIB_LIB:-unset}" != "unset"; then - LIBS="${LIBS} ${PWLIB_LIB} " - else - LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} " - fi - CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} " - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "ptlib.h" -int -main () -{ -BOOL q = PTime::IsDaylightSavings(); - ; - 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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_lib_PWLIB="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_lib_PWLIB="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - LIBS="${saved_libs}" - CPPFLAGS="${saved_cppflags}" - - if test "${ac_cv_lib_PWLIB}" = "yes"; then - if test "${PWLIB_LIB:-undef}" = "undef"; then - if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then - PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}" - else - PWLIB_LIB="-l${PLATFORM_PWLIB}" - fi - fi - if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then - PWLIB_INCLUDE="-I${PWLIB_INCDIR}" - fi - PBX_PWLIB=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PWLIB 1 -_ACEOF - - fi - fi - - fi -fi - -if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5 -echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-pwlib" >&5 -echo "$as_me: *** including --without-pwlib" >&6;} - exit 1 -fi - -if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then - if test -n "${OPENH323_DIR}"; then - OPENH323DIR="${OPENH323_DIR}" - fi - -OPENH323_INCDIR= -OPENH323_LIBDIR= -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -if test "${OPENH323DIR:-unset}" != "unset" ; then - as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5 -echo $ECHO_N "checking for ${OPENH323DIR}/version.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 ${OPENH323DIR}/version.h usability" >&5 -echo $ECHO_N "checking ${OPENH323DIR}/version.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 <${OPENH323DIR}/version.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${OPENH323DIR}/version.h presence" >&5 -echo $ECHO_N "checking ${OPENH323DIR}/version.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 <${OPENH323DIR}/version.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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5 -echo $ECHO_N "checking for ${OPENH323DIR}/version.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 - HAS_OPENH323=1 -fi - - -fi -if test "${HAS_OPENH323:-unset}" = "unset" ; then - as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5 -echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.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 ${PWLIBDIR}/../openh323/version.h usability" >&5 -echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.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 <${PWLIBDIR}/../openh323/version.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${PWLIBDIR}/../openh323/version.h presence" >&5 -echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.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 <${PWLIBDIR}/../openh323/version.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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5 -echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.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 - OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1 -fi - - - if test "${HAS_OPENH323:-unset}" != "unset" ; then - OPENH323DIR="${PWLIBDIR}/../openh323" - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}" - as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5 -echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.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 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -#include <${OPENH323DIR}/include/h323.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - : -else - OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}" -fi - - - CPPFLAGS="${saved_cppflags}" - else - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}" - as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5 -echo $ECHO_N "checking for ${HOME}/openh323/include/h323.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 ${HOME}/openh323/include/h323.h usability" >&5 -echo $ECHO_N "checking ${HOME}/openh323/include/h323.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 <${HOME}/openh323/include/h323.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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${HOME}/openh323/include/h323.h presence" >&5 -echo $ECHO_N "checking ${HOME}/openh323/include/h323.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 <${HOME}/openh323/include/h323.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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5 -echo $ECHO_N "checking for ${HOME}/openh323/include/h323.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 - HAS_OPENH323=1 -fi - - - CPPFLAGS="${saved_cppflags}" - if test "${HAS_OPENH323:-unset}" != "unset" ; then - OPENH323DIR="${HOME}/openh323" - else - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}" - if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then - { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5 -echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5 -echo $ECHO_N "checking /usr/local/include/openh323/h323.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 -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 /usr/local/include/openh323/h323.h presence" >&5 -echo $ECHO_N "checking /usr/local/include/openh323/h323.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 -_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 && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.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_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5 -echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; } - -fi -if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then - HAS_OPENH323=1 -fi - - - CPPFLAGS="${saved_cppflags}" - if test "${HAS_OPENH323:-unset}" != "unset" ; then - OPENH323DIR="/usr/local/share/openh323" - OPENH323_INCDIR="/usr/local/include/openh323" - if test "x$LIB64" != "x"; then - OPENH323_LIBDIR="/usr/local/lib64" - else - OPENH323_LIBDIR="/usr/local/lib" - fi - else - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}" - { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5 -echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; } -if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -#include -_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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header__usr_include_openh323_h323_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header__usr_include_openh323_h323_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5 -echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; } -if test $ac_cv_header__usr_include_openh323_h323_h = yes; then - HAS_OPENH323=1 -fi - - - CPPFLAGS="${saved_cppflags}" - if test "${HAS_OPENH323:-unset}" != "unset" ; then - OPENH323DIR="/usr/share/openh323" - OPENH323_INCDIR="/usr/include/openh323" - if test "x$LIB64" != "x"; then - OPENH323_LIBDIR="/usr/lib64" - else - OPENH323_LIBDIR="/usr/lib" - fi - fi - fi - fi - fi -fi - -if test "${HAS_OPENH323:-unset}" != "unset" ; then - if test "${OPENH323_INCDIR:-unset}" = "unset"; then - OPENH323_INCDIR="${OPENH323DIR}/include" - fi - if test "${OPENH323_LIBDIR:-unset}" = "unset"; then - OPENH323_LIBDIR="${OPENH323DIR}/lib" - fi - - OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`" - OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`" - OPENH323DIR="`cd ${OPENH323DIR}; pwd`" - - - - -fi - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - if test "${HAS_OPENH323:-unset}" != "unset"; then - OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'` - OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.` - OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.` - OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.` - let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER} - let OPENH323_REQ=1*10000+17*100+3 - - { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5 -echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; } - if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - unset HAS_OPENH323 - else - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - fi - fi - - - if test "${HAS_OPENH323:-unset}" != "unset"; then - { echo "$as_me:$LINENO: checking OpenH323 build option" >&5 -echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; } - OPENH323_SUFFIX= - prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323" - for pfx in $prefixes; do - files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null` - libfile= - if test -n "$files"; then - for f in $files; do - if test -f $f -a ! -L $f; then - libfile=`basename $f` - break; - fi - done - fi - if test -n "$libfile"; then - OPENH323_PREFIX=$pfx - break; - fi - done - if test "${libfile:-unset}" != "unset"; then - OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"` - fi - case "${OPENH323_SUFFIX}" in - n) - OPENH323_BUILD="notrace";; - r) - OPENH323_BUILD="opt";; - d) - OPENH323_BUILD="debug";; - *) - if test "${OPENH323_PREFIX:-undef}" = "openh323"; then - notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"` - if test "x$notrace" = "x"; then - notrace="0" - fi - if test "$notrace" -ne 0; then - OPENH323_BUILD="notrace" - else - OPENH323_BUILD="opt" - fi - OPENH323_LIB="-l${OPENH323_PREFIX}" - else - OPENH323_BUILD="notrace" - fi - ;; - esac - { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5 -echo "${ECHO_T}${OPENH323_BUILD}" >&6; } - - - - fi - - PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}" - - if test "${HAS_OPENH323:-unset}" != "unset"; then - { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5 -echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; } - - saved_cppflags="${CPPFLAGS}" - saved_libs="${LIBS}" - if test "${OPENH323_LIB:-unset}" != "unset"; then - LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}" - else - LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}" - fi - CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}" - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include "ptlib.h" - #include "h323.h" - #include "h323ep.h" -int -main () -{ -H323EndPoint ep = H323EndPoint(); - ; - 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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_lib_OPENH323="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_lib_OPENH323="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - LIBS="${saved_libs}" - CPPFLAGS="${saved_cppflags}" - - if test "${ac_cv_lib_OPENH323}" = "yes"; then - if test "${OPENH323_LIB:-undef}" = "undef"; then - if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then - OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}" - else - OPENH323_LIB="-l${PLATFORM_OPENH323}" - fi - fi - if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then - OPENH323_INCLUDE="-I${OPENH323_INCDIR}" - fi - PBX_OPENH323=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_OPENH323 1 -_ACEOF - - fi - fi - -fi -if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5 -echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-h323" >&5 -echo "$as_me: *** including --without-h323" >&6;} - exit 1 -fi - - -if test "${USE_RADIUS}" != "no"; then - pbxlibdir="" - if test "x${RADIUS_DIR}" != "x"; then - if test -d ${RADIUS_DIR}/lib; then - pbxlibdir="-L${RADIUS_DIR}/lib" - else - pbxlibdir="-L${RADIUS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5 -echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; } -if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lradiusclient-ng ${pbxlibdir} $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 rc_read_config (); -int -main () -{ -return rc_read_config (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_radiusclient_ng_rc_read_config=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_radiusclient_ng_rc_read_config=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5 -echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; } -if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then - AST_RADIUS_FOUND=yes -else - AST_RADIUS_FOUND=no -fi - - - if test "${AST_RADIUS_FOUND}" = "yes"; then - RADIUS_LIB="-lradiusclient-ng " - RADIUS_HEADER_FOUND="1" - if test "x${RADIUS_DIR}" != "x"; then - RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}" - RADIUS_INCLUDE="-I${RADIUS_DIR}/include" - fi - RADIUS_INCLUDE="${RADIUS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}" - if test "xradiusclient-ng.h" != "x" ; then - if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then - { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5 -echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; } -if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5 -echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5 -echo $ECHO_N "checking radiusclient-ng.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 radiusclient-ng.h presence" >&5 -echo $ECHO_N "checking radiusclient-ng.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5 -echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; } -if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_radiusclient_ng_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5 -echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; } - -fi -if test $ac_cv_header_radiusclient_ng_h = yes; then - RADIUS_HEADER_FOUND=1 -else - RADIUS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then - if test -n "${RADIUS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5 -echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;} - exit 1 - fi - RADIUS_LIB="" - RADIUS_INCLUDE="" - PBX_RADIUS=0 - else - PBX_RADIUS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_RADIUS 1 -_ACEOF - - fi - elif test -n "${RADIUS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_SPEEX}" != "no"; then - pbxlibdir="" - if test "x${SPEEX_DIR}" != "x"; then - if test -d ${SPEEX_DIR}/lib; then - pbxlibdir="-L${SPEEX_DIR}/lib" - else - pbxlibdir="-L${SPEEX_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5 -echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; } -if test "${ac_cv_lib_speex_speex_encode+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lspeex ${pbxlibdir} -lm $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 speex_encode (); -int -main () -{ -return speex_encode (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_speex_speex_encode=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_speex_speex_encode=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5 -echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; } -if test $ac_cv_lib_speex_speex_encode = yes; then - AST_SPEEX_FOUND=yes -else - AST_SPEEX_FOUND=no -fi - - - if test "${AST_SPEEX_FOUND}" = "yes"; then - SPEEX_LIB="-lspeex -lm" - SPEEX_HEADER_FOUND="1" - if test "x${SPEEX_DIR}" != "x"; then - SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}" - SPEEX_INCLUDE="-I${SPEEX_DIR}/include" - fi - SPEEX_INCLUDE="${SPEEX_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}" - if test "xspeex/speex.h" != "x" ; then - if test "${ac_cv_header_speex_speex_h+set}" = set; then - { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 -echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } -if test "${ac_cv_header_speex_speex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 -echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking speex/speex.h usability" >&5 -echo $ECHO_N "checking speex/speex.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 speex/speex.h presence" >&5 -echo $ECHO_N "checking speex/speex.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for speex/speex.h" >&5 -echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } -if test "${ac_cv_header_speex_speex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_speex_speex_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 -echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } - -fi -if test $ac_cv_header_speex_speex_h = yes; then - SPEEX_HEADER_FOUND=1 -else - SPEEX_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then - if test -n "${SPEEX_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5 -echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;} - exit 1 - fi - SPEEX_LIB="" - SPEEX_INCLUDE="" - PBX_SPEEX=0 - else - PBX_SPEEX=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_SPEEX 1 -_ACEOF - - fi - elif test -n "${SPEEX_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;} - exit 1 - fi -fi - - -# See if the main speex library contains the preprocess functions - -if test "${USE_SPEEX_PREPROCESS}" != "no"; then - pbxlibdir="" - if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then - if test -d ${SPEEX_PREPROCESS_DIR}/lib; then - pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib" - else - pbxlibdir="-L${SPEEX_PREPROCESS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5 -echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; } -if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lspeex ${pbxlibdir} -lm $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 speex_preprocess_ctl (); -int -main () -{ -return speex_preprocess_ctl (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_speex_speex_preprocess_ctl=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_speex_speex_preprocess_ctl=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5 -echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; } -if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then - AST_SPEEX_PREPROCESS_FOUND=yes -else - AST_SPEEX_PREPROCESS_FOUND=no -fi - - - if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then - SPEEX_PREPROCESS_LIB="-lspeex -lm" - SPEEX_PREPROCESS_HEADER_FOUND="1" - if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then - SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}" - SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include" - fi - SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}" - if test "xspeex/speex.h" != "x" ; then - if test "${ac_cv_header_speex_speex_h+set}" = set; then - { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 -echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } -if test "${ac_cv_header_speex_speex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 -echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking speex/speex.h usability" >&5 -echo $ECHO_N "checking speex/speex.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 speex/speex.h presence" >&5 -echo $ECHO_N "checking speex/speex.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for speex/speex.h" >&5 -echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } -if test "${ac_cv_header_speex_speex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_speex_speex_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 -echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } - -fi -if test $ac_cv_header_speex_speex_h = yes; then - SPEEX_PREPROCESS_HEADER_FOUND=1 -else - SPEEX_PREPROCESS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then - if test -n "${SPEEX_PREPROCESS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5 -echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;} - exit 1 - fi - SPEEX_PREPROCESS_LIB="" - SPEEX_PREPROCESS_INCLUDE="" - PBX_SPEEX_PREPROCESS=0 - else - PBX_SPEEX_PREPROCESS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_SPEEX_PREPROCESS 1 -_ACEOF - - fi - elif test -n "${SPEEX_PREPROCESS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;} - exit 1 - fi -fi - -if test "${PBX_SPEEX_PREPROCESS}" = 1; then - PBX_SPEEX_PREPROCESS=1 -fi - - -if test "${USE_SPEEXDSP}" != "no"; then - pbxlibdir="" - if test "x${SPEEXDSP_DIR}" != "x"; then - if test -d ${SPEEXDSP_DIR}/lib; then - pbxlibdir="-L${SPEEXDSP_DIR}/lib" - else - pbxlibdir="-L${SPEEXDSP_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5 -echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; } -if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lspeexdsp ${pbxlibdir} -lm $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 speex_preprocess_ctl (); -int -main () -{ -return speex_preprocess_ctl (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_speexdsp_speex_preprocess_ctl=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_speexdsp_speex_preprocess_ctl=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5 -echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; } -if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then - AST_SPEEXDSP_FOUND=yes -else - AST_SPEEXDSP_FOUND=no -fi - - - if test "${AST_SPEEXDSP_FOUND}" = "yes"; then - SPEEXDSP_LIB="-lspeexdsp -lm" - SPEEXDSP_HEADER_FOUND="1" - if test "x${SPEEXDSP_DIR}" != "x"; then - SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}" - SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include" - fi - SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}" - if test "xspeex/speex.h" != "x" ; then - if test "${ac_cv_header_speex_speex_h+set}" = set; then - { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 -echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } -if test "${ac_cv_header_speex_speex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 -echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking speex/speex.h usability" >&5 -echo $ECHO_N "checking speex/speex.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 speex/speex.h presence" >&5 -echo $ECHO_N "checking speex/speex.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for speex/speex.h" >&5 -echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } -if test "${ac_cv_header_speex_speex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_speex_speex_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 -echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } - -fi -if test $ac_cv_header_speex_speex_h = yes; then - SPEEXDSP_HEADER_FOUND=1 -else - SPEEXDSP_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then - if test -n "${SPEEXDSP_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5 -echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;} - exit 1 - fi - SPEEXDSP_LIB="" - SPEEXDSP_INCLUDE="" - PBX_SPEEXDSP=0 - else - PBX_SPEEXDSP=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_SPEEXDSP 1 -_ACEOF - - fi - elif test -n "${SPEEXDSP_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;} - exit 1 - fi -fi - -if test "${PBX_SPEEXDSP}" = 1; then - PBX_SPEEX_PREPROCESS=1 -fi - - - - -if test "${USE_SQLITE}" != "no"; then - pbxlibdir="" - if test "x${SQLITE_DIR}" != "x"; then - if test -d ${SQLITE_DIR}/lib; then - pbxlibdir="-L${SQLITE_DIR}/lib" - else - pbxlibdir="-L${SQLITE_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5 -echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; } -if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsqlite ${pbxlibdir} $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 sqlite_exec (); -int -main () -{ -return sqlite_exec (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_sqlite_sqlite_exec=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_sqlite_sqlite_exec=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5 -echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; } -if test $ac_cv_lib_sqlite_sqlite_exec = yes; then - AST_SQLITE_FOUND=yes -else - AST_SQLITE_FOUND=no -fi - - - if test "${AST_SQLITE_FOUND}" = "yes"; then - SQLITE_LIB="-lsqlite " - SQLITE_HEADER_FOUND="1" - if test "x${SQLITE_DIR}" != "x"; then - SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}" - SQLITE_INCLUDE="-I${SQLITE_DIR}/include" - fi - SQLITE_INCLUDE="${SQLITE_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}" - if test "xsqlite.h" != "x" ; then - if test "${ac_cv_header_sqlite_h+set}" = set; then - { echo "$as_me:$LINENO: checking for sqlite.h" >&5 -echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sqlite_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5 -echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking sqlite.h usability" >&5 -echo $ECHO_N "checking sqlite.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 sqlite.h presence" >&5 -echo $ECHO_N "checking sqlite.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for sqlite.h" >&5 -echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; } -if test "${ac_cv_header_sqlite_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_sqlite_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5 -echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; } - -fi -if test $ac_cv_header_sqlite_h = yes; then - SQLITE_HEADER_FOUND=1 -else - SQLITE_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then - if test -n "${SQLITE_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5 -echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;} - exit 1 - fi - SQLITE_LIB="" - SQLITE_INCLUDE="" - PBX_SQLITE=0 - else - PBX_SQLITE=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_SQLITE 1 -_ACEOF - - fi - elif test -n "${SQLITE_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_OPENSSL}" != "no"; then - pbxlibdir="" - if test "x${OPENSSL_DIR}" != "x"; then - if test -d ${OPENSSL_DIR}/lib; then - pbxlibdir="-L${OPENSSL_DIR}/lib" - else - pbxlibdir="-L${OPENSSL_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5 -echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; } -if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lssl ${pbxlibdir} -lcrypto $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 SSL_connect (); -int -main () -{ -return SSL_connect (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_ssl_SSL_connect=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ssl_SSL_connect=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5 -echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; } -if test $ac_cv_lib_ssl_SSL_connect = yes; then - AST_OPENSSL_FOUND=yes -else - AST_OPENSSL_FOUND=no -fi - - - if test "${AST_OPENSSL_FOUND}" = "yes"; then - OPENSSL_LIB="-lssl -lcrypto" - OPENSSL_HEADER_FOUND="1" - if test "x${OPENSSL_DIR}" != "x"; then - OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}" - OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include" - fi - OPENSSL_INCLUDE="${OPENSSL_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}" - if test "xopenssl/ssl.h" != "x" ; then - if test "${ac_cv_header_openssl_ssl_h+set}" = set; then - { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 -echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } -if test "${ac_cv_header_openssl_ssl_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 -echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 -echo $ECHO_N "checking openssl/ssl.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 openssl/ssl.h presence" >&5 -echo $ECHO_N "checking openssl/ssl.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 -echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } -if test "${ac_cv_header_openssl_ssl_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_openssl_ssl_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 -echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } - -fi -if test $ac_cv_header_openssl_ssl_h = yes; then - OPENSSL_HEADER_FOUND=1 -else - OPENSSL_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then - if test -n "${OPENSSL_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5 -echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;} - exit 1 - fi - OPENSSL_LIB="" - OPENSSL_INCLUDE="" - PBX_OPENSSL=0 - else - PBX_OPENSSL=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_OPENSSL 1 -_ACEOF - - fi - elif test -n "${OPENSSL_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;} - exit 1 - fi -fi - -if test "$PBX_OPENSSL" = "1"; -then - -if test "${USE_OSPTK}" != "no"; then - pbxlibdir="" - if test "x${OSPTK_DIR}" != "x"; then - if test -d ${OSPTK_DIR}/lib; then - pbxlibdir="-L${OSPTK_DIR}/lib" - else - pbxlibdir="-L${OSPTK_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5 -echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; } -if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $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 OSPPCryptoDecrypt (); -int -main () -{ -return OSPPCryptoDecrypt (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_osptk_OSPPCryptoDecrypt=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_osptk_OSPPCryptoDecrypt=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5 -echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; } -if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then - AST_OSPTK_FOUND=yes -else - AST_OSPTK_FOUND=no -fi - - - if test "${AST_OSPTK_FOUND}" = "yes"; then - OSPTK_LIB="-losptk -lcrypto -lssl" - OSPTK_HEADER_FOUND="1" - if test "x${OSPTK_DIR}" != "x"; then - OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}" - OSPTK_INCLUDE="-I${OSPTK_DIR}/include" - fi - OSPTK_INCLUDE="${OSPTK_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}" - if test "xosp/osp.h" != "x" ; then - if test "${ac_cv_header_osp_osp_h+set}" = set; then - { echo "$as_me:$LINENO: checking for osp/osp.h" >&5 -echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; } -if test "${ac_cv_header_osp_osp_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5 -echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking osp/osp.h usability" >&5 -echo $ECHO_N "checking osp/osp.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 osp/osp.h presence" >&5 -echo $ECHO_N "checking osp/osp.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for osp/osp.h" >&5 -echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; } -if test "${ac_cv_header_osp_osp_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_osp_osp_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5 -echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; } - -fi -if test $ac_cv_header_osp_osp_h = yes; then - OSPTK_HEADER_FOUND=1 -else - OSPTK_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then - if test -n "${OSPTK_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5 -echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;} - exit 1 - fi - OSPTK_LIB="" - OSPTK_INCLUDE="" - PBX_OSPTK=0 - else - PBX_OSPTK=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_OSPTK 1 -_ACEOF - - fi - elif test -n "${OSPTK_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;} - exit 1 - fi -fi - -fi - - -if test "${USE_FREETDS}" != "no"; then - pbxlibdir="" - if test "x${FREETDS_DIR}" != "x"; then - if test -d ${FREETDS_DIR}/lib; then - pbxlibdir="-L${FREETDS_DIR}/lib" - else - pbxlibdir="-L${FREETDS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5 -echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; } -if test "${ac_cv_lib_tds_tds_version+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltds ${pbxlibdir} $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 tds_version (); -int -main () -{ -return tds_version (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_tds_tds_version=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_tds_tds_version=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5 -echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; } -if test $ac_cv_lib_tds_tds_version = yes; then - AST_FREETDS_FOUND=yes -else - AST_FREETDS_FOUND=no -fi - - - if test "${AST_FREETDS_FOUND}" = "yes"; then - FREETDS_LIB="-ltds " - FREETDS_HEADER_FOUND="1" - if test "x${FREETDS_DIR}" != "x"; then - FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}" - FREETDS_INCLUDE="-I${FREETDS_DIR}/include" - fi - FREETDS_INCLUDE="${FREETDS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}" - if test "xtds.h" != "x" ; then - if test "${ac_cv_header_tds_h+set}" = set; then - { echo "$as_me:$LINENO: checking for tds.h" >&5 -echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; } -if test "${ac_cv_header_tds_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5 -echo "${ECHO_T}$ac_cv_header_tds_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking tds.h usability" >&5 -echo $ECHO_N "checking tds.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 tds.h presence" >&5 -echo $ECHO_N "checking tds.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for tds.h" >&5 -echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; } -if test "${ac_cv_header_tds_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_tds_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5 -echo "${ECHO_T}$ac_cv_header_tds_h" >&6; } - -fi -if test $ac_cv_header_tds_h = yes; then - FREETDS_HEADER_FOUND=1 -else - FREETDS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then - if test -n "${FREETDS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5 -echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;} - exit 1 - fi - FREETDS_LIB="" - FREETDS_INCLUDE="" - PBX_FREETDS=0 - else - PBX_FREETDS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_FREETDS 1 -_ACEOF - - fi - elif test -n "${FREETDS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;} - exit 1 - fi -fi - -if test "${PBX_FREETDS}" != "0"; -then - if test "${FREETDS_DIR}x" = "x"; - then - for tds_dir in /usr /usr/local; - do - if test -f "${tds_dir}/include/tdsver.h"; - then - FREETDS_DIR="${tds_dir}" - fi - done - fi - case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in - *0.64*) - FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64" - ;; - *0.63*) - FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63" - ;; - *0.62*) - FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62" - ;; - *) - FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62" - ;; - esac -fi - - -if test "${USE_TERMCAP}" != "no"; then - pbxlibdir="" - if test "x${TERMCAP_DIR}" != "x"; then - if test -d ${TERMCAP_DIR}/lib; then - pbxlibdir="-L${TERMCAP_DIR}/lib" - else - pbxlibdir="-L${TERMCAP_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 -echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; } -if test "${ac_cv_lib_termcap_tgetent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltermcap ${pbxlibdir} $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 tgetent (); -int -main () -{ -return tgetent (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_termcap_tgetent=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_termcap_tgetent=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 -echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; } -if test $ac_cv_lib_termcap_tgetent = yes; then - AST_TERMCAP_FOUND=yes -else - AST_TERMCAP_FOUND=no -fi - - - if test "${AST_TERMCAP_FOUND}" = "yes"; then - TERMCAP_LIB="-ltermcap " - TERMCAP_HEADER_FOUND="1" - if test "x${TERMCAP_DIR}" != "x"; then - TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}" - TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include" - fi - TERMCAP_INCLUDE="${TERMCAP_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}" - if test "x" != "x" ; then - if test "${ac_cv_header_+set}" = set; then - { echo "$as_me:$LINENO: checking for " >&5 -echo $ECHO_N "checking for ... $ECHO_C" >&6; } -if test "${ac_cv_header_+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 -echo "${ECHO_T}$ac_cv_header_" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking usability" >&5 -echo $ECHO_N "checking 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 <> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 presence" >&5 -echo $ECHO_N "checking 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 <> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: : accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 -echo "$as_me: WARNING: : present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 -echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for " >&5 -echo $ECHO_N "checking for ... $ECHO_C" >&6; } -if test "${ac_cv_header_+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 -echo "${ECHO_T}$ac_cv_header_" >&6; } - -fi -if test $ac_cv_header_ = yes; then - TERMCAP_HEADER_FOUND=1 -else - TERMCAP_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then - if test -n "${TERMCAP_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5 -echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;} - exit 1 - fi - TERMCAP_LIB="" - TERMCAP_INCLUDE="" - PBX_TERMCAP=0 - else - PBX_TERMCAP=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_TERMCAP 1 -_ACEOF - - fi - elif test -n "${TERMCAP_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_TINFO}" != "no"; then - pbxlibdir="" - if test "x${TINFO_DIR}" != "x"; then - if test -d ${TINFO_DIR}/lib; then - pbxlibdir="-L${TINFO_DIR}/lib" - else - pbxlibdir="-L${TINFO_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 -echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; } -if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltinfo ${pbxlibdir} $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 tgetent (); -int -main () -{ -return tgetent (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_tinfo_tgetent=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_tinfo_tgetent=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 -echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; } -if test $ac_cv_lib_tinfo_tgetent = yes; then - AST_TINFO_FOUND=yes -else - AST_TINFO_FOUND=no -fi - - - if test "${AST_TINFO_FOUND}" = "yes"; then - TINFO_LIB="-ltinfo " - TINFO_HEADER_FOUND="1" - if test "x${TINFO_DIR}" != "x"; then - TINFO_LIB="${pbxlibdir} ${TINFO_LIB}" - TINFO_INCLUDE="-I${TINFO_DIR}/include" - fi - TINFO_INCLUDE="${TINFO_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}" - if test "x" != "x" ; then - if test "${ac_cv_header_+set}" = set; then - { echo "$as_me:$LINENO: checking for " >&5 -echo $ECHO_N "checking for ... $ECHO_C" >&6; } -if test "${ac_cv_header_+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 -echo "${ECHO_T}$ac_cv_header_" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking usability" >&5 -echo $ECHO_N "checking 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 <> -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 presence" >&5 -echo $ECHO_N "checking 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 <> -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: : accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5 -echo "$as_me: WARNING: : present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5 -echo "$as_me: WARNING: : see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for " >&5 -echo $ECHO_N "checking for ... $ECHO_C" >&6; } -if test "${ac_cv_header_+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5 -echo "${ECHO_T}$ac_cv_header_" >&6; } - -fi -if test $ac_cv_header_ = yes; then - TINFO_HEADER_FOUND=1 -else - TINFO_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${TINFO_HEADER_FOUND}" = "x0" ; then - if test -n "${TINFO_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5 -echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;} - exit 1 - fi - TINFO_LIB="" - TINFO_INCLUDE="" - PBX_TINFO=0 - else - PBX_TINFO=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_TINFO 1 -_ACEOF - - fi - elif test -n "${TINFO_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${host_os}" != "linux-gnu" ; then - tonezone_extra_lib="-lm" -fi - -if test "${PBX_DAHDI}" = "1" || test "${USE_ZAPTEL}" = "no"; then - tonezone_dir="dahdi" - if test "x${DAHDI_DIR}" != "x"; then - tonezone_extra_inc="${DAHDI_INCLUDE}" - fi -else - tonezone_dir="zaptel" - if test "x${ZAPTEL_DIR}" != "x"; then - tonezone_extra_inc="${ZAPTEL_INCLUDE}" - fi -fi - - -if test "${USE_TONEZONE}" != "no"; then - pbxlibdir="" - if test "x${TONEZONE_DIR}" != "x"; then - if test -d ${TONEZONE_DIR}/lib; then - pbxlibdir="-L${TONEZONE_DIR}/lib" - else - pbxlibdir="-L${TONEZONE_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5 -echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; } -if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra_lib} $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 tone_zone_find (); -int -main () -{ -return tone_zone_find (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_tonezone_tone_zone_find=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_tonezone_tone_zone_find=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5 -echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; } -if test $ac_cv_lib_tonezone_tone_zone_find = yes; then - AST_TONEZONE_FOUND=yes -else - AST_TONEZONE_FOUND=no -fi - - - if test "${AST_TONEZONE_FOUND}" = "yes"; then - TONEZONE_LIB="-ltonezone ${tonezone_extra_lib}" - TONEZONE_HEADER_FOUND="1" - if test "x${TONEZONE_DIR}" != "x"; then - TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}" - TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include" - fi - TONEZONE_INCLUDE="${TONEZONE_INCLUDE} ${tonezone_extra_inc}" - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}" - if test "x${tonezone_dir}/tonezone.h" != "x" ; then - as_ac_Header=`echo "ac_cv_header_${tonezone_dir}/tonezone.h" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5 -echo $ECHO_N "checking for ${tonezone_dir}/tonezone.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 ${tonezone_dir}/tonezone.h usability" >&5 -echo $ECHO_N "checking ${tonezone_dir}/tonezone.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 <${tonezone_dir}/tonezone.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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 ${tonezone_dir}/tonezone.h presence" >&5 -echo $ECHO_N "checking ${tonezone_dir}/tonezone.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 <${tonezone_dir}/tonezone.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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5 -echo $ECHO_N "checking for ${tonezone_dir}/tonezone.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 - TONEZONE_HEADER_FOUND=1 -else - TONEZONE_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then - if test -n "${TONEZONE_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5 -echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;} - exit 1 - fi - TONEZONE_LIB="" - TONEZONE_INCLUDE="" - PBX_TONEZONE=0 - else - PBX_TONEZONE=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_TONEZONE 1 -_ACEOF - - fi - elif test -n "${TONEZONE_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_USB}" != "no"; then - pbxlibdir="" - if test "x${USB_DIR}" != "x"; then - if test -d ${USB_DIR}/lib; then - pbxlibdir="-L${USB_DIR}/lib" - else - pbxlibdir="-L${USB_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5 -echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; } -if test "${ac_cv_lib_usb_usb_init+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lusb ${pbxlibdir} $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 usb_init (); -int -main () -{ -return usb_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_usb_usb_init=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_usb_usb_init=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5 -echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; } -if test $ac_cv_lib_usb_usb_init = yes; then - AST_USB_FOUND=yes -else - AST_USB_FOUND=no -fi - - - if test "${AST_USB_FOUND}" = "yes"; then - USB_LIB="-lusb " - USB_HEADER_FOUND="1" - if test "x${USB_DIR}" != "x"; then - USB_LIB="${pbxlibdir} ${USB_LIB}" - USB_INCLUDE="-I${USB_DIR}/include" - fi - USB_INCLUDE="${USB_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}" - if test "xusb.h" != "x" ; then - if test "${ac_cv_header_usb_h+set}" = set; then - { echo "$as_me:$LINENO: checking for usb.h" >&5 -echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; } -if test "${ac_cv_header_usb_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 -echo "${ECHO_T}$ac_cv_header_usb_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking usb.h usability" >&5 -echo $ECHO_N "checking usb.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 usb.h presence" >&5 -echo $ECHO_N "checking usb.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for usb.h" >&5 -echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; } -if test "${ac_cv_header_usb_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_usb_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5 -echo "${ECHO_T}$ac_cv_header_usb_h" >&6; } - -fi -if test $ac_cv_header_usb_h = yes; then - USB_HEADER_FOUND=1 -else - USB_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${USB_HEADER_FOUND}" = "x0" ; then - if test -n "${USB_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5 -echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;} - exit 1 - fi - USB_LIB="" - USB_INCLUDE="" - PBX_USB=0 - else - PBX_USB=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_USB 1 -_ACEOF - - fi - elif test -n "${USB_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;} - exit 1 - fi -fi - - - -if test "${USE_VORBIS}" != "no"; then - pbxlibdir="" - if test "x${VORBIS_DIR}" != "x"; then - if test -d ${VORBIS_DIR}/lib; then - pbxlibdir="-L${VORBIS_DIR}/lib" - else - pbxlibdir="-L${VORBIS_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5 -echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; } -if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $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 vorbis_info_init (); -int -main () -{ -return vorbis_info_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_vorbis_vorbis_info_init=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_vorbis_vorbis_info_init=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5 -echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; } -if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then - AST_VORBIS_FOUND=yes -else - AST_VORBIS_FOUND=no -fi - - - if test "${AST_VORBIS_FOUND}" = "yes"; then - VORBIS_LIB="-lvorbis -lm -lvorbisenc" - VORBIS_HEADER_FOUND="1" - if test "x${VORBIS_DIR}" != "x"; then - VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}" - VORBIS_INCLUDE="-I${VORBIS_DIR}/include" - fi - VORBIS_INCLUDE="${VORBIS_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}" - if test "xvorbis/codec.h" != "x" ; then - if test "${ac_cv_header_vorbis_codec_h+set}" = set; then - { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5 -echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; } -if test "${ac_cv_header_vorbis_codec_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5 -echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5 -echo $ECHO_N "checking vorbis/codec.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 vorbis/codec.h presence" >&5 -echo $ECHO_N "checking vorbis/codec.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5 -echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; } -if test "${ac_cv_header_vorbis_codec_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_vorbis_codec_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5 -echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; } - -fi -if test $ac_cv_header_vorbis_codec_h = yes; then - VORBIS_HEADER_FOUND=1 -else - VORBIS_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then - if test -n "${VORBIS_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5 -echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;} - exit 1 - fi - VORBIS_LIB="" - VORBIS_INCLUDE="" - PBX_VORBIS=0 - else - PBX_VORBIS=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_VORBIS 1 -_ACEOF - - fi - elif test -n "${VORBIS_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;} - exit 1 - fi -fi - - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -if test "${USE_VPB}" != "no"; then - { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5 -echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; } - saved_libs="${LIBS}" - saved_cppflags="${CPPFLAGS}" - if test "x${VPB_DIR}" != "x"; then - if test -d ${VPB_DIR}/lib; then - vpblibdir=${VPB_DIR}/lib - else - vpblibdir=${VPB_DIR} - fi - LIBS="${LIBS} -L${vpblibdir}" - CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include" - fi - LIBS="${LIBS} -lvpb -lpthread" - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int q = vpb_open(0,0); - ; - 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); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_lib_vpb_vpb_open="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_lib_vpb_vpb_open="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="${saved_libs}" - CPPFLAGS="${saved_cppflags}" - if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then - VPB_LIB="-lvpb" - if test "${VPB_DIR}" != ""; then - VPB_LIB="-L${vpblibdir} ${VPB_LIB}" - VPB_INCLUDE="-I${VPB_DIR}/include" - fi - PBX_VPB=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_VPB 1 -_ACEOF - - elif test -n "${VPB_MANDATORY}"; then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5 -echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-vpb." >&5 -echo "$as_me: *** including --without-vpb." >&6;} - exit 1 - fi -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -if test "${USE_ZLIB}" != "no"; then - pbxlibdir="" - if test "x${ZLIB_DIR}" != "x"; then - if test -d ${ZLIB_DIR}/lib; then - pbxlibdir="-L${ZLIB_DIR}/lib" - else - pbxlibdir="-L${ZLIB_DIR}" - fi - fi - { echo "$as_me:$LINENO: checking for compress in -lz" >&5 -echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; } -if test "${ac_cv_lib_z_compress+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lz ${pbxlibdir} $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 compress (); -int -main () -{ -return compress (); - ; - 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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_z_compress=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_z_compress=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 -echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; } -if test $ac_cv_lib_z_compress = yes; then - AST_ZLIB_FOUND=yes -else - AST_ZLIB_FOUND=no -fi - - - if test "${AST_ZLIB_FOUND}" = "yes"; then - ZLIB_LIB="-lz " - ZLIB_HEADER_FOUND="1" - if test "x${ZLIB_DIR}" != "x"; then - ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}" - ZLIB_INCLUDE="-I${ZLIB_DIR}/include" - fi - ZLIB_INCLUDE="${ZLIB_INCLUDE} " - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}" - if test "xzlib.h" != "x" ; then - if test "${ac_cv_header_zlib_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zlib.h" >&5 -echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 -echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 -echo $ECHO_N "checking zlib.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 zlib.h presence" >&5 -echo $ECHO_N "checking zlib.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for zlib.h" >&5 -echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_zlib_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 -echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } - -fi -if test $ac_cv_header_zlib_h = yes; then - ZLIB_HEADER_FOUND=1 -else - ZLIB_HEADER_FOUND=0 -fi - - - fi - CPPFLAGS="${saved_cppflags}" - if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then - if test -n "${ZLIB_MANDATORY}" ; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5 -echo "$as_me: *** It appears that you do not have the z development package installed." >&6;} - { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5 -echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;} - exit 1 - fi - ZLIB_LIB="" - ZLIB_INCLUDE="" - PBX_ZLIB=0 - else - PBX_ZLIB=1 - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZLIB 1 -_ACEOF - - fi - elif test -n "${ZLIB_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5 -echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5 -echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;} - exit 1 - fi -fi - - -if test "${USE_ZAPTEL}" != "no" && test "x${PBX_DAHDI}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_DIR}" != "x"; then - CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include" - fi - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int foo = ZT_DIAL_OP_CANCEL; - ; - return 0; -} - -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_zaptel_h="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_zaptel_h="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="${saved_cppflags}" - if test "${ac_cv_zaptel_h}" = "yes"; then - if test "${ZAPTEL_DIR}" != ""; then - ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include" - fi - PBX_ZAPTEL=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL 1 -_ACEOF - - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}" - { echo "$as_me:$LINENO: checking for ZT_PARAMS.chan_alarms" >&5 -echo $ECHO_N "checking for ZT_PARAMS.chan_alarms... $ECHO_C" >&6; } -if test "${ac_cv_member_ZT_PARAMS_chan_alarms+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -int -main () -{ -static ZT_PARAMS ac_aggr; -if (ac_aggr.chan_alarms) -return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_ZT_PARAMS_chan_alarms=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -int -main () -{ -static ZT_PARAMS ac_aggr; -if (sizeof ac_aggr.chan_alarms) -return 0; - ; - return 0; -} -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_ZT_PARAMS_chan_alarms=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_member_ZT_PARAMS_chan_alarms=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_member_ZT_PARAMS_chan_alarms" >&5 -echo "${ECHO_T}$ac_cv_member_ZT_PARAMS_chan_alarms" >&6; } - - CPPFLAGS="${saved_cppflags}" - if test "${ac_cv_member_ZT_PARAMS_chan_alarms}" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_CHANALARMS 1 -_ACEOF - - else - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_CHANALARMS 0 -_ACEOF - - fi - elif test -n "${ZAPTEL_MANDATORY}"; - then - { echo "$as_me:$LINENO: ***" >&5 -echo "$as_me: ***" >&6;} - { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5 -echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;} - { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5 -echo "$as_me: *** Either correct the installation, or run configure" >&6;} - { echo "$as_me:$LINENO: *** including --without-zaptel." >&5 -echo "$as_me: *** including --without-zaptel." >&6;} - exit 1 - fi -fi - -if test "${PBX_ZAPTEL}" = 1 && test "x${PBX_DAHDI}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_DIR}" != "x"; then - CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include" - fi - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int foo = ZT_EVENT_REMOVED; - ; - return 0; -} - -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_zaptel_vldtmf="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_zaptel_vldtmf="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="${saved_cppflags}" - if test "${ac_cv_zaptel_vldtmf}" = "yes"; then - PBX_ZAPTEL_VLDTMF=1 - fi - { echo "$as_me:$LINENO: checking for zt_transcoder_info in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for zt_transcoder_info in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_DIR}" != "x"; then - CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include" - fi - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int foo = sizeof(struct zt_transcoder_info); - ; - return 0; -} - -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_zaptel_transcode="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_zaptel_transcode="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="${saved_cppflags}" - if test "${ac_cv_zaptel_transcode}" = "yes"; then - PBX_DAHDI_TRANSCODE=1 - fi -fi - - - -if test "x${PBX_ZAPTEL}" = "x1" ; then - PBX_DAHDI=1 - DAHDI_INCLUDE=${ZAPTEL_INCLUDE} - DAHDI_LIB=${ZAPTEL_LIB} - - - -fi - -EDITLINE_LIB="" -if test "x$TERMCAP_LIB" != "x" ; then - EDITLINE_LIB="$TERMCAP_LIB" -elif test "x$TINFO_LIB" != "x" ; then - EDITLINE_LIB="$TINFO_LIB" -elif test "x$CURSES_LIB" != "x" ; then - EDITLINE_LIB="$CURSES_LIB" -elif test "x$NCURSES_LIB" != "x" ; then - EDITLINE_LIB="$NCURSES_LIB" -else - { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5 -echo "$as_me: error: *** termcap support not found" >&2;} - { (exit 1); exit 1; }; } -fi - - -if test "${ac_cv_header_h323_h+set}" = set; then - { echo "$as_me:$LINENO: checking for h323.h" >&5 -echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; } -if test "${ac_cv_header_h323_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5 -echo "${ECHO_T}$ac_cv_header_h323_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking h323.h usability" >&5 -echo $ECHO_N "checking h323.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 h323.h presence" >&5 -echo $ECHO_N "checking h323.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for h323.h" >&5 -echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; } -if test "${ac_cv_header_h323_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_h323_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5 -echo "${ECHO_T}$ac_cv_header_h323_h" >&6; } - -fi -if test $ac_cv_header_h323_h = yes; then - PBX_H323=1 -else - PBX_H323=0 -fi - - - - -if test "${ac_cv_header_linux_compiler_h+set}" = set; then - { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5 -echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_compiler_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5 -echo $ECHO_N "checking linux/compiler.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 -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; 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 core 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 linux/compiler.h presence" >&5 -echo $ECHO_N "checking linux/compiler.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 -_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 && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.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: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for linux/compiler.h" >&5 -echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_compiler_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_linux_compiler_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; } - -fi -if test $ac_cv_header_linux_compiler_h = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_LINUX_COMPILER_H 1 -_ACEOF - -fi - - - -{ echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5 -echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; } -if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - #include - #ifdef HAVE_LINUX_COMPILER_H - #include - #endif - - -#include -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_linux_ixjuser_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_linux_ixjuser_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5 -echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; } -if test $ac_cv_header_linux_ixjuser_h = yes; then - PBX_IXJUSER=1 -else - PBX_IXJUSER=0 -fi - - - - -if test "${cross_compiling}" = "no"; -then - { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5 -echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; } -if test "${ac_cv_file__sbin_launchd+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/sbin/launchd"; then - ac_cv_file__sbin_launchd=yes -else - ac_cv_file__sbin_launchd=no -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5 -echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; } -if test $ac_cv_file__sbin_launchd = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SBIN_LAUNCHD 1 -_ACEOF - -fi - -fi - -PBX_GTK=0 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}gtk-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_GTKCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$GTKCONFIG"; then - ac_cv_prog_GTKCONFIG="$GTKCONFIG" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -GTKCONFIG=$ac_cv_prog_GTKCONFIG -if test -n "$GTKCONFIG"; then - { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5 -echo "${ECHO_T}$GTKCONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_GTKCONFIG"; then - ac_ct_GTKCONFIG=$GTKCONFIG - # Extract the first word of "gtk-config", so it can be a program name with args. -set dummy gtk-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_GTKCONFIG"; then - ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_GTKCONFIG="gtk-config" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG -if test -n "$ac_ct_GTKCONFIG"; then - { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5 -echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_GTKCONFIG" = x; then - GTKCONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - GTKCONFIG=$ac_ct_GTKCONFIG - fi -else - GTKCONFIG="$ac_cv_prog_GTKCONFIG" -fi - -if test ! "x${GTKCONFIG}" = xNo; then - GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread) - GTK_LIB=$(${GTKCONFIG} --libs gthread) - PBX_GTK=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GTK 1 -_ACEOF - -fi - - - - -PBX_GTK2=0 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_PKGCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$PKGCONFIG"; then - ac_cv_prog_PKGCONFIG="$PKGCONFIG" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -PKGCONFIG=$ac_cv_prog_PKGCONFIG -if test -n "$PKGCONFIG"; then - { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 -echo "${ECHO_T}$PKGCONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_PKGCONFIG"; then - ac_ct_PKGCONFIG=$PKGCONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_PKGCONFIG"; then - ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # 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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_PKGCONFIG="pkg-config" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG -if test -n "$ac_ct_PKGCONFIG"; then - { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5 -echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_PKGCONFIG" = x; then - PKGCONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - PKGCONFIG=$ac_ct_PKGCONFIG - fi -else - PKGCONFIG="$ac_cv_prog_PKGCONFIG" -fi - -if test ! "x${PKGCONFIG}" = xNo; then - GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null) - GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs) - PBX_GTK2=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GTK2 1 -_ACEOF - -fi - - - - -if test "${USE_CURL}" != "no"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}curl-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_CURL_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $CURL_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_CURL_CONFIG="$CURL_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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -CURL_CONFIG=$ac_cv_path_CURL_CONFIG -if test -n "$CURL_CONFIG"; then - { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5 -echo "${ECHO_T}$CURL_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_CURL_CONFIG"; then - ac_pt_CURL_CONFIG=$CURL_CONFIG - # Extract the first word of "curl-config", so it can be a program name with args. -set dummy curl-config; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ac_pt_CURL_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_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 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG -if test -n "$ac_pt_CURL_CONFIG"; then - { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5 -echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_pt_CURL_CONFIG" = x; then - CURL_CONFIG="No" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CURL_CONFIG=$ac_pt_CURL_CONFIG - fi -else - CURL_CONFIG="$ac_cv_path_CURL_CONFIG" -fi - - if test ! x"${CURL_CONFIG}" = xNo; then - # check for version - if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then - CURL_INCLUDE=$(${CURL_CONFIG} --cflags) - CURL_LIB=$(${CURL_CONFIG} --libs) - - { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5 -echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -curl_version(); - ; - return 0; -} - -_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); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - ac_cv_curl_h="yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ac_cv_curl_h="no" - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="${saved_cppflags}" - if test "${ac_cv_curl_h}" = "yes"; then - PBX_CURL=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_CURL 1 -_ACEOF - - fi - fi - fi -fi - -ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by asterisk $as_me 1.4, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -asterisk config.status 1.4 -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - { echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;; - "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;; - "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;; - "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -CPP!$CPP$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim -BUILD_CPU!$BUILD_CPU$ac_delim -BUILD_VENDOR!$BUILD_VENDOR$ac_delim -BUILD_OS!$BUILD_OS$ac_delim -HOST_PLATFORM!$HOST_PLATFORM$ac_delim -HOST_CPU!$HOST_CPU$ac_delim -HOST_VENDOR!$HOST_VENDOR$ac_delim -HOST_OS!$HOST_OS$ac_delim -OSARCH!$OSARCH$ac_delim -UNAME!$UNAME$ac_delim -PBX_OSREV!$PBX_OSREV$ac_delim -CXX!$CXX$ac_delim -LD!$LD$ac_delim -RANLIB!$RANLIB$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXCPP!$CXXCPP$ac_delim -SED!$SED$ac_delim -AWK!$AWK$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -LN_S!$LN_S$ac_delim -GNU_MAKE!$GNU_MAKE$ac_delim -STRIP!$STRIP$ac_delim -AR!$AR$ac_delim -GNU_LD!$GNU_LD$ac_delim -FIND!$FIND$ac_delim -COMPRESS!$COMPRESS$ac_delim -BASENAME!$BASENAME$ac_delim -ID!$ID$ac_delim -DIRNAME!$DIRNAME$ac_delim -LN!$LN$ac_delim -DOT!$DOT$ac_delim -WGET!$WGET$ac_delim -FETCH!$FETCH$ac_delim -DOWNLOAD!$DOWNLOAD$ac_delim -SOXMIX!$SOXMIX$ac_delim -acx_pthread_config!$acx_pthread_config$ac_delim -PTHREAD_CC!$PTHREAD_CC$ac_delim -PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim -PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -AST_DEVMODE!$AST_DEVMODE$ac_delim -ALSA_LIB!$ALSA_LIB$ac_delim -ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim -ALSA_DIR!$ALSA_DIR$ac_delim -PBX_ALSA!$PBX_ALSA$ac_delim -CURL_LIB!$CURL_LIB$ac_delim -CURL_INCLUDE!$CURL_INCLUDE$ac_delim -CURL_DIR!$CURL_DIR$ac_delim -PBX_CURL!$PBX_CURL$ac_delim -CAP_LIB!$CAP_LIB$ac_delim -CAP_INCLUDE!$CAP_INCLUDE$ac_delim -CAP_DIR!$CAP_DIR$ac_delim -PBX_CAP!$PBX_CAP$ac_delim -CURSES_LIB!$CURSES_LIB$ac_delim -CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim -CURSES_DIR!$CURSES_DIR$ac_delim -PBX_CURSES!$PBX_CURSES$ac_delim -DAHDI_LIB!$DAHDI_LIB$ac_delim -DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim -DAHDI_DIR!$DAHDI_DIR$ac_delim -PBX_DAHDI!$PBX_DAHDI$ac_delim -GNUTLS_LIB!$GNUTLS_LIB$ac_delim -GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim -GNUTLS_DIR!$GNUTLS_DIR$ac_delim -PBX_GNUTLS!$PBX_GNUTLS$ac_delim -GSM_LIB!$GSM_LIB$ac_delim -GSM_INCLUDE!$GSM_INCLUDE$ac_delim -GSM_DIR!$GSM_DIR$ac_delim -PBX_GSM!$PBX_GSM$ac_delim -IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim -IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim -IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim -PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim -IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim -IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim -IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim -PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim -ISDNNET_LIB!$ISDNNET_LIB$ac_delim -ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim -ISDNNET_DIR!$ISDNNET_DIR$ac_delim -PBX_ISDNNET!$PBX_ISDNNET$ac_delim -KDE_LIB!$KDE_LIB$ac_delim -KDE_INCLUDE!$KDE_INCLUDE$ac_delim -KDE_DIR!$KDE_DIR$ac_delim -PBX_KDE!$PBX_KDE$ac_delim -LTDL_LIB!$LTDL_LIB$ac_delim -LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim -LTDL_DIR!$LTDL_DIR$ac_delim -PBX_LTDL!$PBX_LTDL$ac_delim -MISDN_LIB!$MISDN_LIB$ac_delim -MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim -MISDN_DIR!$MISDN_DIR$ac_delim -PBX_MISDN!$PBX_MISDN$ac_delim -NBS_LIB!$NBS_LIB$ac_delim -NBS_INCLUDE!$NBS_INCLUDE$ac_delim -NBS_DIR!$NBS_DIR$ac_delim -PBX_NBS!$PBX_NBS$ac_delim -NCURSES_LIB!$NCURSES_LIB$ac_delim -NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim -NCURSES_DIR!$NCURSES_DIR$ac_delim -PBX_NCURSES!$PBX_NCURSES$ac_delim -NETSNMP_LIB!$NETSNMP_LIB$ac_delim -NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim -NETSNMP_DIR!$NETSNMP_DIR$ac_delim -PBX_NETSNMP!$PBX_NETSNMP$ac_delim -NEWT_LIB!$NEWT_LIB$ac_delim -NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim -NEWT_DIR!$NEWT_DIR$ac_delim -PBX_NEWT!$PBX_NEWT$ac_delim -UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim -UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim -UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim -PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim -OGG_LIB!$OGG_LIB$ac_delim -OGG_INCLUDE!$OGG_INCLUDE$ac_delim -OGG_DIR!$OGG_DIR$ac_delim -PBX_OGG!$PBX_OGG$ac_delim -OSPTK_LIB!$OSPTK_LIB$ac_delim -OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim -OSPTK_DIR!$OSPTK_DIR$ac_delim -PBX_OSPTK!$PBX_OSPTK$ac_delim -OSS_LIB!$OSS_LIB$ac_delim -OSS_INCLUDE!$OSS_INCLUDE$ac_delim -OSS_DIR!$OSS_DIR$ac_delim -PBX_OSS!$PBX_OSS$ac_delim -POPT_LIB!$POPT_LIB$ac_delim -POPT_INCLUDE!$POPT_INCLUDE$ac_delim -POPT_DIR!$POPT_DIR$ac_delim -PBX_POPT!$PBX_POPT$ac_delim -PGSQL_LIB!$PGSQL_LIB$ac_delim -PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim -PGSQL_DIR!$PGSQL_DIR$ac_delim -PBX_PGSQL!$PBX_PGSQL$ac_delim -PRI_LIB!$PRI_LIB$ac_delim -PRI_INCLUDE!$PRI_INCLUDE$ac_delim -PRI_DIR!$PRI_DIR$ac_delim -PBX_PRI!$PBX_PRI$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -PWLIB_LIB!$PWLIB_LIB$ac_delim -PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim -PWLIB_DIR!$PWLIB_DIR$ac_delim -PBX_PWLIB!$PBX_PWLIB$ac_delim -OPENH323_LIB!$OPENH323_LIB$ac_delim -OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim -OPENH323_DIR!$OPENH323_DIR$ac_delim -PBX_OPENH323!$PBX_OPENH323$ac_delim -RADIUS_LIB!$RADIUS_LIB$ac_delim -RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim -RADIUS_DIR!$RADIUS_DIR$ac_delim -PBX_RADIUS!$PBX_RADIUS$ac_delim -SPEEX_LIB!$SPEEX_LIB$ac_delim -SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim -SPEEX_DIR!$SPEEX_DIR$ac_delim -PBX_SPEEX!$PBX_SPEEX$ac_delim -SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim -SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim -SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim -PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim -SQLITE_LIB!$SQLITE_LIB$ac_delim -SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim -SQLITE_DIR!$SQLITE_DIR$ac_delim -PBX_SQLITE!$PBX_SQLITE$ac_delim -SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim -SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim -SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim -PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim -OPENSSL_LIB!$OPENSSL_LIB$ac_delim -OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim -OPENSSL_DIR!$OPENSSL_DIR$ac_delim -PBX_OPENSSL!$PBX_OPENSSL$ac_delim -FREETDS_LIB!$FREETDS_LIB$ac_delim -FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim -FREETDS_DIR!$FREETDS_DIR$ac_delim -PBX_FREETDS!$PBX_FREETDS$ac_delim -TERMCAP_LIB!$TERMCAP_LIB$ac_delim -TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim -TERMCAP_DIR!$TERMCAP_DIR$ac_delim -PBX_TERMCAP!$PBX_TERMCAP$ac_delim -TINFO_LIB!$TINFO_LIB$ac_delim -TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim -TINFO_DIR!$TINFO_DIR$ac_delim -PBX_TINFO!$PBX_TINFO$ac_delim -TONEZONE_LIB!$TONEZONE_LIB$ac_delim -TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim -TONEZONE_DIR!$TONEZONE_DIR$ac_delim -PBX_TONEZONE!$PBX_TONEZONE$ac_delim -USB_LIB!$USB_LIB$ac_delim -USB_INCLUDE!$USB_INCLUDE$ac_delim -USB_DIR!$USB_DIR$ac_delim -PBX_USB!$PBX_USB$ac_delim -VORBIS_LIB!$VORBIS_LIB$ac_delim -VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim -VORBIS_DIR!$VORBIS_DIR$ac_delim -PBX_VORBIS!$PBX_VORBIS$ac_delim -VPB_LIB!$VPB_LIB$ac_delim -VPB_INCLUDE!$VPB_INCLUDE$ac_delim -VPB_DIR!$VPB_DIR$ac_delim -PBX_VPB!$PBX_VPB$ac_delim -ZLIB_LIB!$ZLIB_LIB$ac_delim -ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim -ZLIB_DIR!$ZLIB_DIR$ac_delim -PBX_ZLIB!$PBX_ZLIB$ac_delim -ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim -ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim -ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim -PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim -ALLOCA!$ALLOCA$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -POW_LIB!$POW_LIB$ac_delim -GC_CFLAGS!$GC_CFLAGS$ac_delim -GC_LDFLAGS!$GC_LDFLAGS$ac_delim -AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim -AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim -PBX_DAHDI_TRANSCODE!$PBX_DAHDI_TRANSCODE$ac_delim -GSM_INTERNAL!$GSM_INTERNAL$ac_delim -KDEINIT!$KDEINIT$ac_delim -KDEDIR!$KDEDIR$ac_delim -NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim -PG_CONFIG!$PG_CONFIG$ac_delim -PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim -PWLIBDIR!$PWLIBDIR$ac_delim -PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim -PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim -PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim -OPENH323DIR!$OPENH323DIR$ac_delim -OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim -OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim -OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim -OPENH323_BUILD!$OPENH323_BUILD$ac_delim -PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim -PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim -EDITLINE_LIB!$EDITLINE_LIB$ac_delim -PBX_H323!$PBX_H323$ac_delim -PBX_IXJUSER!$PBX_IXJUSER$ac_delim -GTKCONFIG!$GTKCONFIG$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -PBX_GTK!$PBX_GTK$ac_delim -GTK_INCLUDE!$GTK_INCLUDE$ac_delim -GTK_LIB!$GTK_LIB$ac_delim -PKGCONFIG!$PKGCONFIG$ac_delim -PBX_GTK2!$PBX_GTK2$ac_delim -GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim -GTK2_LIB!$GTK2_LIB$ac_delim -CURL_CONFIG!$CURL_CONFIG$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - :H) - # - # CONFIG_HEADER - # -_ACEOF - -# Transform confdefs.h into a sed script `conftest.defines', that -# substitutes the proper values into config.h.in to produce config.h. -rm -f conftest.defines conftest.tail -# First, append a space to every undef/define line, to ease matching. -echo 's/$/ /' >conftest.defines -# Then, protect against being on the right side of a sed subst, or in -# an unquoted here document, in config.status. If some macros were -# called several times there might be several #defines for the same -# symbol, which is useless. But do not sort them, since the last -# AC_DEFINE must be honored. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where -# NAME is the cpp macro being defined, VALUE is the value it is being given. -# PARAMS is the parameter list in the macro definition--in most cases, it's -# just an empty string. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' -ac_dB='\\)[ (].*,\\1define\\2' -ac_dC=' ' -ac_dD=' ,' - -uniq confdefs.h | - sed -n ' - t rset - :rset - s/^[ ]*#[ ]*define[ ][ ]*// - t ok - d - :ok - s/[\\&,]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p - ' >>conftest.defines - -# Remove the space that was appended to ease matching. -# Then replace #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -# (The regexp can be short, since the line contains either #define or #undef.) -echo 's/ $// -s,^[ #]*u.*,/* & */,' >>conftest.defines - -# Break up conftest.defines: -ac_max_sed_lines=50 - -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" -# et cetera. -ac_in='$ac_file_inputs' -ac_out='"$tmp/out1"' -ac_nxt='"$tmp/out2"' - -while : -do - # Write a here document: - cat >>$CONFIG_STATUS <<_ACEOF - # First, check the format of the line: - cat >"\$tmp/defines.sed" <<\\CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def -b -:def -_ACEOF - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail - grep . conftest.tail >/dev/null || break - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines conftest.tail - -echo "ac_result=$ac_in" >>$CONFIG_STATUS -cat >>$CONFIG_STATUS <<\_ACEOF - if test x"$ac_file" != x-; then - echo "/* $configure_input */" >"$tmp/config.h" - cat "$ac_result" >>"$tmp/config.h" - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f $ac_file - mv "$tmp/config.h" $ac_file - fi - else - echo "/* $configure_input */" - cat "$ac_result" - fi - rm -f "$tmp/out12" - ;; - - - esac - -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - - -if test "x${silent}" != "xyes" ; then -echo -echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. " -echo " .\$7\$7.. .7\$\$7:. " -echo " .\$\$:. ,\$7.7 " -echo " .\$7. 7\$\$\$\$ .\$\$77 " -echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 " -echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$." -echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$." -echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$," -echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$." -echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$." -echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 " -echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. " -echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. " -echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. " -echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. " -echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ " -echo " \$\$\$\$\$ \$\$\$ " -echo " \$\$\$\$7. \$\$ (TM) " -echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ " -echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ " -echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. " -echo -fi - -{ echo "$as_me:$LINENO: Package configured for: " >&5 -echo "$as_me: Package configured for: " >&6;} -{ echo "$as_me:$LINENO: OS type : $host_os" >&5 -echo "$as_me: OS type : $host_os" >&6;} -{ echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5 -echo "$as_me: Host CPU : $host_cpu" >&6;} -if test "${cross_compiling}" = "yes"; then - { echo "$as_me:$LINENO: Cross Compilation = YES" >&5 -echo "$as_me: Cross Compilation = YES" >&6;} -fi