Module Name:    src
Committed By:   christos
Date:           Tue Jan 12 22:58:03 UTC 2016

Modified Files:
        src/external/gpl2/gettext/dist: Makefile.in
        src/external/gpl2/gettext/dist/autoconf-lib-link: Makefile.in
        src/external/gpl2/gettext/dist/gettext-runtime: Makefile.am Makefile.in
        src/external/gpl2/gettext/dist/gettext-runtime/libasprintf: Makefile.in
        src/external/gpl2/gettext/dist/gettext-tools: Makefile.am Makefile.in
        src/external/gpl2/gettext/dist/gettext-tools/doc: Makefile.in texi2html
        src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib: javaversion.c
        src/external/gpl2/gettext/dist/gettext-tools/libuniname: uniname.c
        src/external/gpl2/gettext/dist/gettext-tools/misc: Makefile.in
        src/external/gpl2/gettext/dist/gettext-tools/src: message.h
            msgl-fsearch.c po-lex.c
Added Files:
        src/external/gpl2/gettext: Makefile Makefile.inc gettext2netbsd
        src/external/gpl2/gettext/bin: Makefile Makefile.inc.prog
        src/external/gpl2/gettext/bin/gettext: Makefile
        src/external/gpl2/gettext/bin/gettextize: Makefile gettextize
        src/external/gpl2/gettext/bin/msgattrib: Makefile
        src/external/gpl2/gettext/bin/msgcat: Makefile
        src/external/gpl2/gettext/bin/msgcmp: Makefile
        src/external/gpl2/gettext/bin/msgcomm: Makefile
        src/external/gpl2/gettext/bin/msgconv: Makefile
        src/external/gpl2/gettext/bin/msgen: Makefile
        src/external/gpl2/gettext/bin/msgexec: Makefile
        src/external/gpl2/gettext/bin/msgfilter: Makefile
        src/external/gpl2/gettext/bin/msgfmt: Makefile
        src/external/gpl2/gettext/bin/msggrep: Makefile
        src/external/gpl2/gettext/bin/msginit: Makefile
        src/external/gpl2/gettext/bin/msgmerge: Makefile
        src/external/gpl2/gettext/bin/msgunfmt: Makefile
        src/external/gpl2/gettext/bin/msguniq: Makefile
        src/external/gpl2/gettext/bin/xgettext: Makefile
        src/external/gpl2/gettext/include: alloca.h byteswap.h config.h
            gettext-po.h libgnuintl.h
        src/external/gpl2/gettext/info: Makefile
        src/external/gpl2/gettext/lib: Makefile
        src/external/gpl2/gettext/lib/libgrep: Makefile
        src/external/gpl2/gettext/lib/libnlspr: Makefile
        src/external/gpl2/gettext/lib/libnlsut: Makefile
        src/external/gpl2/gettext/locale: Makefile

Log Message:
merge conflicts and add reach-over Makefiles


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/Makefile \
    src/external/gpl2/gettext/Makefile.inc \
    src/external/gpl2/gettext/gettext2netbsd
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/Makefile \
    src/external/gpl2/gettext/bin/Makefile.inc.prog
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/gettext/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/gettextize/Makefile \
    src/external/gpl2/gettext/bin/gettextize/gettextize
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgattrib/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgcat/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgcmp/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgcomm/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgconv/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgen/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgexec/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgfilter/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgfmt/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msggrep/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msginit/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgmerge/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msgunfmt/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/msguniq/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/bin/xgettext/Makefile
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl2/gettext/dist/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/autoconf-lib-link/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-runtime/Makefile.am \
    src/external/gpl2/gettext/dist/gettext-runtime/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-tools/Makefile.am \
    src/external/gpl2/gettext/dist/gettext-tools/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-tools/doc/Makefile.in \
    src/external/gpl2/gettext/dist/gettext-tools/doc/texi2html
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/javaversion.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-tools/libuniname/uniname.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-tools/misc/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl2/gettext/dist/gettext-tools/src/message.h \
    src/external/gpl2/gettext/dist/gettext-tools/src/msgl-fsearch.c \
    src/external/gpl2/gettext/dist/gettext-tools/src/po-lex.c
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/include/alloca.h \
    src/external/gpl2/gettext/include/byteswap.h \
    src/external/gpl2/gettext/include/config.h \
    src/external/gpl2/gettext/include/gettext-po.h \
    src/external/gpl2/gettext/include/libgnuintl.h
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/info/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/lib/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/lib/libgrep/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/lib/libnlspr/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/lib/libnlsut/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl2/gettext/locale/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/gettext/dist/Makefile.in
diff -u src/external/gpl2/gettext/dist/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/Makefile.in:1.1.1.1	Tue Jan 12 14:50:28 2016
+++ src/external/gpl2/gettext/dist/Makefile.in	Tue Jan 12 17:58:02 2016
@@ -678,3 +678,6 @@ distcheck-hook:
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
+
+# XXX NetBSD hack
+.MADE: ABOUT-NLS

Index: src/external/gpl2/gettext/dist/autoconf-lib-link/Makefile.in
diff -u src/external/gpl2/gettext/dist/autoconf-lib-link/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/autoconf-lib-link/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/autoconf-lib-link/Makefile.in:1.1.1.1	Tue Jan 12 14:50:31 2016
+++ src/external/gpl2/gettext/dist/autoconf-lib-link/Makefile.in	Tue Jan 12 17:58:02 2016
@@ -649,6 +649,8 @@ uninstall-am:
 all-local: $(srcdir)/../build-aux/config.rpath
 
 $(srcdir)/../build-aux/config.rpath: $(srcdir)/config.rpath
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_build-aux_config.rpath:
 	cp $(srcdir)/config.rpath $(srcdir)/../build-aux/config.rpath
 
 # The AC_CONFIG_AUX_DIR argument in the tests/rpath*/configure.ac files is

Index: src/external/gpl2/gettext/dist/gettext-runtime/Makefile.am
diff -u src/external/gpl2/gettext/dist/gettext-runtime/Makefile.am:1.1.1.1 src/external/gpl2/gettext/dist/gettext-runtime/Makefile.am:1.2
--- src/external/gpl2/gettext/dist/gettext-runtime/Makefile.am:1.1.1.1	Tue Jan 12 14:50:29 2016
+++ src/external/gpl2/gettext/dist/gettext-runtime/Makefile.am	Tue Jan 12 17:58:02 2016
@@ -29,7 +29,7 @@ SUBDIR_libasprintf = libasprintf
 else
 SUBDIR_libasprintf =
 endif
-SUBDIRS = doc intl intl-java intl-csharp gnulib-lib $(SUBDIR_libasprintf) src po man m4 tests
+SUBDIRS = doc intl intl-java intl-csharp gnulib-lib $(SUBDIR_libasprintf) src po m4
 
 EXTRA_DIST = BUGS
 
Index: src/external/gpl2/gettext/dist/gettext-runtime/Makefile.in
diff -u src/external/gpl2/gettext/dist/gettext-runtime/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/gettext-runtime/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/gettext-runtime/Makefile.in:1.1.1.1	Tue Jan 12 14:50:29 2016
+++ src/external/gpl2/gettext/dist/gettext-runtime/Makefile.in	Tue Jan 12 17:58:02 2016
@@ -364,6 +364,8 @@ all: config.h
 am--refresh:
 	@:
 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_Makefile.in:
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
 	    *$$dep*) \
