On Wed, Oct 18, 2006 at 10:48:29PM +0100, Stephen Gran said:
> This is in reference to debian bug #393672, viewable at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=393672

Sorry, the previous patch was wrong - the m4 expansion swallows one set
of square brackets, so they need to be doubled.  Corrected patch below.

Index: configure.in
===================================================================
--- configure.in        (revision 186)
+++ configure.in        (revision 188)
@@ -178,9 +178,30 @@
     sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'`
     sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'`

-    AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_A, $sendmailver_a, [major version of 
Sendmail])
-    AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_B, $sendmailver_b, [minor version of 
Sendmail])
-    AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_C, $sendmailver_c, [subversion of 
Sendmail])
+    case sendmailver_a in
+      [[:digit:]]+) ;;
+      *) sendmailver_a= ;;
+    esac
+
+    case sendmailver_b in
+      [[:digit:]]+) ;;
+      *) sendmailver_b= ;;
+    esac
+
+    case sendmailver_c in
+      [[:digit:]]+) ;;
+      *) sendmailver_c= ;;
+    esac
+
+    if test -n "$sendmailver_a"; then
+      AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_A, $sendmailver_a, [major version of 
Sendmail])
+    fi
+    if test -n "$sendmailver_b"; then
+      AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_B, $sendmailver_b, [minor version of 
Sendmail])
+    fi
+    if test -n "$sendmailver_c"; then
+      AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_C, $sendmailver_c, [subversion of 
Sendmail])
+    fi
   fi
 fi

Thanks again,
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | A man without a woman is like a statue  |
|  [EMAIL PROTECTED]             | without pigeons.                        |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to