]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Link with libunistring, if it exists.
authorBruno Haible <bruno@clisp.org>
Wed, 19 May 2010 22:04:46 +0000 (00:04 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Jun 2010 13:09:44 +0000 (15:09 +0200)
12 files changed:
Admin/plans
ChangeLog
DEPENDENCIES
NEWS
autogen.sh
gettext-tools/gnulib-lib/.gitignore
gettext-tools/libgettextpo/.gitignore
gettext-tools/src/ChangeLog
gettext-tools/src/Makefile.am
gettext-tools/tests/Makefile.am
gnulib-local/ChangeLog
gnulib-local/modules/gettext-tools-misc

index 3a42ce6723a9812717ce6a4de1f6906493296c49..bc7cafe65a5579a6b7039104ce84d559fe7912b4 100644 (file)
@@ -147,7 +147,7 @@ Things we plan to do. Comments welcome.
 - In x-c.c, support C++0x escape sequences, see
   http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
 
-- Use libunistring as optional and then as hard dependency.
+- Use libunistring as hard dependency.
 
 - Extractor for Glade 3.
 
index 6e267cb04ca2a59d2145c08736041896962b73f5..fd28a6d3434c8820e14cb76a0df3fa3258a997e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-19  Bruno Haible  <bruno@clisp.org>
+
+       Link with libunistring, if it exists.
+       * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC,
+       GNULIB_MODULES_LIBGETTEXTPO): Add libunistring-optional.
+       * DEPENDENCIES: Mention optional dependency to GNU libunistring.
+
 2010-05-22  Bruno Haible  <bruno@clisp.org>
 
        * README.woe32: Explain how to build 64-bit mode binaries.
index f69141e26270f7d90c5f65cea55f94848deae767..8360d0d404ba8a481077b7bc75884654e5dbcec4 100644 (file)
@@ -105,6 +105,19 @@ The following packages should be installed before GNU gettext is installed
   + If it is installed in a nonstandard directory, pass the option
     --with-libcroco-0.6-prefix=DIR to 'configure'.
 
+* GNU libunistring
+  + Optional.
+    Needed for the line breaking in PO files and for xgettext.
+    If not present, a subset of libunistring (included in this package) will
+    be compiled into libgettextlib.
+  + Homepage:
+    http://www.gnu.org/software/libunistring/
+  + Download:
+    http://ftp.gnu.org/gnu/libunistring/
+    ftp://ftp.gnu.org/gnu/libunistring/
+  + If it is installed in a nonstandard directory, pass the option
+    --with-libunistring-prefix=DIR to 'configure'.
+
 
 The following packages should be installed when GNU gettext is installed
 (runtime dependencies, but not build dependencies):
diff --git a/NEWS b/NEWS
index 72ccb978296a4008a9472b2ade6ae198d0b1173c..2e2648d11120576f4aa03d0c80ad24a9d6086add 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ Version 0.18.1 - June 2010
 
 * msggrep: A '$' anchor in a regular expression now also matches the end of
   the string, even if it does not end in a newline.
+
+* Dependencies:
+  The libraries and programs are now linked with libunistring if this library
+  is already installed.
 \f
 Version 0.18 - May 2010
 
index 86fab0fb39cfdec8118f08b7854253c021cf4622..ace5e5b7896c9bf02dfe0df834376ebddecd16f5 100755 (executable)
@@ -158,6 +158,7 @@ if ! $skip_gnulib; then
       iconv
       javacomp
       javaexec
+      libunistring-optional
       localcharset
       locale
       localename
@@ -281,6 +282,7 @@ if ! $skip_gnulib; then
       gettext-h
       hash
       iconv
+      libunistring-optional
       minmax
       open
       ostream
index a7391953155de01caffd2acda9d148afcb84bd02..2d7c6435c8d8832dd1d2b9287ec1a18db1c2b33a 100644 (file)
 /javaversion.class
 /javaversion.h
 /javaversion.java
+/libunistring.valgrind
 /localcharset.c
 /localcharset.h
 /locale.in.h
 /tputs.c
 /trim.c
 /trim.h
-/uniconv.h
-/unilbrk.h
-/uniname.h
+/uniconv.in.h
+/unilbrk.in.h
+/uniname.in.h
 /unistd--.h
 /unistd-safer.h
 /unistd.in.h
-/unistr.h
-/unitypes.h
-/uniwidth.h
+/unistr.in.h
+/unitypes.in.h
+/uniwidth.in.h
 /unlocked-io.h
 /unsetenv.c
 /vasnprintf.c