@@ -391,6 +393,8 @@ $(top_builddir)/config.status: $(top_src
 	$(SHELL) ./config.status --recheck
 
 $(top_srcdir)/configure:  $(am__configure_deps)
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_configure:
 	cd $(srcdir) && $(AUTOCONF)
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
@@ -405,6 +409,8 @@ stamp-h1: $(srcdir)/config.h.in $(top_bu
 	@rm -f stamp-h1
 	cd $(top_builddir) && $(SHELL) ./config.status config.h
 $(srcdir)/config.h.in:  $(am__configure_deps) 
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_config.h.in:
 	cd $(top_srcdir) && $(AUTOHEADER)
 	rm -f stamp-h1
 	touch $@
@@ -416,6 +422,8 @@ csharpcomp.sh: $(top_builddir)/config.st
 javacomp.sh: $(top_builddir)/config.status $(top_srcdir)/../build-aux/javacomp.sh.in
 	cd $(top_builddir) && $(SHELL) ./config.status $@
 intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_intl_Makefile:
 	cd $(top_builddir) && $(SHELL) ./config.status $@
 
 mostlyclean-libtool:
@@ -833,6 +841,8 @@ uninstall-am: uninstall-gettextsrcDATA
 all-local: ABOUT-NLS
 
 ABOUT-NLS: $(srcdir)/doc/nls.texi $(srcdir)/doc/matrix.texi
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_ABOUT-NLS:
 	rm -f $(srcdir)/ABOUT-NLS \
 	  && $(MAKEINFO) --output=$(srcdir)/ABOUT-NLS --no-header \
 	    -I $(srcdir)/doc --no-validate nls.texi

Index: src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/Makefile.in
diff -u src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/Makefile.in:1.1.1.1	Tue Jan 12 14:50:30 2016
+++ src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/Makefile.in	Tue Jan 12 17:58:02 2016
@@ -309,6 +309,8 @@ all: config.h
 am--refresh:
 	@:
 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_Makefile.in:
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
 	    *$$dep*) \
@@ -336,6 +338,8 @@ $(top_builddir)/config.status: $(top_src
 	$(SHELL) ./config.status --recheck
 
 $(top_srcdir)/configure:  $(am__configure_deps)
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_configure:
 	cd $(srcdir) && $(AUTOCONF)
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
@@ -350,6 +354,8 @@ stamp-h1: $(srcdir)/config.h.in $(top_bu
 	@rm -f stamp-h1
 	cd $(top_builddir) && $(SHELL) ./config.status config.h
 $(srcdir)/config.h.in:  $(am__configure_deps) 
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_config.h.in:
 	cd $(top_srcdir) && $(AUTOHEADER)
 	rm -f stamp-h1
 	touch $@
@@ -463,6 +469,8 @@ distclean-libtool:
 	  exit 1; \
 	fi
 $(srcdir)/autosprintf.info: autosprintf.texi 
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_autosprintf.info:
 autosprintf.dvi: autosprintf.texi 
 autosprintf.pdf: autosprintf.texi 
 autosprintf.html: autosprintf.texi 

Index: src/external/gpl2/gettext/dist/gettext-tools/Makefile.am
diff -u src/external/gpl2/gettext/dist/gettext-tools/Makefile.am:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/Makefile.am:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/Makefile.am:1.1.1.1	Tue Jan 12 14:50:33 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/Makefile.am	Tue Jan 12 17:58:02 2016
@@ -20,7 +20,7 @@
 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
 ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4
 
-SUBDIRS = doc intl gnulib-lib libgrep libuniname src libgettextpo po projects misc man m4 tests examples
+SUBDIRS = doc intl gnulib-lib libgrep libuniname src libgettextpo po projects misc
 
 EXTRA_DIST = misc/DISCLAIM
 MOSTLYCLEANFILES = core *.stackdump
Index: src/external/gpl2/gettext/dist/gettext-tools/Makefile.in
diff -u src/external/gpl2/gettext/dist/gettext-tools/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/Makefile.in:1.1.1.1	Tue Jan 12 14:50:33 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/Makefile.in	Tue Jan 12 17:58:02 2016
@@ -484,7 +484,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
 ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4
-SUBDIRS = doc intl gnulib-lib libgrep libuniname src libgettextpo po projects misc man m4 tests examples
+SUBDIRS = doc intl gnulib-lib libgrep libuniname src libgettextpo po projects misc
 
 # Allow users to use "gnulib-tool --update".
 
@@ -512,6 +512,8 @@ all: config.h
 am--refresh:
 	@:
 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_Makefile.in:
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
 	    *$$dep*) \
@@ -539,6 +541,8 @@ $(top_builddir)/config.status: $(top_src
 	$(SHELL) ./config.status --recheck
 
 $(top_srcdir)/configure:  $(am__configure_deps)
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_configure:
 	cd $(srcdir) && $(AUTOCONF)
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
@@ -553,6 +557,8 @@ stamp-h1: $(srcdir)/config.h.in $(top_bu
 	@rm -f stamp-h1
 	cd $(top_builddir) && $(SHELL) ./config.status config.h
 $(srcdir)/config.h.in:  $(am__configure_deps) 
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_config.h.in:
 	cd $(top_srcdir) && $(AUTOHEADER)
 	rm -f stamp-h1
 	touch $@
@@ -1008,6 +1014,8 @@ uninstall-am: uninstall-examplesbuildaux
 
 all-local: $(srcdir)/ABOUT-NLS
 $(srcdir)/ABOUT-NLS: $(srcdir)/../gettext-runtime/ABOUT-NLS
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_ABOUT-NLS:
 	cp $(srcdir)/../gettext-runtime/ABOUT-NLS $(srcdir)/ABOUT-NLS
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.

Index: src/external/gpl2/gettext/dist/gettext-tools/doc/Makefile.in
diff -u src/external/gpl2/gettext/dist/gettext-tools/doc/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/doc/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/doc/Makefile.in:1.1.1.1	Tue Jan 12 14:50:34 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/doc/Makefile.in	Tue Jan 12 17:58:02 2016
@@ -920,16 +920,22 @@ uninstall-am: uninstall-docDATA uninstal
 
 
 iso-639.texi: ISO_639 iso-639.sed
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_iso-639.texi:
 	$(SED) -f $(srcdir)/iso-639.sed $(srcdir)/ISO_639 > iso-639.tmp
 	rm -f $(srcdir)/iso-639.texi
 	mv iso-639.tmp $(srcdir)/iso-639.texi
 
 iso-639-2.texi: ISO_639-2 iso-639-2.sed
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_iso-639-2.texi:
 	$(SED) -f $(srcdir)/iso-639-2.sed $(srcdir)/ISO_639-2 > iso-639-2.tmp
 	rm -f $(srcdir)/iso-639-2.texi
 	mv iso-639-2.tmp $(srcdir)/iso-639-2.texi
 
 iso-3166.texi: ISO_3166 iso-3166.sed
+	@echo "NOT REBUILDING $@"
+NetBSD_DISABLED_iso-3166.texi:
 	$(SED) -f $(srcdir)/iso-3166.sed $(srcdir)/ISO_3166 > iso-3166.tmp
 	rm -f $(srcdir)/iso-3166.texi
 	mv iso-3166.tmp $(srcdir)/iso-3166.texi
Index: src/external/gpl2/gettext/dist/gettext-tools/doc/texi2html
diff -u src/external/gpl2/gettext/dist/gettext-tools/doc/texi2html:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/doc/texi2html:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/doc/texi2html:1.1.1.1	Tue Jan 12 14:50:35 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/doc/texi2html	Tue Jan 12 17:58:02 2016
@@ -1561,7 +1561,7 @@ sub update_sec_num {
     $level--; # here we start at 0
     if ($name =~ /^appendix/) {
 	# appendix style
-	if (defined(@appendix_sec_num)) {
+	if (@appendix_sec_num) {
 	    &incr_sec_num($level, @appendix_sec_num);
 	} else {
 	    @appendix_sec_num = ('A', 0, 0, 0);
@@ -1569,7 +1569,7 @@ sub update_sec_num {
 	return(join('.', @appendix_sec_num[0..$level]));
     } else {
 	# normal style
-	if (defined(@normal_sec_num)) {
+	if (@normal_sec_num) {
 	    &incr_sec_num($level, @normal_sec_num);
 	} else {
 	    @normal_sec_num = (1, 0, 0, 0);

Index: src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/javaversion.c
diff -u src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/javaversion.c:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/javaversion.c:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/javaversion.c:1.1.1.1	Tue Jan 12 14:50:35 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/javaversion.c	Tue Jan 12 17:58:03 2016
@@ -32,7 +32,9 @@
 #endif
 
 /* Get PKGDATADIR.  */
+#ifndef PKGDATADIR
 #include "configmake.h"
+#endif
 
 #include "javaexec.h"
 #include "pipe.h"

Index: src/external/gpl2/gettext/dist/gettext-tools/libuniname/uniname.c
diff -u src/external/gpl2/gettext/dist/gettext-tools/libuniname/uniname.c:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/libuniname/uniname.c:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/libuniname/uniname.c:1.1.1.1	Tue Jan 12 14:50:35 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/libuniname/uniname.c	Tue Jan 12 17:58:03 2016
@@ -22,6 +22,7 @@
 /* Specification.  */
 #include "uniname.h"
 
+#include <sys/types.h>
 #include <assert.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -31,8 +32,6 @@
 
 
 /* Table of Unicode character names, derived from UnicodeData.txt.  */
-#define uint16_t unsigned short
-#define uint32_t unsigned int
 #include "uninames.h"
 /* It contains:
   static const char unicode_name_words[34594] = ...;

Index: src/external/gpl2/gettext/dist/gettext-tools/misc/Makefile.in
diff -u src/external/gpl2/gettext/dist/gettext-tools/misc/Makefile.in:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/misc/Makefile.in:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/misc/Makefile.in:1.1.1.1	Tue Jan 12 14:50:34 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/misc/Makefile.in	Tue Jan 12 17:58:03 2016
@@ -14,7 +14,21 @@
 
 @SET_MAKE@
 
-
+# Disable parallel make, because the interaction between the
+# $(am__ELCFILES) and elc-stamp targets is extremely unfriendly to
+# parallel make.  Without this, the following happens:
+#   * elc-stamp gets made.  Because EMACS = no, this doesn't
+#     create any of the *.elc files.
+#   * The *.elc files referred to by ${am__ELCFILES) are all made in
+#     parallel.
+#   * Each of those parallel job discovers that its .elc file doesn't
+#     exist, deletes elc-stamp, and runs a recursive
+#	$(MAKE) $(AM_MAKEFLAGS) elc-stamp
+#   * One of those parallel "make elc-stamp" jobs is likely to delete
+#     the elc-temp file at just the wrong time, so that the
+#	mv -f elc-temp elc-stamp
+#     command in another parallel job fails, thus aborting the build.
+.NOTPARALLEL:
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@

Index: src/external/gpl2/gettext/dist/gettext-tools/src/message.h
diff -u src/external/gpl2/gettext/dist/gettext-tools/src/message.h:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/src/message.h:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/src/message.h:1.1.1.1	Tue Jan 12 14:50:36 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/src/message.h	Tue Jan 12 17:58:03 2016
@@ -313,6 +313,7 @@ extern double
 /* The threshold for fuzzy-searching.
    A message is considered only if  fstrcmp (msg, given) > FUZZY_THRESHOLD.  */
 #define FUZZY_THRESHOLD 0.6
+#define FUZZY_THRESHOLD_INV 2
 
 
 #ifdef __cplusplus
Index: src/external/gpl2/gettext/dist/gettext-tools/src/msgl-fsearch.c
diff -u src/external/gpl2/gettext/dist/gettext-tools/src/msgl-fsearch.c:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/src/msgl-fsearch.c:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/src/msgl-fsearch.c:1.1.1.1	Tue Jan 12 14:50:37 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/src/msgl-fsearch.c	Tue Jan 12 17:58:03 2016
@@ -183,7 +183,7 @@ add_index (index_list_ty list, index_ty 
    limit the search to lengths l' in the range
      l / (2 / FUZZY_THRESHOLD - 1) <= l' <= l * (2 / FUZZY_THRESHOLD - 1)
    Thus we need the list of the short strings up to length:  */
-#define SHORT_MSG_MAX (int) (SHORT_STRING_MAX_BYTES * (2 / FUZZY_THRESHOLD - 1))
+#define SHORT_MSG_MAX (int) (SHORT_STRING_MAX_BYTES * (2 * FUZZY_THRESHOLD_INV - 1))
 
 /* A fuzzy index contains a hash table mapping all n-grams to their
    occurrences list.  */
Index: src/external/gpl2/gettext/dist/gettext-tools/src/po-lex.c
diff -u src/external/gpl2/gettext/dist/gettext-tools/src/po-lex.c:1.1.1.1 src/external/gpl2/gettext/dist/gettext-tools/src/po-lex.c:1.2
--- src/external/gpl2/gettext/dist/gettext-tools/src/po-lex.c:1.1.1.1	Tue Jan 12 14:50:37 2016
+++ src/external/gpl2/gettext/dist/gettext-tools/src/po-lex.c	Tue Jan 12 17:58:03 2016
@@ -244,14 +244,7 @@ mb_isascii (const mbchar_t mbc)
     return (mbc->uc >= 0x0000 && mbc->uc <= 0x007F);
   else
 #endif
-    return (mbc->bytes == 1
-#if CHAR_MIN < 0x00 /* to avoid gcc warning */
-	    && mbc->buf[0] >= 0x00
-#endif
-#if CHAR_MAX > 0x7F /* to avoid gcc warning */
-	    && mbc->buf[0] <= 0x7F
-#endif
-	   );
+    return mbc->bytes == 1 && (mbc->buf[0] & 0x80) == 0;
 }
 
 /* Extra <wchar.h> function.  */

Added files:

Index: src/external/gpl2/gettext/Makefile
diff -u /dev/null src/external/gpl2/gettext/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/Makefile	Tue Jan 12 17:58:00 2016
@@ -0,0 +1,11 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:00 christos Exp $
+
+.include <bsd.own.mk>
+
+SUBDIR=	lib .WAIT info bin 
+
+.if ${MKNLS} != "no"
+SUBDIR+=locale
+.endif
+
+.include <bsd.subdir.mk>
Index: src/external/gpl2/gettext/Makefile.inc
diff -u /dev/null src/external/gpl2/gettext/Makefile.inc:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/Makefile.inc	Tue Jan 12 17:58:00 2016
@@ -0,0 +1,15 @@
+#	$NetBSD: Makefile.inc,v 1.1 2016/01/12 22:58:00 christos Exp $
+
+.include <bsd.own.mk>
+
+DIST=		${NETBSDSRCDIR}/external/gpl2/gettext/dist
+
+CPPFLAGS+=	-DHAVE_CONFIG_H -I${.CURDIR} -I${.CURDIR}/../../include \
+		-I${DIST}/gettext-tools/gnulib-lib \
+		-DLOCALEDIR=\"/usr/share/locale\" \
+		-DBISON_LOCALEDIR=\"\" \
+		-DPKGDATADIR=\"\"
+
+BINDIR?=	/usr/bin
+
+CWARNFLAGS.clang+=	-Wno-format-security
Index: src/external/gpl2/gettext/gettext2netbsd
diff -u /dev/null src/external/gpl2/gettext/gettext2netbsd:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/gettext2netbsd	Tue Jan 12 17:58:00 2016
@@ -0,0 +1,33 @@
+#! /bin/sh
+#
+#	$NetBSD: gettext2netbsd,v 1.1 2016/01/12 22:58:00 christos Exp $
+#
+# Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+# gettext2netbsd: removes Id tag and couple of other items, for importing
+# gettext tree into netbsd.
+# works on current directory.
+
+cleantags $1

Index: src/external/gpl2/gettext/bin/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,8 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+.include <bsd.own.mk>
+
+SUBDIR=	msgattrib msgcat msgcmp msgcomm msgconv msgen msgfilter \
+	msgfmt msginit msgmerge msgunfmt msguniq xgettext
+
+.include <bsd.subdir.mk>
Index: src/external/gpl2/gettext/bin/Makefile.inc.prog
diff -u /dev/null src/external/gpl2/gettext/bin/Makefile.inc.prog:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/Makefile.inc.prog	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,31 @@
+#	$NetBSD: Makefile.inc.prog,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+.include <bsd.own.mk>
+.include "${.PARSEDIR}/../Makefile.inc"
+
+PROGDPLIBS+=	nlspr ${.CURDIR}/../../lib/libnlspr
+PROGDPLIBS+=	nlsut ${.CURDIR}/../../lib/libnlsut
+
+#LIBNLSPRDIR!=	cd ${.CURDIR}/../../lib/libnlspr && ${PRINTOBJDIR}
+#LDADD+=	-L${LIBNLSPRDIR} -lnlspr
+#DPADD+=	${LIBNLSPRDIR}/libnlspr.a
+
+#LIBNLSUTDIR!=	cd ${.CURDIR}/../../lib/libnlsut && ${PRINTOBJDIR}
+#DPADD+= ${LIBNLSUTDIR}/libnlsut.a
+#LDADD+= -L${LIBNLSUTDIR} -lnlsut
+
+LDADD+=	-lintl
+DPADD+=	${LIBINTL}
+
+.include <bsd.prog.mk>
+
+.if defined(PROG) && ${PROG} == "gettext"
+TOOLTOP=${DIST}/gettext-runtime/src	
+.else
+TOOLTOP=${DIST}/gettext-tools/src
+.PATH.1: ${DIST}/gettext-tools/man
+.endif
+MAN=${PROG}.1
+
+.PATH:	${TOOLTOP}
+CPPFLAGS+=	-I${TOOLTOP}

Index: src/external/gpl2/gettext/bin/gettext/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/gettext/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/gettext/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,10 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	gettext
+
+CLEANFILES+=gettext.1
+
+.include "${.CURDIR}/../Makefile.inc.prog"
+
+gettext.1: ${DIST}/gettext/gettext-runtime/man/gettext.1.in
+	cp $> $@

Index: src/external/gpl2/gettext/bin/gettextize/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/gettextize/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/gettextize/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+SCRIPTS=	gettextize
+
+.include "${.CURDIR}/../Makefile.inc.prog"
Index: src/external/gpl2/gettext/bin/gettextize/gettextize
diff -u /dev/null src/external/gpl2/gettext/bin/gettextize/gettextize:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/gettextize/gettextize	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,238 @@
+#! /bin/sh
+#
+# Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
+# This file is meant for authors or maintainers which want to
+# internationalize their package with the help of GNU gettext.  For
+# further information how to use it consult the GNU gettext manual.
+
+echo=echo
+progname=$0
+force=0
+configstatus=0
+origdir=`pwd`
+usage="\
+Usage: gettextize [OPTION]... [package-dir]
+      --help           print this help and exit
+      --version        print version information and exit
+  -c, --copy           copy files instead of making symlinks
+  -f, --force          force writing of new files even if old exist
+Report bugs to <[email protected]>."
+package=gettext
+version=0.10.35
+aclocal_version=
+try_ln_s=:
+
+while test $# -gt 0; do
+  case "$1" in
+    -c | --copy | --c* )
+      shift
+      try_ln_s=false ;;
+    -f | --force | --f* )
+      shift
+      force=1 ;;
+    -r | --run | --r* )
+      shift
+      configstatus=1 ;;
+    --help | --h* )
+      $echo "$usage"; exit 0 ;;
+    --version | --v* )
+      echo "$progname (GNU $package) $version"
+      $echo "Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+      $echo "Written by" "Ulrich Drepper"
+      exit 0 ;;
+    -- )	# Stop option prcessing
+      shift; break ;;
+    -* )
+      $echo "gettextize: unknown option $1"
+      $echo "Try \`gettextize --help' for more information."; exit 1 ;;
+    * )
+      break ;;
+  esac
+done
+
+if test $# -gt 1; then
+  $echo "$usage"
+  exit 1
+fi
+
+# Fill in the command line options value.
+if test $# -eq 1; then
+  srcdir=$1
+  if cd $srcdir; then
+    srcdir=`pwd`
+  else
+    $echo "Cannot change directory to \`$srcdir'"
+    exit 1
+  fi
+else
+  srcdir=$origdir
+fi
+
+# Directory where the sources are stored.
+prefix=/usr/pkg
+gettext_dir=${prefix}/share/gettext
+aclocal_dir=${datadir}/aclocal
+
+test -f configure.in || {
+  $echo "Missing configure.in, please cd to your package first."
+  exit 1
+}
+
+if test -d intl && test $force -eq 0; then
+  $echo "\
+intl/ subdirectory exists: use option -f if you really want to delete it."
+  exit 1
+fi
+
+if test -f po/Makefile.in.in && test $force -eq 0; then
+  $echo "\
+po/Makefile.in.in exists: use option -f if you really want to delete it."
+  exit 1
+fi
+
+if test -f NLS && test $force -eq 0; then
+  $echo "NLS exists: use option -f if you really want to delete it."
+  exit 1
+fi
+
+rm -fr intl
+mkdir intl || {
+  $echo "failed to create intl/ subdirectory"
+  exit 1;
+}
+
+test -d po || mkdir po || {
+   $echo "failed to create po/ subdirectory"
+   exit 1
+}
+
+# For simplicity we changed to the gettext source directory.
+cd $gettext_dir
+
+# Now copy all files.  Take care for the destination directories.
+for file in *; do
+  case $file in
+    intl | po | demo)
+      ;;
+    *)
+      rm -f $srcdir/$file
+      ($try_ln_s && ln -s $gettext_dir/$file $srcdir/$file) 2>/dev/null ||
+      cp $file $srcdir/$file
+      ;;
+  esac
+done
+
+# Copy files to intl/ subdirectory.
+cd intl
+for file in *; do
+  rm -f $srcdir/intl/$file
+  ($try_ln_s && ln -s $gettext_dir/intl/$file $srcdir/intl/$file) 2>/dev/null ||
+  cp $file $srcdir/intl/$file
+done
+
+# Copy files to po/ subdirectory.
+cd ../po
+for file in *; do
+  rm -f $srcdir/po/$file
+  ($try_ln_s && ln -s $gettext_dir/po/$file $srcdir/po/$file) 2>/dev/null ||
+  cp $file $srcdir/po/$file
+done
+
+
+# Check whether we can run config.status to produce intl/Makefile.in.
+cd $origdir
+if test -f ./config.status; then
+  if test $configstatus -eq 0; then
+    echo "Shall I run config.status? (y/N)"
+    read ans
+    case "$ans" in
+      y* | Y* | 1* )
+	configstatus=1 ;;
+      * )
+	;;
+    esac
+  fi
+
+  test $configstatus -ne 0 &&
+    (CONFIG_FILES=intl/Makefile CONFIG_HEADERS= ./config.status)
+fi
+
+merge=no
+OLD_IFS="$IFS"
+IFS="."
+cntr=0
+major=0; minor=0; subminor=0
+for num in $aclocal_version; do
+  case $cntr in
+    0) major=$num;;
+    1) minor=$num;;
+    2) subminor=$num;;
+  esac
+  cntr=`expr $cntr + 1`
+done
+IFS="$OLD_IFS"
+
+set `sed -e 's/.*Last updated for gettext-\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]\)*.*/\1 \2 \3/p' -e d aclocal.m4` >/dev/null
+
+
+if test $# -lt 2 || test $# -gt 3; then
+  merge=yes
+else
+  here_major=$1; here_minor=$2
+  if test $# -eq 2; then
+    here_subminor=0
+  else
+    here_subminor=$3
+  fi
+
+  if test $major -eq $here_major; then
+    if test $minor -eq $here_minor; then
+      if test $subminor -lt $here_subminor; then
+	merge=gettext
+      elif test $subminor -gt $here_subminor; then
+	merge=yes
+      fi
+    else
+      if test $minor -lt $here_minor; then
+	merge=gettext
+      else
+	merge=yes
+      fi
+    fi
+  else
+    if test $major -lt $here_major; then
+      merge=gettext
+    else
+      merge=yes
+    fi
+  fi
+fi
+
+if test "$merge" = "yes"; then
+  $echo "You should update your own \`aclocal.m4' by adding the necessary"
+  $echo "macro packages gettext.m4, lcmessage.m4 and progtest.m4 from"
+  $echo "the directory \`$aclocal_dir'"
+elif test "$merge" = "gettext"; then
+  $echo "Your \`aclocal.m4' file is newer than the installed gettext"
+  $echo "program.  Consider upgrading to a recent GNU gettext version."
+fi
+
+exit 0

