summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-03 17:18:44 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-03 17:18:44 +0000
commit5932bb94ffc5c10ab00831b70e703451acdc76b5 (patch)
tree09ec8414e57835974b9ecafba8df9152640ea97c
parent26e33eae6ff593878b1402ef6d5596dc1f7c7fe3 (diff)
Add AC_SYS_LARGEFILE for systems that need it to access large
wtmpx/lastlogs Set version string in man page
-rw-r--r--Makefile.am11
-rw-r--r--configure.ac2
2 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 111ca65..7389323 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,6 +26,13 @@ sessreg_LDADD = $(SESSREG_LIBS)
sessreg_SOURCES = \
sessreg.c
+XORGRELSTRING = @PACKAGE_STRING@
+ XORGMANNAME = X Version 11
-dist_man1_MANS = \
- sessreg.man
+sessreg.1: sessreg.man
+ sed 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \
+ < sessreg.man > sessreg.1
+
+man1_MANS = sessreg.1
+CLEANFILES = $(man1_MANS)
+EXTRA_DIST = sessreg.man
diff --git a/configure.ac b/configure.ac
index 73324cd..c8468bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,8 @@ AC_PROG_INSTALL
AC_CHECK_HEADERS([lastlog.h utmpx.h sys/param.h])
+AC_SYS_LARGEFILE
+
# Checks for pkg-config packages
PKG_CHECK_MODULES(SESSREG, xproto)
AC_SUBST(SESSREG_CFLAGS)