X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=util%2Fmarcdump.c;h=c30623a5161f7f95863b5eed20d6782e85f6887c;hb=d623f3970b7ddba573bef16f752966c6e93e14ba;hp=935bed197f331be9599ccb9a3eb208b1981596d0;hpb=2b80c10f9e398cb35212f147e9f792dc24e82bb1;p=yaz-moved-to-github.git diff --git a/util/marcdump.c b/util/marcdump.c index 935bed1..c30623a 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -443,8 +443,14 @@ int main (int argc, char **argv) rather than WRBUF */ if (strlen(arg) > 4 && strncmp(arg, "xml,", 4) == 0) { + /* Only supported for Libxml2 2.6.0 or later */ +#if LIBXML_VERSION >= 20600 arg = arg + 4; write_using_libxml2 = 1; +#else + fprintf(stderr, "%s: output using Libxml2 unsupported\n", prog); + exit(4); +#endif } output_format = yaz_marc_decode_formatstr(arg); if (output_format == -1)