diff options
author | foobar <sniper@php.net> | 2002-09-20 02:46:38 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-09-20 02:46:38 +0000 |
commit | 26fb2879d51f9274d5e160b5fbc19b3247bcbbee (patch) | |
tree | 71116673da606a6400739cf896b63132f3857734 /ext/yaz | |
parent | f119fd649849f3ec3c76c6b9b77d6404accb5413 (diff) | |
download | php-git-26fb2879d51f9274d5e160b5fbc19b3247bcbbee.tar.gz |
Added check for yaz version into configure.
Diffstat (limited to 'ext/yaz')
-rw-r--r-- | ext/yaz/config.m4 | 10 |
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 |