  fi
 diff -ru vorbis-tools/ogginfo/Makefile.am vorbis-tools-with-kate/ogginfo/Makefile.am
 --- vorbis-tools/ogginfo/Makefile.am	2008-04-15 13:57:29.000000000 +0100
-+++ vorbis-tools-with-kate/ogginfo/Makefile.am	2008-05-06 21:15:12.000000000 +0100
-@@ -16,7 +16,7 @@
- 
- INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @I18N_CFLAGS@
++++ vorbis-tools-with-kate/ogginfo/Makefile.am	2008-05-07 21:12:31.000000000 +0100
+@@ -14,9 +14,9 @@
+ mandir = @MANDIR@
+ man_MANS = $(mans)
+ 
+-INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @I18N_CFLAGS@
++INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @KATE_CFLAGS@ @I18N_CFLAGS@
  
 -ogginfo_LDADD = @SHARE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @LIBICONV@ @I18N_LIBS@
 +ogginfo_LDADD = @SHARE_LIBS@ @VORBIS_LIBS@ @KATE_LIBS@ @OGG_LIBS@ @LIBICONV@ @I18N_LIBS@

 
 dnl --------------------------------------------------
 dnl Check for generally needed libraries
@@ -251,6 +252,47 @@
 AM_CONDITIONAL(HAVE_LIBSPEEX, test "x$have_libspeex" = "xyes")
 AC_SUBST(SPEEX_LIBS)
 
+dnl ------------------- Kate -------------------------
+
+KATE_LIBS=""
+if test "x$build_kate" = xyes; then
+  AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
+  if test "x$HAVE_PKG_CONFIG" = "xyes"
+  then
+    PKG_CHECK_MODULES(KATE, kate, HAVE_KATE=yes, HAVE_KATE=no)
+  fi
+  if test "x$HAVE_KATE" = "xno"
+  then

diff -ru vorbis-tools/configure.ac vorbis-tools-with-kate/configure.ac
--- vorbis-tools/configure.ac	2008-04-15 13:57:29.000000000 +0100
+++ vorbis-tools-with-kate/configure.ac	2008-05-07 21:22:57.000000000 +0100
@@ -100,6 +100,7 @@
 AC_ARG_ENABLE(vorbiscomment, [  --disable-vorbiscomment   Skip building vorbiscomment], build_vorbiscomment="$enableval", build_vorbiscomment="yes")
 AC_ARG_WITH(flac,     [  --without-flac     Do not compile FLAC support], build_flac="$withval", build_flac="yes")
