courier-imap-4.17-disable-fam-configure.ac.patch 807 B

12345678910111213141516171819202122232425262728
  1. Bug #48838. Patch to enable/disable FAM support (20 Aug 2004
  2. langthang@gentoo.org). This patch should fix bug #51540. The fam USE
  3. flag is not needed for shared folder support.
  4. --- a/libs/maildir/configure.ac.orig 2004-06-08 15:44:23.000000000 -0700
  5. +++ b/libs/maildir/configure.ac 2004-08-14 15:28:20.525714876 -0700
  6. @@ -73,6 +73,12 @@
  7. dnl Checks for library functions.
  8. AC_CHECK_HEADER(fam.h, :, :)
  9. AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
  10. +AC_ARG_WITH(fam, [ --with-fam Compile with FAM support],
  11. + fam="$withval",
  12. + fam="no")
  13. +
  14. +if test "$fam" != "no"
  15. +then
  16. AC_CHECK_LIB(fam, FAMOpen, [
  17. LIBFAM=-lfam
  18. AC_DEFINE_UNQUOTED(HAVE_FAM,1,
  19. @@ -87,6 +93,7 @@
  20. AC_MSG_ERROR([[FAM development libraries not found.]]) ]
  21. )
  22. ])
  23. +fi
  24. AC_SUBST(LIBFAM)