* top/maint.mk (sc_bindtextdomain): Check for evidence that _()
will likely work.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2010-11-12 Eric Blake <eblake@redhat.com>
+
+ maintainer-makefile: check for i18n setup
+ * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
+ will likely work.
+
2010-11-12 Bruno Haible <bruno@clisp.org>
sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
sc_program_name:
@require='set_program_name *\(m?argv\[0\]\);' \
in_vc_files='\.c$$' \
- containing='^main *(' \
+ containing='\<main *(' \
halt='the above files do not call set_program_name' \
$(_sc_search_regexp)
+# Ensure that each .c file containing a "main" function also
+# calls bindtextdomain.
+sc_bindtextdomain:
+ @require='bindtextdomain *\(' \
+ in_vc_files='\.c$$' \
+ containing='\<main *(' \
+ halt='the above files do not call bindtextdomain' \
+ $(_sc_search_regexp)
+
# Require that the final line of each test-lib.sh-using test be this one:
# Exit $fail
# Note: this test requires GNU grep's --label= option.