1dnl ###################################################################### 2dnl Do we want to compile with "ADDON" support? (hesiod, ldap, etc.) 3AC_DEFUN([AMU_WITH_ADDON], 4[AC_MSG_CHECKING([if $1 is wanted]) 5ac_upcase=`echo $1|tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6AC_ARG_WITH($1, 7 AC_HELP_STRING([--with-$1], 8 [enable $2 support (default=yes if found)] 9),[ 10if test "$withval" = "yes"; then 11 with_$1=yes 12elif test "$withval" = "no"; then 13 with_$1=no 14else 15 AC_MSG_ERROR(please use \"yes\" or \"no\" with --with-$1) 16fi 17],[ 18with_$1=yes 19]) 20if test "$with_$1" = "yes" 21then 22 AC_MSG_RESULT([yes, will enable if all libraries are found]) 23else 24 AC_MSG_RESULT([no]) 25fi 26]) 27