From: Martin Mares Date: Wed, 21 May 2008 17:31:37 +0000 (+0200) Subject: Fixed compatibility problems with new GNU m4. X-Git-Tag: v5.1~36 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a030ea9b7089859eb8c8f0fef8e833bf5f97b999;p=nsc-5.git Fixed compatibility problems with new GNU m4. --- diff --git a/m4/dnslib.m4 b/m4/dnslib.m4 index 0c74b45..a3eddcd 100644 --- a/m4/dnslib.m4 +++ b/m4/dnslib.m4 @@ -37,8 +37,7 @@ define(nsc_corr_dot, `ifelse(substr($1,decr(len($1))),.,$1,$1`'ifelse(index($1,. define(nsc_if_v6, `ifelse(index($1,:),-1,`$3',`$2')') -define(nsc_norm_v6, `nsc_norm_v6_z(dnl -ifelse(regexp($1,`::.*::'),-1,`ifelse(index($1,::),-1,`nsc_norm_v6_nn($1)',`nsc_norm_v6_cc($1)')',`nsc_bad_v6($1)'))') +define(nsc_norm_v6, `nsc_norm_v6_z(ifelse(regexp($1,`::.*::'),-1,`ifelse(index($1,::),-1,`nsc_norm_v6_nn($1)',`nsc_norm_v6_cc($1)')',`nsc_bad_v6($1)'))') # If there is no ::, check the number of :'s define(nsc_norm_v6_nn, `ifelse(nsc_extract_colons($1),:::::::,$1,`nsc_bad_v6($1)')') # Replace :: by the right number of :'s to get 8 (possibly empty) components