Only build the po subdir if i18n is enabled
authorGreg Hudson <ghudson@mit.edu>
Wed, 24 Aug 2011 02:48:07 +0000 (02:48 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 24 Aug 2011 02:48:07 +0000 (02:48 +0000)
Also clean the built message catalogs in "make clean".

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25112 dc483132-0cff-0310-8789-dd5450dbe970

src/Makefile.in
src/configure.in
src/po/Makefile.in

index f2049dfbf8af7928c2c7c75291cfc2744713a660..f1dedbc218b345761d9c9f467b524e6937737c2e 100644 (file)
@@ -15,7 +15,7 @@ SUBDIRS=util include lib \
        plugins/preauth/pkinit \
        plugins/preauth/encrypted_challenge \
        kdc kadmin slave clients appl tests \
-       config-files gen-manpages po
+       config-files gen-manpages @po@
 WINSUBDIRS=include util lib ccapi windows clients appl
 BUILDTOP=$(REL).
 LOCALINCLUDES = -I$(srcdir) 
index a5fa4eeea2f75fc123fa4f47aedbb91a0555909c..4e61e8f59157708a7823f293247158548730b47c 100644 (file)
@@ -67,10 +67,13 @@ LIBUTIL=-lutil
 ])
 AC_SUBST(LIBUTIL)
 
+po=
 AC_CHECK_HEADER(libintl.h, [
        AC_SEARCH_LIBS(dgettext, intl, [
+               po=po
                AC_DEFINE(ENABLE_NLS, 1,
                        [Define if translation functions should be used.])])])
+AC_SUBST(po)
 
 # for kdc
 AC_CHECK_HEADERS(syslog.h sys/sockio.h ifaddrs.h unistd.h)
index 9d67f874c31da91bf68346f3c79a4499f27d7f8a..4b58c726e72c8b553c6ccbf7bf3aa2a034157813 100644 (file)
@@ -48,3 +48,6 @@ install::
          install -c $$c \
            $(DESTDIR)$(KRB5_LOCALEDIR)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
        done
+
+clean::
+       $(RM) $(CATALOGS)