From: Pekka Riikonen Date: Mon, 11 Jun 2007 19:15:00 +0000 (+0000) Subject: udpates. X-Git-Tag: silc.toolkit.1.1.1~18 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=8b1712c6ee532bbd33ee9cf3b4d6844c63ce77d7 udpates. --- diff --git a/CHANGES b/CHANGES index 87a83573..a87492f3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Mon Jun 11 22:10:17 EEST 2007 Pekka Riikonen + + * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution + which can be used to check for Toolkit version in third-party + software. Affected file is configure.ad, includes/silc.h.in. + Sun Jun 10 17:32:15 EEST 2007 Pekka Riikonen * Added support for channel@server channel name strings to diff --git a/configure.ad b/configure.ad index 47702fb4..dfa3df0e 100644 --- a/configure.ad +++ b/configure.ad @@ -94,6 +94,11 @@ __SILC_HAVE_PTHREAD="" __SILC_HAVE_SIM="" __SILC_ENABLE_DEBUG="" +#ifdef SILC_DIST_TOOLKIT +toolkitver=`echo $VERSION | sed 's/\.//g'` +__SILC_PACKAGE_VERSION="#define __SILC_TOOLKIT_VERSION $toolkitver" +#endif SILC_DIST_TOOLKIT + AC_PROG_RANLIB #ifndef SILC_DIST_TOOLKIT AC_DISABLE_SHARED @@ -1319,6 +1324,7 @@ AC_SUBST(SILC_LIB_INCLUDES) AC_SUBST(__SILC_HAVE_PTHREAD) AC_SUBST(__SILC_HAVE_SIM) AC_SUBST(__SILC_ENABLE_DEBUG) +AC_SUBST(__SILC_PACKAGE_VERSION) # # Fix the libtool to support run-time configuration. This allows us