Index: src/external/gpl2/gettext/bin/msgattrib/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgattrib/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgattrib/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgattrib
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgcat/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgcat/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgcat/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgcat
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgcmp/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgcmp/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgcmp/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgcmp
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgcomm/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgcomm/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgcomm/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgcomm
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgconv/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgconv/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgconv/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgconv
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgen/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgen/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgen/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgen
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgexec/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgexec/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgexec/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgexec
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgfilter/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgfilter/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgfilter/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgexec
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgfmt/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgfmt/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgfmt/Makefile	Tue Jan 12 17:58:01 2016
@@ -0,0 +1,9 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:01 christos Exp $
+
+PROG=	msgfmt
+
+.include "${.CURDIR}/../Makefile.inc.prog"
+
+CPPFLAGS+=-I${DIST}/gettext-runtime/intl
+
+CWARNFLAGS.clang+=	-Wno-format-extra-args

Index: src/external/gpl2/gettext/bin/msggrep/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msggrep/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msggrep/Makefile	Tue Jan 12 17:58:02 2016
@@ -0,0 +1,9 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:02 christos Exp $
+
+PROG=	msggrep
+
+PROGDPLIBS+= grep ${.CURDIR}/../../lib/libgrep
+
+.include "${.CURDIR}/../Makefile.inc.prog"
+
+CPPFLAGS+=-I${DIST}/gettext-tools/libgrep

Index: src/external/gpl2/gettext/bin/msginit/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msginit/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msginit/Makefile	Tue Jan 12 17:58:02 2016
@@ -0,0 +1,18 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:02 christos Exp $
+
+PROG=	msginit
+SRCS+=	msginit.c \
+localealias.c \
+localename.c
+
+.include "${.CURDIR}/../Makefile.inc.prog"
+
+CPPFLAGS+=-I${DIST}/gettext-runtime/intl
+CPPFLAGS+=-DLIBDIR=\"/usr/share\" \
+    -DPROJECTSDIR=\"/usr/share\" \
+    -DLOCALE_ALIAS_PATH=\"/usr/share/locale\"
+
+COPTS.msginit.c = -Wno-stack-protector
+COPTS.localealias.c = -Wno-stack-protector
+
+.PATH: ${DIST}/gettext-runtime/intl

Index: src/external/gpl2/gettext/bin/msgmerge/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgmerge/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgmerge/Makefile	Tue Jan 12 17:58:02 2016
@@ -0,0 +1,8 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:02 christos Exp $
+
+PROG=	msgmerge
+
+LDADD+=	-lm
+DPADD+= ${LIBM}
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/msgunfmt/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msgunfmt/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msgunfmt/Makefile	Tue Jan 12 17:58:02 2016
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:02 christos Exp $
+
+PROG=	msgunfmt
+
+.include "${.CURDIR}/../Makefile.inc.prog"
+
+CPPFLAGS+=	-I${DIST}/gettext/gettext-tools/intl

Index: src/external/gpl2/gettext/bin/msguniq/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/msguniq/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/msguniq/Makefile	Tue Jan 12 17:58:02 2016
@@ -0,0 +1,5 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:02 christos Exp $
+
+PROG=	msguniq
+
+.include "${.CURDIR}/../Makefile.inc.prog"

Index: src/external/gpl2/gettext/bin/xgettext/Makefile
diff -u /dev/null src/external/gpl2/gettext/bin/xgettext/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/bin/xgettext/Makefile	Tue Jan 12 17:58:02 2016
@@ -0,0 +1,37 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:02 christos Exp $
+
+PROG=	xgettext
+SRCS=	\
+po-time.c \
+uniname.c \
+xgettext.c \
+x-awk.c \
+x-c.c \
+x-csharp.c \
+x-elisp.c \
+x-glade.c \
+x-java.c \
+x-librep.c \
+x-lisp.c \
+x-perl.c \
+x-php.c \
+x-po.c \
+x-python.c \
+x-rst.c \
+x-scheme.c \
+x-sh.c \
+x-smalltalk.c \
+x-tcl.c \
+x-ycp.c 
+
+LDADD+=	-lexpat
+DPADD+= ${LIBEXPAT}
+
+COPTS.xgettext.c = -Wno-stack-protector
+
+CWARNFLAGS.clang+=	-Wno-empty-body
+
+.include "${.CURDIR}/../Makefile.inc.prog"
+
+.PATH: ${DIST}/gettext-tools/libuniname
+CPPFLAGS+=	-I${DIST}/gettext-tools/libuniname

