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'`
7 AC_HELP_STRING([--with-$1],
8 [enable $2 support (default=yes if found)]
10 if test "$withval" = "yes"; then
12 elif test "$withval" = "no"; then
15 AC_MSG_ERROR(please use \"yes\" or \"no\" with --with-$1)
20 if test "$with_$1" = "yes"
22 AC_MSG_RESULT([yes, will enable if all libraries are found])