// $Id: config.w32,v 1.3 2004/04/21 12:38:28 dickmeiss Exp $ // vim:ft=javascript ARG_WITH("yaz", "YAZ support (ANSI/NISO Z39.50)", "no"); // this is a temporary hack function yaz_check_version() { var c = null; var v; var yaz_h = CHECK_HEADER_ADD_INCLUDE("yaz/yaz-version.h", "CFLAGS_YAZ", PHP_YAZ); if (!yaz_h) { return false; } c = file_get_contents(yaz_h + "\\yaz\\yaz-version.h"); if (c.match(/YAZ_VERSIONL\s+(0x[a-zA-Z0-9]+)/)) { v = RegExp.$1; if (parseInt(v) >= 0x2000D) { return true; } WARNING("yaz not enabled; version 2.0.13 or higher required; you have version " + v); } return false; } if (PHP_YAZ != "no") { if (yaz_check_version() && CHECK_LIB("yaz.lib", "yaz", PHP_YAZ)) { EXTENSION('yaz', 'php_yaz.c'); AC_DEFINE('HAVE_YAZ', 1); } else { WARNING("yaz not enabled; libraries and headers not found"); } }