configure.ac revision efda2da8
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]) 24efda2da8SmrgAC_INIT(sessreg, [1.0.5], 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 32efda2da8Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 33efda2da8Smrgm4_ifndef([XORG_MACROS_VERSION], 34efda2da8Smrg [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 35efda2da8SmrgXORG_MACROS_VERSION(1.3) 36a6d9b409Smrg 37a6d9b409SmrgAC_PROG_CC 38a6d9b409SmrgAC_PROG_INSTALL 39a6d9b409Smrg 40efda2da8SmrgXORG_DEFAULT_OPTIONS 41efda2da8Smrg 42a6d9b409SmrgAC_CHECK_HEADERS([lastlog.h utmpx.h sys/param.h]) 43a6d9b409SmrgAC_CHECK_MEMBER([struct utmpx.ut_syslen], 44a6d9b409Smrg HAVE_SYSLEN=1, 45a6d9b409Smrg HAVE_SYSLEN=0, 46a6d9b409Smrg [#include <utmpx.h>]) 47a6d9b409SmrgAC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN, 48a6d9b409Smrg [utmpx structure includes ut_syslen field]) 49a6d9b409Smrg 50a6d9b409SmrgAC_SYS_LARGEFILE 51a6d9b409Smrg 52a6d9b409Smrg# Checks for pkg-config packages 53cae39615SmrgPKG_CHECK_MODULES(SESSREG, xproto) 54a6d9b409SmrgAC_SUBST(SESSREG_CFLAGS) 55a6d9b409Smrg 56a6d9b409Smrg# Allow checking code with lint, sparse, etc. 57a6d9b409SmrgXORG_WITH_LINT 58a6d9b409Smrg 59a6d9b409SmrgAC_OUTPUT([Makefile]) 60