require 'mkmf' dir_config('sablot') dir_config('iconv') if with_config('iconv') have_library('iconv', 'iconv') end dir_config('expat') ## for old GCC like FreeBSD 3.3(without gcc295) if with_config('oldgcc') have_library('gcc',nil) end have_library('stdc++') if have_header("sablot.h") and ((have_library("expat", "XML_ParserCreate") and have_library("expat", "XmlParseXmlDecl")) or (have_library("xmltok", "XmlParseXmlDecl") and have_library("xmlparse", "XML_ParserCreate"))) and have_library("sablot", "SablotProcessStrings") create_makefile("sablot") STDERR.print < --with-iconv --with-iconv-dir= --with-expat-dir= EOB end