From: Bruno Haible Date: Sun, 25 Nov 2018 01:12:13 +0000 (+0100) Subject: build: Use Automake in intl subdirectory. X-Git-Tag: v0.20~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d2c1d6ed6114916db369cd3ecdc8301c6ecac3;p=thirdparty%2Fgettext.git build: Use Automake in intl subdirectory. * gettext-runtime/intl/Makefile.am: New file, based on gettext-runtime/intl/Makefile.in. * gettext-runtime/intl/Makefile.in: Remove file. * autogen.sh: Copy gettext-runtime/intl/Makefile.am to gettext-tools/intl/Makefile.am. * gettext-runtime/configure.ac (USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL, PACKAGE_IS_GETTEXT_TOOLS, PRELOADABLE_LIBINTL): New conditionals. * gettext-tools/configure.ac: Likewise. --- diff --git a/.gitignore b/.gitignore index e76f0d55e..27087823a 100644 --- a/.gitignore +++ b/.gitignore @@ -318,6 +318,7 @@ /gettext-runtime/config.h.in /gettext-runtime/Makefile.in /gettext-runtime/doc/Makefile.in +/gettext-runtime/intl/Makefile.in /gettext-runtime/intl-csharp/Makefile.in /gettext-runtime/intl-java/Makefile.in /gettext-runtime/libasprintf/aclocal.m4 diff --git a/autogen.sh b/autogen.sh index a0a469b14..24455c4f9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -512,6 +512,8 @@ for file in intl.m4 po.m4; do done echo "$0: generating configure in gettext-tools..." +mkdir -p gettext-tools/intl +cp -p gettext-runtime/intl/Makefile.am gettext-tools/intl/Makefile.am cd gettext-tools aclocal -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 \ && autoconf \ diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index a32e6e361..ce2dee309 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -89,6 +89,11 @@ dnl Checks for libraries. dnl These are the only lines required to internationalize the package. dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.) AM_GNU_GETTEXT([use-libtool], [need-ngettext]) +dnl Conditionals for the intl/ directory. +AM_CONDITIONAL([USE_INCLUDED_LIBINTL], [test $USE_INCLUDED_LIBINTL = yes]) +AM_CONDITIONAL([BUILD_INCLUDED_LIBINTL], [test $BUILD_INCLUDED_LIBINTL = yes]) +AM_CONDITIONAL([PACKAGE_IS_GETTEXT_TOOLS], [false]) +AM_CONDITIONAL([PRELOADABLE_LIBINTL], [false]) dnl Checks for header files, functions and declarations. gl_INIT diff --git a/gettext-runtime/intl/Makefile.am b/gettext-runtime/intl/Makefile.am new file mode 100644 index 000000000..1e4790afa --- /dev/null +++ b/gettext-runtime/intl/Makefile.am @@ -0,0 +1,477 @@ +## Makefile for the gettext-runtime/intl and gettext-tools/intl subdirectories +## of GNU gettext. +## Copyright (C) 1995-1998, 2000-2007, 2009-2018 Free Software Foundation, Inc. +## +## This program is free software: you can redistribute it and/or modify +## it under the terms of the GNU Lesser General Public License as published by +## the Free Software Foundation; either version 2.1 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public License +## along with this program. If not, see . + +## Process this file with automake to produce Makefile.in. + +AUTOMAKE_OPTIONS = 1.10 gnu no-dependencies +EXTRA_DIST = +BUILT_SOURCES = +MOSTLYCLEANFILES = core *.stackdump +CLEANFILES = +DISTCLEANFILES = +MAINTAINERCLEANFILES = +SUFFIXES = + +# The VPATH variable allows builds with $builddir != $srcdir, assuming a +# 'make' program that supports VPATH (such as GNU make). The VPATH definition +# is removed by autoconf automatically when "$(srcdir)" = ".". +# In this directory, the VPATH handling is particular: +# 1. The .c -> .lo rule carefully uses $(srcdir), so that VPATH can be omitted. +# 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise +# 'make' does the wrong thing if GNU gettext was configured with +# "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la +# files it finds in srcdir = ../../gettext-runtime/intl. +origsrcdir = @srcdir@ +# In gettext-tools/intl/, distribute the right Makefile.in. +dist-hook: +if PACKAGE_IS_GETTEXT_TOOLS + for file in Makefile.am Makefile.in; do \ + cp -p $(origsrcdir)/$$file $(distdir)/$$file || exit 1; \ + done +else + @: +endif + +# -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro. +# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro. +AM_CPPFLAGS = \ + -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ + -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL + +# Parametrization of the 'relocatable-lib-lgpl' module. +AM_CPPFLAGS += \ + -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ + -Dset_relocation_prefix=libintl_set_relocation_prefix \ + -Drelocate=libintl_relocate \ + -DDEPENDS_ON_LIBICONV=1 + +YACC = @INTLBISON@ -y -d +BISONFLAGS = --name-prefix=__gettext + +# Tell the ELF linker which symbols to export. +AM_CFLAGS = @CFLAG_VISIBILITY@ +# Tell the mingw or Cygwin linker which symbols to export. +if WOE32DLL +AM_LDFLAGS = -Wl,--export-all-symbols +endif + + +# Library include file and code. + +EXTRA_DIST += \ + gmo.h \ + gettextP.h \ + hash-string.h \ + loadinfo.h \ + plural-exp.h \ + eval-plural.h \ + localcharset.h \ + lock.h \ + relocatable.h \ + flexmember.h \ + localename-table.in.h \ + tsearch.h tsearch.c \ + verify.h \ + xsize.h \ + printf-args.h printf-args.c \ + printf-parse.h wprintf-parse.h printf-parse.c \ + vasnprintf.h vasnwprintf.h vasnprintf.c \ + intl-exports.c os2compat.h os2compat.c \ + libgnuintl.in.h + +LIBINTLSOURCES = \ + bindtextdom.c \ + dcgettext.c \ + dgettext.c \ + gettext.c \ + finddomain.c \ + hash-string.c \ + loadmsgcat.c \ + localealias.c \ + textdomain.c \ + l10nflist.c \ + explodename.c \ + dcigettext.c \ + dcngettext.c \ + dngettext.c \ + ngettext.c \ + plural.y \ + plural-exp.c \ + localcharset.c \ + threadlib.c \ + lock.c \ + relocatable.c \ + langprefs.c \ + localename.c \ + localename-table.c \ + log.c \ + printf.c \ + setlocale.c \ + version.c \ + xsize.c \ + osdep.c \ + intl-compat.c + +# We must not install the libintl.h/libintl.la files if we are on a +# system which has the GNU gettext() function in its C library or in a +# separate library. +if USE_INCLUDED_LIBINTL +nodist_include_HEADERS = libintl.h +# Note: libintl.la actually gets installed in $(libdir). See below. +noinst_LTLIBRARIES = libintl.la +libintl_la_SOURCES = $(LIBINTLSOURCES) +else +if BUILD_INCLUDED_LIBINTL +noinst_LTLIBRARIES = libgnuintl.la +libgnuintl_la_SOURCES = $(LIBINTLSOURCES) +endif +endif + +# export.h is an auxiliary file used in constructing the .h files. +EXTRA_DIST += export.h + +libgnuintl.h: $(srcdir)/libgnuintl.in.h $(srcdir)/export.h + sed -e '/IN_LIBGLOCALE/d' \ + -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ + -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ + -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ + -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ + -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \ + -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ + < $(srcdir)/libgnuintl.in.h \ + | if test '@WOE32DLL@' = yes; then \ + sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \ + else \ + cat; \ + fi \ + | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ + -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \ + | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ + > libgnuintl.h +MOSTLYCLEANFILES += libgnuintl.h + +libintl.h: $(srcdir)/libgnuintl.in.h + sed -e '/IN_LIBGLOCALE/d' \ + -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ + -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ + -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ + -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ + -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \ + -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ + < $(srcdir)/libgnuintl.in.h > libintl.h +MOSTLYCLEANFILES += libintl.h + +localename-table.h: $(srcdir)/localename-table.in.h $(srcdir)/export.h + sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ + -e 's/extern,/extern LIBINTL_DLL_EXPORTED,/' \ + -e "/#if HAVE_USELOCALE/r $(srcdir)/export.h" \ + < $(srcdir)/localename-table.in.h \ + | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ + > localename-table.h +MOSTLYCLEANFILES += localename-table.h + +# The Automake generated .y.c rule is broken: When executed in a VPATH build, +# - The .c file gets generated in the build directory. But since it requires +# special tools to rebuild it, we need to distribute it in the tarballs, +# and by the GNU Coding Standards +# +# the file should be generated in the source directory. +# - The #line numbers in the .c file refer to a nonexistent file once it +# has been moved from the build directory to the source directory. This +# leads to error if 'lcov' is used later. +# Additionally, here we assume GNU Bison and therefore don't need the ylwrap +# script. +# Additionally, here we need a rule that works even without a VPATH variable. +# Therefore we override this rule. + +$(srcdir)/plural.c: $(srcdir)/plural.y + $(AM_V_YACC)$(YACC) $(BISONFLAGS) --output plural.c $(srcdir)/plural.y \ + && sed -e 's|".*/plural.y"|"plural.y"|' < plural.c > plural.c-tmp \ + && rm -f plural.c plural.h \ + && mv plural.c-tmp $(srcdir)/plural.c +# Don't put plural.c into BUILT_SOURCES. Since plural.c is in the source +# directory, 'make' does not find it without a VPATH variable. +MOSTLYCLEANFILES += plural.c-tmp +MAINTAINERCLEANFILES += plural.c +EXTRA_DIST += plural.c + +# Rules for compiling a .c file, that work even without a VPATH variable. +bindtextdom.lo: $(srcdir)/bindtextdom.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/bindtextdom.c +dcgettext.lo: $(srcdir)/dcgettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/dcgettext.c +dgettext.lo: $(srcdir)/dgettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/dgettext.c +gettext.lo: $(srcdir)/gettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/gettext.c +finddomain.lo: $(srcdir)/finddomain.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/finddomain.c +hash-string.lo: $(srcdir)/hash-string.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/hash-string.c +loadmsgcat.lo: $(srcdir)/loadmsgcat.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/loadmsgcat.c +localealias.lo: $(srcdir)/localealias.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/localealias.c +textdomain.lo: $(srcdir)/textdomain.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/textdomain.c +l10nflist.lo: $(srcdir)/l10nflist.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/l10nflist.c +explodename.lo: $(srcdir)/explodename.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/explodename.c +dcigettext.lo: $(srcdir)/dcigettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/dcigettext.c +dcngettext.lo: $(srcdir)/dcngettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/dcngettext.c +dngettext.lo: $(srcdir)/dngettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/dngettext.c +ngettext.lo: $(srcdir)/ngettext.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/ngettext.c +plural.lo: $(srcdir)/plural.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/plural.c +plural-exp.lo: $(srcdir)/plural-exp.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/plural-exp.c +localcharset.lo: $(srcdir)/localcharset.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/localcharset.c +threadlib.lo: $(srcdir)/threadlib.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/threadlib.c +lock.lo: $(srcdir)/lock.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/lock.c +relocatable.lo: $(srcdir)/relocatable.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/relocatable.c +langprefs.lo: $(srcdir)/langprefs.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/langprefs.c +localename.lo: $(srcdir)/localename.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/localename.c +localename-table.lo: $(srcdir)/localename-table.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/localename-table.c +log.lo: $(srcdir)/log.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/log.c +printf.lo: $(srcdir)/printf.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/printf.c +setlocale.lo: $(srcdir)/setlocale.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/setlocale.c +version.lo: $(srcdir)/version.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/version.c +xsize.lo: $(srcdir)/xsize.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/xsize.c +osdep.lo: $(srcdir)/osdep.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/osdep.c +intl-compat.lo: $(srcdir)/intl-compat.c + $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/intl-compat.c + +# Dependencies. + +PLURAL_DEPS = +if USE_INCLUDED_LIBINTL +# A bison-2.1 generated plural.c includes if ENABLE_NLS. +PLURAL_DEPS += libintl.h +endif + +bindtextdom.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +dcgettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +dgettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +gettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +finddomain.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +hash-string.lo: ../config.h $(srcdir)/hash-string.h +loadmsgcat.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h $(srcdir)/hash-string.h $(srcdir)/plural-exp.h +localealias.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h $(srcdir)/relocatable.h +textdomain.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +l10nflist.lo: ../config.h $(srcdir)/loadinfo.h +explodename.lo: ../config.h $(srcdir)/loadinfo.h +dcigettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h $(srcdir)/localcharset.h $(srcdir)/plural-exp.h $(srcdir)/hash-string.h $(srcdir)/tsearch.h $(srcdir)/tsearch.c $(srcdir)/eval-plural.h +dcngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +dngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +ngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +plural.lo: ../config.h $(srcdir)/plural-exp.h $(PLURAL_DEPS) +plural-exp.lo: ../config.h $(srcdir)/plural-exp.h +localcharset.lo: ../config.h $(srcdir)/localcharset.h +threadlib.lo: ../config.h +lock.lo: ../config.h $(srcdir)/lock.h +relocatable.lo: ../config.h $(srcdir)/relocatable.h +langprefs.lo: ../config.h +localename.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h $(srcdir)/flexmember.h localename-table.h +localename-table.lo: ../config.h localename-table.h $(srcdir)/lock.h +log.lo: ../config.h $(srcdir)/lock.h +printf.lo: ../config.h $(srcdir)/printf-args.c $(srcdir)/printf-args.h $(srcdir)/printf-parse.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/vasnprintf.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/verify.h +setlocale.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h +version.lo: ../config.h libgnuintl.h +xsize.lo: ../config.h $(srcdir)/xsize.h +osdep.lo: ../config.h $(srcdir)/intl-exports.c $(srcdir)/os2compat.c +intl-compat.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h + +# Version information according to Woe32 conventions. +EXTRA_DIST += libintl.rc +if WOE32 +WOE32_LIBADD = libintl.res.lo +# This rule is executed only on Woe32 systems. +# Use $(RC) with libtool, $(WINDRES) when not using libtool. +# The following sed expressions come from the windres-options script. They are +# inlined here, so that they can be written in a Makefile without requiring a +# temporary file. They must contain literal newlines rather than semicolons, +# so that they work with the sed-3.02 that is shipped with MSYS. +libintl.res.lo: $(srcdir)/libintl.rc + nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ + sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ + sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ + sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ + $(LIBTOOL) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) \ + "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ + "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ + "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ + "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ + -i $(srcdir)/libintl.rc -o libintl.res.lo --output-format=coff +MOSTLYCLEANFILES += libintl.res.lo +else +WOE32_LIBADD = +endif +libintl_la_LIBADD = $(WOE32_LIBADD) +libintl_la_DEPENDENCIES = $(WOE32_LIBADD) +libgnuintl_la_LIBADD = $(WOE32_LIBADD) +libgnuintl_la_DEPENDENCIES = $(WOE32_LIBADD) + +# Libtool's library version information for libintl. +# Before making a gettext release, you must change this according to the +# libtool documentation, section "Library interface versions". +LTV_CURRENT=9 +LTV_REVISION=5 +LTV_AGE=1 + +# How to build libintl.la and libgnuintl.la. +OTHER_LDFLAGS = \ + @LTLIBICONV@ @INTL_MACOSX_LIBS@ @LTLIBTHREAD@ -no-undefined \ + -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ + -rpath $(libdir) +libintl_la_LDFLAGS = $(AM_LDFLAGS) $(OTHER_LDFLAGS) +libgnuintl_la_LDFLAGS = $(AM_LDFLAGS) $(OTHER_LDFLAGS) + + +# Installation of libintl.la. + +if USE_INCLUDED_LIBINTL + +install-exec-local: install-exec-libintl +install-exec-libintl: libintl.la + $(LIBTOOL) --mode=install \ + $(INSTALL_DATA) libintl.la $(DESTDIR)$(libdir)/libintl.la; \ + if test "@RELOCATABLE@" = yes; then \ + dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ + if test -n "$$dependencies"; then \ + rm -f $(DESTDIR)$(libdir)/libintl.la; \ + fi; \ + fi + +installdirs-local: installdirs-libintl +installdirs-libintl: + $(mkdir_p) $(DESTDIR)$(libdir) + +uninstall-local: uninstall-libintl +uninstall-libintl: + $(LIBTOOL) --mode=uninstall \ + rm -f $(DESTDIR)$(libdir)/libintl.la + +endif + + +# Installation of preloadable_libintl.so. + +if PRELOADABLE_LIBINTL + +install-exec-local: install-exec-preloadable +install-exec-preloadable: libgnuintl.la + $(mkdir_p) $(DESTDIR)$(libdir) + $(LIBTOOL) --mode=install \ + $(INSTALL_DATA) libgnuintl.la $(DESTDIR)$(libdir)/libgnuintl.la + rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so + $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so + $(LIBTOOL) --mode=uninstall \ + rm -f $(DESTDIR)$(libdir)/libgnuintl.la + +installdirs-local: installdirs-preloadable +installdirs-preloadable: + $(mkdir_p) $(DESTDIR)$(libdir) + +uninstall-local: uninstall-preloadable +uninstall-preloadable: + rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so + +endif + + +# Installation of locale.alias. + +EXTRA_DIST += locale.alias ref-add.sin ref-del.sin + +if USE_INCLUDED_LIBINTL + +all-local: ref-add.sed ref-del.sed + +ref-add.sed: $(srcdir)/ref-add.sin + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed + mv t-ref-add.sed ref-add.sed +MOSTLYCLEANFILES += ref-add.sed + +ref-del.sed: $(srcdir)/ref-del.sin + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed + mv t-ref-del.sed ref-del.sed +MOSTLYCLEANFILES += ref-del.sed + +install-data-local: install-data-aliasfile +install-data-aliasfile: ref-add.sed + $(mkdir_p) $(DESTDIR)$(localedir) + test -f $(DESTDIR)$(localedir)/locale.alias \ + && orig=$(DESTDIR)$(localedir)/locale.alias \ + || orig=$(srcdir)/locale.alias; \ + temp=$(DESTDIR)$(localedir)/t-locale.alias; \ + dest=$(DESTDIR)$(localedir)/locale.alias; \ + sed -f ref-add.sed $$orig > $$temp; \ + $(INSTALL_DATA) $$temp $$dest; \ + rm -f $$temp + +installdirs-local: installdirs-aliasfile +installdirs-aliasfile: + $(mkdir_p) $(DESTDIR)$(localedir) + +uninstall-local: uninstall-aliasfile +uninstall-aliasfile: ref-del.sed + if test -f $(DESTDIR)$(localedir)/locale.alias; then \ + temp=$(DESTDIR)$(localedir)/t-locale.alias; \ + dest=$(DESTDIR)$(localedir)/locale.alias; \ + sed -f ref-del.sed $$dest > $$temp; \ + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ + rm -f $$dest; \ + else \ + $(INSTALL_DATA) $$temp $$dest; \ + fi; \ + rm -f $$temp; \ + fi + +endif + + +# Clean up after Solaris cc. +clean-local: + rm -rf SunWS_cache + + +# Windows support. + +EXTRA_DIST += INSTALL.windows + + +# Miscellaneous files. + +EXTRA_DIST += COPYING.LIB libintl.glibc diff --git a/gettext-runtime/intl/Makefile.in b/gettext-runtime/intl/Makefile.in deleted file mode 100644 index 9db27c5d8..000000000 --- a/gettext-runtime/intl/Makefile.in +++ /dev/null @@ -1,567 +0,0 @@ -# Makefile for directory with message catalog handling library of GNU gettext -# Copyright (C) 1995-1998, 2000-2007, 2009-2018 Free Software Foundation, Inc. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, see . - -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -top_builddir = .. - -# The VPATH variables allows builds with $builddir != $srcdir, assuming a -# 'make' program that supports VPATH (such as GNU make). This line is removed -# by autoconf automatically when "$(srcdir)" = ".". -# In this directory, the VPATH handling is particular: -# 1. The .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted. -# 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise -# 'make' does the wrong thing if GNU gettext was configured with -# "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la -# files it finds in srcdir = ../../gettext-runtime/intl. -VPATH = $(srcdir) - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -transform = @program_transform_name@ -libdir = @libdir@ -includedir = @includedir@ -datarootdir = @datarootdir@ -datadir = @datadir@ -localedir = @localedir@ -aliaspath = $(localedir) -subdir = intl - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ - -# We use $(mkdir_p). -# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as -# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, -# @install_sh@ does not start with $(SHELL), so we add it. -# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined -# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake -# versions, $(mkinstalldirs) and $(install_sh) are unused. -mkinstalldirs = $(SHELL) @install_sh@ -d -install_sh = $(SHELL) @install_sh@ -MKDIR_P = @MKDIR_P@ -mkdir_p = @mkdir_p@ - -AR = @AR@ -ARFLAGS = @ARFLAGS@ -CC = @CC@ -LIBTOOL = @LIBTOOL@ -RANLIB = @RANLIB@ -YACC = @INTLBISON@ -y -d -YFLAGS = --name-prefix=__gettext -# Windows resource compiler (windres). Used when libtool is not used. -WINDRES = @WINDRES@ -# Windows resource compiler (windres). Used via libtool. -RC = @RC@ - -# Support for silent-rules. -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_@INTL_DEFAULT_VERBOSITY@) -am__v_at_0 = @ -AM_V_AR = $(am__v_AR_$(V)) -am__v_AR_ = $(am__v_AR_@INTL_DEFAULT_VERBOSITY@) -am__v_AR_0 = @echo " AR " $@; -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_@INTL_DEFAULT_VERBOSITY@) -am__v_CC_0 = @echo " CC " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_@INTL_DEFAULT_VERBOSITY@) -am__v_GEN_0 = @echo " GEN " $@; -AM_V_YACC = $(am__v_YACC_$(V)) -am__v_YACC_ = $(am__v_YACC_@INTL_DEFAULT_VERBOSITY@) -am__v_YACC_0 = @echo " YACC " $@; -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_@INTL_DEFAULT_VERBOSITY@) -am__v_lt_0 = --silent - -# -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro. -# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro. -DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ --DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL \ --DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ --Dset_relocation_prefix=libintl_set_relocation_prefix \ --Drelocate=libintl_relocate \ --DDEPENDS_ON_LIBICONV=1 @DEFS@ -CPPFLAGS = @CPPFLAGS@ -CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@ -LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@) -LDFLAGS_yes = -Wl,--export-all-symbols -LDFLAGS_no = -LIBS = @LIBS@ - -COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) - -HEADERS = \ - gmo.h \ - gettextP.h \ - hash-string.h \ - loadinfo.h \ - plural-exp.h \ - eval-plural.h \ - localcharset.h \ - lock.h \ - relocatable.h \ - localename-table.in.h \ - tsearch.h tsearch.c \ - verify.h \ - xsize.h \ - printf-args.h printf-args.c \ - printf-parse.h wprintf-parse.h printf-parse.c \ - vasnprintf.h vasnwprintf.h vasnprintf.c \ - os2compat.h \ - libgnuintl.in.h -SOURCES = \ - bindtextdom.c \ - dcgettext.c \ - dgettext.c \ - gettext.c \ - finddomain.c \ - hash-string.c \ - loadmsgcat.c \ - localealias.c \ - textdomain.c \ - l10nflist.c \ - explodename.c \ - dcigettext.c \ - dcngettext.c \ - dngettext.c \ - ngettext.c \ - plural.y \ - plural-exp.c \ - localcharset.c \ - threadlib.c \ - lock.c \ - relocatable.c \ - langprefs.c \ - localename.c \ - localename-table.c \ - flexmember.h \ - log.c \ - printf.c \ - setlocale.c \ - version.c \ - xsize.c \ - osdep.c \ - os2compat.c \ - intl-exports.c \ - intl-compat.c -OBJECTS = \ - bindtextdom.lo \ - dcgettext.lo \ - dgettext.lo \ - gettext.lo \ - finddomain.lo \ - hash-string.lo \ - loadmsgcat.lo \ - localealias.lo \ - textdomain.lo \ - l10nflist.lo \ - explodename.lo \ - dcigettext.lo \ - dcngettext.lo \ - dngettext.lo \ - ngettext.lo \ - plural.lo \ - plural-exp.lo \ - localcharset.lo \ - threadlib.lo \ - lock.lo \ - relocatable.lo \ - langprefs.lo \ - localename.lo \ - localename-table.lo \ - log.lo \ - printf.lo \ - setlocale.lo \ - version.lo \ - xsize.lo \ - osdep.lo \ - intl-compat.lo -OBJECTS_RES_yes = libintl.res.lo -OBJECTS_RES_no = -DISTFILES.common = Makefile.in \ -locale.alias ref-add.sin ref-del.sin export.h libintl.rc \ -$(HEADERS) $(SOURCES) -DISTFILES.generated = plural.c -DISTFILES.gettext = ChangeLog COPYING.LIB INSTALL.windows libintl.glibc - -all: all-@USE_INCLUDED_LIBINTL@ -all-yes: libintl.la libintl.h ref-add.sed ref-del.sed -all-no: all-no-@BUILD_INCLUDED_LIBINTL@ -all-no-yes: libgnuintl.la -all-no-no: - -libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@) - $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \ - $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ - $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ \ - $(OBJECTS_RES_@WOE32@) \ - -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ - -rpath $(libdir) \ - -no-undefined - -# Libtool's library version information for libintl. -# Before making a gettext release, the gettext maintainer must change this -# according to the libtool documentation, section "Library interface versions". -# Maintainers of other packages that include the intl directory must *not* -# change these values. -LTV_CURRENT=9 -LTV_REVISION=5 -LTV_AGE=1 - -.SUFFIXES: -.SUFFIXES: .c .y .lo .sin .sed - -$(srcdir)/plural.c: $(srcdir)/plural.y - $(AM_V_YACC)$(YACC) $(YFLAGS) --output plural.c $(srcdir)/plural.y \ - && sed -e 's|".*/plural.y"|"plural.y"|' < plural.c > plural.c-tmp \ - && rm -f plural.c plural.h \ - && mv plural.c-tmp $(srcdir)/plural.c - -bindtextdom.lo: $(srcdir)/bindtextdom.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c -dcgettext.lo: $(srcdir)/dcgettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcgettext.c -dgettext.lo: $(srcdir)/dgettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dgettext.c -gettext.lo: $(srcdir)/gettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/gettext.c -finddomain.lo: $(srcdir)/finddomain.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/finddomain.c -hash-string.lo: $(srcdir)/hash-string.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/hash-string.c -loadmsgcat.lo: $(srcdir)/loadmsgcat.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c -localealias.lo: $(srcdir)/localealias.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localealias.c -textdomain.lo: $(srcdir)/textdomain.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/textdomain.c -l10nflist.lo: $(srcdir)/l10nflist.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/l10nflist.c -explodename.lo: $(srcdir)/explodename.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/explodename.c -dcigettext.lo: $(srcdir)/dcigettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcigettext.c -dcngettext.lo: $(srcdir)/dcngettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcngettext.c -dngettext.lo: $(srcdir)/dngettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dngettext.c -ngettext.lo: $(srcdir)/ngettext.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c -plural.lo: $(srcdir)/plural.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c -plural-exp.lo: $(srcdir)/plural-exp.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c -localcharset.lo: $(srcdir)/localcharset.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localcharset.c -threadlib.lo: $(srcdir)/threadlib.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/threadlib.c -lock.lo: $(srcdir)/lock.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/lock.c -relocatable.lo: $(srcdir)/relocatable.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/relocatable.c -langprefs.lo: $(srcdir)/langprefs.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/langprefs.c -localename.lo: $(srcdir)/localename.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename.c -localename-table.lo: $(srcdir)/localename-table.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename-table.c -log.lo: $(srcdir)/log.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/log.c -printf.lo: $(srcdir)/printf.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/printf.c -setlocale.lo: $(srcdir)/setlocale.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/setlocale.c -version.lo: $(srcdir)/version.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/version.c -xsize.lo: $(srcdir)/xsize.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/xsize.c -osdep.lo: $(srcdir)/osdep.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/osdep.c -intl-compat.lo: $(srcdir)/intl-compat.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/intl-compat.c - -# This rule is executed only on Woe32 systems. -# The following sed expressions come from the windres-options script. They are -# inlined here, so that they can be written in a Makefile without requiring a -# temporary file. They must contain literal newlines rather than semicolons, -# so that they work with the sed-3.02 that is shipped with MSYS. -libintl.res.o: $(srcdir)/libintl.rc - nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ - sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ - sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ - sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ - $(WINDRES) \ - "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ - "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ - "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ - "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ - -i $(srcdir)/libintl.rc -o libintl.res.o --output-format=coff -libintl.res.lo: $(srcdir)/libintl.rc - nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ - sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ - sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ - sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ - $(LIBTOOL) --mode=compile --tag=RC $(RC) \ - "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ - "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ - "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ - "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ - -i $(srcdir)/libintl.rc -o libintl.res.lo --output-format=coff - -ref-add.sed: $(srcdir)/ref-add.sin - sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed - mv t-ref-add.sed ref-add.sed -ref-del.sed: $(srcdir)/ref-del.sin - sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed - mv t-ref-del.sed ref-del.sed - -INCLUDES = -I. -I$(srcdir) -I.. - -libgnuintl.h: $(srcdir)/libgnuintl.in.h - sed -e '/IN_LIBGLOCALE/d' \ - -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ - -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ - -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ - -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ - -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \ - -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ - < $(srcdir)/libgnuintl.in.h \ - | if test '@WOE32DLL@' = yes; then \ - sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \ - else \ - cat; \ - fi \ - | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ - -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \ - | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ - > libgnuintl.h - -libintl.h: $(srcdir)/libgnuintl.in.h - sed -e '/IN_LIBGLOCALE/d' \ - -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ - -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ - -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ - -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ - -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \ - -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ - < $(srcdir)/libgnuintl.in.h > libintl.h - -localename-table.h: $(srcdir)/localename-table.in.h - sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ - -e 's/extern,/extern LIBINTL_DLL_EXPORTED,/' \ - -e "/#if HAVE_USELOCALE/r $(srcdir)/export.h" \ - < $(srcdir)/localename-table.in.h \ - | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ - > localename-table.h - -check: all - -# We must not install the libintl.h/libintl.la files if we are on a -# system which has the GNU gettext() function in its C library or in a -# separate library. -# If you want to use the one which comes with this version of the -# package, you have to use "configure --with-included-gettext". -install: install-exec install-data -install-exec: all - if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ - $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ - $(LIBTOOL) --mode=install \ - $(INSTALL_DATA) libintl.la $(DESTDIR)$(libdir)/libintl.la; \ - if test "@RELOCATABLE@" = yes; then \ - dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ - if test -n "$$dependencies"; then \ - rm -f $(DESTDIR)$(libdir)/libintl.la; \ - fi; \ - fi; \ - else \ - : ; \ - fi - if test "$(PACKAGE)" = "gettext-tools" \ - && test '@USE_INCLUDED_LIBINTL@' = no \ - && test @GLIBC2@ != no; then \ - $(mkdir_p) $(DESTDIR)$(libdir); \ - $(LIBTOOL) --mode=install \ - $(INSTALL_DATA) libgnuintl.la $(DESTDIR)$(libdir)/libgnuintl.la; \ - rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ - $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \ - $(LIBTOOL) --mode=uninstall \ - rm -f $(DESTDIR)$(libdir)/libgnuintl.la; \ - else \ - : ; \ - fi - if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - $(mkdir_p) $(DESTDIR)$(localedir); \ - test -f $(DESTDIR)$(localedir)/locale.alias \ - && orig=$(DESTDIR)$(localedir)/locale.alias \ - || orig=$(srcdir)/locale.alias; \ - temp=$(DESTDIR)$(localedir)/t-locale.alias; \ - dest=$(DESTDIR)$(localedir)/locale.alias; \ - sed -f ref-add.sed $$orig > $$temp; \ - $(INSTALL_DATA) $$temp $$dest; \ - rm -f $$temp; \ - else \ - : ; \ - fi -install-data: all - if test "$(PACKAGE)" = "gettext-tools"; then \ - rm -rf $(DESTDIR)$(datadir)/gettext/intl; \ - else \ - : ; \ - fi - -install-strip: install - -install-dvi install-html install-info install-ps install-pdf: - -installdirs: - if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ - else \ - : ; \ - fi - if test "$(PACKAGE)" = "gettext-tools" \ - && test '@USE_INCLUDED_LIBINTL@' = no \ - && test @GLIBC2@ != no; then \ - $(mkdir_p) $(DESTDIR)$(libdir); \ - else \ - : ; \ - fi - if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - $(mkdir_p) $(DESTDIR)$(localedir); \ - else \ - : ; \ - fi - -# Define this as empty until I found a useful application. -installcheck: - -uninstall: - if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - rm -f $(DESTDIR)$(includedir)/libintl.h; \ - $(LIBTOOL) --mode=uninstall \ - rm -f $(DESTDIR)$(libdir)/libintl.la; \ - else \ - : ; \ - fi - if test "$(PACKAGE)" = "gettext-tools" \ - && test '@USE_INCLUDED_LIBINTL@' = no \ - && test @GLIBC2@ != no; then \ - rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ - else \ - : ; \ - fi - if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - if test -f $(DESTDIR)$(localedir)/locale.alias; then \ - temp=$(DESTDIR)$(localedir)/t-locale.alias; \ - dest=$(DESTDIR)$(localedir)/locale.alias; \ - sed -f ref-del.sed $$dest > $$temp; \ - if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ - rm -f $$dest; \ - else \ - $(INSTALL_DATA) $$temp $$dest; \ - fi; \ - rm -f $$temp; \ - fi; \ - else \ - : ; \ - fi - if test "$(PACKAGE)" = "gettext-tools"; then \ - rm -rf $(DESTDIR)$(datadir)/gettext/intl; \ - else \ - : ; \ - fi - -info dvi ps pdf html: - -$(OBJECTS): ../config.h libgnuintl.h -bindtextdom.lo dcgettext.lo dcigettext.lo dcngettext.lo dgettext.lo dngettext.lo finddomain.lo gettext.lo intl-compat.lo loadmsgcat.lo localealias.lo ngettext.lo setlocale.lo textdomain.lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h -localename.lo: $(srcdir)/gettextP.h -localename.lo localename-table.lo: localename-table.h -hash-string.lo dcigettext.lo loadmsgcat.lo: $(srcdir)/hash-string.h -explodename.lo l10nflist.lo: $(srcdir)/loadinfo.h -dcigettext.lo loadmsgcat.lo plural.lo plural-exp.lo: $(srcdir)/plural-exp.h -dcigettext.lo: $(srcdir)/eval-plural.h -localcharset.lo: $(srcdir)/localcharset.h -bindtextdom.lo dcigettext.lo finddomain.lo loadmsgcat.lo localealias.lo lock.lo log.lo: $(srcdir)/lock.h -localealias.lo localcharset.lo relocatable.lo: $(srcdir)/relocatable.h -printf.lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/xsize.c $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c - -# A bison-2.1 generated plural.c includes if ENABLE_NLS. -PLURAL_DEPS_yes = libintl.h -PLURAL_DEPS_no = -plural.lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@) - -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) - here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) - -ctags: CTAGS - -CTAGS: $(HEADERS) $(SOURCES) - here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) - -id: ID - -ID: $(HEADERS) $(SOURCES) - here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) - - -mostlyclean: - rm -f *.a *.la *.o *.obj *.lo core core.* - rm -f libgnuintl.h libintl.h localename-table.h ref-add.sed ref-del.sed - rm -f -r .libs _libs - rm -f plural.c-tmp - -clean: mostlyclean - -distclean: clean - rm -f Makefile ID TAGS - -maintainer-clean: distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - rm -f $(srcdir)/plural.c - - -distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) -dist distdir: Makefile - if test "$(PACKAGE)" = "gettext-tools"; then \ - : ; \ - else \ - $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $(DISTFILES.gettext); \ - for file in $(DISTFILES.common) $(DISTFILES.generated) $(DISTFILES.gettext); do \ - if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ - cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \ - done; \ - fi - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status -# This would be more efficient, but doesn't work any more with autoconf-2.57, -# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used. -# cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ - -# Tell versions [3.59,3.63) of GNU make not to export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 9b0bb6315..68e8d7ee3 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -114,6 +114,12 @@ dnl Checks for libraries. dnl These are the only lines required to internationalize the package. dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.) AM_GNU_GETTEXT([use-libtool], [need-ngettext]) +dnl Conditionals for the intl/ directory. +AM_CONDITIONAL([USE_INCLUDED_LIBINTL], [test $USE_INCLUDED_LIBINTL = yes]) +AM_CONDITIONAL([BUILD_INCLUDED_LIBINTL], [test $BUILD_INCLUDED_LIBINTL = yes]) +AM_CONDITIONAL([PACKAGE_IS_GETTEXT_TOOLS], [true]) +AM_CONDITIONAL([PRELOADABLE_LIBINTL], + [test $USE_INCLUDED_LIBINTL = no && test $GLIBC2 = yes]) dnl This line internationalizes the bison generated parsers. BISON_I18N @@ -498,10 +504,11 @@ AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([doc/Makefile]) -AC_CONFIG_FILES([intl/Makefile:../gettext-runtime/intl/Makefile.in], [ +AC_CONFIG_FILES([intl/Makefile], [ # Change srcdir variable so that it points to ../gettext-runtime/intl. sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \ -e 's|^VPATH =.*$||' \ + -e 's|^DISTFILES =.*|DISTFILES =|' \ < intl/Makefile > intl/Makefile.tmp mv intl/Makefile.tmp intl/Makefile ])