1c19de146Smrg 2c19de146Smrgdnl Copyright 2005 Red Hat, Inc. 3c19de146Smrgdnl 4c19de146Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 5c19de146Smrgdnl documentation for any purpose is hereby granted without fee, provided that 6c19de146Smrgdnl the above copyright notice appear in all copies and that both that 7c19de146Smrgdnl copyright notice and this permission notice appear in supporting 8c19de146Smrgdnl documentation, and that the name of Red Hat not be used in 9c19de146Smrgdnl advertising or publicity pertaining to distribution of the software without 10c19de146Smrgdnl specific, written prior permission. Red Hat makes no 11c19de146Smrgdnl representations about the suitability of this software for any purpose. It 12c19de146Smrgdnl is provided "as is" without express or implied warranty. 13c19de146Smrgdnl 14c19de146Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15c19de146Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16c19de146Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17c19de146Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18c19de146Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19c19de146Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20c19de146Smrgdnl PERFORMANCE OF THIS SOFTWARE. 21c19de146Smrgdnl 22c19de146Smrgdnl Process this file with autoconf to create configure. 23c19de146Smrg 24c918a7e2Smrg# Initialize Autoconf 25c918a7e2SmrgAC_PREREQ([2.60]) 263b83913fSmrgAC_INIT([xbiff], [1.0.5], 27a39bb051Smrg [https://gitlab.freedesktop.org/xorg/app/xbiff/issues], [xbiff]) 28c918a7e2SmrgAC_CONFIG_SRCDIR([Makefile.am]) 29c918a7e2SmrgAC_CONFIG_HEADERS([config.h]) 30c918a7e2Smrg 31c918a7e2Smrg# Initialize Automake 323b83913fSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 33c19de146Smrg 34c918a7e2Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 359ef7378bSmrgm4_ifndef([XORG_MACROS_VERSION], 36c918a7e2Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 37c918a7e2SmrgXORG_MACROS_VERSION(1.8) 38c918a7e2SmrgXORG_DEFAULT_OPTIONS 39c19de146Smrg 40c918a7e2Smrg# Checks for pkg-config packages 413b83913fSmrgPKG_CHECK_MODULES(XBIFF, [xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25]) 42c19de146Smrg 43c918a7e2Smrg# Checks for headers 44c918a7e2SmrgAC_CHECK_HEADERS([paths.h]) 45c19de146Smrg 463b83913fSmrg# Checks for typedefs, structures, and compiler characteristics. 473b83913fSmrgAC_SYS_LARGEFILE 483b83913fSmrg 49c918a7e2Smrg# Allow builder to set path to look for mailboxes 50c918a7e2SmrgAC_MSG_CHECKING([for mailbox directory]) 51c918a7e2SmrgAC_ARG_WITH([mailbox-directory], 52c918a7e2Smrg [AS_HELP_STRING([--with-mailbox-directory=PATH], 53c918a7e2Smrg [specify directory to check for system mailboxes])], 54c918a7e2Smrg [mailbox_directory=$with_mailbox_directory]) 55c19de146Smrg 56c918a7e2Smrgif test "x$mailbox_directory" != "x"; then 57c918a7e2Smrg AC_DEFINE_UNQUOTED([MAILBOX_DIRECTORY], ["$mailbox_directory"], 58c918a7e2Smrg [Directory containing user mailboxes]) 59c918a7e2Smrg AC_MSG_RESULT([$mailbox_directory]) 60c918a7e2Smrgelse 61c918a7e2Smrg AC_MSG_RESULT([not set]) 62c918a7e2Smrgfi 63c19de146Smrg 64c918a7e2SmrgAC_CONFIG_FILES([ 65c918a7e2Smrg Makefile 66c918a7e2Smrg man/Makefile]) 67c918a7e2SmrgAC_OUTPUT 68