OLD | NEW |
1 /* Configure script for libxml, specific for Windows with Scripting Host. | 1 /* Configure script for libxml, specific for Windows with Scripting Host. |
2 * | 2 * |
3 * This script will configure the libxml build process and create necessary file
s. | 3 * This script will configure the libxml build process and create necessary file
s. |
4 * Run it with an 'help', or an invalid option and it will tell you what options | 4 * Run it with an 'help', or an invalid option and it will tell you what options |
5 * it accepts. | 5 * it accepts. |
6 * | 6 * |
7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com> | 7 * March 2002, Igor Zlatkovic <igor@zlatkovic.com> |
8 */ | 8 */ |
9 | 9 |
10 /* The source directory, relative to the one where this file resides. */ | 10 /* The source directory, relative to the one where this file resides. */ |
(...skipping 22 matching lines...) Expand all Loading... |
33 var withFtp = true; | 33 var withFtp = true; |
34 var withHttp = true; | 34 var withHttp = true; |
35 var withHtml = true; | 35 var withHtml = true; |
36 var withC14n = true; | 36 var withC14n = true; |
37 var withCatalog = true; | 37 var withCatalog = true; |
38 var withDocb = true; | 38 var withDocb = true; |
39 var withXpath = true; | 39 var withXpath = true; |
40 var withXptr = true; | 40 var withXptr = true; |
41 var withXinclude = true; | 41 var withXinclude = true; |
42 var withIconv = true; | 42 var withIconv = true; |
43 var withIcu = false; | |
44 var withIso8859x = false; | 43 var withIso8859x = false; |
45 var withZlib = false; | 44 var withZlib = false; |
46 var withDebug = true; | 45 var withDebug = true; |
47 var withMemDebug = false; | 46 var withMemDebug = false; |
48 var withRunDebug = false; | 47 var withRunDebug = false; |
49 var withSchemas = true; | 48 var withSchemas = true; |
50 var withSchematron = true; | 49 var withSchematron = true; |
51 var withRegExps = true; | 50 var withRegExps = true; |
52 var withModules = true; | 51 var withModules = true; |
53 var withTree = true; | 52 var withTree = true; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 txt += " ftp: Enable FTP client (" + (withFtp? "yes" : "no") +
")\n"; | 117 txt += " ftp: Enable FTP client (" + (withFtp? "yes" : "no") +
")\n"; |
119 txt += " http: Enable HTTP client (" + (withHttp? "yes" : "no")
+ ")\n"; | 118 txt += " http: Enable HTTP client (" + (withHttp? "yes" : "no")
+ ")\n"; |
120 txt += " html: Enable HTML processor (" + (withHtml? "yes" : "no"
) + ")\n"; | 119 txt += " html: Enable HTML processor (" + (withHtml? "yes" : "no"
) + ")\n"; |
121 txt += " c14n: Enable C14N support (" + (withC14n? "yes" : "no")
+ ")\n"; | 120 txt += " c14n: Enable C14N support (" + (withC14n? "yes" : "no")
+ ")\n"; |
122 txt += " catalog: Enable catalog support (" + (withCatalog? "yes" :
"no") + ")\n"; | 121 txt += " catalog: Enable catalog support (" + (withCatalog? "yes" :
"no") + ")\n"; |
123 txt += " docb: Enable DocBook support (" + (withDocb? "yes" : "no
") + ")\n"; | 122 txt += " docb: Enable DocBook support (" + (withDocb? "yes" : "no
") + ")\n"; |
124 txt += " xpath: Enable XPath support (" + (withXpath? "yes" : "no"
) + ")\n"; | 123 txt += " xpath: Enable XPath support (" + (withXpath? "yes" : "no"
) + ")\n"; |
125 txt += " xptr: Enable XPointer support (" + (withXptr? "yes" : "n
o") + ")\n"; | 124 txt += " xptr: Enable XPointer support (" + (withXptr? "yes" : "n
o") + ")\n"; |
126 txt += " xinclude: Enable XInclude support (" + (withXinclude? "yes"
: "no") + ")\n"; | 125 txt += " xinclude: Enable XInclude support (" + (withXinclude? "yes"
: "no") + ")\n"; |
127 txt += " iconv: Enable iconv support (" + (withIconv? "yes" : "no"
) + ")\n"; | 126 txt += " iconv: Enable iconv support (" + (withIconv? "yes" : "no"
) + ")\n"; |
128 txt += " icu: Enable icu support (" + (withIcu? "yes" : "no") +
")\n"; | |
129 txt += " iso8859x: Enable ISO8859X support (" + (withIso8859x? "yes"
: "no") + ")\n"; | 127 txt += " iso8859x: Enable ISO8859X support (" + (withIso8859x? "yes"
: "no") + ")\n"; |
130 txt += " zlib: Enable zlib support (" + (withZlib? "yes" : "no")
+ ")\n"; | 128 txt += " zlib: Enable zlib support (" + (withZlib? "yes" : "no")
+ ")\n"; |
131 txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes
" : "no") + ")\n"; | 129 txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes
" : "no") + ")\n"; |
132 txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" :
"no") + ")\n"; | 130 txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" :
"no") + ")\n"; |
133 txt += " run_debug: Enable memory debugger (" + (withRunDebug? "yes" :
"no") + ")\n"; | 131 txt += " run_debug: Enable memory debugger (" + (withRunDebug? "yes" :
"no") + ")\n"; |
134 txt += " regexps: Enable regular expressions (" + (withRegExps? "yes
" : "no") + ")\n"; | 132 txt += " regexps: Enable regular expressions (" + (withRegExps? "yes
" : "no") + ")\n"; |
135 txt += " modules: Enable module support (" + (withModules? "yes" : "
no") + ")\n"; | 133 txt += " modules: Enable module support (" + (withModules? "yes" : "
no") + ")\n"; |
136 txt += " tree: Enable tree api (" + (withTree? "yes" : "no") + ")
\n"; | 134 txt += " tree: Enable tree api (" + (withTree? "yes" : "no") + ")
\n"; |
137 txt += " reader: Enable xmlReader api (" + (withReader? "yes" : "no
") + ")\n"; | 135 txt += " reader: Enable xmlReader api (" + (withReader? "yes" : "no
") + ")\n"; |
138 txt += " writer: Enable xmlWriter api (" + (withWriter? "yes" : "no
") + ")\n"; | 136 txt += " writer: Enable xmlWriter api (" + (withWriter? "yes" : "no
") + ")\n"; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 vf.WriteLine("WITH_FTP=" + (withFtp? "1" : "0")); | 226 vf.WriteLine("WITH_FTP=" + (withFtp? "1" : "0")); |
229 vf.WriteLine("WITH_HTTP=" + (withHttp? "1" : "0")); | 227 vf.WriteLine("WITH_HTTP=" + (withHttp? "1" : "0")); |
230 vf.WriteLine("WITH_HTML=" + (withHtml? "1" : "0")); | 228 vf.WriteLine("WITH_HTML=" + (withHtml? "1" : "0")); |
231 vf.WriteLine("WITH_C14N=" + (withC14n? "1" : "0")); | 229 vf.WriteLine("WITH_C14N=" + (withC14n? "1" : "0")); |
232 vf.WriteLine("WITH_CATALOG=" + (withCatalog? "1" : "0")); | 230 vf.WriteLine("WITH_CATALOG=" + (withCatalog? "1" : "0")); |
233 vf.WriteLine("WITH_DOCB=" + (withDocb? "1" : "0")); | 231 vf.WriteLine("WITH_DOCB=" + (withDocb? "1" : "0")); |
234 vf.WriteLine("WITH_XPATH=" + (withXpath? "1" : "0")); | 232 vf.WriteLine("WITH_XPATH=" + (withXpath? "1" : "0")); |
235 vf.WriteLine("WITH_XPTR=" + (withXptr? "1" : "0")); | 233 vf.WriteLine("WITH_XPTR=" + (withXptr? "1" : "0")); |
236 vf.WriteLine("WITH_XINCLUDE=" + (withXinclude? "1" : "0")); | 234 vf.WriteLine("WITH_XINCLUDE=" + (withXinclude? "1" : "0")); |
237 vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0")); | 235 vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0")); |
238 vf.WriteLine("WITH_ICU=" + (withIcu? "1" : "0")); | |
239 vf.WriteLine("WITH_ISO8859X=" + (withIso8859x? "1" : "0")); | 236 vf.WriteLine("WITH_ISO8859X=" + (withIso8859x? "1" : "0")); |
240 vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0")); | 237 vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0")); |
241 vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0")); | 238 vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0")); |
242 vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0")); | 239 vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0")); |
243 vf.WriteLine("WITH_RUN_DEBUG=" + (withRunDebug? "1" : "0")); | 240 vf.WriteLine("WITH_RUN_DEBUG=" + (withRunDebug? "1" : "0")); |
244 vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0")); | 241 vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0")); |
245 vf.WriteLine("WITH_SCHEMATRON=" + (withSchematron? "1" : "0")); | 242 vf.WriteLine("WITH_SCHEMATRON=" + (withSchematron? "1" : "0")); |
246 vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0")); | 243 vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0")); |
247 vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0")); | 244 vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0")); |
248 vf.WriteLine("WITH_TREE=" + (withTree? "1" : "0")); | 245 vf.WriteLine("WITH_TREE=" + (withTree? "1" : "0")); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 } else if (s.search(/\@WITH_DOCB\@/) != -1) { | 312 } else if (s.search(/\@WITH_DOCB\@/) != -1) { |
316 of.WriteLine(s.replace(/\@WITH_DOCB\@/, withDocb? "1" :
"0")); | 313 of.WriteLine(s.replace(/\@WITH_DOCB\@/, withDocb? "1" :
"0")); |
317 } else if (s.search(/\@WITH_XPATH\@/) != -1) { | 314 } else if (s.search(/\@WITH_XPATH\@/) != -1) { |
318 of.WriteLine(s.replace(/\@WITH_XPATH\@/, withXpath? "1"
: "0")); | 315 of.WriteLine(s.replace(/\@WITH_XPATH\@/, withXpath? "1"
: "0")); |
319 } else if (s.search(/\@WITH_XPTR\@/) != -1) { | 316 } else if (s.search(/\@WITH_XPTR\@/) != -1) { |
320 of.WriteLine(s.replace(/\@WITH_XPTR\@/, withXptr? "1" :
"0")); | 317 of.WriteLine(s.replace(/\@WITH_XPTR\@/, withXptr? "1" :
"0")); |
321 } else if (s.search(/\@WITH_XINCLUDE\@/) != -1) { | 318 } else if (s.search(/\@WITH_XINCLUDE\@/) != -1) { |
322 of.WriteLine(s.replace(/\@WITH_XINCLUDE\@/, withXinclude
? "1" : "0")); | 319 of.WriteLine(s.replace(/\@WITH_XINCLUDE\@/, withXinclude
? "1" : "0")); |
323 } else if (s.search(/\@WITH_ICONV\@/) != -1) { | 320 } else if (s.search(/\@WITH_ICONV\@/) != -1) { |
324 of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1"
: "0")); | 321 of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1"
: "0")); |
325 } else if (s.search(/\@WITH_ICU\@/) != -1) { | |
326 of.WriteLine(s.replace(/\@WITH_ICU\@/, withIcu? "1" : "0
")); | |
327 } else if (s.search(/\@WITH_ISO8859X\@/) != -1) { | 322 } else if (s.search(/\@WITH_ISO8859X\@/) != -1) { |
328 of.WriteLine(s.replace(/\@WITH_ISO8859X\@/, withIso8859x
? "1" : "0")); | 323 of.WriteLine(s.replace(/\@WITH_ISO8859X\@/, withIso8859x
? "1" : "0")); |
329 } else if (s.search(/\@WITH_ZLIB\@/) != -1) { | 324 } else if (s.search(/\@WITH_ZLIB\@/) != -1) { |
330 of.WriteLine(s.replace(/\@WITH_ZLIB\@/, withZlib? "1" :
"0")); | 325 of.WriteLine(s.replace(/\@WITH_ZLIB\@/, withZlib? "1" :
"0")); |
331 } else if (s.search(/\@WITH_DEBUG\@/) != -1) { | 326 } else if (s.search(/\@WITH_DEBUG\@/) != -1) { |
332 of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1"
: "0")); | 327 of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1"
: "0")); |
333 } else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) { | 328 } else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) { |
334 of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebu
g? "1" : "0")); | 329 of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebu
g? "1" : "0")); |
335 } else if (s.search(/\@WITH_RUN_DEBUG\@/) != -1) { | 330 } else if (s.search(/\@WITH_RUN_DEBUG\@/) != -1) { |
336 of.WriteLine(s.replace(/\@WITH_RUN_DEBUG\@/, withRunDebu
g? "1" : "0")); | 331 of.WriteLine(s.replace(/\@WITH_RUN_DEBUG\@/, withRunDebu
g? "1" : "0")); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 else if (opt == "docb") | 455 else if (opt == "docb") |
461 withDocb = strToBool(arg.substring(opt.length + 1, arg.l
ength)); | 456 withDocb = strToBool(arg.substring(opt.length + 1, arg.l
ength)); |
462 else if (opt == "xpath") | 457 else if (opt == "xpath") |
463 withXpath = strToBool(arg.substring(opt.length + 1, arg.
length)); | 458 withXpath = strToBool(arg.substring(opt.length + 1, arg.
length)); |
464 else if (opt == "xptr") | 459 else if (opt == "xptr") |
465 withXptr = strToBool(arg.substring(opt.length + 1, arg.l
ength)); | 460 withXptr = strToBool(arg.substring(opt.length + 1, arg.l
ength)); |
466 else if (opt == "xinclude") | 461 else if (opt == "xinclude") |
467 withXinclude = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 462 withXinclude = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
468 else if (opt == "iconv") | 463 else if (opt == "iconv") |
469 withIconv = strToBool(arg.substring(opt.length + 1, arg.
length)); | 464 withIconv = strToBool(arg.substring(opt.length + 1, arg.
length)); |
470 else if (opt == "icu") | |
471 withIcu = strToBool(arg.substring(opt.length + 1, arg.le
ngth)); | |
472 else if (opt == "iso8859x") | 465 else if (opt == "iso8859x") |
473 withIso8859x = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 466 withIso8859x = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
474 else if (opt == "zlib") | 467 else if (opt == "zlib") |
475 withZlib = strToBool(arg.substring(opt.length + 1, arg.l
ength)); | 468 withZlib = strToBool(arg.substring(opt.length + 1, arg.l
ength)); |
476 else if (opt == "xml_debug") | 469 else if (opt == "xml_debug") |
477 withDebug = strToBool(arg.substring(opt.length + 1, arg.
length)); | 470 withDebug = strToBool(arg.substring(opt.length + 1, arg.
length)); |
478 else if (opt == "mem_debug") | 471 else if (opt == "mem_debug") |
479 withMemDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 472 withMemDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
480 else if (opt == "run_debug") | 473 else if (opt == "run_debug") |
481 withRunDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); | 474 withRunDebug = strToBool(arg.substring(opt.length + 1, a
rg.length)); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 var fso = new ActiveXObject("Scripting.FileSystemObject"); | 608 var fso = new ActiveXObject("Scripting.FileSystemObject"); |
616 var makefile = ".\\Makefile.msvc"; | 609 var makefile = ".\\Makefile.msvc"; |
617 if (compiler == "mingw") | 610 if (compiler == "mingw") |
618 makefile = ".\\Makefile.mingw"; | 611 makefile = ".\\Makefile.mingw"; |
619 else if (compiler == "bcb") | 612 else if (compiler == "bcb") |
620 makefile = ".\\Makefile.bcb"; | 613 makefile = ".\\Makefile.bcb"; |
621 var new_makefile = ".\\Makefile"; | 614 var new_makefile = ".\\Makefile"; |
622 var f = fso.FileExists(new_makefile); | 615 var f = fso.FileExists(new_makefile); |
623 if (f) { | 616 if (f) { |
624 var t = fso.GetFile(new_makefile); | 617 var t = fso.GetFile(new_makefile); |
625 t.Attributes =0; | 618 t.Attributes = 0; |
626 } | 619 } |
627 fso.CopyFile(makefile, new_makefile, true); | 620 fso.CopyFile(makefile, new_makefile, true); |
628 WScript.Echo("Created Makefile."); | 621 WScript.Echo("Created Makefile."); |
629 // Create the config.h. | 622 // Create the config.h. |
630 var confighsrc = "..\\include\\win32config.h"; | 623 var confighsrc = "..\\include\\win32config.h"; |
631 var configh = "..\\config.h"; | 624 var configh = "..\\config.h"; |
632 var f = fso.FileExists(configh); | 625 var f = fso.FileExists(configh); |
633 if (f) { | 626 if (f) { |
634 var t = fso.GetFile(configh); | 627 var t = fso.GetFile(configh); |
635 t.Attributes =0; | 628 t.Attributes =0; |
(...skipping 10 matching lines...) Expand all Loading... |
646 txtOut += " FTP client: " + boolToStr(withFtp) + "\n"; | 639 txtOut += " FTP client: " + boolToStr(withFtp) + "\n"; |
647 txtOut += " HTTP client: " + boolToStr(withHttp) + "\n"; | 640 txtOut += " HTTP client: " + boolToStr(withHttp) + "\n"; |
648 txtOut += " HTML processor: " + boolToStr(withHtml) + "\n"; | 641 txtOut += " HTML processor: " + boolToStr(withHtml) + "\n"; |
649 txtOut += " C14N support: " + boolToStr(withC14n) + "\n"; | 642 txtOut += " C14N support: " + boolToStr(withC14n) + "\n"; |
650 txtOut += " Catalog support: " + boolToStr(withCatalog) + "\n"; | 643 txtOut += " Catalog support: " + boolToStr(withCatalog) + "\n"; |
651 txtOut += " DocBook support: " + boolToStr(withDocb) + "\n"; | 644 txtOut += " DocBook support: " + boolToStr(withDocb) + "\n"; |
652 txtOut += " XPath support: " + boolToStr(withXpath) + "\n"; | 645 txtOut += " XPath support: " + boolToStr(withXpath) + "\n"; |
653 txtOut += " XPointer support: " + boolToStr(withXptr) + "\n"; | 646 txtOut += " XPointer support: " + boolToStr(withXptr) + "\n"; |
654 txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n"; | 647 txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n"; |
655 txtOut += " iconv support: " + boolToStr(withIconv) + "\n"; | 648 txtOut += " iconv support: " + boolToStr(withIconv) + "\n"; |
656 txtOut += " icu support: " + boolToStr(withIcu) + "\n"; | |
657 txtOut += " iso8859x support: " + boolToStr(withIso8859x) + "\n"; | 649 txtOut += " iso8859x support: " + boolToStr(withIso8859x) + "\n"; |
658 txtOut += " zlib support: " + boolToStr(withZlib) + "\n"; | 650 txtOut += " zlib support: " + boolToStr(withZlib) + "\n"; |
659 txtOut += " Debugging module: " + boolToStr(withDebug) + "\n"; | 651 txtOut += " Debugging module: " + boolToStr(withDebug) + "\n"; |
660 txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n"; | 652 txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n"; |
661 txtOut += " Runtime debugging: " + boolToStr(withRunDebug) + "\n"; | 653 txtOut += " Runtime debugging: " + boolToStr(withRunDebug) + "\n"; |
662 txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n"; | 654 txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n"; |
663 txtOut += " Module support: " + boolToStr(withModules) + "\n"; | 655 txtOut += " Module support: " + boolToStr(withModules) + "\n"; |
664 txtOut += " Tree support: " + boolToStr(withTree) + "\n"; | 656 txtOut += " Tree support: " + boolToStr(withTree) + "\n"; |
665 txtOut += " Reader support: " + boolToStr(withReader) + "\n"; | 657 txtOut += " Reader support: " + boolToStr(withReader) + "\n"; |
666 txtOut += " Writer support: " + boolToStr(withWriter) + "\n"; | 658 txtOut += " Writer support: " + boolToStr(withWriter) + "\n"; |
(...skipping 22 matching lines...) Expand all Loading... |
689 txtOut += " Put tools in: " + buildBinPrefix + "\n"; | 681 txtOut += " Put tools in: " + buildBinPrefix + "\n"; |
690 txtOut += " Put headers in: " + buildIncPrefix + "\n"; | 682 txtOut += " Put headers in: " + buildIncPrefix + "\n"; |
691 txtOut += "Put static libs in: " + buildLibPrefix + "\n"; | 683 txtOut += "Put static libs in: " + buildLibPrefix + "\n"; |
692 txtOut += "Put shared libs in: " + buildSoPrefix + "\n"; | 684 txtOut += "Put shared libs in: " + buildSoPrefix + "\n"; |
693 txtOut += " Include path: " + buildInclude + "\n"; | 685 txtOut += " Include path: " + buildInclude + "\n"; |
694 txtOut += " Lib path: " + buildLib + "\n"; | 686 txtOut += " Lib path: " + buildLib + "\n"; |
695 WScript.Echo(txtOut); | 687 WScript.Echo(txtOut); |
696 | 688 |
697 // | 689 // |
698 | 690 |
OLD | NEW |