diff options
-rw-r--r-- | Makefile.am | 11 | ||||
-rw-r--r-- | configure.ac | 2 |
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) |