Index: src/external/gpl2/gettext/include/alloca.h
diff -u /dev/null src/external/gpl2/gettext/include/alloca.h:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/include/alloca.h	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,70 @@
+/* Memory allocation on the stack.
+   Copyright (C) 1995, 1999, 2001-2005 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License as published
+   by the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public
+   License along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+   USA.  */
+
+/* When this file is included, it may be preceded only by preprocessor
+   declarations.  Thanks to AIX.  Therefore we include it right after
+   "config.h", not later.  */
+
+/* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H
+   means there is a real alloca function.  */
+#ifndef _GNULIB_ALLOCA_H
+#define _GNULIB_ALLOCA_H
+
+/* alloca(N) returns a pointer (void* or char*) to N bytes of memory
+   allocated on the stack, and which will last until the function returns.
+   Use of alloca should be avoided:
+     - inside arguments of function calls - undefined behaviour,
+     - in inline functions - the allocation may actually last until the
+       calling function returns,
+     - for huge N (say, N >= 65536) - you never know how large (or small)
+       the stack is, and when the stack cannot fulfill the memory allocation
+       request, the program just crashes.
+ */
+
+#ifdef __GNUC__
+# ifndef alloca
+#  define alloca __builtin_alloca
+# endif
+#else
+# ifdef _MSC_VER
+#  include <malloc.h>
+#  define alloca _alloca
+# else
+#  if HAVE_ALLOCA_H
+#   include <alloca.h>
+#  else
+#   ifdef _AIX
+ #pragma alloca
+#   else
+#    ifdef __hpux /* This section must match that of bison generated files. */
+#     ifdef __cplusplus
+extern "C" void *alloca (unsigned int);
+#     else /* not __cplusplus */
+extern void *alloca ();
+#     endif /* not __cplusplus */
+#    else /* not __hpux */
+#     ifndef alloca
+extern char *alloca ();
+#     endif
+#    endif /* __hpux */
+#   endif
+#  endif
+# endif
+#endif
+
+#endif /* _GNULIB_ALLOCA_H */
Index: src/external/gpl2/gettext/include/byteswap.h
diff -u /dev/null src/external/gpl2/gettext/include/byteswap.h:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/include/byteswap.h	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,52 @@
+/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
+/* byteswap.h - Byte swapping
+   Copyright (C) 2005 Free Software Foundation, Inc.
+   Written by Oskar Liljeblad <[email protected]>, 2005.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+
+#ifndef _BYTESWAP_H
+
+#include <sys/endian.h>
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+/* Given an unsigned 16-bit argument X, return the value corresponding to
+   X with reversed byte order.  */
+#define bswap_16(x) ((((x) & 0x00FF) << 8) | \
+		     (((x) & 0xFF00) >> 8))
+
+/* Given an unsigned 32-bit argument X, return the value corresponding to
+   X with reversed byte order.  */
+#define bswap_32(x) ((((x) & 0x000000FF) << 24) | \
+		     (((x) & 0x0000FF00) << 8) | \
+		     (((x) & 0x00FF0000) << 8) | \
+		     (((x) & 0xFF000000) >> 24))
+
+/* Given an unsigned 64-bit argument X, return the value corresponding to
+   X with reversed byte order.  */
+#define bswap_64(x) ((((x) & 0x00000000000000FFULL) << 56) | \
+		     (((x) & 0x000000000000FF00ULL) << 40) | \
+		     (((x) & 0x0000000000FF0000ULL) << 24) | \
+		     (((x) & 0x00000000FF000000ULL) << 8) | \
+		     (((x) & 0x000000FF00000000ULL) >> 8) | \
+		     (((x) & 0x0000FF0000000000ULL) >> 24) | \
+		     (((x) & 0x00FF000000000000ULL) >> 40) | \
+		     (((x) & 0xFF00000000000000ULL) >> 56))
+#else
+#define bswap_16(x) (x)
+#define bswap_32(x) (x)
+#define bswap_64(x) (x)
+#endif
+
+#endif
Index: src/external/gpl2/gettext/include/config.h
diff -u /dev/null src/external/gpl2/gettext/include/config.h:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/include/config.h	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,909 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+
+/* Default value for alignment of strings in .mo file.  */
+#define DEFAULT_OUTPUT_ALIGNMENT 1
+
+
+/* Define this to an absolute name of <stdint.h>. */
+#define ABSOLUTE_STDINT_H "///usr/include/stdint.h"
+
+/* Define to the number of bits in type 'ptrdiff_t'. */
+/* #undef BITSIZEOF_PTRDIFF_T */
+
+/* Define to the number of bits in type 'sig_atomic_t'. */
+/* #undef BITSIZEOF_SIG_ATOMIC_T */
+
+/* Define to the number of bits in type 'size_t'. */
+/* #undef BITSIZEOF_SIZE_T */
+
+/* Define to the number of bits in type 'wchar_t'. */
+/* #undef BITSIZEOF_WCHAR_T */
+
+/* Define to the number of bits in type 'wint_t'. */
+/* #undef BITSIZEOF_WINT_T */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+   systems. This function is required for `alloca.c' support on those systems.
+   */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define if mono is the preferred C# implementation. */
+/* #undef CSHARP_CHOICE_MONO */
+
+/* Define if pnet is the preferred C# implementation. */
+/* #undef CSHARP_CHOICE_PNET */
+
+/* Define to 1 if using `alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* Define to 1 if libexpat shall be dynamically loaded via dlopen(). */
+/* #undef DYNLOAD_LIBEXPAT */
+
+/* Define to 1 if translation of program messages to the user's native
+   language is requested. */
+#define ENABLE_NLS 1
+
+/* Define to 1 if the package shall run at any location in the filesystem. */
+/* #undef ENABLE_RELOCATABLE */
+
+/* Define according to the byte order of the target machine: 1 for big endian,
+   0 for little endian. */
+#include <sys/endian.h>
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+#define ENDIANNESS 0
+#else
+#define ENDIANNESS 1
+#endif
+
+/* Define to 1 when using the gnulib fwriteerror module. */
+#define GNULIB_FWRITEERROR 1
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if you have the `argz_count' function. */
+/* #undef HAVE_ARGZ_COUNT */
+
+/* Define to 1 if you have the <argz.h> header file. */
+/* #undef HAVE_ARGZ_H */
+
+/* Define to 1 if you have the `argz_next' function. */
+/* #undef HAVE_ARGZ_NEXT */
+
+/* Define to 1 if you have the `argz_stringify' function. */
+/* #undef HAVE_ARGZ_STRINGIFY */
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* Define to 1 if you have the `asprintf' function. */
+#define HAVE_ASPRINTF 1
+
+/* Define to 1 if you have the `atexit' function. */
+#define HAVE_ATEXIT 1
+
+/* Define to 1 if you have the <bp-sym.h> header file. */
+/* #undef HAVE_BP_SYM_H */
+
+/* Define to 1 if you have the `btowc' function. */
+#define HAVE_BTOWC 1
+
+/* Define to 1 if the compiler understands __builtin_expect. */
+#define HAVE_BUILTIN_EXPECT 1
+
+/* Define to 1 if you have the <byteswap.h> header file. */
+/* #undef HAVE_BYTESWAP_H */
+
+/* Define to 1 if you have the `canonicalize_file_name' function. */
+/* #undef HAVE_CANONICALIZE_FILE_NAME */
+
+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
+   CoreFoundation framework. */
+/* #undef HAVE_CFLOCALECOPYCURRENT */
+
+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
+   the CoreFoundation framework. */
+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
+
+/* Define to 1 if you have the `chown' function. */
+#define HAVE_CHOWN 1
+
+/* Define if the GNU dcgettext() function is already present or preinstalled.
+   */
+/* #undef HAVE_DCGETTEXT */
+
+/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_CLEARERR_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
+   don't. */
+#define HAVE_DECL_FEOF_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FERROR_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FFLUSH_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FGETS_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FPUTC_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FPUTS_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FREAD_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FWRITE_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_GETCHAR_UNLOCKED 1
+
+/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
+   don't. */
+#define HAVE_DECL_GETC_UNLOCKED 1
+
+/* Define to 1 if you have the declaration of `getdelim', and to 0 if you
+   don't. */
+#define HAVE_DECL_GETDELIM 1
+
+/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
+   */
+#define HAVE_DECL_GETENV 1
+
+/* Define to 1 if you have the declaration of `getline', and to 0 if you
+   don't. */
+#define HAVE_DECL_GETLINE 1
+
+/* Define to 1 if you have the declaration of `isblank', and to 0 if you
+   don't. */
+/* #undef HAVE_DECL_ISBLANK */
+
+/* Define to 1 if you have a declaration of mbswidth() in <wchar.h>, and to 0
+   otherwise. */
+#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H 0
+
+/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_PUTCHAR_UNLOCKED 1
+
+/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
+   don't. */
+#define HAVE_DECL_PUTC_UNLOCKED 1
+
+/* Define to 1 if you have the declaration of `strdup', and to 0 if you don't.
+   */
+#define HAVE_DECL_STRDUP 1
+
+/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
+   don't. */
+#define HAVE_DECL_STRERROR_R 1
+
+/* Define to 1 if you have the declaration of `wcwidth', and to 0 if you
+   don't. */
+#define HAVE_DECL_WCWIDTH 1
+
+/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL__SNPRINTF 0
+
+/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL__SNWPRINTF 0
+
+/* Define to 1 if you have the <dirent.h> header file. */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define if you have the declaration of environ. */
+/* #undef HAVE_ENVIRON_DECL */
+
+/* Define to 1 if you have the `flockfile' function. */
+/* #undef HAVE_FLOCKFILE */
+
+/* Define to 1 if you have the `fork' function. */
+#define HAVE_FORK 1
+
+/* Define to 1 if you have the `funlockfile' function. */
+/* #undef HAVE_FUNLOCKFILE */
+
+/* Define to 1 if you have the `fwprintf' function. */
+#define HAVE_FWPRINTF 1
+
+/* Define to 1 if you have the `getcwd' function. */
+#define HAVE_GETCWD 1
+
+/* Define to 1 if you have the `getdelim' function. */
+#define HAVE_GETDELIM 1
+
+/* Define to 1 if you have the `getegid' function. */
+#define HAVE_GETEGID 1
+
+/* Define to 1 if you have the `geteuid' function. */
+#define HAVE_GETEUID 1
+
+/* Define to 1 if you have the `getgid' function. */
+#define HAVE_GETGID 1
+
+/* Define to 1 if you have the `gethostbyname' function. */
+#define HAVE_GETHOSTBYNAME 1
+
+/* Define to 1 if you have the `gethostname' function. */
+#define HAVE_GETHOSTNAME 1
+
+/* Define to 1 if you have the <getopt.h> header file. */
+#define HAVE_GETOPT_H 1
+
+/* Define to 1 if you have the `getopt_long_only' function. */
+/* #undef HAVE_GETOPT_LONG_ONLY */
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define if the GNU gettext() function is already present or preinstalled. */
+/* #undef HAVE_GETTEXT */
+
+/* Define to 1 if you have the `gettimeofday' function. */
+/* #undef HAVE_GETTIMEOFDAY */
+
+/* Define to 1 if you have the `getuid' function. */
+#define HAVE_GETUID 1
+
+/* Define if you have the iconv() function. */
+#define HAVE_ICONV 1
+
+/* Define to 1 if you have the `inet_ntop' function. */
+#define HAVE_INET_NTOP 1
+
+/* Define to 1 if the compiler supports one of the keywords 'inline',
+   '__inline__', '__inline'. */
+#define HAVE_INLINE 1
+
+/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */
+#define HAVE_INTMAX_T 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and
+   declares uintmax_t. */
+#define HAVE_INTTYPES_H_WITH_UINTMAX 1
+
+/* Define if <sys/socket.h> defines AF_INET6. */
+#define HAVE_IPV6 1
+
+/* Define to 1 if you have the `isascii' function. */
+#define HAVE_ISASCII 1
+
+/* Define to 1 if you have the `iswcntrl' function. */
+#define HAVE_ISWCNTRL 1
+
+/* Define to 1 if you have the `iswprint' function. */
+#define HAVE_ISWPRINT 1
+
+/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
+#define HAVE_LANGINFO_CODESET 1
+
+/* Define if your <locale.h> file defines LC_MESSAGES. */
+#define HAVE_LC_MESSAGES 1
+
+/* Define if you have the expat library. */
+#define HAVE_LIBEXPAT 1
+
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the 'long double' type. */
+#define HAVE_LONG_DOUBLE 1
+
+/* Define to 1 if you support file names longer than 14 characters. */
+#define HAVE_LONG_FILE_NAMES 1
+
+/* Define to 1 if the system has the type `long long int'. */
+#define HAVE_LONG_LONG_INT 1
+
+/* Define to 1 if you have the <mach-o/dyld.h> header file. */
+/* #undef HAVE_MACH_O_DYLD_H */
+
+/* Define to 1 if mbrtowc and mbstate_t are properly declared. */
+#define HAVE_MBRTOWC 1
+
+/* Define to 1 if you have the `mbsinit' function. */
+#define HAVE_MBSINIT 1
+
+/* Define to 1 if you have the `mbsrtowcs' function. */
+/* #undef HAVE_MBSRTOWCS */
+
+/* Define to 1 if <wchar.h> declares mbstate_t. */
+#define HAVE_MBSTATE_T 1
+
+/* Define to 1 if you have the `memchr' function. */
+#define HAVE_MEMCHR 1
+
+/* Define to 1 if you have the `memmove' function. */
+#define HAVE_MEMMOVE 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `mempcpy' function. */
+/* #undef HAVE_MEMPCPY */
+
+/* Define to 1 if you have the `memset' function. */
+#define HAVE_MEMSET 1
+
+/* Define to 1 if <limits.h> defines the MIN and MAX macros. */
+/* #undef HAVE_MINMAX_IN_LIMITS_H */
+
+/* Define to 1 if <sys/param.h> defines the MIN and MAX macros. */
+#define HAVE_MINMAX_IN_SYS_PARAM_H 1
+
+/* Define to 1 if you have the `mkdtemp' function. */
+#define HAVE_MKDTEMP 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define to 1 if you have the `munmap' function. */
+#define HAVE_MUNMAP 1
+
+/* Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if
+   _GNU_SOURCE is defined. */
+/* #undef HAVE_NL_LOCALE_NAME */
+
+/* Define to 1 if libc includes obstacks. */
+/* #undef HAVE_OBSTACK */
+
+/* Define to 1 if you have the `pathconf' function. */
+#define HAVE_PATHCONF 1
+
+/* Define if your printf() function supports format strings with positions. */
+#define HAVE_POSIX_PRINTF 1
+
+/* Define to 1 if you have the sigset_t type and the sigprocmask function. */
+#define HAVE_POSIX_SIGNALBLOCKING 1
+
+/* Define to 1 if you have the `posix_spawn' function. */
+#define HAVE_POSIX_SPAWN 1
+
+/* Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE. */
+#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
+
+/* Define if the POSIX multithreading library has read/write locks. */
+#define HAVE_PTHREAD_RWLOCK 1
+
+/* Define to 1 if the system has the type `ptrdiff_t'. */
+#define HAVE_PTRDIFF_T 1
+
+/* Define to 1 if you have the `putenv' function. */
+#define HAVE_PUTENV 1
+
+/* Define to 1 if you have the <pwd.h> header file. */
+#define HAVE_PWD_H 1
+
+/* Define to 1 if you have the `raise' function. */
+#define HAVE_RAISE 1
+
+/* Define to 1 if you have the `readlink' function. */
+#define HAVE_READLINK 1
+
+/* Define to 1 if you have the <search.h> header file. */
+/* #undef HAVE_SEARCH_H */
+
+/* Define to 1 if you have the `select' function. */
+#define HAVE_SELECT 1
+
+/* Define to 1 if you have the `setenv' function. */
+#define HAVE_SETENV 1
+
+/* Define to 1 if you have the `setlocale' function. */
+#define HAVE_SETLOCALE 1
+
+/* Define to 1 if you have the `sigaction' function. */
+#define HAVE_SIGACTION 1
+
+/* Define to 1 if <signal.h> defines the siginfo_t type, and struct sigaction
+   has the sa_sigaction member and the SA_SIGINFO flag. */
+#define HAVE_SIGINFO 1
+
+/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
+/* #undef HAVE_SIGNED_SIG_ATOMIC_T */
+
+/* Define to 1 if 'wchar_t' is a signed integer type. */
+/* #undef HAVE_SIGNED_WCHAR_T */
+
+/* Define to 1 if 'wint_t' is a signed integer type. */
+/* #undef HAVE_SIGNED_WINT_T */
+
+/* Define to 1 if you lack the sigprocmask function but have the sigset_t
+   type. */
+/* #undef HAVE_SIGSET_T */
+
+/* Define to 1 if the system has the type `sig_atomic_t'. */
+#define HAVE_SIG_ATOMIC_T 1
+
+/* Define to 1 if you have the `snprintf' function. */
+#define HAVE_SNPRINTF 1
+
+/* Define to 1 if stdbool.h conforms to C99. */
+#define HAVE_STDBOOL_H 1
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#define HAVE_STDDEF_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares
+   uintmax_t. */
+#define HAVE_STDINT_H_WITH_UINTMAX 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `stpcpy' function. */
+#define HAVE_STPCPY 1
+
+/* Define if you have the stpncpy() function and it works. */
+#define HAVE_STPNCPY 1
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#define HAVE_STRCASECMP 1
+
+/* Define to 1 if you have the `strcspn' function. */
+#define HAVE_STRCSPN 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the `strerror' function. */
+#define HAVE_STRERROR 1
+
+/* Define to 1 if you have the `strerror_r' function. */
+#define HAVE_STRERROR_R 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strpbrk' function. */
+#define HAVE_STRPBRK 1
+
+/* Define to 1 if you have the `strtol' function. */
+#define HAVE_STRTOL 1
+
+/* Define to 1 if you have the `strtoul' function. */
+#define HAVE_STRTOUL 1
+
+/* Define to 1 if `__names' is member of `struct __locale_struct'. */
+/* #undef HAVE_STRUCT___LOCALE_STRUCT___NAMES */
+
+/* Define to 1 if you have the <sys/bitypes.h> header file. */
+/* #undef HAVE_SYS_BITYPES_H */
+
+/* Define to 1 if you have the <sys/inttypes.h> header file. */
+/* #undef HAVE_SYS_INTTYPES_H */
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <time.h> header file. */
+/* #undef HAVE_TIME_H */
+
+/* Define to 1 if you have the `tsearch' function. */
+#define HAVE_TSEARCH 1
+
+/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */
+#define HAVE_UINTMAX_T 1
+
+/* Define if <sys/wait.h> defines the 'union wait' type. */
+/* #undef HAVE_UNION_WAIT */
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the `unsetenv' function. */
+#define HAVE_UNSETENV 1
+
+/* Define if you have the 'unsigned long long' type. */
+#define HAVE_UNSIGNED_LONG_LONG 1
+
+/* Define to 1 if the system has the type `unsigned long long int'. */
+#define HAVE_UNSIGNED_LONG_LONG_INT 1
+
+/* Define to 1 if you have the `utime' function. */
+#define HAVE_UTIME 1
+
+/* Define to 1 if you have the `utimes' function. */
+#define HAVE_UTIMES 1
+
+/* Define to 1 if you have the <utime.h> header file. */
+#define HAVE_UTIME_H 1
+
+/* Define to 1 if you have the `vasprintf' function. */
+#define HAVE_VASPRINTF 1
+
+/* Define to 1 if you have the `vfork' function. */
+#define HAVE_VFORK 1
+
+/* Define to 1 if you have the <vfork.h> header file. */
+/* #undef HAVE_VFORK_H */
+
+/* Define to 1 or 0, depending whether the compiler supports simple visibility
+   declarations. */
+#define HAVE_VISIBILITY 1
+
+/* Define to 1 if you have the `waitid' function. */
+/* #undef HAVE_WAITID */
+
+/* Define to 1 if you have the `waitpid' function. */
+#define HAVE_WAITPID 1
+
+/* Define to 1 if you have the <wchar.h> header file. */
+#define HAVE_WCHAR_H 1
+
+/* Define if you have the 'wchar_t' type. */
+#define HAVE_WCHAR_T 1
+
+/* Define to 1 if you have the `wcslen' function. */
+#define HAVE_WCSLEN 1
+
+/* Define to 1 if you have the <wctype.h> header file. */
+#define HAVE_WCTYPE_H 1
+
+/* Define to 1 if you have the `wcwidth' function. */
+#define HAVE_WCWIDTH 1
+
+/* Define if you have the 'wint_t' type. */
+#define HAVE_WINT_T 1
+
+/* Define to 1 if you have the `wmemchr' function. */
+/* #undef HAVE_WMEMCHR */
+
+/* Define to 1 if you have the `wmemcpy' function. */
+/* #undef HAVE_WMEMCPY */
+
+/* Define to 1 if you have the `wmempcpy' function. */
+/* #undef HAVE_WMEMPCPY */
+
+/* Define to 1 if `fork' works. */
+#define HAVE_WORKING_FORK 1
+
+/* Define to 1 if `vfork' works. */
+#define HAVE_WORKING_VFORK 1
+
+/* Define to 1 if the system has the type `_Bool'. */
+#define HAVE__BOOL 1
+
+/* Define to 1 if you have the `_NSGetExecutablePath' function. */
+/* #undef HAVE__NSGETEXECUTABLEPATH */
+
+/* Define to 1 if you have the `__fsetlocking' function. */
+/* #undef HAVE___FSETLOCKING */
+
+/* Define to 1 if you have the `__secure_getenv' function. */
+/* #undef HAVE___SECURE_GETENV */
+
+/* Define as const if the declaration of iconv() needs const. */
+#define ICONV_CONST const
+
+/* Define to the value of ${prefix}, as a string. */
+#define INSTALLPREFIX "/usr/local"
+
+/* Define if integer division by zero raises signal SIGFPE. */
+#define INTDIV0_RAISES_SIGFPE 1
+
+/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
+#define MALLOC_0_IS_NONNULL 1
+
+/* Name of package */
+#define PACKAGE "gettext-tools"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
+
+/* Define if <inttypes.h> exists and defines unusable PRI* macros. */
+/* #undef PRI_MACROS_BROKEN */
+
+/* Define if the pthread_in_use() detection is hard. */
+/* #undef PTHREAD_IN_USE_DETECTION_HARD */
+
+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
+   'ptrdiff_t'. */
+/* #undef PTRDIFF_T_SUFFIX */
+
+/* Define as const if the declaration of setlocale() needs const. */
+#define SETLOCALE_CONST const
+
+/* Define if lists must be signal-safe. */
+#define SIGNAL_SAFE_LIST 1
+
+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
+   'sig_atomic_t'. */
+/* #undef SIG_ATOMIC_T_SUFFIX */
+
+/* Define as the maximum value of type 'size_t', if the system doesn't define
+   it. */
+/* #undef SIZE_MAX */
+
+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
+   'size_t'. */
+/* #undef SIZE_T_SUFFIX */
+
+/* If using the C implementation of alloca, define if you know the
+   direction of stack growth for your system; otherwise it will be
+   automatically deduced at runtime.
+	STACK_DIRECTION > 0 => grows toward higher addresses
+	STACK_DIRECTION < 0 => grows toward lower addresses
+	STACK_DIRECTION = 0 => direction of growth unknown */
+/* #undef STACK_DIRECTION */
+
+/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
+/* #undef STAT_MACROS_BROKEN */
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if strerror_r returns char *. */
+/* #undef STRERROR_R_CHAR_P */
+
+/* Define if the POSIX multithreading library can be used. */
+#define USE_POSIX_THREADS 1
+
+/* Define if references to the POSIX multithreading library should be made
+   weak. */
+#define USE_POSIX_THREADS_WEAK 1
+
+/* Define if the GNU Pth multithreading library can be used. */
+/* #undef USE_PTH_THREADS */
+
+/* Define if references to the GNU Pth multithreading library should be made
+   weak. */
+/* #undef USE_PTH_THREADS_WEAK */
+
+/* Define if the old Solaris multithreading library can be used. */
+/* #undef USE_SOLARIS_THREADS */
+
+/* Define if references to the old Solaris multithreading library should be
+   made weak. */
+/* #undef USE_SOLARIS_THREADS_WEAK */
+
+/* Define to 1 if you want getc etc. to use unlocked I/O if available.
+   Unlocked I/O can improve performance in unithreaded apps, but it is not
+   safe for multithreaded apps. */
+#define USE_UNLOCKED_IO 1
+
+/* Define if the Win32 multithreading API can be used. */
+/* #undef USE_WIN32_THREADS */
+
+/* Version number of package */
+#define VERSION "0.16.1"
+
+/* Define if unsetenv() returns void, not int. */
+/* #undef VOID_UNSETENV */
+
+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
+   'wchar_t'. */
+/* #undef WCHAR_T_SUFFIX */
+
+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
+   'wint_t'. */
+/* #undef WINT_T_SUFFIX */
+
+/* Define when --enable-shared is used on mingw or Cygwin. */
+/* #undef WOE32DLL */
+
+/* Define to 1 to internationalize bison runtime messages. */
+#define YYENABLE_NLS 1
+
+/* Define to 1 if on AIX 3.
+   System headers sometimes define this.
+   We just want to avoid a redefinition error message.  */
+#ifndef _ALL_SOURCE
+/* # undef _ALL_SOURCE */
+#endif
+
+/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+
+/* Define to 1 if on MINIX. */
+/* #undef _MINIX */
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+   this defined. */
+/* #undef _POSIX_1_SOURCE */
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+/* #undef _POSIX_SOURCE */
+
+/* Enable extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# define _POSIX_PTHREAD_SEMANTICS 1
+#endif
+#ifndef _TANDEM_SOURCE
+# define _TANDEM_SOURCE 1
+#endif
+
+/* Define to rpl_ if the getopt replacement functions and variables should be
+   used. */
+#define __GETOPT_PREFIX rpl_
+
+/* Define as 'access' if you don't have the eaccess() function. */
+#define eaccess access
+
+/* Define to a replacement function name for fnmatch(). */
+/* #undef fnmatch */
+
+/* Define to a replacement function name for getline(). */
+/* #undef getline */
+
+/* A replacement for va_copy, if needed.  */
+#define gl_va_copy(a,b) ((a) = (b))
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to a type if <wchar.h> does not define. */
+/* #undef mbstate_t */
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef mode_t */
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef pid_t */
+
+/* Define as the type of the result of subtracting two pointers, if the system
+   doesn't define it. */
+/* #undef ptrdiff_t */
+
+/* Define to a replacement function name for realpath(). */
+#define realpath rpl_realpath
+
+/* Define to equivalent of C99 restrict keyword, or to nothing if this is not
+   supported. Do not define if restrict is supported directly. */
+#define restrict __restrict
+
+/* Define as an integer type suitable for memory locations that can be
+   accessed atomically even in the presence of asynchnonous signals. */
+/* #undef sig_atomic_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define as a signed type of the same size as size_t. */
+/* #undef ssize_t */
+
+/* Define to unsigned long or unsigned long long if <stdint.h> and
+   <inttypes.h> don't define. */
+/* #undef uintmax_t */
+
+/* Define as a macro for copying va_list variables. */
+/* #undef va_copy */
+
+/* Define as `fork' if `vfork' does not work. */
+/* #undef vfork */
+
+/* Define to wcscmp if the function wcscoll does not exist. */
+/* #undef wcscoll */
+
+
+#define __libc_lock_t                   gl_lock_t
+#define __libc_lock_define              gl_lock_define
+#define __libc_lock_define_initialized  gl_lock_define_initialized
+#define __libc_lock_init                gl_lock_init
+#define __libc_lock_lock                gl_lock_lock
+#define __libc_lock_unlock              gl_lock_unlock
+#define __libc_lock_recursive_t                   gl_recursive_lock_t
+#define __libc_lock_define_recursive              gl_recursive_lock_define
+#define __libc_lock_define_initialized_recursive  gl_recursive_lock_define_initialized
+#define __libc_lock_init_recursive                gl_recursive_lock_init
+#define __libc_lock_lock_recursive                gl_recursive_lock_lock
+#define __libc_lock_unlock_recursive              gl_recursive_lock_unlock
+#define glthread_in_use  libintl_thread_in_use
+#define glthread_lock_init     libintl_lock_init
+#define glthread_lock_lock     libintl_lock_lock
+#define glthread_lock_unlock   libintl_lock_unlock
+#define glthread_lock_destroy  libintl_lock_destroy
+#define glthread_rwlock_init     libintl_rwlock_init
+#define glthread_rwlock_rdlock   libintl_rwlock_rdlock
+#define glthread_rwlock_wrlock   libintl_rwlock_wrlock
+#define glthread_rwlock_unlock   libintl_rwlock_unlock
+#define glthread_rwlock_destroy  libintl_rwlock_destroy
+#define glthread_recursive_lock_init     libintl_recursive_lock_init
+#define glthread_recursive_lock_lock     libintl_recursive_lock_lock
+#define glthread_recursive_lock_unlock   libintl_recursive_lock_unlock
+#define glthread_recursive_lock_destroy  libintl_recursive_lock_destroy
+#define glthread_once                 libintl_once
+#define glthread_once_call            libintl_once_call
+#define glthread_once_singlethreaded  libintl_once_singlethreaded
+
+
+
+/* Indicator for intl/ that it is compiled for testing purposes only.  */
+#define USE_IN_GETTEXT_TESTS
+
+/* A file name cannot consist of any character possible.  INVALID_PATH_CHAR
+   contains the characters not allowed.  */
+#if defined _MSC_VER || defined __MINGW32__
+/* Woe32.  This string is valid for Windows NT/2000.  On Windows 95/98/ME some
+   few characters in the range 0x80..0xff are invalid as well, but this doesn't
+   matter much for our purposes.  */
+# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\"*/:<>?\\|"
+#elif defined MSDOS
+/* Something like this for MSDOG.  */
+# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177\\:."
+#else
+/* Unix.  */
+# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177/"
+#endif
+
+/* This is the page width for the message_print function.  It should
+   not be set to more than 79 characters (Emacs users will appreciate
+   it).  It is used to wrap the msgid and msgstr strings, and also to
+   wrap the file position (#:) comments.  */
+#define PAGE_WIDTH 79
+
+/* On Windows, variables that may be in a DLL must be marked specially.  */
+#if ((defined _MSC_VER && defined _DLL) || defined WOE32DLL) && !defined IN_RELOCWRAPPER
+# define DLL_VARIABLE __declspec (dllimport)
+#else
+# define DLL_VARIABLE
+#endif
+
+/* Extra OS/2 (emx+gcc) defines.  */
+#ifdef __EMX__
+# include "intl/os2compat.h"
+#endif
+
Index: src/external/gpl2/gettext/include/gettext-po.h
diff -u /dev/null src/external/gpl2/gettext/include/gettext-po.h:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/include/gettext-po.h	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,338 @@
+/* Public API for GNU gettext PO files - contained in libgettextpo.
+   Copyright (C) 2003-2006 Free Software Foundation, Inc.
+   Written by Bruno Haible <[email protected]>, 2003.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+
+#ifndef _GETTEXT_PO_H
+#define _GETTEXT_PO_H 1
+
+#include <stdlib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* =========================== Meta Information ============================ */
+
+/* Version number: (major<<16) + (minor<<8) + subminor */
+#define LIBGETTEXTPO_VERSION 0x001000
+extern int libgettextpo_version;
+
+/* ================================= Types ================================= */
+
+/* A po_file_t represents the contents of a PO file.  */
+typedef struct po_file *po_file_t;
+
+/* A po_message_iterator_t represents an iterator through a domain of a
+   PO file.  */
+typedef struct po_message_iterator *po_message_iterator_t;
+
+/* A po_message_t represents a message in a PO file.  */
+typedef struct po_message *po_message_t;
+
+/* A po_filepos_t represents a string's position within a source file.  */
+typedef struct po_filepos *po_filepos_t;
+
+/* A po_error_handler handles error situations.  */
+struct po_error_handler
+{
+  /* Signal an error.  The error message is built from FORMAT and the following
+     arguments.  ERRNUM, if nonzero, is an errno value.
+     Must increment the error_message_count variable declared in error.h.
+     Must not return if STATUS is nonzero.  */
+  void (*error) (int status, int errnum,
+		 const char *format, ...)
+#if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3) && !__STRICT_ANSI__
+  __attribute__ ((__format__ (__printf__, 3, 4)))
+#endif
+  ;
+
+  /* Signal an error.  The error message is built from FORMAT and the following
+     arguments.  The error location is at FILENAME line LINENO. ERRNUM, if
+     nonzero, is an errno value.
+     Must increment the error_message_count variable declared in error.h.
+     Must not return if STATUS is nonzero.  */
+  void (*error_at_line) (int status, int errnum,
+			 const char *filename, unsigned int lineno,
+			 const char *format, ...)
+#if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3) && !__STRICT_ANSI__
+  __attribute__ ((__format__ (__printf__, 5, 6)))
+#endif
+  ;
+
+  /* Signal a multiline warning.  The PREFIX applies to all lines of the
+     MESSAGE.  Free the PREFIX and MESSAGE when done.  */
+  void (*multiline_warning) (char *prefix, char *message);
+
+  /* Signal a multiline error.  The PREFIX applies to all lines of the
+     MESSAGE.  Free the PREFIX and MESSAGE when done.
+     Must increment the error_message_count variable declared in error.h if
+     PREFIX is non-NULL.  */
+  void (*multiline_error) (char *prefix, char *message);
+};
+typedef const struct po_error_handler *po_error_handler_t;
+
+/* A po_xerror_handler handles warnings, error and fatal error situations.  */
+#define PO_SEVERITY_WARNING	0 /* just a warning, tell the user */
+#define PO_SEVERITY_ERROR	1 /* an error, the operation cannot complete */
+#define PO_SEVERITY_FATAL_ERROR	2 /* an error, the operation must be aborted */
+struct po_xerror_handler
+{
+  /* Signal a problem of the given severity.
+     MESSAGE and/or FILENAME + LINENO indicate where the problem occurred.
+     If FILENAME is NULL, FILENAME and LINENO and COLUMN should be ignored.
+     If LINENO is (size_t)(-1), LINENO and COLUMN should be ignored.
+     If COLUMN is (size_t)(-1), it should be ignored.
+     MESSAGE_TEXT is the problem description (if MULTILINE_P is true,
+     multiple lines of text, each terminated with a newline, otherwise
+     usually a single line).
+     Must not return if SEVERITY is PO_SEVERITY_FATAL_ERROR.  */
+  void (*xerror) (int severity,
+		  po_message_t message,
+		  const char *filename, size_t lineno, size_t column,
+		  int multiline_p, const char *message_text);
+  /* Signal a problem that refers to two messages.
+     Similar to two calls to xerror.
+     If possible, a "..." can be appended to MESSAGE_TEXT1 and prepended to
+     MESSAGE_TEXT2.  */
+  void (*xerror2) (int severity,
+		   po_message_t message1,
+		   const char *filename1, size_t lineno1, size_t column1,
+		   int multiline_p1, const char *message_text1,
+		   po_message_t message2,
+		   const char *filename2, size_t lineno2, size_t column2,
+		   int multiline_p2, const char *message_text2);
+};
+typedef const struct po_xerror_handler *po_xerror_handler_t;
+
+/* Memory allocation:
+   The memory allocations performed by these functions use xmalloc(),
+   therefore will cause a program exit if memory is exhausted.
+   The memory allocated by po_file_read, and implicitly returned through
+   the po_message_* functions, lasts until freed with po_file_free.  */
+
+
+/* ============================= po_file_t API ============================= */
+
+/* Create an empty PO file representation in memory.  */
+extern po_file_t po_file_create (void);
+
+/* Read a PO file into memory.
+   Return its contents.  Upon failure, return NULL and set errno.  */
+#define po_file_read po_file_read_v3
+extern po_file_t po_file_read (const char *filename,
+			       po_xerror_handler_t handler);
+
+/* Write an in-memory PO file to a file.
+   Upon failure, return NULL and set errno.  */
+#define po_file_write po_file_write_v2
+extern po_file_t po_file_write (po_file_t file, const char *filename,
+				po_xerror_handler_t handler);
+
+/* Free a PO file from memory.  */
+extern void po_file_free (po_file_t file);
+
+/* Return the names of the domains covered by a PO file in memory.  */
+extern const char * const * po_file_domains (po_file_t file);
+
+
+/* =========================== Header entry API ============================ */
+
+/* Return the header entry of a domain of a PO file in memory.
+   The domain NULL denotes the default domain.
+   Return NULL if there is no header entry.  */
+extern const char * po_file_domain_header (po_file_t file, const char *domain);
+
+/* Return the value of a field in a header entry.
+   The return value is either a freshly allocated string, to be freed by the
+   caller, or NULL.  */
+extern char * po_header_field (const char *header, const char *field);
+
+/* Return the header entry with a given field set to a given value.  The field
+   is added if necessary.
+   The return value is a freshly allocated string.  */
+extern char * po_header_set_field (const char *header, const char *field, const char *value);
+
+
+/* ======================= po_message_iterator_t API ======================= */
+
+/* Create an iterator for traversing a domain of a PO file in memory.
+   The domain NULL denotes the default domain.  */
+extern po_message_iterator_t po_message_iterator (po_file_t file, const char *domain);
+
+/* Free an iterator.  */
+extern void po_message_iterator_free (po_message_iterator_t iterator);
+
+/* Return the next message, and advance the iterator.
+   Return NULL at the end of the message list.  */
+extern po_message_t po_next_message (po_message_iterator_t iterator);
+
+/* Insert a message in a PO file in memory, in the domain and at the position
+   indicated by the iterator.  The iterator thereby advances past the freshly
+   inserted message.  */
+extern void po_message_insert (po_message_iterator_t iterator, po_message_t message);
+
+
+/* =========================== po_message_t API ============================ */
+
+/* Return a freshly constructed message.
+   To finish initializing the message, you must set the msgid and msgstr.  */
+extern po_message_t po_message_create (void);
+
+/* Return the context of a message, or NULL for a message not restricted to a
+   context.  */
+extern const char * po_message_msgctxt (po_message_t message);
+
+/* Change the context of a message. NULL means a message not restricted to a
+   context.  */
+extern void po_message_set_msgctxt (po_message_t message, const char *msgctxt);
+
+/* Return the msgid (untranslated English string) of a message.  */
+extern const char * po_message_msgid (po_message_t message);
+
+/* Change the msgid (untranslated English string) of a message.  */
+extern void po_message_set_msgid (po_message_t message, const char *msgid);
+
+/* Return the msgid_plural (untranslated English plural string) of a message,
+   or NULL for a message without plural.  */
+extern const char * po_message_msgid_plural (po_message_t message);
+
+/* Change the msgid_plural (untranslated English plural string) of a message.
+   NULL means a message without plural.  */
+extern void po_message_set_msgid_plural (po_message_t message, const char *msgid_plural);
+
+/* Return the msgstr (translation) of a message.
+   Return the empty string for an untranslated message.  */
+extern const char * po_message_msgstr (po_message_t message);
+
+/* Change the msgstr (translation) of a message.
+   Use an empty string to denote an untranslated message.  */
+extern void po_message_set_msgstr (po_message_t message, const char *msgstr);
+
+/* Return the msgstr[index] for a message with plural handling, or
+   NULL when the index is out of range or for a message without plural.  */
+extern const char * po_message_msgstr_plural (po_message_t message, int index);
+
+/* Change the msgstr[index] for a message with plural handling.
+   Use a NULL value at the end to reduce the number of plural forms.  */
+extern void po_message_set_msgstr_plural (po_message_t message, int index, const char *msgstr);
+
+/* Return the comments for a message.  */
+extern const char * po_message_comments (po_message_t message);
+
+/* Change the comments for a message.
+   comments should be a multiline string, ending in a newline, or empty.  */
+extern void po_message_set_comments (po_message_t message, const char *comments);
+
+/* Return the extracted comments for a message.  */
+extern const char * po_message_extracted_comments (po_message_t message);
+
+/* Change the extracted comments for a message.
+   comments should be a multiline string, ending in a newline, or empty.  */
+extern void po_message_set_extracted_comments (po_message_t message, const char *comments);
+
+/* Return the i-th file position for a message, or NULL if i is out of
+   range.  */
+extern po_filepos_t po_message_filepos (po_message_t message, int i);
+
+/* Remove the i-th file position from a message.
+   The indices of all following file positions for the message are decremented
+   by one.  */
+extern void po_message_remove_filepos (po_message_t message, int i);
+
+/* Add a file position to a message, if it is not already present for the
+   message.
+   file is the file name.
+   start_line is the line number where the string starts, or (size_t)(-1) if no
+   line number is available.  */
+extern void po_message_add_filepos (po_message_t message, const char *file, size_t start_line);
+
+/* Return the previous context of a message, or NULL for none.  */
+extern const char * po_message_prev_msgctxt (po_message_t message);
+
+/* Change the previous context of a message.  NULL is allowed.  */
+extern void po_message_set_prev_msgctxt (po_message_t message, const char *prev_msgctxt);
+
+/* Return the previous msgid (untranslated English string) of a message, or
+   NULL for none.  */
+extern const char * po_message_prev_msgid (po_message_t message);
+
+/* Change the previous msgid (untranslated English string) of a message.
+   NULL is allowed.  */
+extern void po_message_set_prev_msgid (po_message_t message, const char *prev_msgid);
+
+/* Return the previous msgid_plural (untranslated English plural string) of a
+   message, or NULL for none.  */
+extern const char * po_message_prev_msgid_plural (po_message_t message);
+
+/* Change the previous msgid_plural (untranslated English plural string) of a
+   message.  NULL is allowed.  */
+extern void po_message_set_prev_msgid_plural (po_message_t message, const char *prev_msgid_plural);
+
+/* Return true if the message is marked obsolete.  */
+extern int po_message_is_obsolete (po_message_t message);
+
+/* Change the obsolete mark of a message.  */
+extern void po_message_set_obsolete (po_message_t message, int obsolete);
+
+/* Return true if the message is marked fuzzy.  */
+extern int po_message_is_fuzzy (po_message_t message);
+
+/* Change the fuzzy mark of a message.  */
+extern void po_message_set_fuzzy (po_message_t message, int fuzzy);
+
+/* Return true if the message is marked as being a format string of the given
+   type (e.g. "c-format").  */
+extern int po_message_is_format (po_message_t message, const char *format_type);
+
+/* Change the format string mark for a given type of a message.  */
+extern void po_message_set_format (po_message_t message, const char *format_type, /*bool*/int value);
+
+
+/* =========================== po_filepos_t API ============================ */
+
+/* Return the file name.  */
+extern const char * po_filepos_file (po_filepos_t filepos);
+
+/* Return the line number where the string starts, or (size_t)(-1) if no line
+   number is available.  */
+extern size_t po_filepos_start_line (po_filepos_t filepos);
+
+
+/* ============================= Checking API ============================== */
+
+/* Test whether an entire file PO file is valid, like msgfmt does it.
+   If it is invalid, pass the reasons to the handler.  */
+extern void po_file_check_all (po_file_t file, po_xerror_handler_t handler);
+
+/* Test a single message, to be inserted in a PO file in memory, like msgfmt
+   does it.  If it is invalid, pass the reasons to the handler.  The iterator
+   is not modified by this call; it only specifies the file and the domain.  */
+extern void po_message_check_all (po_message_t message, po_message_iterator_t iterator, po_xerror_handler_t handler);
+
+/* Test whether the message translation is a valid format string if the message
+   is marked as being a format string.  If it is invalid, pass the reasons to
+   the handler.  */
+#define po_message_check_format po_message_check_format_v2
+extern void po_message_check_format (po_message_t message, po_xerror_handler_t handler);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _GETTEXT_PO_H */
Index: src/external/gpl2/gettext/include/libgnuintl.h
diff -u /dev/null src/external/gpl2/gettext/include/libgnuintl.h:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/include/libgnuintl.h	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,423 @@
+/* Message catalogs for internationalization.
+   Copyright (C) 1995-1997, 2000-2006 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify it
+   under the terms of the GNU Library General Public License as published
+   by the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+   USA.  */
+
+#ifndef _LIBINTL_H
+#define _LIBINTL_H	1
+
+#if 1 && BUILDING_LIBINTL
+#define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default")))
+#else
+#define LIBINTL_DLL_EXPORTED
+#endif
+
+#include <locale.h>
+
+/* The LC_MESSAGES locale category is the category used by the functions
+   gettext() and dgettext().  It is specified in POSIX, but not in ANSI C.
+   On systems that don't define it, use an arbitrary value instead.
+   On Solaris, <locale.h> defines __LOCALE_H (or _LOCALE_H in Solaris 2.5)
+   then includes <libintl.h> (i.e. this file!) and then only defines
+   LC_MESSAGES.  To avoid a redefinition warning, don't define LC_MESSAGES
+   in this case.  */
+#if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun))
+# define LC_MESSAGES 1729
+#endif
+
+/* We define an additional symbol to signal that we use the GNU
+   implementation of gettext.  */
+#define __USE_GNU_GETTEXT 1
+
+/* Provide information about the supported file formats.  Returns the
+   maximum minor revision number supported for a given major revision.  */
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) \
+  ((major) == 0 || (major) == 1 ? 1 : -1)
+
+/* Resolve a platform specific conflict on DJGPP.  GNU gettext takes
+   precedence over _conio_gettext.  */
+#ifdef __DJGPP__
+# undef gettext
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Version number: (major<<16) + (minor<<8) + subminor */
+#define LIBINTL_VERSION 0x001000
+extern LIBINTL_DLL_EXPORTED int libintl_version;
+
+
+/* We redirect the functions to those prefixed with "libintl_".  This is
+   necessary, because some systems define gettext/textdomain/... in the C
+   library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer).
+   If we used the unprefixed names, there would be cases where the
+   definition in the C library would override the one in the libintl.so
+   shared library.  Recall that on ELF systems, the symbols are looked
+   up in the following order:
+     1. in the executable,
+     2. in the shared libraries specified on the link command line, in order,
+     3. in the dependencies of the shared libraries specified on the link
+        command line,
+     4. in the dlopen()ed shared libraries, in the order in which they were
+        dlopen()ed.
+   The definition in the C library would override the one in libintl.so if
+   either
+     * -lc is given on the link command line and -lintl isn't, or
+     * -lc is given on the link command line before -lintl, or
+     * libintl.so is a dependency of a dlopen()ed shared library but not
+       linked to the executable at link time.
+   Since Solaris gettext() behaves differently than GNU gettext(), this
+   would be unacceptable.
+
+   The redirection happens by default through macros in C, so that &gettext
+   is independent of the compilation unit, but through inline functions in
+   C++, in order not to interfere with the name mangling of class fields or
+   class methods called 'gettext'.  */
+
+/* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS.
+   If he doesn't, we choose the method.  A third possible method is
+   _INTL_REDIRECT_ASM, supported only by GCC.  */
+#if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS)
+# if __GNUC__ >= 2 && !(__APPLE_CC__ > 1) && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus)
+#  define _INTL_REDIRECT_ASM
+# else
+#  ifdef __cplusplus
+#   define _INTL_REDIRECT_INLINE
+#  else
+#   define _INTL_REDIRECT_MACROS
+#  endif
+# endif
+#endif
+/* Auxiliary macros.  */
+#ifdef _INTL_REDIRECT_ASM
+# define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname))
+# define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring
+# define _INTL_STRINGIFY(prefix) #prefix
+#else
+# define _INTL_ASM(cname)
+#endif
+
+/* _INTL_MAY_RETURN_STRING_ARG(n) declares that the given function may return
+   its n-th argument literally.  This enables GCC to warn for example about
+   printf (gettext ("foo %y")).  */
+#if __GNUC__ >= 3 && !(__APPLE_CC__ > 1 && defined __cplusplus)
+# define _INTL_MAY_RETURN_STRING_ARG(n) __attribute__ ((__format_arg__ (n)))
+#else
+# define _INTL_MAY_RETURN_STRING_ARG(n)
+#endif
+
+/* Look up MSGID in the current default message catalog for the current
+   LC_MESSAGES locale.  If not found, returns MSGID itself (the default
+   text).  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_gettext (const char *__msgid)
+       _INTL_MAY_RETURN_STRING_ARG (1);
+static inline char *gettext (const char *__msgid)
+{
+  return libintl_gettext (__msgid);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define gettext libintl_gettext
+#endif
+extern LIBINTL_DLL_EXPORTED char *gettext (const char *__msgid)
+       _INTL_ASM (libintl_gettext)
+       _INTL_MAY_RETURN_STRING_ARG (1);
+#endif
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current
+   LC_MESSAGES locale.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_dgettext (const char *__domainname, const char *__msgid)
+       _INTL_MAY_RETURN_STRING_ARG (2);
+static inline char *dgettext (const char *__domainname, const char *__msgid)
+{
+  return libintl_dgettext (__domainname, __msgid);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define dgettext libintl_dgettext
+#endif
+extern LIBINTL_DLL_EXPORTED char *dgettext (const char *__domainname, const char *__msgid)
+       _INTL_ASM (libintl_dgettext)
+       _INTL_MAY_RETURN_STRING_ARG (2);
+#endif
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
+   locale.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_dcgettext (const char *__domainname, const char *__msgid,
+				int __category)
+       _INTL_MAY_RETURN_STRING_ARG (2);
+static inline char *dcgettext (const char *__domainname, const char *__msgid,
+			       int __category)
+{
+  return libintl_dcgettext (__domainname, __msgid, __category);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define dcgettext libintl_dcgettext
+#endif
+extern LIBINTL_DLL_EXPORTED char *dcgettext (const char *__domainname, const char *__msgid,
+			int __category)
+       _INTL_ASM (libintl_dcgettext)
+       _INTL_MAY_RETURN_STRING_ARG (2);
+#endif
+
+
+/* Similar to `gettext' but select the plural form corresponding to the
+   number N.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_ngettext (const char *__msgid1, const char *__msgid2,
+			       unsigned long int __n)
+       _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2);
+static inline char *ngettext (const char *__msgid1, const char *__msgid2,
+			      unsigned long int __n)
+{
+  return libintl_ngettext (__msgid1, __msgid2, __n);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define ngettext libintl_ngettext
+#endif
+extern LIBINTL_DLL_EXPORTED char *ngettext (const char *__msgid1, const char *__msgid2,
+		       unsigned long int __n)
+       _INTL_ASM (libintl_ngettext)
+       _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2);
+#endif
+
+/* Similar to `dgettext' but select the plural form corresponding to the
+   number N.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_dngettext (const char *__domainname, const char *__msgid1,
+				const char *__msgid2, unsigned long int __n)
+       _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3);
+static inline char *dngettext (const char *__domainname, const char *__msgid1,
+			       const char *__msgid2, unsigned long int __n)
+{
+  return libintl_dngettext (__domainname, __msgid1, __msgid2, __n);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define dngettext libintl_dngettext
+#endif
+extern LIBINTL_DLL_EXPORTED char *dngettext (const char *__domainname,
+			const char *__msgid1, const char *__msgid2,
+			unsigned long int __n)
+       _INTL_ASM (libintl_dngettext)
+       _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3);
+#endif
+
+/* Similar to `dcgettext' but select the plural form corresponding to the
+   number N.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_dcngettext (const char *__domainname,
+				 const char *__msgid1, const char *__msgid2,
+				 unsigned long int __n, int __category)
+       _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3);
+static inline char *dcngettext (const char *__domainname,
+				const char *__msgid1, const char *__msgid2,
+				unsigned long int __n, int __category)
+{
+  return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define dcngettext libintl_dcngettext
+#endif
+extern LIBINTL_DLL_EXPORTED char *dcngettext (const char *__domainname,
+			 const char *__msgid1, const char *__msgid2,
+			 unsigned long int __n, int __category)
+       _INTL_ASM (libintl_dcngettext)
+       _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3);
+#endif
+
+
+
+/* Set the current default message catalog to DOMAINNAME.
+   If DOMAINNAME is null, return the current default.
+   If DOMAINNAME is "", reset to the default of "messages".  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_textdomain (const char *__domainname);
+static inline char *textdomain (const char *__domainname)
+{
+  return libintl_textdomain (__domainname);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define textdomain libintl_textdomain
+#endif
+extern LIBINTL_DLL_EXPORTED char *textdomain (const char *__domainname)
+       _INTL_ASM (libintl_textdomain);
+#endif
+
+/* Specify that the DOMAINNAME message catalog will be found
+   in DIRNAME rather than in the system locale data base.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_bindtextdomain (const char *__domainname,
+				     const char *__dirname);
+static inline char *bindtextdomain (const char *__domainname,
+				    const char *__dirname)
+{
+  return libintl_bindtextdomain (__domainname, __dirname);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define bindtextdomain libintl_bindtextdomain
+#endif
+extern LIBINTL_DLL_EXPORTED char *bindtextdomain (const char *__domainname, const char *__dirname)
+       _INTL_ASM (libintl_bindtextdomain);
+#endif
+
+/* Specify the character encoding in which the messages from the
+   DOMAINNAME message catalog will be returned.  */
+#ifdef _INTL_REDIRECT_INLINE
+extern LIBINTL_DLL_EXPORTED char *libintl_bind_textdomain_codeset (const char *__domainname,
+					      const char *__codeset);
+static inline char *bind_textdomain_codeset (const char *__domainname,
+					     const char *__codeset)
+{
+  return libintl_bind_textdomain_codeset (__domainname, __codeset);
+}
+#else
+#ifdef _INTL_REDIRECT_MACROS
+# define bind_textdomain_codeset libintl_bind_textdomain_codeset
+#endif
+extern LIBINTL_DLL_EXPORTED char *bind_textdomain_codeset (const char *__domainname,
+				      const char *__codeset)
+       _INTL_ASM (libintl_bind_textdomain_codeset);
+#endif
+
+
+
+/* Support for format strings with positions in *printf(), following the
+   POSIX/XSI specification.
+   Note: These replacements for the *printf() functions are visible only
+   in source files that #include <libintl.h> or #include "gettext.h".
+   Packages that use *printf() in source files that don't refer to _()
+   or gettext() but for which the format string could be the return value
+   of _() or gettext() need to add this #include.  Oh well.  */
+
+#if !1
+
+#include <stdio.h>
+#include <stddef.h>
+
+/* Get va_list.  */
+#if __STDC__ || defined __cplusplus || defined _MSC_VER
+# include <stdarg.h>
+#else
+# include <varargs.h>
+#endif
+
+#undef fprintf
+#define fprintf libintl_fprintf
+extern LIBINTL_DLL_EXPORTED int fprintf (FILE *, const char *, ...);
+#undef vfprintf
+#define vfprintf libintl_vfprintf
+extern LIBINTL_DLL_EXPORTED int vfprintf (FILE *, const char *, va_list);
+
+#undef printf
+#if defined __NetBSD__ || defined __CYGWIN__ || defined __MINGW32__
+/* Don't break __attribute__((format(printf,M,N))).
+   This redefinition is only possible because the libc in NetBSD, Cygwin,
+   mingw does not have a function __printf__.  */
+# define libintl_printf __printf__
+#endif
+#define printf libintl_printf
+extern LIBINTL_DLL_EXPORTED int printf (const char *, ...);
+#undef vprintf
+#define vprintf libintl_vprintf
+extern LIBINTL_DLL_EXPORTED int vprintf (const char *, va_list);
+
+#undef sprintf
+#define sprintf libintl_sprintf
+extern LIBINTL_DLL_EXPORTED int sprintf (char *, const char *, ...);
+#undef vsprintf
+#define vsprintf libintl_vsprintf
+extern LIBINTL_DLL_EXPORTED int vsprintf (char *, const char *, va_list);
+
+#if 1
+
+#undef snprintf
+#define snprintf libintl_snprintf
+extern LIBINTL_DLL_EXPORTED int snprintf (char *, size_t, const char *, ...);
+#undef vsnprintf
+#define vsnprintf libintl_vsnprintf
+extern LIBINTL_DLL_EXPORTED int vsnprintf (char *, size_t, const char *, va_list);
+
+#endif
+
+#if 1
+
+#undef asprintf
+#define asprintf libintl_asprintf
+extern LIBINTL_DLL_EXPORTED int asprintf (char **, const char *, ...);
+#undef vasprintf
+#define vasprintf libintl_vasprintf
+extern LIBINTL_DLL_EXPORTED int vasprintf (char **, const char *, va_list);
+
+#endif
+
+#if 0
+
+#undef fwprintf
+#define fwprintf libintl_fwprintf
+extern LIBINTL_DLL_EXPORTED int fwprintf (FILE *, const wchar_t *, ...);
+#undef vfwprintf
+#define vfwprintf libintl_vfwprintf
+extern LIBINTL_DLL_EXPORTED int vfwprintf (FILE *, const wchar_t *, va_list);
+
+#undef wprintf
+#define wprintf libintl_wprintf
+extern LIBINTL_DLL_EXPORTED int wprintf (const wchar_t *, ...);
+#undef vwprintf
+#define vwprintf libintl_vwprintf
+extern LIBINTL_DLL_EXPORTED int vwprintf (const wchar_t *, va_list);
+
+#undef swprintf
+#define swprintf libintl_swprintf
+extern LIBINTL_DLL_EXPORTED int swprintf (wchar_t *, size_t, const wchar_t *, ...);
+#undef vswprintf
+#define vswprintf libintl_vswprintf
+extern LIBINTL_DLL_EXPORTED int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
+
+#endif
+
+#endif
+
+
+/* Support for relocatable packages.  */
+
+/* Sets the original and the current installation prefix of the package.
+   Relocation simply replaces a pathname starting with the original prefix
+   by the corresponding pathname with the current prefix instead.  Both
+   prefixes should be directory names without trailing slash (i.e. use ""
+   instead of "/").  */
+#define libintl_set_relocation_prefix libintl_set_relocation_prefix
+extern LIBINTL_DLL_EXPORTED void
+       libintl_set_relocation_prefix (const char *orig_prefix,
+				      const char *curr_prefix);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* libintl.h */

