1
# Copyright © 2010 Guillem Jover <guillem@debian.org>
5
# Allow disabling compilation and usage of specific programs.
6
AC_DEFUN([DPKG_WITH_PROG], [
8
AS_HELP_STRING([--without-$1], [do not build or use $1]),
9
[build_]AS_TR_SH([$1])[=$with_]AS_TR_SH([$1]),
10
[build_]AS_TR_SH([$1])[=yes]
12
AM_CONDITIONAL([WITH_]AS_TR_CPP([$1]),
13
[test "x$build_]AS_TR_SH([$1])[" = "xyes"])
14
AS_IF([test "x$build_]AS_TR_SH([$1])[" = "xyes"], [
15
AC_DEFINE([WITH_]AS_TR_CPP([$1]), 1, [Define to 1 if $1 is compiled.])
17
AC_DEFINE([WITH_]AS_TR_CPP([$1]), 0)
21
# DPKG_WITH_DIR(DIR, DEFAULT, DESCRIPTION)
23
# Allow specifying alternate directories.
24
AC_DEFUN([DPKG_WITH_DIR], [
27
AS_HELP_STRING([--with-$1=DIR], [$3]),
29
[""], [AC_MSG_ERROR([invalid $1 specified])],