Hello,

Limited by three digits, BIND_VERSION steps back to 910 with the last
releases of the bind. Then comparisions like:
#if defined(BIND_VERSION) && BIND_VERSION >= 940
are always false, when shouldn't.

Two attached patches for configure and configure.ac allowed BIND_VERSION
to be four digits, like 9101 in case of bind-9.10.1 .

Thank you,
Hrant

-- 
Hrant Dadivanyan (aka Ran d'Adi)                hrant(at)dadivanyan.net
/* "Feci quod potui, faciant meliora potentes." */       ran(at)psg.com
*** configure.orig      Wed Dec  5 22:36:20 2012
--- configure   Fri Nov 14 00:46:19 2014
***************
*** 2719,2725 ****
  _ACEOF
  
  # define BIND_VERSION in config.h.in
! bind_version=`$SIGNZONE_PROG 2>&1 |  grep "Version:" | tr -cd "[0-9]\012" | 
sed "s/^\(...\).*/\1/"`
  
  cat >>confdefs.h <<_ACEOF
  #define BIND_VERSION $bind_version
--- 2719,2725 ----
  _ACEOF
  
  # define BIND_VERSION in config.h.in
! bind_version=`$SIGNZONE_PROG 2>&1 |  grep "Version:" | tr -cd "[0-9]\012" | 
sed "s/^\(....\).*/\1/"`
  
  cat >>confdefs.h <<_ACEOF
  #define BIND_VERSION $bind_version
*** configure.ac.orig   Wed Dec  5 22:25:36 2012
--- configure.ac        Fri Nov 14 00:39:23 2014
***************
*** 55,61 ****
  # define BIND_UTIL_PATH in config.h.in
  AC_DEFINE_UNQUOTED(BIND_UTIL_PATH, "$bind_util_path/", Path to BIND utilities)
  # define BIND_VERSION in config.h.in
! bind_version=`$SIGNZONE_PROG 2>&1 |  grep "Version:" | tr -cd "[[0-9]]\012" | 
sed "s/^\(...\).*/\1/"`
  AC_DEFINE_UNQUOTED(BIND_VERSION, $bind_version, BIND version as integer 
number without dots)
  
  
--- 55,61 ----
  # define BIND_UTIL_PATH in config.h.in
  AC_DEFINE_UNQUOTED(BIND_UTIL_PATH, "$bind_util_path/", Path to BIND utilities)
  # define BIND_VERSION in config.h.in
! bind_version=`$SIGNZONE_PROG 2>&1 |  grep "Version:" | tr -cd "[[0-9]]\012" | 
sed "s/^\(....\).*/\1/"`
  AC_DEFINE_UNQUOTED(BIND_VERSION, $bind_version, BIND version as integer 
number without dots)
  
  
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
zkt-users mailing list
zkt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zkt-users

Reply via email to