summaryrefslogtreecommitdiff
blob: 6d26895c0d7be9d3b8dc1335c095eda1f74f53fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Bug #48838. Patch to enable/disable FAM support (20 Aug 2004
langthang@gentoo.org). This patch should fix bug #51540. The fam USE
flag is not needed for shared folder support.

--- a/libs/maildir/configure.ac.orig	2004-06-08 15:44:23.000000000 -0700
+++ b/libs/maildir/configure.ac	2004-08-14 15:28:20.525714876 -0700
@@ -73,6 +73,12 @@
 dnl Checks for library functions.
 AC_CHECK_HEADER(fam.h, :, :)
 AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
+AC_ARG_WITH(fam, [  --with-fam              Compile with FAM support],
+       fam="$withval",
+       fam="no")
+
+if test "$fam" != "no"
+then
 AC_CHECK_LIB(fam, FAMOpen,  [
 			LIBFAM=-lfam
 			AC_DEFINE_UNQUOTED(HAVE_FAM,1,
@@ -87,6 +93,7 @@
 AC_MSG_ERROR([[FAM development libraries not found.]]) ]
 					)
 		  ])
+fi
 
 AC_SUBST(LIBFAM)