Warn about wrong version of mpg123 (bug #3392)
authorMark Spencer <markster@digium.com>
Fri, 21 Jan 2005 04:16:05 +0000 (04:16 +0000)
committerMark Spencer <markster@digium.com>
Fri, 21 Jan 2005 04:16:05 +0000 (04:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4862 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/Makefile

index 39d079e..a09eae1 100755 (executable)
@@ -58,7 +58,16 @@ endif
 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