INN commit: trunk/m4 (krb5.m4)

INN Commit rra at isc.org
Sat Jul 5 17:13:25 UTC 2014


    Date: Saturday, July 5, 2014 @ 10:13:25
  Author: iulius
Revision: 9647

Sync with latest rra-c-util 5.5

KRB5_CPPFLAGS_GCC Makefile variable can now be used, if needed, in
combination with gcc warnings (such as the make warnings target) to
suppress warnings from Kerberos headers in non-system paths.

Modified:
  trunk/m4/krb5.m4

---------+
 krb5.m4 |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: krb5.m4
===================================================================
--- krb5.m4	2014-06-04 19:13:47 UTC (rev 9646)
+++ krb5.m4	2014-07-05 17:13:25 UTC (rev 9647)
@@ -18,6 +18,12 @@
 dnl If KRB5_CPPFLAGS, KRB5_LDFLAGS, or KRB5_LIBS are set before calling these
 dnl macros, their values will be added to whatever the macros discover.
 dnl
+dnl KRB5_CPPFLAGS_GCC will be set to the same value as KRB5_CPPFLAGS but with
+dnl any occurrences of -I changed to -isystem.  This may be useful to suppress
+dnl warnings from the Kerberos header files when building with GCC and
+dnl aggressive warning flags.  Be aware that this change will change the
+dnl compiler header file search order as well.
+dnl
 dnl Provides the INN_LIB_KRB5_OPTIONAL macro, which should be used if Kerberos
 dnl support is optional.  In this case, Kerberos libraries are mandatory if
 dnl --with-krb5 is given, and will not be probed for if --without-krb5 is
@@ -45,7 +51,7 @@
 dnl package, available at <http://www.eyrie.org/~eagle/software/rra-c-util/>.
 dnl
 dnl Written by Russ Allbery <eagle at eyrie.org>
-dnl Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013
+dnl Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2014
 dnl     The Board of Trustees of the Leland Stanford Junior University
 dnl
 dnl This file is free software; the authors give unlimited permission to copy
@@ -240,6 +246,10 @@
 AC_DEFUN([_INN_LIB_KRB5_INTERNAL],
 [AC_REQUIRE([INN_ENABLE_REDUCED_DEPENDS])
  inn_krb5_incroot=
+ AC_SUBST([KRB5_CPPFLAGS])
+ AC_SUBST([KRB5_CPPFLAGS_GCC])
+ AC_SUBST([KRB5_LDFLAGS])
+ AC_SUBST([KRB5_LIBS])
  AS_IF([test x"$inn_krb5_includedir" != x],
     [inn_krb5_incroot="$inn_krb5_includedir"],
     [AS_IF([test x"$inn_krb5_root" != x],
@@ -254,7 +264,8 @@
  inn_krb5_uses_com_err=false
  AS_CASE([$KRB5_LIBS], [*-lcom_err*], [inn_krb5_uses_com_err=true])
  AM_CONDITIONAL([KRB5_USES_COM_ERR],
-    [test x"$inn_krb5_uses_com_err" = xtrue])])
+    [test x"$inn_krb5_uses_com_err" = xtrue])
+ KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'`])
 
 dnl The main macro for packages with mandatory Kerberos support.
 AC_DEFUN([INN_LIB_KRB5],
@@ -262,9 +273,6 @@
  inn_krb5_libdir=
  inn_krb5_includedir=
  inn_use_KRB5=true
- AC_SUBST([KRB5_CPPFLAGS])
- AC_SUBST([KRB5_LDFLAGS])
- AC_SUBST([KRB5_LIBS])
 
  AC_ARG_WITH([krb5],
     [AS_HELP_STRING([--with-krb5=DIR],
@@ -290,9 +298,6 @@
  inn_krb5_libdir=
  inn_krb5_includedir=
  inn_use_KRB5=
- AC_SUBST([KRB5_CPPFLAGS])
- AC_SUBST([KRB5_LDFLAGS])
- AC_SUBST([KRB5_LIBS])
 
  AC_ARG_WITH([krb5],
     [AS_HELP_STRING([--with-krb5@<:@=DIR@:>@],



More information about the inn-committers mailing list