[PATCH:xbiff 2/2] Add --with-mailbox-directory=PATH option to configure

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jan 7 17:23:59 PST 2011


Lets builders set a specific path for mailboxes when the defaults
don't match the system setup

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 configure.ac |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 05937be..609d6e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,4 +44,19 @@ PKG_CHECK_MODULES(XBIFF, xaw7 xmu xbitmaps xext x11)
 # Checks for headers
 AC_CHECK_HEADERS([paths.h])
 
+# Allow builder to set path to look for mailboxes
+AC_MSG_CHECKING([for mailbox directory])
+AC_ARG_WITH([mailbox-directory],
+            [AS_HELP_STRING([--with-mailbox-directory=PATH],
+              [specify directory to check for system mailboxes])],
+            [mailbox_directory=$with_mailbox_directory])
+
+if test "x$mailbox_directory" != "x"; then
+   AC_DEFINE_UNQUOTED([MAILBOX_DIRECTORY], ["$mailbox_directory"],
+                      [Directory containing user mailboxes])
+   AC_MSG_RESULT([$mailbox_directory])
+else
+   AC_MSG_RESULT([not set])
+fi
+
 AC_OUTPUT([Makefile])
-- 
1.7.3.2



More information about the xorg-devel mailing list