]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Export rpl_optind, rpl_optarg from DLL depending on platform.
authorBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 10:52:39 +0000 (12:52 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 10:54:20 +0000 (12:54 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/woe32dll/gettextlib-exports.c
gnulib-local/ChangeLog
gnulib-local/modules/gettext-tools-misc

index 2054d5603d0f256611efe69851ef5835959ae1e5..d276674d15668a6e3f9a71a268bbe09b8497fb38 100644 (file)
@@ -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"
index 27e0ae56701c79b8015130fdfc051c077685d638..af51c0433089eed6087119bb7ac668b970a817d3 100644 (file)
@@ -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.  */
index b10a0b1fc942c1f97676cdb6646da3ecc7f8c60f..a627e1de7618b26f20da580fe8d54c129a51a818 100644 (file)
@@ -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)
index c44a7ff2c5c062ace20a0d36b33f7205e68db3a1..ce80668bef30bb86ae0d5119df6a799d388b5d8b 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       Export rpl_optind, rpl_optarg from DLL depending on platform.
+       * modules/gettext-tools-misc (AM_CPPFLAGS): Augment by
+       GETTEXTLIB_EXPORTS_FLAGS.
+
 2010-05-09  Bruno Haible  <bruno@clisp.org>
 
        Avoid compilation error in libgettextpo directory on Solaris 8.
index 965f4988bf6550d4941908f7025e8501b3200267..58035ad893c89e041a78bc2e83784148b0ce3081 100644 (file)
@@ -28,6 +28,7 @@ lib_LDFLAGS += \
 if WOE32DLL
 lib_SOURCES += ../woe32dll/gettextlib-exports.c
 lib_LDFLAGS += -Wl,--export-all-symbols
+AM_CPPFLAGS += @GETTEXTLIB_EXPORTS_FLAGS@
 endif
 
 # No need to install libgettextlib.a, except on AIX.