Index: src/external/gpl2/gettext/info/Makefile
diff -u /dev/null src/external/gpl2/gettext/info/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/info/Makefile	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,12 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:03 christos Exp $
+
+.include <bsd.own.mk>
+
+GETTEXTTOP=${NETBSDSRCDIR}/gnu/dist/gettext
+TEXINFO=	gettext.texi
+INFOFLAGS=	-I${GETTEXTTOP}/gettext-tools/doc \
+    -I${GETTEXTTOP}/gettext-runtime/doc
+
+.include <bsd.info.mk>
+
+.PATH: ${GETTEXTTOP}/gettext-tools/doc

Index: src/external/gpl2/gettext/lib/Makefile
diff -u /dev/null src/external/gpl2/gettext/lib/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/lib/Makefile	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:03 christos Exp $
+
+.include <bsd.own.mk>
+
+SUBDIR=	libgrep libnlsut libnlspr
+
+.include <bsd.subdir.mk>

Index: src/external/gpl2/gettext/lib/libgrep/Makefile
diff -u /dev/null src/external/gpl2/gettext/lib/libgrep/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/lib/libgrep/Makefile	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,30 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:03 christos Exp $
+
+LIBISPRIVATE=	yes
+
+.include <bsd.own.mk>
+
+LIB=	grep
+SRCS= \
+dfa.c \
+hard-locale.c \
+kwset.c \
+m-common.c \
+m-fgrep.c \
+m-regex.c \
+memchr.c \
+regex.c \
+strdup.c 
+
+.include "${.CURDIR}/../../Makefile.inc"
+
+.PATH:	${DIST}/gettext-tools/libgrep 
+CPPFLAGS+= -I${DIST}/gettext-tools/libgrep
+
+COPTS.regex.c = -Wno-stack-protector
+
+WARNS?=		0	# pointer sign issues
+
+CWARNFLAGS.clang+=	-Wno-unused-value
+
+.include <bsd.lib.mk>