index 9ccd54b5a852895245a664c30ff5608353587731..a67b77f16793dc944033885d1aa5202b37f9cdf0 100644 (file)
@@ -59,6 +59,7 @@
 /iconv_open.c
 /iconveh.h
 /intprops.h
+/libunistring.valgrind
 /localcharset.c
 /localcharset.h
 /malloc.c
 /strstr.c
 /sys_stat.in.h
 /time.in.h
-/uniconv.h
-/unilbrk.h
+/uniconv.in.h
+/unilbrk.in.h
 /unistd.in.h
-/unistr.h
-/unitypes.h
-/uniwidth.h
+/unistr.in.h
+/unitypes.in.h
+/uniwidth.in.h
 /unlocked-io.h
 /vasnprintf.c
 /vasnprintf.h
index 20f4e2f435fabdb4360bdbafca9c9e4fc6aa9f8a..18575d3c8d4c2c5517e0e32d09a70fefd3432613 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-19  Bruno Haible  <bruno@clisp.org>
+
+       Link with libunistring, if it exists.
+       * Makefile.am (LDADD, libgettextsrc_la_LDFLAGS): Add LTLIBUNISTRING.
+
 2010-05-18  Bruno Haible  <bruno@clisp.org>
 
        Correct program dependencies.
index 81c806dbe2bdcf87931f6a9ade887648ce1aa68f..31d3c573c6905c0f6f7906880c3539d730d20309 100644 (file)
@@ -79,7 +79,7 @@ DEFS = \
 # Ensure that <stdint.h> defines SIZE_MAX in C++ mode, like it does in C mode.
 AM_CXXFLAGS = -D__STDC_LIMIT_MACROS
 
-LDADD = ../gnulib-lib/libgettextlib.la @LTLIBINTL@ $(WOE32_LDADD)
+LDADD = ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) @LTLIBINTL@ $(WOE32_LDADD)
 OTHERPROGDEPENDENCIES = ../gnulib-lib/libgettextlib.la $(WOE32_LDADD)
 
 SED = sed
@@ -211,12 +211,15 @@ urlget_SOURCES = urlget.c
 
 # How to build libgettextsrc.la.
 # Need ../gnulib-lib/libgettextlib.la.
+# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be
+# taken from libunistring, when the configure option --with-libunistring-prefix
+# was given.
 # Need @LTLIBINTL@ because many source files use gettext().
 # Need @LTLIBICONV@ because po-charset.c, po-lex.c, msgl-iconv.c, write-po.c
 # use iconv().
 libgettextsrc_la_LDFLAGS = \
   -release @VERSION@ \
-  ../gnulib-lib/libgettextlib.la @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@
+  ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@
 
 # Tell the mingw or Cygwin linker which symbols to export.
 if WOE32DLL
index 4855a99c739c106c914625ce886494b36a23a90f..0042a3bd498d1b839b7b5a57a0cd77135e808100 100644 (file)
@@ -144,7 +144,7 @@ XGETTEXT = ../src/xgettext
 # For debugging memory leaks and memory allocation bugs.
 # You should build with --disable-shared when using valgrind.
 CHECKER =
-#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../gnulib-lib/malloca.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes
+#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../gnulib-lib/malloca.valgrind --suppressions=$(srcdir)/../gnulib-lib/libunistring.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes
 #CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no
 
 TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
index 7c77f1f574bc7d4c0c1f9b26f4f3550afe7ce6d9..d999cc69c28e75e61f97a3aa63d425e887437204 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-19  Bruno Haible  <bruno@clisp.org>
+
+       Link with libunistring, if it exists.
+       * modules/gettext-tools-misc (lib_LDFLAGS): Add LTLIBUNISTRING.
+
 2010-05-24  Bruno Haible  <bruno@clisp.org>
 
        Use the newest regex module from gnulib.
index d94420e511bd7b21da99713d449a23b4a38b0c56..b28104964e12335701a539499f88969d7066a60f 100644 (file)
@@ -13,13 +13,16 @@ Makefile.am:
 # Specify that libgettextlib should installed in $(libdir).
 lib_LTLIBRARIES = libgettextlib.la
 
+# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be
+# taken from libunistring, when the configure option --with-libunistring-prefix
+# was given.
 # Need @LTLIBINTL@ because many source files use gettext().
 # Need @LTLIBICONV@ because linebreak.c and striconv.c use iconv().
 # Need @LIB_ACL@ because copy-file.c uses acl.h.
 # Need @LTLIBC@ for -no-undefined to work on many platforms.
 lib_LDFLAGS += \
   -release @VERSION@ \
-  @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@
+  $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@
 
 # Tell the mingw or Cygwin linker which symbols to export.
 if WOE32DLL