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
$(CC) $(LDEFLAGS) $(LDFLAGS) $(objs) $(LOADLIBS) -o fetchmail
po: dummy
- make -C po
+ @POMAKE@
dummy:
$(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
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.
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)],