Notify xgettext about functions that have a format string argument.
[pspp] / modules / xvasprintf
index a84fd82bd37bcff5b0de78ae187c0ea1dfbfbfcf..18be1fe39db0a3e26dbff309742c0a27ef57721a 100644 (file)
@@ -1,18 +1,30 @@
 Description:
 vasprintf and asprintf with out-of-memory checking.  Also see xalloc-die.
 
+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=xasprintf:1:c-format
+
 Files:
 lib/xvasprintf.h
 lib/xvasprintf.c
 lib/xasprintf.c
+lib/xalloc.h
+m4/xvasprintf.m4
 
 Depends-on:
 vasprintf
+xalloc-die
+xsize
+stdarg
 
 configure.ac:
+gl_XVASPRINTF
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
 
 Makefile.am:
-lib_SOURCES += xvasprintf.h xvasprintf.c xasprintf.c 
+lib_SOURCES += xvasprintf.h xvasprintf.c xasprintf.c
 
 Include:
 "xvasprintf.h"