+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"
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
[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. */
/* 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
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)
+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.
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.