Sha256: bb0aa568a923af2be2e7f677f3163c53c70341697c124a8b11e8433cd2c0b2b8
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
#!/usr/bin/ruby -w # See the LICENSE file for copyright and distribution information require "mkmf" def help print <<HELP "extconf.rb" configures this package to adapt to many kinds of systems. Usage: ruby extconf.rb [OPTION]... Configuration: --help display this help and exit --with-xslt-lib=PATH --with-xslt-include=PATH --with-xslt-dir=PATH specify the directory name for the libxslt include files and/or library --disable-error-handler disables the new error handler --disable-exslt disables libexslt support <http://exslt.org/> HELP end if ARGV.include?( "--help" ) or ARGV.include?( "-h" ) help() exit 0 end if enable_config("error-handler", true) $CFLAGS += " -DUSE_ERROR_HANDLER" end #$LIBPATH.push(Config::CONFIG['libdir']) def crash(str) printf(" extconf failure: %s\n", str) exit 1 end dir_config( 'xml2' ) dir_config( 'xslt' ) have_library "xml2", "xmlParseDoc" || crash("need libxml2") have_library "xslt", "xsltParseStylesheetFile" || crash("need libxslt") if enable_config("exslt", true) have_library "exslt", "exsltRegisterAll" $CFLAGS += " -DUSE_EXSLT" end $CFLAGS = '-g -Wall ' + `xml2-config --cflags`.chomp + " " + `xslt-config --cflags`.chomp + " " + $CFLAGS create_header() create_makefile("xml/xslt_lib")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-xslt-0.9.6 | ext/xslt_lib/extconf.rb |