Index: src/external/gpl2/gettext/lib/libnlspr/Makefile
diff -u /dev/null src/external/gpl2/gettext/lib/libnlspr/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/lib/libnlspr/Makefile	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,111 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:03 christos Exp $
+
+LIBISPRIVATE=	yes
+
+.include <bsd.own.mk>
+
+LIB=	nlspr
+SRCS= \
+dir-list.c \
+file-list.c \
+format.c \
+format-awk.c \
+format-c.c \
+format-csharp.c \
+format-elisp.c \
+format-gcc-internal.c \
+format-java.c \
+format-librep.c \
+format-lisp.c \
+format-pascal.c \
+format-perl-brace.c \
+format-boost.c \
+format-perl.c \
+format-php.c \
+format-python.c \
+format-qt.c \
+format-scheme.c \
+format-sh.c \
+format-tcl.c \
+format-ycp.c \
+localcharset.c \
+hash-string.c \
+lang-table.c \
+message.c \
+msgl-ascii.c \
+msgl-cat.c \
+msgl-charset.c \
+msgl-english.c \
+msgl-equal.c \
+msgl-iconv.c \
+msgl-fsearch.c \
+plural.c \
+plural-exp.c \
+plural-eval.c \
+plural-count.c \
+plural-table.c \
+read-catalog-abstract.c \
+po-charset.c \
+po-error.c \
+po-gram-gen.c \
+po-lex.c \
+po-time.c \
+po-xerror.c \
+open-catalog.c \
+read-csharp.c \
+read-java.c \
+read-mo.c \
+read-po.c \
+read-catalog.c \
+read-properties.c \
+read-resources.c \
+read-stringtable.c \
+read-tcl.c \
+str-list.c \
+write-csharp.c \
+write-java.c  \
+write-mo.c \
+write-po.c \
+write-catalog.c \
+write-properties.c \
+write-qt.c \
+write-resources.c \
+write-stringtable.c \
+msgl-check.c \
+gettext-po.c \
+clean-temp.c \
+write-tcl.c
+
+.include "${.CURDIR}/../../Makefile.inc"
+
+.PATH:	${DIST}/gettext-tools/src ${DIST}/gettext-tools/gnulib-lib ${DIST}/gettext-runtime/intl ${DIST}/gettext-tools/libgettextpo
+CPPFLAGS+=-I${DIST}/gettext-runtime/intl
+CPPFLAGS+=-I${DIST}/gettext-tools/src
+CPPFLAGS+=-DLIBDIR=\"/usr/share\"
+CPPFLAGS+=-DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\"
+CPPFLAGS+=-DGETTEXTDATADIR=\"/usr/share/gettext\"
+
+COPTS.format-java.c = -Wno-stack-protector
+COPTS.msgl-cat.c = -Wno-stack-protector
+COPTS.msgl-charset.c = -Wno-stack-protector
+COPTS.msgl-iconv.c = -Wno-stack-protector
+COPTS.plural.c = -Wno-stack-protector
+COPTS.po-charset.c = -Wno-stack-protector
+COPTS.po-gram-gen.c = -Wno-stack-protector
+COPTS.read-tcl.c = -Wno-stack-protector
+COPTS.write-csharp.c = -Wno-stack-protector
+COPTS.write-java.c = -Wno-stack-protector
+COPTS.write-mo.c = -Wno-stack-protector
+COPTS.write-po.c = -Wno-stack-protector
+COPTS.write-tcl.c = -Wno-stack-protector
+COPTS.msgl-fsearch.c = -Wno-variably-modified
+
+CWARNFLAGS.clang+=	-Wno-tautological-compare
+
+.include <bsd.lib.mk>
+
+# Override <sys.mk> double suffix rules to prevent *.y being yacced to *.[ch]
+# (The latter already exist in the ${DIST}/gettext directory.)
+#
+.y.c:
+	@${_MKSHECHO} "# skipping yacc ${.CURDIR:T}/${.TARGET:T}"

