aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xres/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/res/Makefile b/res/Makefile
index 39d079e0f..a09eae179 100755
--- a/res/Makefile
+++ b/res/Makefile
@@ -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