asterisk/asterisk.patch

changeset 398
08f5eb82b58f
parent 362
7c568c62ffb3
child 404
b6420eee9bde
equal deleted inserted replaced
6:3971a38d4385 7:b04f8acf4558
196 + 196 +
197 Index: apps/app_meetme.c 197 Index: apps/app_meetme.c
198 diff -Nau apps/app_meetme.c.orig apps/app_meetme.c 198 diff -Nau apps/app_meetme.c.orig apps/app_meetme.c
199 --- apps/app_meetme.c.orig 2011-07-19 17:43:32.000000000 +0200 199 --- apps/app_meetme.c.orig 2011-07-19 17:43:32.000000000 +0200
200 +++ apps/app_meetme.c 2011-09-14 14:29:50.747960016 +0200 200 +++ apps/app_meetme.c 2011-09-14 14:29:50.747960016 +0200
201 @@ -606,6 +606,7 @@ 201 @@ -607,6 +607,7 @@
202 CONFFLAG_DURATION_LIMIT = (1 << 30), 202
203 /*! Do not write any audio to this channel until the state is up. */ 203 /*! Do not write any audio to this channel until the state is up. */
204 CONFFLAG_NO_AUDIO_UNTIL_UP = (1 << 31), 204 #define CONFFLAG_NO_AUDIO_UNTIL_UP (1ULL << 31)
205 + CONFFLAG_USERNAME = (1 << 32), 205 +#define CONFFLAG_USERNAME (1 << 32)
206 }; 206 /*! If set play an intro announcement at start of conference */
207 207 #define CONFFLAG_INTROMSG (1ULL << 32)
208 /* !If set play an intro announcement at start of conference */ 208
209 @@ -619,6 +620,7 @@ 209 @@ -618,6 +619,7 @@
210 OPT_ARG_MOH_CLASS = 4, 210 OPT_ARG_MOH_CLASS = 4,
211 OPT_ARG_INTROMSG = 5, 211 OPT_ARG_INTROMSG = 5,
212 OPT_ARG_ARRAY_SIZE = 6, 212 OPT_ARG_ARRAY_SIZE = 6,
213 + OPT_ARG_USERNAME = 7, 213 + OPT_ARG_USERNAME = 7,
214 }; 214 };
215 215
216 AST_APP_OPTIONS(meetme_opts, BEGIN_OPTIONS 216 AST_APP_OPTIONS(meetme_opts, BEGIN_OPTIONS
217 @@ -652,6 +654,7 @@ 217 @@ -651,6 +653,7 @@
218 AST_APP_OPTION('1', CONFFLAG_NOONLYPERSON ), 218 AST_APP_OPTION('1', CONFFLAG_NOONLYPERSON ),
219 AST_APP_OPTION_ARG('S', CONFFLAG_DURATION_STOP, OPT_ARG_DURATION_STOP), 219 AST_APP_OPTION_ARG('S', CONFFLAG_DURATION_STOP, OPT_ARG_DURATION_STOP),
220 AST_APP_OPTION_ARG('L', CONFFLAG_DURATION_LIMIT, OPT_ARG_DURATION_LIMIT), 220 AST_APP_OPTION_ARG('L', CONFFLAG_DURATION_LIMIT, OPT_ARG_DURATION_LIMIT),
221 + AST_APP_OPTION_ARG('n', CONFFLAG_USERNAME, OPT_ARG_USERNAME), 221 + AST_APP_OPTION_ARG('n', CONFFLAG_USERNAME, OPT_ARG_USERNAME),
222 END_OPTIONS ); 222 END_OPTIONS );
223 223
224 static const char * const app = "MeetMe"; 224 static const char * const app = "MeetMe";
225 @@ -2447,6 +2450,12 @@ 225 @@ -2446,6 +2449,12 @@
226 ast_test_flag64(confflags, CONFFLAG_INTROUSERNOREVIEW))) { 226 ast_test_flag64(confflags, CONFFLAG_INTROUSERNOREVIEW))) {
227 char destdir[PATH_MAX]; 227 char destdir[PATH_MAX];
228 228
229 + if (!ast_test_flag64(confflags, CONFFLAG_USERNAME) 229 + if (!ast_test_flag64(confflags, CONFFLAG_USERNAME)
230 + && !ast_strlen_zero(optargs[OPT_ARG_USERNAME]) 230 + && !ast_strlen_zero(optargs[OPT_ARG_USERNAME])
233 + else { 233 + else {
234 + 234 +
235 snprintf(destdir, sizeof(destdir), "%s/meetme", ast_config_AST_SPOOL_DIR); 235 snprintf(destdir, sizeof(destdir), "%s/meetme", ast_config_AST_SPOOL_DIR);
236 236
237 if (ast_mkdir(destdir, 0777) != 0) { 237 if (ast_mkdir(destdir, 0777) != 0) {
238 @@ -2463,6 +2472,7 @@ 238 @@ -2462,6 +2471,7 @@
239 res = ast_record_review(chan, "vm-rec-name", user->namerecloc, 10, "sln", &duration, NULL); 239 res = ast_record_review(chan, "vm-rec-name", user->namerecloc, 10, "sln", &duration, NULL);
240 if (res == -1) 240 if (res == -1)
241 goto outrun; 241 goto outrun;
242 + } 242 + }
243 } 243 }
253 static char imapfolder[64]; 253 static char imapfolder[64];
254 +static int imapsubfold = 0; 254 +static int imapsubfold = 0;
255 static char imapparentfolder[64] = "\0"; 255 static char imapparentfolder[64] = "\0";
256 static char greetingfolder[64]; 256 static char greetingfolder[64];
257 static char authuser[32]; 257 static char authuser[32];
258 @@ -2504,7 +2505,7 @@ 258 @@ -2517,7 +2518,7 @@
259 } 259 }
260 260
261 /* Build up server information */ 261 /* Build up server information */
262 - ast_build_string(&t, &left, "{%s:%s/imap", imapserver, imapport); 262 - ast_build_string(&t, &left, "{%s:%s/imap", imapserver, imapport);
263 + ast_build_string(&t, &left, "{%s:%s", imapserver, imapport); 263 + ast_build_string(&t, &left, "{%s:%s", imapserver, imapport);
264 264
265 /* Add authentication user if present */ 265 /* Add authentication user if present */
266 if (!ast_strlen_zero(authuser)) 266 if (!ast_strlen_zero(authuser))
267 @@ -6161,6 +6162,7 @@ 267 @@ -6174,6 +6175,7 @@
268 /* simple. huh? */ 268 /* simple. huh? */
269 char sequence[10]; 269 char sequence[10];
270 char mailbox[256]; 270 char mailbox[256];
271 + char folder[256]; 271 + char folder[256];
272 int res; 272 int res;
273 273
274 /* get the real IMAP message number for this message */ 274 /* get the real IMAP message number for this message */
275 @@ -6176,10 +6178,24 @@ 275 @@ -6189,10 +6191,24 @@
276 mail_setflag(vms->mailstream, sequence, "\\Unseen"); 276 mail_setflag(vms->mailstream, sequence, "\\Unseen");
277 mail_clearflag(vms->mailstream, sequence, "\\Seen"); 277 mail_clearflag(vms->mailstream, sequence, "\\Seen");
278 } 278 }
279 - if (!strcasecmp(mbox(vmu, NEW_FOLDER), vms->curbox) && (box == NEW_FOLDER || box == OLD_FOLDER)) { 279 - if (!strcasecmp(mbox(vmu, NEW_FOLDER), vms->curbox) && (box == NEW_FOLDER || box == OLD_FOLDER)) {
280 - ast_mutex_unlock(&vms->lock); 280 - ast_mutex_unlock(&vms->lock);
297 } 297 }
298 + 298 +
299 /* Create the folder if it don't exist */ 299 /* Create the folder if it don't exist */
300 imap_mailbox_name(mailbox, sizeof(mailbox), vms, box, 1); /* Get the full mailbox name */ 300 imap_mailbox_name(mailbox, sizeof(mailbox), vms, box, 1); /* Get the full mailbox name */
301 ast_debug(5, "Checking if folder exists: %s\n", mailbox); 301 ast_debug(5, "Checking if folder exists: %s\n", mailbox);
302 @@ -10383,6 +10399,10 @@ 302 @@ -10467,6 +10483,10 @@
303 #ifndef IMAP_STORAGE 303 #ifndef IMAP_STORAGE
304 } else if (!cmd) { 304 } else if (!cmd) {
305 vms.deleted[vms.curmsg] = 1; 305 vms.deleted[vms.curmsg] = 1;
306 +#else 306 +#else
307 + } else if (!cmd && (folder_int(vms.curbox) > 1 || box > 1)) { 307 + } else if (!cmd && (folder_int(vms.curbox) > 1 || box > 1)) {
308 + vms.deleted[vms.curmsg] = 1; /* Enforce deletion after */ 308 + vms.deleted[vms.curmsg] = 1; /* Enforce deletion after */
309 + deleted = 1; /* successful copy op */ 309 + deleted = 1; /* successful copy op */
310 #endif 310 #endif
311 } else { 311 } else {
312 vms.deleted[vms.curmsg] = 0; 312 vms.deleted[vms.curmsg] = 0;
313 @@ -11874,6 +11894,15 @@ 313 @@ -11963,6 +11983,15 @@
314 } else { 314 } else {
315 ast_copy_string(imapfolder, "INBOX", sizeof(imapfolder)); 315 ast_copy_string(imapfolder, "INBOX", sizeof(imapfolder));
316 } 316 }
317 + /* IMAP saved (sub)folder location policy */ 317 + /* IMAP saved (sub)folder location policy */
318 + if ((val = ast_variable_retrieve(cfg, "general", "imapsubfold"))) { 318 + if ((val = ast_variable_retrieve(cfg, "general", "imapsubfold"))) {
752 endif 752 endif
753 Index: channels/chan_sip.c 753 Index: channels/chan_sip.c
754 diff -Nau channels/chan_sip.c.orig channels/chan_sip.c 754 diff -Nau channels/chan_sip.c.orig channels/chan_sip.c
755 --- channels/chan_sip.c.orig 2011-08-10 00:12:59.000000000 +0200 755 --- channels/chan_sip.c.orig 2011-08-10 00:12:59.000000000 +0200
756 +++ channels/chan_sip.c 2011-09-14 14:29:50.757959000 +0200 756 +++ channels/chan_sip.c 2011-09-14 14:29:50.757959000 +0200
757 @@ -11647,7 +11647,16 @@ 757 @@ -11650,7 +11650,16 @@
758 } else { 758 } else {
759 if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) { 759 if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) {
760 /* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */ 760 /* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */
761 - snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "sip:" : ""), p->uri, p->theirtag); 761 - snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "sip:" : ""), p->uri, p->theirtag);
762 + if (strncasecmp(p->uri, "sip:", strlen("sip:"))) 762 + if (strncasecmp(p->uri, "sip:", strlen("sip:")))
790 "console {videodevice|videocodec" \ 790 "console {videodevice|videocodec" \
791 Index: configure 791 Index: configure
792 diff -Nau configure.orig configure 792 diff -Nau configure.orig configure
793 --- configure.orig 2011-08-25 21:08:04.000000000 +0200 793 --- configure.orig 2011-08-25 21:08:04.000000000 +0200
794 +++ configure 2011-09-14 14:29:50.767970949 +0200 794 +++ configure 2011-09-14 14:29:50.767970949 +0200
795 @@ -4704,11 +4704,6 @@ 795 @@ -4244,11 +4244,6 @@
796 esac 796 esac
797 797
798 case "${host_os}" in 798 case "${host_os}" in
799 - freebsd*) 799 - freebsd*)
800 - ac_default_prefix=/usr/local 800 - ac_default_prefix=/usr/local
802 - LDFLAGS=-L/usr/local/lib 802 - LDFLAGS=-L/usr/local/lib
803 - ;; 803 - ;;
804 openbsd*) 804 openbsd*)
805 ac_default_prefix=/usr/local 805 ac_default_prefix=/usr/local
806 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then 806 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
807 @@ -18308,8 +18303,8 @@ 807 @@ -29617,8 +29612,8 @@
808 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then 808 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
809 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS` 809 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
810 fi 810 fi
811 - imap_libs="${IMAP_TK_DIR}/c-client/c-client.a" 811 - imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
812 - imap_include="-I${IMAP_TK_DIR}/c-client" 812 - imap_include="-I${IMAP_TK_DIR}/c-client"
813 + imap_libs="-limap -lssl -lcrypto -lcrypt" 813 + imap_libs="-limap -lssl -lcrypto -lcrypt"
814 + imap_include="-DUSE_SYSTEM_IMAP -I${IMAP_TK_DIR}/include/imap" 814 + imap_include="-DUSE_SYSTEM_IMAP -I${IMAP_TK_DIR}/include/imap"
815 CPPFLAGS="${CPPFLAGS} ${imap_include}" 815 CPPFLAGS="${CPPFLAGS} ${imap_include}"
816 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}` 816 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 817 cat >conftest.$ac_ext <<_ACEOF
818 @@ -25541,19 +25536,19 @@ 818 @@ -47493,7 +47488,7 @@
819
820 # now check for the header.
821 if test "${AST_LUA_FOUND}" = "yes"; then
822 - LUA_LIB="${pbxlibdir} -llua5.1 -lm"
823 + LUA_LIB="${pbxlibdir} -llua -lm"
824 # if --with-LUA=DIR has been specified, use it.
825 if test "x${LUA_DIR}" != "x"; then
826 LUA_INCLUDE="-I${LUA_DIR}/include"
827 fi
828 LUA_INCLUDE="${LUA_INCLUDE} "
829 - if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
830 + if test "xlua/lua.h" = "x" ; then # no header, assume found
831 LUA_HEADER_FOUND="1"
832 else # check for the header
833 ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
834 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
835 - ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
836 -if test "x$ac_cv_header_lua5_1_lua_h" = x""yes; then :
837 + ac_fn_c_check_header_mongrel "$LINENO" "lua/lua.h" "ac_cv_header_lua_lua_h" "$ac_includes_default"
838 +if test "x$ac_cv_header_lua_lua_h" = x""yes; then :
839 LUA_HEADER_FOUND=1
840 else
841 LUA_HEADER_FOUND=0
842 @@ -25581,9 +25576,9 @@
843
844 if test "x${PBX_LUA}" = "x1" ; then
845 if test x"${LUA_DIR}" = x; then
846 - LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
847 + LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua"
848 else
849 - LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
850 + LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua"
851 fi
852 fi
853
854 @@ -26262,7 +26257,7 @@
855 pbxlibdir="-L${SQLITE_DIR}" 819 pbxlibdir="-L${SQLITE_DIR}"
856 fi 820 fi
857 fi 821 fi
858 - pbxfuncname="sqlite_exec" 822 - pbxfuncname="sqlite_exec"
859 + pbxfuncname="sqlite3_exec" 823 + pbxfuncname="sqlite3_exec"
860 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers 824 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
861 AST_SQLITE_FOUND=yes 825 AST_SQLITE_FOUND=yes
862 else 826 else
863 @@ -26976,16 +26971,16 @@ 827 @@ -49185,16 +49180,16 @@
864 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then 828 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
865 PBX_GMIME=0 829 PBX_GMIME=0
866 if test -n "$ac_tool_prefix"; then 830 if test -n "$ac_tool_prefix"; then
867 - # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args. 831 - # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
868 -set dummy ${ac_tool_prefix}gmime-config; ac_word=$2 832 -set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
869 + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 833 + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
870 + set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 834 +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
872 $as_echo_n "checking for $ac_word... " >&6; } 836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
873 -if test "${ac_cv_path_CONFIG_GMIME+set}" = set; then : 837 -if test "${ac_cv_path_CONFIG_GMIME+set}" = set; then
874 +if test "${ac_cv_prog_PKGCONFIG+set}" = set; then 838 +if test "${ac_cv_path_PKGCONFIG+set}" = set; then
875 $as_echo_n "(cached) " >&6 839 echo $ECHO_N "(cached) $ECHO_C" >&6
876 else 840 else
877 - case $CONFIG_GMIME in 841 - case $CONFIG_GMIME in
878 + case $PKGCONFIG in 842 + case $PKGCONFIG in
879 [\\/]* | ?:[\\/]*) 843 [\\/]* | ?:[\\/]*)
880 - ac_cv_path_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test with a path. 844 - ac_cv_path_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test with a path.
881 + ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 845 + ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
882 ;; 846 ;;
883 *) 847 *)
884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
885 @@ -26996,7 +26991,7 @@ 849 @@ -49205,7 +49200,7 @@
886 test -z "$as_dir" && as_dir=. 850 test -z "$as_dir" && as_dir=.
887 for ac_exec_ext in '' $ac_executable_extensions; do 851 for ac_exec_ext in '' $ac_executable_extensions; do
888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
889 - ac_cv_path_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext" 853 - ac_cv_path_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
890 + ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 854 + ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
892 break 2 856 break 2
893 fi 857 fi
894 @@ -27007,10 +27002,10 @@ 858 @@ -49216,10 +49211,10 @@
895 ;; 859 ;;
896 esac 860 esac
897 fi 861 fi
898 -CONFIG_GMIME=$ac_cv_path_CONFIG_GMIME 862 -CONFIG_GMIME=$ac_cv_path_CONFIG_GMIME
899 -if test -n "$CONFIG_GMIME"; then 863 -if test -n "$CONFIG_GMIME"; then
900 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_GMIME" >&5 864 - { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
901 -$as_echo "$CONFIG_GMIME" >&6; } 865 -echo "${ECHO_T}$CONFIG_GMIME" >&6; }
902 +PKGCONFIG=$ac_cv_path_PKGCONFIG 866 +PKGCONFIG=$ac_cv_path_PKGCONFIG
903 +if test -n "$PKGCONFIG"; then 867 +if test -n "$PKGCONFIG"; then
904 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 868 + { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
905 +$as_echo "$PKGCONFIG" >&6; } 869 +echo "${ECHO_T}$PKGCONFIG" >&6; }
906 else 870 else
907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 871 { echo "$as_me:$LINENO: result: no" >&5
908 $as_echo "no" >&6; } 872 echo "${ECHO_T}no" >&6; }
909 @@ -27018,18 +27013,18 @@ 873 @@ -49227,18 +49222,18 @@
910 874
911 875
912 fi 876 fi
913 -if test -z "$ac_cv_path_CONFIG_GMIME"; then 877 -if test -z "$ac_cv_path_CONFIG_GMIME"; then
914 - ac_pt_CONFIG_GMIME=$CONFIG_GMIME 878 - ac_pt_CONFIG_GMIME=$CONFIG_GMIME
916 -set dummy gmime-config; ac_word=$2 880 -set dummy gmime-config; ac_word=$2
917 +if test -z "$ac_cv_path_PKGCONFIG"; then 881 +if test -z "$ac_cv_path_PKGCONFIG"; then
918 + ac_pt_PKGCONFIG=$PKGCONFIG 882 + ac_pt_PKGCONFIG=$PKGCONFIG
919 + # Extract the first word of "pkg-config", so it can be a program name with args. 883 + # Extract the first word of "pkg-config", so it can be a program name with args.
920 +set dummy pkg-config; ac_word=$2 884 +set dummy pkg-config; ac_word=$2
921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
922 $as_echo_n "checking for $ac_word... " >&6; } 886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
923 -if test "${ac_cv_path_ac_pt_CONFIG_GMIME+set}" = set; then : 887 -if test "${ac_cv_path_ac_pt_CONFIG_GMIME+set}" = set; then
924 +if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then : 888 +if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
925 $as_echo_n "(cached) " >&6 889 echo $ECHO_N "(cached) $ECHO_C" >&6
926 else 890 else
927 - case $ac_pt_CONFIG_GMIME in 891 - case $ac_pt_CONFIG_GMIME in
928 + case $ac_pt_PKGCONFIG in 892 + case $ac_pt_PKGCONFIG in
929 [\\/]* | ?:[\\/]*) 893 [\\/]* | ?:[\\/]*)
930 - ac_cv_path_ac_pt_CONFIG_GMIME="$ac_pt_CONFIG_GMIME" # Let the user override the test with a path. 894 - ac_cv_path_ac_pt_CONFIG_GMIME="$ac_pt_CONFIG_GMIME" # Let the user override the test with a path.
931 + ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 895 + ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
932 ;; 896 ;;
933 *) 897 *)
934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
935 @@ -27040,7 +27035,7 @@ 899 @@ -49249,7 +49244,7 @@
936 test -z "$as_dir" && as_dir=. 900 test -z "$as_dir" && as_dir=.
937 for ac_exec_ext in '' $ac_executable_extensions; do 901 for ac_exec_ext in '' $ac_executable_extensions; do
938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
939 - ac_cv_path_ac_pt_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext" 903 - ac_cv_path_ac_pt_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
940 + ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 904 + ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
942 break 2 906 break 2
943 fi 907 fi
944 @@ -27051,17 +27046,17 @@ 908 @@ -49260,17 +49255,17 @@
945 ;; 909 ;;
946 esac 910 esac
947 fi 911 fi
948 -ac_pt_CONFIG_GMIME=$ac_cv_path_ac_pt_CONFIG_GMIME 912 -ac_pt_CONFIG_GMIME=$ac_cv_path_ac_pt_CONFIG_GMIME
949 -if test -n "$ac_pt_CONFIG_GMIME"; then 913 -if test -n "$ac_pt_CONFIG_GMIME"; then
950 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_GMIME" >&5 914 - { echo "$as_me:$LINENO: result: $ac_pt_CONFIG_GMIME" >&5
951 -$as_echo "$ac_pt_CONFIG_GMIME" >&6; } 915 -echo "${ECHO_T}$ac_pt_CONFIG_GMIME" >&6; }
952 +ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 916 +ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
953 +if test -n "$ac_pt_PKGCONFIG"; then 917 +if test -n "$ac_pt_PKGCONFIG"; then
954 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 918 + { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
955 +$as_echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; } 919 +echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
956 else 920 else
957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 921 { echo "$as_me:$LINENO: result: no" >&5
958 $as_echo "no" >&6; } 922 echo "${ECHO_T}no" >&6; }
959 fi 923 fi
960 924
961 - if test "x$ac_pt_CONFIG_GMIME" = x; then 925 - if test "x$ac_pt_CONFIG_GMIME" = x; then
962 - CONFIG_GMIME="No" 926 - CONFIG_GMIME="No"
963 + if test "x$ac_pt_PKGCONFIG" = x; then 927 + if test "x$ac_pt_PKGCONFIG" = x; then
964 + PKGCONFIG="No" 928 + PKGCONFIG="No"
965 else 929 else
966 case $cross_compiling:$ac_tool_warned in 930 case $cross_compiling:$ac_tool_warned in
967 yes:) 931 yes:)
968 @@ -27069,17 +27064,15 @@ 932 @@ -49282,22 +49277,17 @@
969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
970 ac_tool_warned=yes ;; 934 ac_tool_warned=yes ;;
971 esac 935 esac
972 - CONFIG_GMIME=$ac_pt_CONFIG_GMIME 936 - CONFIG_GMIME=$ac_pt_CONFIG_GMIME
973 + PKGCONFIG=$ac_pt_PKGCONFIG 937 + PKGCONFIG=$ac_pt_PKGCONFIG
974 fi 938 fi
985 + if test ! "x${PKGCONFIG}" = xNo; then 949 + if test ! "x${PKGCONFIG}" = xNo; then
986 + GMIME_INCLUDE=$(${PKGCONFIG} gmime-2.4 --cflags 2>/dev/null) 950 + GMIME_INCLUDE=$(${PKGCONFIG} gmime-2.4 --cflags 2>/dev/null)
987 + GMIME_LIB=$(${PKGCONFIG} gmime-2.4 --libs) 951 + GMIME_LIB=$(${PKGCONFIG} gmime-2.4 --libs)
988 if test x"#include <gmime/gmime.h>" != x ; then 952 if test x"#include <gmime/gmime.h>" != x ; then
989 saved_cppflags="${CPPFLAGS}" 953 saved_cppflags="${CPPFLAGS}"
990 if test "x${GMIME_DIR}" != "x"; then 954 - if test "x${GMIME_DIR}" != "x"; then
955 - GMIME_INCLUDE="-I${GMIME_DIR}/include"
956 - fi
957 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
958
959 saved_libs="${LIBS}"
991 Index: formats/format_pcm.c 960 Index: formats/format_pcm.c
992 diff -Nau formats/format_pcm.c.orig formats/format_pcm.c 961 diff -Nau formats/format_pcm.c.orig formats/format_pcm.c
993 --- formats/format_pcm.c.orig 2011-07-14 22:13:06.000000000 +0200 962 --- formats/format_pcm.c.orig 2011-07-14 22:13:06.000000000 +0200
994 +++ formats/format_pcm.c 2011-09-14 14:29:50.767970949 +0200 963 +++ formats/format_pcm.c 2011-09-14 14:29:50.767970949 +0200
995 @@ -354,6 +354,7 @@ 964 @@ -354,6 +354,7 @@
1053 /* 1022 /*
1054 Index: main/features.c 1023 Index: main/features.c
1055 diff -Nau main/features.c.orig main/features.c 1024 diff -Nau main/features.c.orig main/features.c
1056 --- main/features.c.orig 2011-08-10 00:12:59.000000000 +0200 1025 --- main/features.c.orig 2011-08-10 00:12:59.000000000 +0200
1057 +++ main/features.c 2011-09-14 14:29:50.777958246 +0200 1026 +++ main/features.c 2011-09-14 14:29:50.777958246 +0200
1058 @@ -1646,6 +1646,10 @@ 1027 @@ -1922,6 +1922,10 @@
1059 snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename); 1028 snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename);
1060 } 1029 }
1061 1030
1062 + for(x = 0; x < strlen(touch_filename); x++) { 1031 + for(x = 0; x < strlen(touch_filename); x++) {
1063 + if (args[x] == '/') 1032 + if (args[x] == '/')
1064 + args[x] = '-'; 1033 + args[x] = '-';
1065 + } 1034 + }
1066 for(x = 0; x < strlen(args); x++) { 1035 for(x = 0; x < strlen(args); x++) {
1067 if (args[x] == '/') 1036 if (args[x] == '/')
1068 args[x] = '-'; 1037 args[x] = '-';
1069 @@ -1762,6 +1766,10 @@ 1038 @@ -2038,6 +2042,10 @@
1070 snprintf(args, len, "%s.%s,b", touch_filename, S_OR(touch_format, "wav")); 1039 snprintf(args, len, "%s.%s,b", touch_filename, S_OR(touch_format, "wav"));
1071 } 1040 }
1072 1041
1073 + for( x = 0; x < strlen(touch_filename); x++) { 1042 + for( x = 0; x < strlen(touch_filename); x++) {
1074 + if (args[x] == '/') 1043 + if (args[x] == '/')

mercurial