[Asterisk-cvs] asterisk/res Makefile,1.18,1.19

markster at lists.digium.com markster at lists.digium.com
Thu Jan 20 22:13:09 CST 2005


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv19950/res

Modified Files:
	Makefile 
Log Message:
Warn about wrong version of mpg123 (bug #3392)


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/res/Makefile,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Makefile	17 Jul 2004 20:58:01 -0000	1.18
+++ Makefile	21 Jan 2005 04:16:05 -0000	1.19
@@ -58,7 +58,16 @@
 depend: .depend
 
 .depend:
-	../mkdep $(CFLAGS) `ls *.c`
+	@if ! which mpg123 &>/dev/null ; then \
+		echo "*** You don't have mpg123 installed. You're going to need ***";\
+		echo "***       it if you want MusicOnHold                      ***";\
+	elif ! mpg123 --longhelp 2>&1 | grep .59r &>/dev/null ; then \
+			echo "*************************************************************";\
+			echo "*** You have the WRONG version of mpg123... you need .59r ***";\
+			echo "*** Use 'make mpg123' to get the right verison            ***";\
+			echo "*************************************************************";\
+ 	fi
+	../mkdep $(CFLAGS) `ls *.c`	
 
 env:
 	env




More information about the svn-commits mailing list