diff options
author | Bruno Haible <bruno@clisp.org> | 2003-04-01 08:02:49 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:19 +0200 |
commit | 4262a47d06b67d9d5cf7a4a371432225077630ef (patch) | |
tree | 0ea374d0c5a4af9be6e5c9ec40fc58822e4112eb | |
parent | 8b530b882bff067536c0422154181bac8332e16e (diff) | |
download | external_gettext-4262a47d06b67d9d5cf7a4a371432225077630ef.zip external_gettext-4262a47d06b67d9d5cf7a4a371432225077630ef.tar.gz external_gettext-4262a47d06b67d9d5cf7a4a371432225077630ef.tar.bz2 |
More VMS support.
-rw-r--r-- | gettext-tools/src/ChangeLog | 1 | ||||
-rw-r--r-- | gettext-tools/src/Makefile.am | 11 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index c80d08e..55575e2 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -2,6 +2,7 @@ * 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 diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am index dc43b46..0adb589 100644 --- a/gettext-tools/src/Makefile.am +++ b/gettext-tools/src/Makefile.am @@ -223,9 +223,16 @@ po-gram-gen2.h: po-gram-gen.h $(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. |