Fix gcc preprocessor warnings due to last change
authorKen Raeburn <raeburn@mit.edu>
Mon, 6 Jun 2005 20:37:22 +0000 (20:37 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 6 Jun 2005 20:37:22 +0000 (20:37 +0000)
* configure.in: Put #undef for the PACKAGE_* symbols at the start of
autoconf.h.  Use a leading comment to hide the #undef from the autoconf
substitutions.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17228 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/configure.in

index d0ded4ca708f6426adee20d730e7a7f98b9d65ca..8f4f9efbd6c24188c0c677aa1ffc20cc88e36f0e 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-06  Ken Raeburn  <raeburn@mit.edu>
+
+       * configure.in: Put #undef for the PACKAGE_* symbols at the start
+       of autoconf.h.  Use a leading comment to hide the #undef from the
+       autoconf substitutions.
+
 2005-06-01  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Identify package in AC_INIT call.
index f789255e2ec6b1403f48c371ae8ca7b88daa4139..937dca21cb0818be780f939ffe4ed264a6a2f7fd 100644 (file)
@@ -455,6 +455,15 @@ dnl
 AC_C_INLINE
 AH_TOP([
 #ifndef KRB5_AUTOCONF_H
+/* Leading comment stops autoconf/config.status from turning these
+   into #define statements.  But the preprocessor will still pay
+   attention to them.  (Comment removal is in translation phase 3;
+   processing of #undef is phase 4.)  */
+/*x*/#undef PACKAGE_NAME
+/*x*/#undef PACKAGE_VERSION
+/*x*/#undef PACKAGE_BUGREPORT
+/*x*/#undef PACKAGE_STRING
+/*x*/#undef PACKAGE_TARNAME
 ])
 AH_BOTTOM([
 #if defined(__GNUC__) && !defined(inline)