]> Pileus Git - ~andy/fetchmail/commitdiff
Enable us to cleanly leave out the internationalization support.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 30 Nov 1998 17:12:02 +0000 (17:12 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 30 Nov 1998 17:12:02 +0000 (17:12 -0000)
svn path=/trunk/; revision=2237

INSTALL
Makefile.in
configure.in

diff --git a/INSTALL b/INSTALL
index 7676aff936778d97f82a4a144a9c6f70bd19af3d..c82ffd4f6b61b251a5dc7cf090b1ed6ff2b3ce10 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -70,7 +70,7 @@ will do that.
 
 To enable multilingual support using GNU gettext, 
 
-       configure --prefix=/usr --enable-NLS
+       configure --prefix=/usr --enable-nls
 
 The prefix argument is needed to generate the makefiles in the po directory
 correctly; otherwise, they'll install the internationalization stuff in
index 0494a0cb3e2cdda5b701b38c83be9edca7c238ae..b97f1a2f01cc9e1eeb80baf88cfc50c3425446e7 100644 (file)
@@ -114,7 +114,7 @@ fetchmail: $(objs)
        $(CC) $(LDEFLAGS) $(LDFLAGS) $(objs) $(LOADLIBS) -o fetchmail
 
 po:    dummy
-       make -C po
+       @POMAKE@
 
 dummy:
 
@@ -151,28 +151,28 @@ install:
        $(INSTALL_DATA) $(srcdir)/fetchmail.man $(mandir)/fetchmail.$(manext)
        ln -f -s $(mandir)/fetchmail.$(manext) $(mandir)/fetchmailconf.$(manext)
        @echo "Installing language catalogs..."
-       make -C po install
+       @POMAKE@ install
 
 uninstall:
        rm -f $(bindir)/fetchmail $(bindir)/fetchmailconf
        rm -f $(mandir)/fetchmail.$(manext) $(mandir)/fetchmailconf.$(manext)
-       make -C po uninstall
+       @POMAKE@ uninstall
 
 .PHONY: clean realclean distclean mostlyclean
 clean: 
-       make -C po clean
+       @POMAKE@ clean
        -rm -f fetchmail *.o core fetchmail.dvi \
               rcfile_l.c rcfile_y.h rcfile_y.c \
               fetchmail.tar fetchmail.tar.gz \
               rfc822 unmime
 
 distclean: clean 
-       make -C po distclean
+       @POMAKE@ distclean
        -rm -f Makefile config.h TAGS tags
        -rm -f config.cache config.status config.log stamp-config
 
 realclean: distclean
-       make -C po clean
+       @POMAKE@ clean
        -rm -f FAQ FEATURES NOTES MANIFEST 
        -rm -f config.cache config.log Makefile
        -rm -f fetchmail-*.tar.gz fetchmail-*.i386.rpm 
index 52b2bd39abc47cdde37d5d5b71d3f9fea9747f5e..8d7427de9a223daa5b62b6e8def9126a80636979 100644 (file)
@@ -33,6 +33,7 @@ AC_SUBST(CPFLAGS)
 AC_SUBST(CEFLAGS)
 AC_SUBST(LDEFLAGS)
 AC_SUBST(LIBOBJS)
+AC_SUBST(POMAKE)
 
 # Check for LynxOS special case: -lbsd needed (at least on 2.3.0) and -s
 # not working.
@@ -191,6 +192,15 @@ AC_CHECK_SIZEOF(short)
 AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
 
+if test "$USE_NLS" = "yes"
+then
+       echo "Enabling internationalization support..."
+       POMAKE="make -C po"
+else
+       echo "Disabling internationalization support..."
+       POMAKE="@echo '(NLS support disabled)'; #"
+fi
+
 ###    use option --enable-POP2 to compile in the POP2 support
 AC_ARG_ENABLE(POP2,
        [  --enable-POP2        compile in POP2 protocol support (obsolete)],