summaryrefslogtreecommitdiff
path: root/ext/yaz/config.w32
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-01-25 12:03:25 +0000
committerSVN Migration <svn@php.net>2004-01-25 12:03:25 +0000
commit22476b36ce621bdd115493bab84cbe706e422a7c (patch)
tree1124d1c5af68860a78c2252bb0dac63c9f18156e /ext/yaz/config.w32
parenteb7aca4ea896b09cb9afc2466a46f4720acc4a4e (diff)
downloadphp-git-php_ibase_before_split.tar.gz
This commit was manufactured by cvs2svn to create tagphp_ibase_before_split
'php_ibase_before_split'.
Diffstat (limited to 'ext/yaz/config.w32')
-rw-r--r--ext/yaz/config.w3236
1 files changed, 0 insertions, 36 deletions
diff --git a/ext/yaz/config.w32 b/ext/yaz/config.w32
deleted file mode 100644
index b4c65514ee..0000000000
--- a/ext/yaz/config.w32
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-// 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) >= 0x20000) {
- return true;
- }
- WARNING("yaz not enabled; version 2.0 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");
- }
-}
-