[patch] have man dir respect nls configure option

[email protected] Tue, 7 Mar 2006 20:25:06 -0500
Newsgroups gmane.linux.pld.shadow.general
Organization wh0rd.org
Message-ID <[email protected]>
if shadow is configured with --disable-nls, then the nls manpages shouldnt be 
installed ... simple patch against current cvs attached
-mike
shadow-nls-man.patch (text/x-diff, 954 B)
Index: configure.in
===================================================================
RCS file: /cvsroot/shadow/configure.in,v
retrieving revision 1.136
diff -u -p -r1.136 configure.in
--- configure.in	6 Mar 2006 18:57:10 -0000	1.136
+++ configure.in	8 Mar 2006 01:22:54 -0000
@@ -328,6 +336,7 @@ fi
 
 AM_GNU_GETTEXT_VERSION(0.12.1)
 AM_GNU_GETTEXT([external], [need-ngettext])
+AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")
 
 AC_CONFIG_FILES([
 	Makefile
Index: man/Makefile.am
===================================================================
RCS file: /cvsroot/shadow/man/Makefile.am,v
retrieving revision 1.48
diff -u -p -r1.48 Makefile.am
--- man/Makefile.am	7 Jan 2006 19:02:31 -0000	1.48
+++ man/Makefile.am	8 Mar 2006 01:22:54 -0000
@@ -1,6 +1,10 @@
 
 # subdirectories for translated manual pages
+if USE_NLS
 SUBDIRS = cs de es fi fr hu id it ja ko pl pt_BR ru tr zh_CN zh_TW
+else
+SUBDIRS =
+endif
 
 man_XMANS = \
 	chage.1.xml \