Remove its dependencies to libgettextsrc and libgettextlib.
Hide its exported symbols.
+2006-10-16 Bruno Haible <bruno@clisp.org>
+
+ * autogen.sh (GNULIB_MODULES_FOR_LIBGETTEXTPO): New variable.
+ Invoke gnulib-tool also for libgettextpo.
+
2006-10-16 Bruno Haible <bruno@clisp.org>
* autogen.sh (GNULIB_MODULES_FOR_SRC): Add xstriconv.
the requirements relating to the GNU gettext implementation outside the
AM_GNU_GETTEXT invocation.
+* The libgettextpo library no longer exports symbols that could clash with
+ symbols of the application that uses it.
+
* Vastly improved French translations. Thanks to Christophe Combelles.
\f
Version 0.15 - July 2006
'
$GNULIB_TOOL --dir=gettext-tools --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --libtool --local-dir=gnulib-local \
--import $GNULIB_MODULES_FOR_SRC $GNULIB_MODULES_OTHER
+ # In gettext-tools/libgettextpo:
+ # This is a subset of the GNULIB_MODULES_FOR_SRC.
+ GNULIB_MODULES_FOR_LIBGETTEXTPO='
+ basename
+ c-ctype
+ c-strcase
+ c-strstr
+ error
+ error-progname
+ exit
+ fstrcmp
+ fwriteerror
+ gcd
+ getline
+ gettext-h
+ hash
+ iconv
+ linebreak
+ minmax
+ pathname
+ progname
+ stdbool
+ ucs4-utf8
+ utf8-ucs4
+ utf16-ucs4
+ vasprintf
+ xalloc
+ xallocsa
+ xerror
+ xstriconv
+ xvasprintf
+ '
+ GNULIB_MODULES_OTHER=''
+ $GNULIB_TOOL --dir=gettext-tools --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --macro-prefix=gtpo --makefile-name=Makefile.gnulib --libtool --local-dir=gnulib-local \
+ --import $GNULIB_MODULES_FOR_LIBGETTEXTPO $GNULIB_MODULES_OTHER
+ rm -rf gettext-tools/libgettextpo/gnulib-m4
fi
(cd autoconf-lib-link
+2006-10-16 Bruno Haible <bruno@clisp.org>
+
+ * libgettextpo: New directory.
+ * Makefile.am (SUBDIRS): Add libgettextpo.
+ * configure.ac (gt_GLOBAL_SYMBOL_PIPE): New macro.
+ (AC_CONFIG_FILES): Add libgettextpo/Makefile, libgettextpo/exported.sh.
+
2006-10-15 Bruno Haible <bruno@clisp.org>
* woe32dll/gettextsrc-exports.c: Remove input_syntax.
AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4
-SUBDIRS = doc intl gnulib-lib libgrep libuniname src po projects misc man m4 tests examples
+SUBDIRS = doc intl gnulib-lib libgrep libuniname src libgettextpo po projects misc man m4 tests examples
EXTRA_DIST = misc/DISCLAIM
MOSTLYCLEANFILES = core *.stackdump
;;
esac
+dnl Check for nm output filter that yields the exported symbols.
+AC_DEFUN([gt_GLOBAL_SYMBOL_PIPE], [
+ AC_REQUIRE([AC_PROG_NM]) dnl provided by libtool.m4
+ AC_SUBST([NM])
+ AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) dnl provided by libtool.m4
+ GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
+ AC_SUBST([GLOBAL_SYMBOL_PIPE])
+ if test -n "$GLOBAL_SYMBOL_PIPE"; then
+ HAVE_GLOBAL_SYMBOL_PIPE=1
+ else
+ HAVE_GLOBAL_SYMBOL_PIPE=
+ fi
+ AC_SUBST([HAVE_GLOBAL_SYMBOL_PIPE])
+])
+gt_GLOBAL_SYMBOL_PIPE
+
dnl Check for Emacs and where to install .elc files.
AM_PATH_LISPDIR
dnl Sometimes Emacs is badly installed. Allow the user to work around it.
[FIX_MAKEFILE_COMPILE])
AC_CONFIG_FILES([src/user-email:src/user-email.sh.in])
+AC_CONFIG_FILES([libgettextpo/Makefile],
+ [FIX_MAKEFILE_COMPILE])
+AC_CONFIG_FILES([libgettextpo/exported.sh])
+
AC_CONFIG_FILES([po/Makefile.in])
AC_CONFIG_FILES([projects/Makefile])
+2006-10-16 Bruno Haible <bruno@clisp.org>
+
+ * POTFILES.in: Add libgettextpo/gettext-po.c, remove src/gettext-po.c.
+
2006-10-15 Bruno Haible <bruno@clisp.org>
* POTFILES.in: Add src/read-catalog.c, remove src/read-po.c.
# Copyright (C) 1995, 1998, 2001-2006 Free Software Foundation, Inc.
# For updating this file, look at the result of:
-# $ LC_ALL=C grep -l '[^A-Za-z_]_(' {gnulib-lib,src}/*.[chly]
+# $ LC_ALL=C grep -l '[^A-Za-z_]_(' {gnulib-lib,src,libgettextpo}/*.[chly]
# Files from the portability library
gnulib-lib/argmatch.c
src/format-sh.c
src/format-tcl.c
src/format-ycp.c
-src/gettext-po.c
src/hostname.c
src/msgattrib.c
src/msgcat.c
src/x-ycp.c
src/xgettext.c
src/user-email.sh.in
+libgettextpo/gettext-po.c
+2006-10-16 Bruno Haible <bruno@clisp.org>
+
+ * gettext-po.h.in: Move to ../libgettextpo/.
+ * gettext-po.c: Move to ../libgettextpo/.
+ * Makefile.am (lib_LTLIBRARIES): Remove libgettextpo.la.
+ (nodist_include_HEADERS): Remove variable.
+ (libgettextpo_la_SOURCES, LTV_CURRENT, LTV_REVISION, LTV_AGE,
+ libgettextpo_la_LDFLAGS, libgettextpo_la_DEPENDENCIES,
+ libgettextpo_la_LDFLAGS): Remove variables.
+ (EXTRA_DIST, BUILT_SOURCES, CLEANFILES): Remove gettext-po.h support.
+ (gettext-po.h): Remove rule.
+
2006-10-18 Bruno Haible <bruno@clisp.org>
* po-error.h (__attribute__, __format__, __printf__): New macros.
| Main source for the 'xgettext' program.
|
+-------------- The 'xgettext' program
-
-+-------------- The 'gettextpo' library
-|
-| gettext-po.h
-| gettext-po.c
-| Public API for reading PO files.
-|
-+-------------- The 'gettextpo' library
noinst_PROGRAMS = hostname urlget
-lib_LTLIBRARIES = libgettextsrc.la libgettextpo.la
-
-nodist_include_HEADERS = gettext-po.h
+lib_LTLIBRARIES = libgettextsrc.la
noinst_HEADERS = pos.h message.h po-error.h po-xerror.h po-gram.h po-charset.h \
po-lex.h open-catalog.h read-catalog-abstract.h read-catalog.h \
file-list.c msgl-charset.c po-time.c plural-exp.c plural-eval.c plural-table.c \
$(FORMAT_SOURCE)
-# libgettextpo contains the public API for PO files.
-libgettextpo_la_SOURCES = gettext-po.c
-# Libtool's library version information for libgettextpo.
-# See the libtool documentation, section "Library interface versions".
-LTV_CURRENT=3
-LTV_REVISION=0
-LTV_AGE=3
-
# msggrep needs pattern matching.
LIBGREP = ../libgrep/libgrep.a
*) $(RM) $(DESTDIR)$(libdir)/libgettextsrc.a ;; \
esac
-# How to build libgettextpo.la.
-# Need libgettextsrc.la.
-# Need ../gnulib-lib/libgettextlib.la because of xmalloc.
-libgettextpo_la_LDFLAGS = \
- -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
- -rpath $(libdir) \
- libgettextsrc.la ../gnulib-lib/libgettextlib.la @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@
-# Build order. Only needed for "make -j[N]".
-libgettextpo_la_DEPENDENCIES = libgettextsrc.la
-
-# Tell the mingw or Cygwin linker which symbols to export.
-if WOE32DLL
-libgettextpo_la_SOURCES += ../woe32dll/gettextpo-exports.c
-libgettextpo_la_LDFLAGS += -Wl,--export-all-symbols
-endif
-
# Compile-time flags for particular source files.
msgmerge_CFLAGS = $(AM_CFLAGS) $(OPENMP_CFLAGS)
$(SED) -e 's/yy/po_gram_/g' -e 's/extern /extern DLL_VARIABLE /' $(srcdir)/po-gram-gen.h > $@-tmp
mv $@-tmp $@
-# Special rules for installable include files that export variables.
-
-EXTRA_DIST += gettext-po.h.in
-BUILT_SOURCES += gettext-po.h
-CLEANFILES += gettext-po.h
-gettext-po.h: gettext-po.h.in
-if WOE32DLL
- sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/' $(srcdir)/gettext-po.h.in > gettext-po.h-tmp
-else
- cp $(srcdir)/gettext-po.h.in gettext-po.h-tmp
-endif
- mv gettext-po.h-tmp gettext-po.h
-
# Special rules for installation of auxiliary programs.