configure.ac revision a6d9b409
1a6d9b409Smrgdnl Copyright 2005 Red Hat, Inc. 2a6d9b409Smrgdnl 3a6d9b409Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 4a6d9b409Smrgdnl documentation for any purpose is hereby granted without fee, provided that 5a6d9b409Smrgdnl the above copyright notice appear in all copies and that both that 6a6d9b409Smrgdnl copyright notice and this permission notice appear in supporting 7a6d9b409Smrgdnl documentation, and that the name of Red Hat not be used in 8a6d9b409Smrgdnl advertising or publicity pertaining to distribution of the software without 9a6d9b409Smrgdnl specific, written prior permission. Red Hat makes no 10a6d9b409Smrgdnl representations about the suitability of this software for any purpose. It 11a6d9b409Smrgdnl is provided "as is" without express or implied warranty. 12a6d9b409Smrgdnl 13a6d9b409Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14a6d9b409Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15a6d9b409Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16a6d9b409Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17a6d9b409Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18a6d9b409Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19a6d9b409Smrgdnl PERFORMANCE OF THIS SOFTWARE. 20a6d9b409Smrgdnl 21a6d9b409Smrgdnl Process this file with autoconf to create configure. 22a6d9b409Smrg 23a6d9b409SmrgAC_PREREQ([2.57]) 24a6d9b409SmrgAC_INIT(sessreg, [1.0.3], 25a6d9b409Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 26a6d9b409Smrg sessreg) 27a6d9b409SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 28a6d9b409SmrgAM_MAINTAINER_MODE 29a6d9b409Smrg 30a6d9b409SmrgAM_CONFIG_HEADER(config.h) 31a6d9b409Smrg 32a6d9b409Smrg# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 33a6d9b409Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 34a6d9b409SmrgXORG_MACROS_VERSION(1.1) 35a6d9b409Smrg 36a6d9b409SmrgAC_PROG_CC 37a6d9b409SmrgAC_PROG_INSTALL 38a6d9b409Smrg 39a6d9b409SmrgAC_CHECK_HEADERS([lastlog.h utmpx.h sys/param.h]) 40a6d9b409SmrgAC_CHECK_MEMBER([struct utmpx.ut_syslen], 41a6d9b409Smrg HAVE_SYSLEN=1, 42a6d9b409Smrg HAVE_SYSLEN=0, 43a6d9b409Smrg [#include <utmpx.h>]) 44a6d9b409SmrgAC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN, 45a6d9b409Smrg [utmpx structure includes ut_syslen field]) 46a6d9b409Smrg 47a6d9b409SmrgAC_SYS_LARGEFILE 48a6d9b409Smrg 49a6d9b409Smrg# Checks for pkg-config packages 50a6d9b409SmrgPKG_CHECK_MODULES(SESSREG, x11) 51a6d9b409SmrgAC_SUBST(SESSREG_CFLAGS) 52a6d9b409Smrg 53a6d9b409Smrg# Allow checking code with lint, sparse, etc. 54a6d9b409SmrgXORG_WITH_LINT 55a6d9b409Smrg 56a6d9b409SmrgXORG_MANPAGE_SECTIONS 57a6d9b409SmrgXORG_RELEASE_VERSION 58a6d9b409Smrg 59a6d9b409SmrgAC_OUTPUT([Makefile]) 60