Index: src/external/gpl2/gettext/lib/libnlsut/Makefile
diff -u /dev/null src/external/gpl2/gettext/lib/libnlsut/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/lib/libnlsut/Makefile	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,81 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:03 christos Exp $
+
+LIBISPRIVATE=	yes
+
+.include <bsd.own.mk>
+
+LIB=	nlsut
+SRCS= \
+addext.c \
+allocsa.c \
+argmatch.c \
+backupfile.c \
+basename.c \
+c-ctype.c \
+c-strstr.c \
+c-strcasecmp.c \
+c-strncasecmp.c \
+classpath.c \
+closeout.c \
+concatpath.c \
+copy-file.c \
+csharpcomp.c \
+csharpexec.c \
+error-progname.c \
+error.c \
+execute.c \
+exitfail.c \
+fatal-signal.c \
+findprog.c \
+fstrcmp.c \
+fwriteerror.c \
+full-write.c \
+gl_linkedhash_list.c \
+gcd.c \
+getline.c \
+hash.c \
+lock.c \
+javacomp.c \
+javaexec.c \
+linebreak.c \
+mbchar.c \
+mbswidth.c \
+strnlen1.c \
+obstack.c \
+pipe.c \
+progname.c \
+propername.c \
+quote.c \
+quotearg.c \
+safe-read.c \
+safe-write.c \
+strstr.c \
+sh-quote.c \
+tmpdir.c \
+localcharset.c \
+wait-process.c \
+xallocsa.c \
+xvasprintf.c \
+xasprintf.c \
+xerror.c \
+striconv.c \
+xstriconv.c \
+xmalloc.c \
+xsetenv.c \
+javaversion.c \
+xstrdup.c
+
+# xgetcwd.c \
+
+.include "${.CURDIR}/../../Makefile.inc"
+
+.PATH:	${DIST}/gettext-tools/gnulib-lib
+
+CPPFLAGS+=-DEXEEXT=\"\" -DLIBDIR=\"/usr/share\"
+
+COPTS.csharpcomp.c = -Wno-stack-protector
+COPTS.csharpexec.c = -Wno-stack-protector
+COPTS.javacomp.c = -Wno-stack-protector
+COPTS.javaexec.c = -Wno-stack-protector
+
+.include <bsd.lib.mk>

Index: src/external/gpl2/gettext/locale/Makefile
diff -u /dev/null src/external/gpl2/gettext/locale/Makefile:1.1
--- /dev/null	Tue Jan 12 17:58:04 2016
+++ src/external/gpl2/gettext/locale/Makefile	Tue Jan 12 17:58:03 2016
@@ -0,0 +1,18 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/12 22:58:03 christos Exp $
+
+.include <bsd.own.mk>
+
+GMOFILES= be.gmo ca.gmo cs.gmo da.gmo de.gmo el.gmo [email protected] \
+    [email protected] es.gmo et.gmo fi.gmo fr.gmo gl.gmo id.gmo it.gmo \
+    ja.gmo ko.gmo nl.gmo nn.gmo no.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo \
+    ru.gmo sk.gmo sl.gmo sr.gmo sv.gmo tr.gmo uk.gmo zh_CN.gmo zh_TW.gmo 
+
+.for F in ${GMOFILES}
+FILES+=		${F}
+FILESDIR_${F}=	/usr/share/locale/${F:.gmo=}/LC_MESSAGES
+FILESNAME_${F}=	gettext-tools.mo
+.endfor
+
+.include <bsd.files.mk>
+
+.PATH: ${DIST}/gettext-tools/po

Reply via email to