[go: up one dir, main page]

File: acinclude.m4

package info (click to toggle)
ima-evm-utils 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: ansic: 4,211; sh: 3,159; awk: 113; makefile: 109
file content (14 lines) | stat: -rw-r--r-- 402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14

AC_DEFUN([PKG_ARG_ENABLE],
	[
	AC_MSG_CHECKING(whether to enable $1)
	AC_ARG_ENABLE([$1], AS_HELP_STRING([--enable-$1], [enable $1 (default is $2)]),
	[pkg_cv_enable_$1=$enableval],	
	[AC_CACHE_VAL([pkg_cv_enable_$1], [pkg_cv_enable_$1=$2])])
	if test $pkg_cv_enable_$1 = yes; then
		AC_DEFINE([$3],, [$4])
	fi
	AC_MSG_RESULT([$pkg_cv_enable_$1])
	AM_CONDITIONAL($3, test $pkg_cv_enable_$1 = yes)
])