Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / am-utils / dist / m4 / macros / with_addon.m4
blobb061621cf173814f9ec3530146f9d91f19f3dfd6
1 dnl ######################################################################
2 dnl Do we want to compile with "ADDON" support? (hesiod, ldap, etc.)
3 AC_DEFUN([AMU_WITH_ADDON],
4 [AC_MSG_CHECKING([if $1 is wanted])
5 ac_upcase=`echo $1|tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6 AC_ARG_WITH($1,
7  AC_HELP_STRING([--with-$1],
8                 [enable $2 support (default=yes if found)]
9 ),[
10 if test "$withval" = "yes"; then
11   with_$1=yes
12 elif test "$withval" = "no"; then
13   with_$1=no
14 else
15   AC_MSG_ERROR(please use \"yes\" or \"no\" with --with-$1)
17 ],[
18 with_$1=yes
20 if test "$with_$1" = "yes"
21 then
22   AC_MSG_RESULT([yes, will enable if all libraries are found])
23 else
24   AC_MSG_RESULT([no])