Wes Hardaker wrote:
> What we *should* do is:
[...]
> 2) fix the incompatibilities when we can (removing the PACKAGE
> variables is an excellent example).
The attached patch uses AH_VERBATIM to make autoheader protect the PACKAGE_*
variables in net-snmp-config.h[.in] in a way suitable for all branches. Works
for me. I'll commit this to 5.[234].x shortly.
We still need to solve the other issues discussed in this thread, mind you.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
Index: configure.in
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/configure.in,v
retrieving revision 5.244
diff -u -r5.244 configure.in
--- configure.in 25 Aug 2006 14:20:08 -0000 5.244
+++ configure.in 26 Aug 2006 23:12:15 -0000
@@ -4126,6 +4126,31 @@
[chmod +x net-snmp-config])
AC_CONFIG_COMMANDS([default], echo timestamp > stamp-h)
+
+#
+# protect PACKAGE_* variables
+#
+AH_VERBATIM([PACKAGE_BUGREPORT],[/* Define to the address where bug reports for this package should be sent. */
+#ifndef PACKAGE_BUGREPORT
+#undef PACKAGE_BUGREPORT
+#endif])
+AH_VERBATIM([PACKAGE_NAME],[/* Define to the full name of this package. */
+#ifndef PACKAGE_NAME
+#undef PACKAGE_NAME
+#endif])
+AH_VERBATIM([PACKAGE_STRING],[/* Define to the full name and version of this package. */
+#ifndef PACKAGE_STRING
+#undef PACKAGE_STRING
+#endif])
+AH_VERBATIM([PACKAGE_TARNAME],[/* Define to the one symbol short name of this package. */
+#ifndef PACKAGE_TARNAME
+#undef PACKAGE_TARNAME
+#endif])
+AH_VERBATIM([PACKAGE_VERSION],[/* Define to the version of this package. */
+#ifndef PACKAGE_VERSION
+#undef PACKAGE_VERSION
+#endif])
+
AC_OUTPUT
AC_MSG_CACHE_DISPLAY()
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders