+2001-02-04 Bruno Haible <haible@clisp.cons.org>
+
+ * Makefile.am (SUBDIRS): Move intl before lib, because lib needs
+ libintl.h if the included libintl is used.
+
2001-01-21 Bruno Haible <haible@clisp.cons.org>
Use libtool.
gettextsrc_DATA = ABOUT-NLS
EXTRA_DIST = BUGS DISCLAIM README.gemtext aclocal.sh
-SUBDIRS = doc lib intl src po m4 misc tests
+SUBDIRS = doc intl lib src po m4 misc tests
ABOUT-NLS: $(srcdir)/doc/nls.texi $(srcdir)/doc/matrix.texi
rm -f $(srcdir)/ABOUT-NLS \
+2001-02-04 Bruno Haible <haible@clisp.cons.org>
+
+ * system.h (O_BINARY, O_TEXT, setmode, fileno): New macros for systems
+ that distinguish between text and binary I/O.
+
+2001-02-04 Bruno Haible <haible@clisp.cons.org>
+
+ * error.c: Include <libintl.h> only if ENABLE_NLS || _LIBC.
+ * getopt.c: Test ENABLE_NLS instead of 'defined HAVE_LIBINTL_H'.
+ * obstack.c: Likewise.
+
2001-01-07 Bruno Haible <haible@clisp.cons.org>
* system.h: Assume <stdlib.h>, <string.h> exist.
/* Error handler for noninteractive utilities
- Copyright (C) 1990-1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1990-1998, 2000, 2001 Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
#endif
#include <stdio.h>
-#include <libintl.h>
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
# if __STDC__
#include "error.h"
#ifndef _
-# define _(String) String
+# if ENABLE_NLS || defined _LIBC
+# include <libintl.h>
+# ifndef _
+# define _(Str) gettext (Str)
+# endif
+# else
+# define _(Str) (Str)
+# endif
#endif
/* If NULL, error will flush stdout, then print on stderr the program
#ifndef _
/* This is for other GNU distributions with internationalized messages. */
-# if defined HAVE_LIBINTL_H || defined _LIBC
+# if ENABLE_NLS || defined _LIBC
# include <libintl.h>
# ifndef _
# define _(msgid) gettext (msgid)
\f
/* Define the error handler. */
#ifndef _
-# if defined HAVE_LIBINTL_H || defined _LIBC
+# if ENABLE_NLS || defined _LIBC
# include <libintl.h>
# ifndef _
# define _(Str) gettext (Str)