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