Patch from Armijn Hemel <armijn@nl.linux.org> to fix build on
authorJelmer Vernooij <jelmer@samba.org>
Sat, 12 Apr 2003 17:12:31 +0000 (17:12 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 12 Apr 2003 17:12:31 +0000 (17:12 +0000)
FreeBSD 5 systems with a broken krb5-config
(This used to be commit 675333350a645cfe209127bfd040b81c2fc42f58)

source3/configure.in

index 84d0c177c0fa467f06ef06cd382b4c7a53fce4a9..d6ed8fac62101d3a51cf77ba64ca3395109a4bab 100644 (file)
@@ -2149,8 +2149,8 @@ if test x"$with_ads_support" = x"yes"; then
   AC_MSG_CHECKING(for working krb5-config)
   if test -x "$KRB5_CONFIG"; then
     LIBS="$LIBS `$KRB5_CONFIG --libs`"
   AC_MSG_CHECKING(for working krb5-config)
   if test -x "$KRB5_CONFIG"; then
     LIBS="$LIBS `$KRB5_CONFIG --libs`"
-    CFLAGS="$CFLAGS `$KRB5_CONFIG --cflags`" 
-    CPPFLAGS="$CPPFLAGS `$KRB5_CONFIG --cflags`"
+    CFLAGS="$CFLAGS `$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`" 
+    CPPFLAGS="$CPPFLAGS `$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`"
     FOUND_KRB5=yes
     AC_MSG_RESULT(yes)
   else
     FOUND_KRB5=yes
     AC_MSG_RESULT(yes)
   else