samba-vscan configure.in,1.17.2.20,1.17.2.21

Rainer Link <[email protected]> Fri, 13 Jan 2006 13:20:13 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/samba-vscan
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26081

Modified Files:
      Tag: VSCAN_0_3
	configure.in 
Log Message:
quick hack to allow samba-vscan to be compiled with Samba3 versions
which have an char in their release version number (i.e. 3.0.21a)


Index: configure.in
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/configure.in,v
retrieving revision 1.17.2.20
retrieving revision 1.17.2.21
diff -u -d -r1.17.2.20 -r1.17.2.21
--- configure.in	8 Apr 2005 09:37:56 -0000	1.17.2.20
+++ configure.in	13 Jan 2006 13:20:11 -0000	1.17.2.21
@@ -493,6 +493,20 @@
     AC_MSG_RESULT($SAMBA_VERSION_VENDOR_SUFFIX)
 fi
 
+SAMBA_VERSION_RELEASE=$(cat ${SAMBA_srcdir}/include/version.h |grep '#define SAMBA_VERSION_RELEASE'|cut -d ' ' -f3-)
+
+# uhm, it should not happen release is not set ...
+# uhm, did I already mention hack alert? ;)
+if test -n "$SAMBA_VERSION_RELEASE"; then
+  SAMBA_VERSION_RELEASE_NEW=$(echo $SAMBA_VERSION_RELEASE | tr -d [:alpha:])
+  if test $SAMBA_VERSION_RELEASE != $SAMBA_VERSION_RELEASE_NEW; then
+    AC_MSG_CHECKING(for Samba Release version)
+    AC_MSG_RESULT($SAMBA_VERSION_RELEASE_NEW)
+    AC_DEFINE_UNQUOTED(SAMBA_VERSION_RELEASE,$SAMBA_VERSION_RELEASE_NEW,[Samba Release version])  
+  else
+    SAMBA_VERSION_RELEASE_NEW=""
+  fi
+fi
 ################################################################
 ################################################################
 
@@ -1013,3 +1027,13 @@
 Or \"make <backend> {<backend>}\" to build only specific backend(s).
 On *BSD systems please use GNU make (gmake) instead of BSD make (make).
 ])
+
+if test -n "$SAMBA_VERSION_RELEASE_NEW"; then
+AC_MSG_RESULT([Note: The Samba relase version was set from $SAMBA_VERSION_RELEASE to $SAMBA_VERSION_RELEASE_NEW, 
+as the version number must be integer digit only 
+(otherwise this module won't compile). 
+Please ignore any complier warnings related to SAMBA_VERSION_RELEASE 
+redefined.  
+])
+fi
+



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click