summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-05-09 12:52:39 +0200
committerBruno Haible <bruno@clisp.org>2010-05-09 12:54:20 +0200
commit1eaae9eade5b653616234b32c9a0ba7ba2a18a9f (patch)
tree6cc4990291e0f4791b187f2e8be06ec0a5318abb /gettext-tools
parentb9d1ef9b4dad3dfc430dc5cacc0053d2b49d3835 (diff)
downloadexternal_gettext-1eaae9eade5b653616234b32c9a0ba7ba2a18a9f.zip
external_gettext-1eaae9eade5b653616234b32c9a0ba7ba2a18a9f.tar.gz
external_gettext-1eaae9eade5b653616234b32c9a0ba7ba2a18a9f.tar.bz2
Export rpl_optind, rpl_optarg from DLL depending on platform.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/ChangeLog7
-rw-r--r--gettext-tools/configure.ac12
-rw-r--r--gettext-tools/woe32dll/gettextlib-exports.c4
3 files changed, 21 insertions, 2 deletions
diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog
index 2054d56..d276674 100644
--- a/gettext-tools/ChangeLog
+++ b/gettext-tools/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-09 Bruno Haible <bruno@clisp.org>
+
+ Export rpl_optind, rpl_optarg from DLL depending on platform.
+ * configure.ac (GETTEXTLIB_EXPORTS_FLAGS): New substituted variable.
+ * woe32dll/gettextlib-exports.c (rpl_optarg, rpl_optind): Export only
+ if GNULIB_DEFINED_GETOPT is set.
+
2010-04-02 Bruno Haible <bruno@clisp.org>
* Makefile.am (ACLOCAL_AMFLAGS): Remove "-I ../autoconf-lib-link/m4"
diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac
index 27e0ae5..af51c04 100644
--- a/gettext-tools/configure.ac
+++ b/gettext-tools/configure.ac
@@ -1,5 +1,5 @@
dnl Configuration for the gettext-tools directory of GNU gettext
-dnl Copyright (C) 1995-1999, 2000-2009 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@@ -222,6 +222,16 @@ if test $is_woe32dll = yes; then
[Define when --enable-shared is used on mingw or Cygwin.])
fi
+dnl woe32dll/gettextlib-exports.c needs to know whether the getopt facility
+dnl is replaced by gnulib. GETOPT_H is set by gl_FUNC_GETOPT_POSIX, inside
+dnl gl_INIT.
+if test -n "$GETOPT_H"; then
+ GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT"
+else
+ GETTEXTLIB_EXPORTS_FLAGS=
+fi
+AC_SUBST([GETTEXTLIB_EXPORTS_FLAGS])
+
dnl Put some default definitions into config.h.
AH_TOP([
/* Default value for alignment of strings in .mo file. */
diff --git a/gettext-tools/woe32dll/gettextlib-exports.c b/gettext-tools/woe32dll/gettextlib-exports.c
index b10a0b1..a627e1d 100644
--- a/gettext-tools/woe32dll/gettextlib-exports.c
+++ b/gettext-tools/woe32dll/gettextlib-exports.c
@@ -1,5 +1,5 @@
/* List of exported symbols of libgettextlib on Cygwin.
- Copyright (C) 2006-2007 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2010 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
@@ -26,7 +26,9 @@ VARIABLE(exit_failure)
VARIABLE(gl_array_list_implementation)
VARIABLE(gl_linkedhash_list_implementation)
VARIABLE(program_name)
+#if GNULIB_DEFINED_GETOPT
VARIABLE(rpl_optarg)
VARIABLE(rpl_optind)
+#endif
VARIABLE(simple_backup_suffix)
VARIABLE(styled_ostream_typeinfo)