Define YAZ_USE_NEW_LOG=1 if app require YAZ > 2.0.28
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Dec 2004 14:15:55 +0000 (14:15 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Dec 2004 14:15:55 +0000 (14:15 +0000)
yaz.m4

diff --git a/yaz.m4 b/yaz.m4
index f8c360e..9626319 100644 (file)
--- a/yaz.m4
+++ b/yaz.m4
@@ -129,6 +129,9 @@ AC_DEFUN([YAZ_INIT],
                        if test "$have_yaz_version" -lt "$req_yaz_version"; then
                                AC_MSG_ERROR([$YAZVERSION. Requires $2 or later])
                        fi
+                       if test "$req_yaz_version" -gt "2000028"; then
+                               YAZINC="$YAZINC -DYAZ_USE_NEW_LOG=1"
+                       fi
                fi
        fi
 ])