summaryrefslogtreecommitdiff
path: root/ext/yaz
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-09-20 02:46:38 +0000
committerfoobar <sniper@php.net>2002-09-20 02:46:38 +0000
commit26fb2879d51f9274d5e160b5fbc19b3247bcbbee (patch)
tree71116673da606a6400739cf896b63132f3857734 /ext/yaz
parentf119fd649849f3ec3c76c6b9b77d6404accb5413 (diff)
downloadphp-git-26fb2879d51f9274d5e160b5fbc19b3247bcbbee.tar.gz
Added check for yaz version into configure.
Diffstat (limited to 'ext/yaz')
-rw-r--r--ext/yaz/config.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/yaz/config.m4 b/ext/yaz/config.m4
index 20f5384a17..96356cae8a 100644
--- a/ext/yaz/config.m4
+++ b/ext/yaz/config.m4
@@ -22,6 +22,16 @@ if test "$PHP_YAZ" != "no"; then
if test -f $yazconfig; then
AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ])
. $yazconfig
+
+ dnl Check version (1.9 or greater required)
+ AC_MSG_CHECKING([for YAZ version])
+ yaz_version=`echo $YAZVERSION | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
+ if test "$yaz_version" -ge 1009000; then
+ AC_MSG_RESULT([$YAZVERSION])
+ else
+ AC_MSG_ERROR(YAZ version 1.9 or later required.])
+ fi
+
dir=""
for c in $YAZLIB; do
case $c in