From 9d57f5517367679f4f7be5af1aec91ac300db4e3 Mon Sep 17 00:00:00 2001 From: Cedric Duval Date: Sat, 22 Oct 2005 19:55:21 +0000 Subject: [PATCH] Fix libintl build (thanks to TAKAHASHI Tamotsu). --- Makefile.am | 6 ++++++ configure.in | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Makefile.am b/Makefile.am index b48b800..304d608 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,6 +13,8 @@ abook_SOURCES = abook.c database.c filter.c list.c misc.c \ EXTRA_DIST = config.rpath ANNOUNCE BUGS FAQ abook.1 abookrc.5 sample.abookrc \ abook.spec contrib doc/HOWTO.translating_abook +abook_LDADD = @LIBINTL@ + install-data-local: $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(INSTALL_DATA) $(srcdir)/abook.1 $(DESTDIR)$(mandir)/man1/ @@ -26,3 +28,7 @@ uninstall-local: SUBDIRS = intl po ACLOCAL_AMFLAGS = -I m4 + +if USE_INCLUDED_INTL_H +AM_CPPFLAGS = -Iintl +endif diff --git a/configure.in b/configure.in index 7c919f4..f35534c 100644 --- a/configure.in +++ b/configure.in @@ -30,6 +30,8 @@ fi AC_DEFINE_UNQUOTED(LOCALEDIR, "$abook_localedir", [locale directory]) AC_SUBST(localedir) +AM_CONDITIONAL(USE_INCLUDED_INTL_H, test x$USE_INCLUDED_LIBINTL = xyes) + dnl ---------------------- dnl end of gettext support dnl ---------------------- -- 2.39.2