aboutsummaryrefslogtreecommitdiffstats
path: root/m4/mpd_define_conditional.m4
blob: 4bc8499843ab678c9aa661907a57f626f3e8b2b9 (plain) (blame)
1
2
3
4
5
6
7
8
dnl Wrapper for AC_DEFINE and AM_CONDITIONAL
dnl
dnl Parameters: varname1, varname2, description
AC_DEFUN([MPD_DEFINE_CONDITIONAL], [dnl
	AM_CONDITIONAL($2, test x$[]$1 = xyes)
	if test x$[]$1 = xyes; then
		AC_DEFINE($2, 1, [Define to enable $3])
	fi])