diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-07 17:13:49 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-13 21:43:16 -0800 |
commit | 9bf1cbbd49fbb11707e3bc30429e1fbedd5abec8 (patch) | |
tree | 26d136dba81fa6a23a63c50c44a669725df73e20 | |
parent | dc963f6d676d1735144ff3997c0ab5bf7cc3889f (diff) |
Add --with-mailbox-directory=PATH option to configure
Lets builders set a specific path for mailboxes when the defaults
don't match the system setup
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
-rw-r--r-- | 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]) |