mpd_depends.m4 471 Bytes
Newer Older
1 2 3 4
dnl Declare a dependency of one feature on another.  If the depending
dnl feature is disabled, the former must be disabled as well.  If the
dnl former was explicitly enabled, abort with an error message.
dnl
5
dnl Parameters: varname1, varname2 (=dependency), description, errmsg
6 7 8
AC_DEFUN([MPD_DEPENDS], [
	if test x$$2 = xno; then
		if test x$$1 = xauto; then
9
			AC_MSG_WARN([$4: disabling $3])
10 11
			$1=no
		elif test x$$1 = xyes; then
12
			AC_MSG_ERROR([$3: $4])
13 14 15
		fi
	fi
])