Notify xgettext about functions that have a format string argument.
[pspp] / modules / error
index e7c33ddd0d0feee394d01217360b5416f831cfc7..1b58cdac718565d643647a69d6e9368e94bd67ba 100644 (file)
@@ -1,18 +1,24 @@
 Description:
 error() and error_at_line() functions: Error reporting.
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars:
+  --flag=error:3:c-format --flag=error_at_line:5:c-format
+
 Files:
 lib/error.h
 lib/error.c
 m4/error.m4
-m4/strerror_r.m4
 
 Depends-on:
-unlocked-io
-gettext
+strerror
 
 configure.ac:
 gl_ERROR
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
+   AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
 
 Makefile.am:
 
@@ -24,4 +30,3 @@ LGPL
 
 Maintainer:
 all, glibc
-