* Makefile.vms: New file.
* Makefile.am (EXTRA_DIST): Add Makefile.vms.
+ (x-java.c): Prepend a few VMS specific lines.
* po-lex.c (mbfile_getc): Change element type of scatchbuf to
'unsigned char'.
* write-java.c (string_hashcode, write_java_string): Cast argument of
$(SED) 's/yy/po_gram_/g' $(srcdir)/po-gram-gen.h > $@-tmp
mv $@-tmp $@
+# We must add the '#include <vms_jackets.h>' here, not inside x-java.l,
+# because on VMS, <vms_jackets.h> must be included before <stdio.h>.
x-java.c: x-java.l
- $(LEX) -o$@-tmp -Px_java_yy $(srcdir)/x-java.l
- test "$(LEX)" = ":" || mv $@-tmp $@
+ test "$(LEX)" = ":" || { \
+ $(LEX) -o$@-tmp -Px_java_yy $(srcdir)/x-java.l && \
+ (echo '#ifdef VMS'; echo '#include <vms_jackets.h>'; echo '#endif'; \
+ cat $@-tmp) > $@-tmq && \
+ rm -f $@-tmp && \
+ mv $@-tmq $@ ; \
+ }
# Special rules for installation of auxiliary programs.