--- a/common/autoconf/help.m4 Wed Jul 05 18:12:32 2017 +0200
+++ b/common/autoconf/help.m4 Thu Jun 07 20:25:06 2012 -0700
@@ -23,18 +23,20 @@
# questions.
#
+function prepare_help_system {
+ AC_CHECK_PROGS(PKGHANDLER, apt-get yum port pkgutil pkgadd)
+}
+
function help_on_build_dependency {
# Print a helpful message on how to acquire the necessary build dependency.
# $1 is the help tag: freetyp2, cups, pulse, alsa etc
MISSING_DEPENDENCY=$1
PKGHANDLER_COMMAND=
- AC_CHECK_PROGS(PKGHANDLER, apt-get yum port pkgutil pkgadd)
-
case $PKGHANDLER in
apt-get)
apt_help $MISSING_DEPENDENCY ;;
- yum)
+ yum)
yum_help $MISSING_DEPENDENCY ;;
port)
port_help $MISSING_DEPENDENCY ;;
@@ -47,7 +49,7 @@
esac
if test "x$PKGHANDLER_COMMAND" != x; then
- HELP_MSG="Try running '$PKGHANDLER_COMMAND'."
+ HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
fi
}