]> granicus.if.org Git - neomutt/commitdiff
Fix cppflags and muttlibs duplication with --with-gss.
authorKevin McCarthy <kevin@8t8.us>
Thu, 30 Jun 2016 01:58:53 +0000 (18:58 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 30 Jun 2016 01:58:53 +0000 (18:58 -0700)
When krb5-config was found, MUTT_AM_PATH_GSSAPI included CFLAGS in
GSSAPI_CFLAGS and MUTTLIBS in GSSAPI_LIBS.  However, configure.ac
afterwards sets:
    CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
    MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
This caused the flags and libs to be duplicated.

m4/gssapi.m4

index e8451eaaf58d4502098c0f560a87814cef6074d0..0e0194e637fa7e0b97d834b46ee9eb5fd3d5ef9d 100644 (file)
@@ -23,8 +23,8 @@ AC_DEFUN([MUTT_AM_PATH_GSSAPI],
   AC_PATH_PROG(KRB5CFGPATH, krb5-config, none, $krb5_path)
   if test "$KRB5CFGPATH" != "none"
   then
-    GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
-    GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
+    GSSAPI_CFLAGS="`$KRB5CFGPATH --cflags gssapi`"
+    GSSAPI_LIBS="`$KRB5CFGPATH --libs gssapi`"
     case "`$KRB5CFGPATH --version`" in
       "Kerberos 5 "*)  GSSAPI_IMPL="MIT";;
       ?eimdal*)                GSSAPI_IMPL="Heimdal";;