cvs: php4 /ext/yaz config.m4

From: Date: Fri, 20 Sep 2002 02:46:37 +0000
Subject: cvs: php4 /ext/yaz config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14111@lists.php.net to get a copy of this message
sniper Thu Sep 19 22:46:37 2002 EDT Modified files: /php4/ext/yaz config.m4 Log: Added check for yaz version into configure. Index: php4/ext/yaz/config.m4 diff -u php4/ext/yaz/config.m4:1.9 php4/ext/yaz/config.m4:1.10 --- php4/ext/yaz/config.m4:1.9 Thu Jul 11 09:02:51 2002 +++ php4/ext/yaz/config.m4 Thu Sep 19 22:46:37 2002 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.9 2002/07/11 13:02:51 dickmeiss Exp $ +dnl $Id: config.m4,v 1.10 2002/09/20 02:46:37 sniper Exp $ dnl PHP_ARG_WITH(yaz,for YAZ support, @@ -22,6 +22,16 @@ 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

« previous php.cvs (#14111) next »