root/ext/extconf.rb

Revision 3743ad075234ad77e4d34c81771003bd38d4a24e, 0.9 KB (checked in by Mark Guzman <segfault@…>, 6 months ago)

adding some more initial documentation
specified that copyright is defined in the LICENSE file

  • Property mode set to 100644
Line 
1# mkmf config for the FastXml ruby extension
2# Please see the LICENSE file for copyright, licensing and distribution information
3
4# FastXml depends on libxml and libxslt
5
6require 'mkmf'
7ext_name = 'fastxml'
8dir_config ext_name
9find_header( 'libxml/tree.h', "/usr/include/libxml2", "/usr/local/include/libxml2", "/opt/local/include/libxml2"  )
10find_header( 'libxslt/xslt.h', "/usr/include/libxslt", "/usr/local/include/libxslt", "/opt/local/include/libxslt"  )
11find_library( 'xml2', "xmlInitParser", "/usr/lib", "/usr/local/lib", "/opt/local/lib" )
12have_library( 'xml2', 'xmlInitParser', 'libxml/parser.h' )
13find_library( 'xslt', "xmlInitParser", "/usr/lib", "/usr/local/lib", "/opt/local/lib" )
14have_library( 'xslt', 'xsltParseStylesheetFile', 'libxslt/xslt.h' )
15$LDFLAGS << ' %s' % (`xml2-config --libs`).chomp
16$CFLAGS << ' -Wall %s' % (`xml2-config --cflags`).chomp
17
18create_makefile ext_name
Note: See TracBrowser for help on using the browser.